Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / libusb / configure
blob58d77642e195b4266e6beed16ca121c17844ed4a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libusb-compat 0.1.3.
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='libusb-compat'
723 PACKAGE_TARNAME='libusb-compat'
724 PACKAGE_VERSION='0.1.3'
725 PACKAGE_STRING='libusb-compat 0.1.3'
726 PACKAGE_BUGREPORT=''
728 ac_unique_file="libusb/core.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 INSTALL_PROGRAM
803 INSTALL_SCRIPT
804 INSTALL_DATA
805 am__isrc
806 CYGPATH_W
807 PACKAGE
808 VERSION
809 ACLOCAL
810 AUTOCONF
811 AUTOMAKE
812 AUTOHEADER
813 MAKEINFO
814 install_sh
815 STRIP
816 INSTALL_STRIP_PROGRAM
817 mkdir_p
819 SET_MAKE
820 am__leading_dot
821 AMTAR
822 am__tar
823 am__untar
825 CFLAGS
826 LDFLAGS
827 CPPFLAGS
828 ac_ct_CC
829 EXEEXT
830 OBJEXT
831 DEPDIR
832 am__include
833 am__quote
834 AMDEP_TRUE
835 AMDEP_FALSE
836 AMDEPBACKSLASH
837 CCDEPMODE
838 am__fastdepCC_TRUE
839 am__fastdepCC_FALSE
840 LIBTOOL
841 build
842 build_cpu
843 build_vendor
844 build_os
845 host
846 host_cpu
847 host_vendor
848 host_os
850 GREP
851 EGREP
852 FGREP
854 DUMPBIN
855 ac_ct_DUMPBIN
857 LN_S
858 OBJDUMP
860 RANLIB
861 lt_ECHO
862 DSYMUTIL
863 NMEDIT
864 LIPO
865 OTOOL
866 OTOOL64
868 LT_MAJOR
869 LT_REVISION
870 LT_AGE
871 LIBUSB01_VERSION
872 PKG_CONFIG
873 LIBUSB_1_0_CFLAGS
874 LIBUSB_1_0_LIBS
875 BUILD_EXAMPLES_TRUE
876 BUILD_EXAMPLES_FALSE
877 AM_CFLAGS
878 LIBOBJS
879 LTLIBOBJS'
880 ac_subst_files=''
881 ac_precious_vars='build_alias
882 host_alias
883 target_alias
885 CFLAGS
886 LDFLAGS
887 LIBS
888 CPPFLAGS
890 PKG_CONFIG
891 LIBUSB_1_0_CFLAGS
892 LIBUSB_1_0_LIBS'
895 # Initialize some variables set by options.
896 ac_init_help=
897 ac_init_version=false
898 # The variables have the same names as the options, with
899 # dashes changed to underlines.
900 cache_file=/dev/null
901 exec_prefix=NONE
902 no_create=
903 no_recursion=
904 prefix=NONE
905 program_prefix=NONE
906 program_suffix=NONE
907 program_transform_name=s,x,x,
908 silent=
909 site=
910 srcdir=
911 verbose=
912 x_includes=NONE
913 x_libraries=NONE
915 # Installation directory options.
916 # These are left unexpanded so users can "make install exec_prefix=/foo"
917 # and all the variables that are supposed to be based on exec_prefix
918 # by default will actually change.
919 # Use braces instead of parens because sh, perl, etc. also accept them.
920 # (The list follows the same order as the GNU Coding Standards.)
921 bindir='${exec_prefix}/bin'
922 sbindir='${exec_prefix}/sbin'
923 libexecdir='${exec_prefix}/libexec'
924 datarootdir='${prefix}/share'
925 datadir='${datarootdir}'
926 sysconfdir='${prefix}/etc'
927 sharedstatedir='${prefix}/com'
928 localstatedir='${prefix}/var'
929 includedir='${prefix}/include'
930 oldincludedir='/usr/include'
931 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
932 infodir='${datarootdir}/info'
933 htmldir='${docdir}'
934 dvidir='${docdir}'
935 pdfdir='${docdir}'
936 psdir='${docdir}'
937 libdir='${exec_prefix}/lib'
938 localedir='${datarootdir}/locale'
939 mandir='${datarootdir}/man'
941 ac_prev=
942 ac_dashdash=
943 for ac_option
945 # If the previous option needs an argument, assign it.
946 if test -n "$ac_prev"; then
947 eval $ac_prev=\$ac_option
948 ac_prev=
949 continue
952 case $ac_option in
953 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954 *) ac_optarg=yes ;;
955 esac
957 # Accept the important Cygnus configure options, so we can diagnose typos.
959 case $ac_dashdash$ac_option in
961 ac_dashdash=yes ;;
963 -bindir | --bindir | --bindi | --bind | --bin | --bi)
964 ac_prev=bindir ;;
965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966 bindir=$ac_optarg ;;
968 -build | --build | --buil | --bui | --bu)
969 ac_prev=build_alias ;;
970 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971 build_alias=$ac_optarg ;;
973 -cache-file | --cache-file | --cache-fil | --cache-fi \
974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975 ac_prev=cache_file ;;
976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978 cache_file=$ac_optarg ;;
980 --config-cache | -C)
981 cache_file=config.cache ;;
983 -datadir | --datadir | --datadi | --datad)
984 ac_prev=datadir ;;
985 -datadir=* | --datadir=* | --datadi=* | --datad=*)
986 datadir=$ac_optarg ;;
988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989 | --dataroo | --dataro | --datar)
990 ac_prev=datarootdir ;;
991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993 datarootdir=$ac_optarg ;;
995 -disable-* | --disable-*)
996 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
999 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1000 { (exit 1); exit 1; }; }
1001 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1002 eval enable_$ac_feature=no ;;
1004 -docdir | --docdir | --docdi | --doc | --do)
1005 ac_prev=docdir ;;
1006 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007 docdir=$ac_optarg ;;
1009 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010 ac_prev=dvidir ;;
1011 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012 dvidir=$ac_optarg ;;
1014 -enable-* | --enable-*)
1015 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019 { (exit 1); exit 1; }; }
1020 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021 eval enable_$ac_feature=\$ac_optarg ;;
1023 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025 | --exec | --exe | --ex)
1026 ac_prev=exec_prefix ;;
1027 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029 | --exec=* | --exe=* | --ex=*)
1030 exec_prefix=$ac_optarg ;;
1032 -gas | --gas | --ga | --g)
1033 # Obsolete; use --with-gas.
1034 with_gas=yes ;;
1036 -help | --help | --hel | --he | -h)
1037 ac_init_help=long ;;
1038 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039 ac_init_help=recursive ;;
1040 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041 ac_init_help=short ;;
1043 -host | --host | --hos | --ho)
1044 ac_prev=host_alias ;;
1045 -host=* | --host=* | --hos=* | --ho=*)
1046 host_alias=$ac_optarg ;;
1048 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049 ac_prev=htmldir ;;
1050 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051 | --ht=*)
1052 htmldir=$ac_optarg ;;
1054 -includedir | --includedir | --includedi | --included | --include \
1055 | --includ | --inclu | --incl | --inc)
1056 ac_prev=includedir ;;
1057 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058 | --includ=* | --inclu=* | --incl=* | --inc=*)
1059 includedir=$ac_optarg ;;
1061 -infodir | --infodir | --infodi | --infod | --info | --inf)
1062 ac_prev=infodir ;;
1063 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064 infodir=$ac_optarg ;;
1066 -libdir | --libdir | --libdi | --libd)
1067 ac_prev=libdir ;;
1068 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069 libdir=$ac_optarg ;;
1071 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072 | --libexe | --libex | --libe)
1073 ac_prev=libexecdir ;;
1074 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075 | --libexe=* | --libex=* | --libe=*)
1076 libexecdir=$ac_optarg ;;
1078 -localedir | --localedir | --localedi | --localed | --locale)
1079 ac_prev=localedir ;;
1080 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081 localedir=$ac_optarg ;;
1083 -localstatedir | --localstatedir | --localstatedi | --localstated \
1084 | --localstate | --localstat | --localsta | --localst | --locals)
1085 ac_prev=localstatedir ;;
1086 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088 localstatedir=$ac_optarg ;;
1090 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091 ac_prev=mandir ;;
1092 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093 mandir=$ac_optarg ;;
1095 -nfp | --nfp | --nf)
1096 # Obsolete; use --without-fp.
1097 with_fp=no ;;
1099 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100 | --no-cr | --no-c | -n)
1101 no_create=yes ;;
1103 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105 no_recursion=yes ;;
1107 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109 | --oldin | --oldi | --old | --ol | --o)
1110 ac_prev=oldincludedir ;;
1111 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114 oldincludedir=$ac_optarg ;;
1116 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117 ac_prev=prefix ;;
1118 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119 prefix=$ac_optarg ;;
1121 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122 | --program-pre | --program-pr | --program-p)
1123 ac_prev=program_prefix ;;
1124 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126 program_prefix=$ac_optarg ;;
1128 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129 | --program-suf | --program-su | --program-s)
1130 ac_prev=program_suffix ;;
1131 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133 program_suffix=$ac_optarg ;;
1135 -program-transform-name | --program-transform-name \
1136 | --program-transform-nam | --program-transform-na \
1137 | --program-transform-n | --program-transform- \
1138 | --program-transform | --program-transfor \
1139 | --program-transfo | --program-transf \
1140 | --program-trans | --program-tran \
1141 | --progr-tra | --program-tr | --program-t)
1142 ac_prev=program_transform_name ;;
1143 -program-transform-name=* | --program-transform-name=* \
1144 | --program-transform-nam=* | --program-transform-na=* \
1145 | --program-transform-n=* | --program-transform-=* \
1146 | --program-transform=* | --program-transfor=* \
1147 | --program-transfo=* | --program-transf=* \
1148 | --program-trans=* | --program-tran=* \
1149 | --progr-tra=* | --program-tr=* | --program-t=*)
1150 program_transform_name=$ac_optarg ;;
1152 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153 ac_prev=pdfdir ;;
1154 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155 pdfdir=$ac_optarg ;;
1157 -psdir | --psdir | --psdi | --psd | --ps)
1158 ac_prev=psdir ;;
1159 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160 psdir=$ac_optarg ;;
1162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163 | -silent | --silent | --silen | --sile | --sil)
1164 silent=yes ;;
1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167 ac_prev=sbindir ;;
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169 | --sbi=* | --sb=*)
1170 sbindir=$ac_optarg ;;
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1175 | --sha | --sh)
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180 | --sha=* | --sh=*)
1181 sharedstatedir=$ac_optarg ;;
1183 -site | --site | --sit)
1184 ac_prev=site ;;
1185 -site=* | --site=* | --sit=*)
1186 site=$ac_optarg ;;
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189 ac_prev=srcdir ;;
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191 srcdir=$ac_optarg ;;
1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198 sysconfdir=$ac_optarg ;;
1200 -target | --target | --targe | --targ | --tar | --ta | --t)
1201 ac_prev=target_alias ;;
1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203 target_alias=$ac_optarg ;;
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 verbose=yes ;;
1208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
1211 -with-* | --with-*)
1212 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 { echo "$as_me: error: invalid package name: $ac_package" >&2
1216 { (exit 1); exit 1; }; }
1217 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1218 eval with_$ac_package=\$ac_optarg ;;
1220 -without-* | --without-*)
1221 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 { echo "$as_me: error: invalid package name: $ac_package" >&2
1225 { (exit 1); exit 1; }; }
1226 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227 eval with_$ac_package=no ;;
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1247 -*) { echo "$as_me: error: unrecognized option: $ac_option
1248 Try \`$0 --help' for more information." >&2
1249 { (exit 1); exit 1; }; }
1252 *=*)
1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1256 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1257 { (exit 1); exit 1; }; }
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1262 # FIXME: should be removed in autoconf 3.0.
1263 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269 esac
1270 done
1272 if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 { echo "$as_me: error: missing argument to $ac_option" >&2
1275 { (exit 1); exit 1; }; }
1278 # Be sure to have absolute directory names.
1279 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280 datadir sysconfdir sharedstatedir localstatedir includedir \
1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282 libdir localedir mandir
1284 eval ac_val=\$$ac_var
1285 case $ac_val in
1286 [\\/$]* | ?:[\\/]* ) continue;;
1287 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 esac
1289 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1290 { (exit 1); exit 1; }; }
1291 done
1293 # There might be people who depend on the old broken behavior: `$host'
1294 # used to hold the argument of --host etc.
1295 # FIXME: To remove some day.
1296 build=$build_alias
1297 host=$host_alias
1298 target=$target_alias
1300 # FIXME: To remove some day.
1301 if test "x$host_alias" != x; then
1302 if test "x$build_alias" = x; then
1303 cross_compiling=maybe
1304 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1305 If a cross compiler is detected then cross compile mode will be used." >&2
1306 elif test "x$build_alias" != "x$host_alias"; then
1307 cross_compiling=yes
1311 ac_tool_prefix=
1312 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314 test "$silent" = yes && exec 6>/dev/null
1317 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di=`ls -di .` &&
1319 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320 { echo "$as_me: error: Working directory cannot be determined" >&2
1321 { (exit 1); exit 1; }; }
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323 { echo "$as_me: error: pwd does not report name of working directory" >&2
1324 { (exit 1); exit 1; }; }
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329 ac_srcdir_defaulted=yes
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir=`$as_dirname -- "$0" ||
1332 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$0" : 'X\(//\)[^/]' \| \
1334 X"$0" : 'X\(//\)$' \| \
1335 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1336 echo X"$0" |
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 s//\1/
1341 /^X\(\/\/\)[^/].*/{
1342 s//\1/
1345 /^X\(\/\/\)$/{
1346 s//\1/
1349 /^X\(\/\).*/{
1350 s//\1/
1353 s/.*/./; q'`
1354 srcdir=$ac_confdir
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 srcdir=..
1358 else
1359 ac_srcdir_defaulted=no
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1364 { (exit 1); exit 1; }; }
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 ac_abs_confdir=`(
1368 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1369 { (exit 1); exit 1; }; }
1370 pwd)`
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 srcdir=.
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1378 case $srcdir in
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 esac
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1389 # Report the --help message.
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395 \`configure' configures libusb-compat 0.1.3 to adapt to many kinds of systems.
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1402 Defaults for the options are specified in brackets.
1404 Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 [PREFIX]
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1426 For better control, use the options below.
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/libusb-compat]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1448 _ACEOF
1450 cat <<\_ACEOF
1452 Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457 System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 _ACEOF
1463 if test -n "$ac_init_help"; then
1464 case $ac_init_help in
1465 short | recursive ) echo "Configuration of libusb-compat 0.1.3:";;
1466 esac
1467 cat <<\_ACEOF
1469 Optional Features:
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --disable-dependency-tracking speeds up one-time build
1473 --enable-dependency-tracking do not reject slow dependency extractors
1474 --enable-shared[=PKGS] build shared libraries [default=yes]
1475 --enable-static[=PKGS] build static libraries [default=yes]
1476 --enable-fast-install[=PKGS]
1477 optimize for fast installation [default=yes]
1478 --disable-libtool-lock avoid locking (might break parallel builds)
1479 --disable-log disable all logging
1480 --enable-debug-log enable debug logging (default n)
1481 --enable-examples-build build example applications (default n)
1483 Optional Packages:
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-pic try to use only PIC/non-PIC objects [default=use
1487 both]
1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1490 Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 LIBS libraries to pass to the linker, e.g. -l<library>
1496 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
1498 CPP C preprocessor
1499 PKG_CONFIG path to pkg-config utility
1500 LIBUSB_1_0_CFLAGS
1501 C compiler flags for LIBUSB_1_0, overriding pkg-config
1502 LIBUSB_1_0_LIBS
1503 linker flags for LIBUSB_1_0, overriding pkg-config
1505 Use these variables to override the choices made by `configure' or to help
1506 it to find libraries and programs with nonstandard names/locations.
1508 _ACEOF
1509 ac_status=$?
1512 if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515 test -d "$ac_dir" || continue
1516 ac_builddir=.
1518 case "$ac_dir" in
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1522 # A ".." for each directory in $ac_dir_suffix.
1523 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 esac ;;
1528 esac
1529 ac_abs_top_builddir=$ac_pwd
1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531 # for backward compatibility:
1532 ac_top_builddir=$ac_top_build_prefix
1534 case $srcdir in
1535 .) # We are building in place.
1536 ac_srcdir=.
1537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
1540 ac_srcdir=$srcdir$ac_dir_suffix;
1541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1543 *) # Relative name.
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 esac
1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure" --help=recursive
1558 else
1559 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 fi || ac_status=$?
1561 cd "$ac_pwd" || { ac_status=$?; break; }
1562 done
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1567 cat <<\_ACEOF
1568 libusb-compat configure 0.1.3
1569 generated by GNU Autoconf 2.61
1571 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1572 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1575 _ACEOF
1576 exit
1578 cat >config.log <<_ACEOF
1579 This file contains any messages produced by compilers while
1580 running configure, to aid debugging if configure makes a mistake.
1582 It was created by libusb-compat $as_me 0.1.3, which was
1583 generated by GNU Autoconf 2.61. Invocation command line was
1585 $ $0 $@
1587 _ACEOF
1588 exec 5>>config.log
1590 cat <<_ASUNAME
1591 ## --------- ##
1592 ## Platform. ##
1593 ## --------- ##
1595 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1596 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1597 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1598 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1599 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1601 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1602 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1604 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1605 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1606 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1607 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1608 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1609 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1610 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1612 _ASUNAME
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1617 IFS=$as_save_IFS
1618 test -z "$as_dir" && as_dir=.
1619 echo "PATH: $as_dir"
1620 done
1621 IFS=$as_save_IFS
1623 } >&5
1625 cat >&5 <<_ACEOF
1628 ## ----------- ##
1629 ## Core tests. ##
1630 ## ----------- ##
1632 _ACEOF
1635 # Keep a trace of the command line.
1636 # Strip out --no-create and --no-recursion so they do not pile up.
1637 # Strip out --silent because we don't want to record it for future runs.
1638 # Also quote any args containing shell meta-characters.
1639 # Make two passes to allow for proper duplicate-argument suppression.
1640 ac_configure_args=
1641 ac_configure_args0=
1642 ac_configure_args1=
1643 ac_must_keep_next=false
1644 for ac_pass in 1 2
1646 for ac_arg
1648 case $ac_arg in
1649 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1651 | -silent | --silent | --silen | --sile | --sil)
1652 continue ;;
1653 *\'*)
1654 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1655 esac
1656 case $ac_pass in
1657 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1659 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1660 if test $ac_must_keep_next = true; then
1661 ac_must_keep_next=false # Got value, back to normal.
1662 else
1663 case $ac_arg in
1664 *=* | --config-cache | -C | -disable-* | --disable-* \
1665 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1666 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1667 | -with-* | --with-* | -without-* | --without-* | --x)
1668 case "$ac_configure_args0 " in
1669 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670 esac
1672 -* ) ac_must_keep_next=true ;;
1673 esac
1675 ac_configure_args="$ac_configure_args '$ac_arg'"
1677 esac
1678 done
1679 done
1680 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1681 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1683 # When interrupted or exit'd, cleanup temporary files, and complete
1684 # config.log. We remove comments because anyway the quotes in there
1685 # would cause problems or look ugly.
1686 # WARNING: Use '\'' to represent an apostrophe within the trap.
1687 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1688 trap 'exit_status=$?
1689 # Save into config.log some information that might help in debugging.
1691 echo
1693 cat <<\_ASBOX
1694 ## ---------------- ##
1695 ## Cache variables. ##
1696 ## ---------------- ##
1697 _ASBOX
1698 echo
1699 # The following way of writing the cache mishandles newlines in values,
1701 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1702 eval ac_val=\$$ac_var
1703 case $ac_val in #(
1704 *${as_nl}*)
1705 case $ac_var in #(
1706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1707 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1708 esac
1709 case $ac_var in #(
1710 _ | IFS | as_nl) ;; #(
1711 *) $as_unset $ac_var ;;
1712 esac ;;
1713 esac
1714 done
1715 (set) 2>&1 |
1716 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1717 *${as_nl}ac_space=\ *)
1718 sed -n \
1719 "s/'\''/'\''\\\\'\'''\''/g;
1720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721 ;; #(
1723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1725 esac |
1726 sort
1728 echo
1730 cat <<\_ASBOX
1731 ## ----------------- ##
1732 ## Output variables. ##
1733 ## ----------------- ##
1734 _ASBOX
1735 echo
1736 for ac_var in $ac_subst_vars
1738 eval ac_val=\$$ac_var
1739 case $ac_val in
1740 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1741 esac
1742 echo "$ac_var='\''$ac_val'\''"
1743 done | sort
1744 echo
1746 if test -n "$ac_subst_files"; then
1747 cat <<\_ASBOX
1748 ## ------------------- ##
1749 ## File substitutions. ##
1750 ## ------------------- ##
1751 _ASBOX
1752 echo
1753 for ac_var in $ac_subst_files
1755 eval ac_val=\$$ac_var
1756 case $ac_val in
1757 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1758 esac
1759 echo "$ac_var='\''$ac_val'\''"
1760 done | sort
1761 echo
1764 if test -s confdefs.h; then
1765 cat <<\_ASBOX
1766 ## ----------- ##
1767 ## confdefs.h. ##
1768 ## ----------- ##
1769 _ASBOX
1770 echo
1771 cat confdefs.h
1772 echo
1774 test "$ac_signal" != 0 &&
1775 echo "$as_me: caught signal $ac_signal"
1776 echo "$as_me: exit $exit_status"
1777 } >&5
1778 rm -f core *.core core.conftest.* &&
1779 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1780 exit $exit_status
1782 for ac_signal in 1 2 13 15; do
1783 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1784 done
1785 ac_signal=0
1787 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1788 rm -f -r conftest* confdefs.h
1790 # Predefined preprocessor variables.
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_NAME "$PACKAGE_NAME"
1794 _ACEOF
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1799 _ACEOF
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1804 _ACEOF
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_STRING "$PACKAGE_STRING"
1809 _ACEOF
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1814 _ACEOF
1817 # Let the site file select an alternate cache file if it wants to.
1818 # Prefer explicitly selected file to automatically selected ones.
1819 if test -n "$CONFIG_SITE"; then
1820 set x "$CONFIG_SITE"
1821 elif test "x$prefix" != xNONE; then
1822 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1823 else
1824 set x "$ac_default_prefix/share/config.site" \
1825 "$ac_default_prefix/etc/config.site"
1827 shift
1828 for ac_site_file
1830 if test -r "$ac_site_file"; then
1831 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1832 echo "$as_me: loading site script $ac_site_file" >&6;}
1833 sed 's/^/| /' "$ac_site_file" >&5
1834 . "$ac_site_file"
1836 done
1838 if test -r "$cache_file"; then
1839 # Some versions of bash will fail to source /dev/null (special
1840 # files actually), so we avoid doing that.
1841 if test -f "$cache_file"; then
1842 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1843 echo "$as_me: loading cache $cache_file" >&6;}
1844 case $cache_file in
1845 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1846 *) . "./$cache_file";;
1847 esac
1849 else
1850 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1851 echo "$as_me: creating cache $cache_file" >&6;}
1852 >$cache_file
1855 # Check that the precious variables saved in the cache have kept the same
1856 # value.
1857 ac_cache_corrupted=false
1858 for ac_var in $ac_precious_vars; do
1859 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1860 eval ac_new_set=\$ac_env_${ac_var}_set
1861 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1862 eval ac_new_val=\$ac_env_${ac_var}_value
1863 case $ac_old_set,$ac_new_set in
1864 set,)
1865 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1867 ac_cache_corrupted=: ;;
1868 ,set)
1869 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1870 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1871 ac_cache_corrupted=: ;;
1872 ,);;
1874 if test "x$ac_old_val" != "x$ac_new_val"; then
1875 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1876 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1877 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1878 echo "$as_me: former value: $ac_old_val" >&2;}
1879 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1880 echo "$as_me: current value: $ac_new_val" >&2;}
1881 ac_cache_corrupted=:
1882 fi;;
1883 esac
1884 # Pass precious variables to config.status.
1885 if test "$ac_new_set" = set; then
1886 case $ac_new_val in
1887 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1888 *) ac_arg=$ac_var=$ac_new_val ;;
1889 esac
1890 case " $ac_configure_args " in
1891 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1892 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1893 esac
1895 done
1896 if $ac_cache_corrupted; then
1897 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1898 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1899 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1900 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1901 { (exit 1); exit 1; }; }
1928 ac_ext=c
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935 am__api_version='1.10'
1937 ac_aux_dir=
1938 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1939 if test -f "$ac_dir/install-sh"; then
1940 ac_aux_dir=$ac_dir
1941 ac_install_sh="$ac_aux_dir/install-sh -c"
1942 break
1943 elif test -f "$ac_dir/install.sh"; then
1944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/install.sh -c"
1946 break
1947 elif test -f "$ac_dir/shtool"; then
1948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/shtool install -c"
1950 break
1952 done
1953 if test -z "$ac_aux_dir"; then
1954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1955 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1956 { (exit 1); exit 1; }; }
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1965 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1968 # Find a good install program. We prefer a C program (faster),
1969 # so one script is as good as another. But avoid the broken or
1970 # incompatible versions:
1971 # SysV /etc/install, /usr/sbin/install
1972 # SunOS /usr/etc/install
1973 # IRIX /sbin/install
1974 # AIX /bin/install
1975 # AmigaOS /C/install, which installs bootblocks on floppy discs
1976 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1977 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1978 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1979 # OS/2's system install, which has a completely different semantic
1980 # ./install, which can be erroneously created by make from ./install.sh.
1981 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1982 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1983 if test -z "$INSTALL"; then
1984 if test "${ac_cv_path_install+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 # Account for people who put trailing slashes in PATH elements.
1993 case $as_dir/ in
1994 ./ | .// | /cC/* | \
1995 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1996 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1997 /usr/ucb/* ) ;;
1999 # OSF1 and SCO ODT 3.0 have their own names for install.
2000 # Don't use installbsd from OSF since it installs stuff as root
2001 # by default.
2002 for ac_prog in ginstall scoinst install; do
2003 for ac_exec_ext in '' $ac_executable_extensions; do
2004 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2005 if test $ac_prog = install &&
2006 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2007 # AIX install. It has an incompatible calling convention.
2009 elif test $ac_prog = install &&
2010 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2011 # program-specific install script used by HP pwplus--don't use.
2013 else
2014 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2015 break 3
2018 done
2019 done
2021 esac
2022 done
2023 IFS=$as_save_IFS
2027 if test "${ac_cv_path_install+set}" = set; then
2028 INSTALL=$ac_cv_path_install
2029 else
2030 # As a last resort, use the slow shell script. Don't cache a
2031 # value for INSTALL within a source directory, because that will
2032 # break other packages using the cache if that directory is
2033 # removed, or if the value is a relative name.
2034 INSTALL=$ac_install_sh
2037 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2038 echo "${ECHO_T}$INSTALL" >&6; }
2040 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2041 # It thinks the first close brace ends the variable substitution.
2042 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2044 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2046 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2048 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2049 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2050 # Just in case
2051 sleep 1
2052 echo timestamp > conftest.file
2053 # Do `set' in a subshell so we don't clobber the current shell's
2054 # arguments. Must try -L first in case configure is actually a
2055 # symlink; some systems play weird games with the mod time of symlinks
2056 # (eg FreeBSD returns the mod time of the symlink's containing
2057 # directory).
2058 if (
2059 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2060 if test "$*" = "X"; then
2061 # -L didn't work.
2062 set X `ls -t $srcdir/configure conftest.file`
2064 rm -f conftest.file
2065 if test "$*" != "X $srcdir/configure conftest.file" \
2066 && test "$*" != "X conftest.file $srcdir/configure"; then
2068 # If neither matched, then we have a broken ls. This can happen
2069 # if, for instance, CONFIG_SHELL is bash and it inherits a
2070 # broken ls alias from the environment. This has actually
2071 # happened. Such a system could not be considered "sane".
2072 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2073 alias in your environment" >&5
2074 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2075 alias in your environment" >&2;}
2076 { (exit 1); exit 1; }; }
2079 test "$2" = conftest.file
2081 then
2082 # Ok.
2084 else
2085 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2086 Check your system clock" >&5
2087 echo "$as_me: error: newly created file is older than distributed files!
2088 Check your system clock" >&2;}
2089 { (exit 1); exit 1; }; }
2091 { echo "$as_me:$LINENO: result: yes" >&5
2092 echo "${ECHO_T}yes" >&6; }
2093 test "$program_prefix" != NONE &&
2094 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2095 # Use a double $ so make ignores it.
2096 test "$program_suffix" != NONE &&
2097 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2098 # Double any \ or $. echo might interpret backslashes.
2099 # By default was `s,x,x', remove it if useless.
2100 cat <<\_ACEOF >conftest.sed
2101 s/[\\$]/&&/g;s/;s,x,x,$//
2102 _ACEOF
2103 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2104 rm -f conftest.sed
2106 # expand $ac_aux_dir to an absolute path
2107 am_aux_dir=`cd $ac_aux_dir && pwd`
2109 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2110 # Use eval to expand $SHELL
2111 if eval "$MISSING --run true"; then
2112 am_missing_run="$MISSING --run "
2113 else
2114 am_missing_run=
2115 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2116 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2119 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2120 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2121 if test -z "$MKDIR_P"; then
2122 if test "${ac_cv_path_mkdir+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2128 IFS=$as_save_IFS
2129 test -z "$as_dir" && as_dir=.
2130 for ac_prog in mkdir gmkdir; do
2131 for ac_exec_ext in '' $ac_executable_extensions; do
2132 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2133 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2134 'mkdir (GNU coreutils) '* | \
2135 'mkdir (coreutils) '* | \
2136 'mkdir (fileutils) '4.1*)
2137 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2138 break 3;;
2139 esac
2140 done
2141 done
2142 done
2143 IFS=$as_save_IFS
2147 if test "${ac_cv_path_mkdir+set}" = set; then
2148 MKDIR_P="$ac_cv_path_mkdir -p"
2149 else
2150 # As a last resort, use the slow shell script. Don't cache a
2151 # value for MKDIR_P within a source directory, because that will
2152 # break other packages using the cache if that directory is
2153 # removed, or if the value is a relative name.
2154 test -d ./--version && rmdir ./--version
2155 MKDIR_P="$ac_install_sh -d"
2158 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2159 echo "${ECHO_T}$MKDIR_P" >&6; }
2161 mkdir_p="$MKDIR_P"
2162 case $mkdir_p in
2163 [\\/$]* | ?:[\\/]*) ;;
2164 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2165 esac
2167 for ac_prog in gawk mawk nawk awk
2169 # Extract the first word of "$ac_prog", so it can be a program name with args.
2170 set dummy $ac_prog; ac_word=$2
2171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2173 if test "${ac_cv_prog_AWK+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176 if test -n "$AWK"; then
2177 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2178 else
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 for as_dir in $PATH
2182 IFS=$as_save_IFS
2183 test -z "$as_dir" && as_dir=.
2184 for ac_exec_ext in '' $ac_executable_extensions; do
2185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2186 ac_cv_prog_AWK="$ac_prog"
2187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188 break 2
2190 done
2191 done
2192 IFS=$as_save_IFS
2196 AWK=$ac_cv_prog_AWK
2197 if test -n "$AWK"; then
2198 { echo "$as_me:$LINENO: result: $AWK" >&5
2199 echo "${ECHO_T}$AWK" >&6; }
2200 else
2201 { echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6; }
2206 test -n "$AWK" && break
2207 done
2209 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2210 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2211 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2212 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215 cat >conftest.make <<\_ACEOF
2216 SHELL = /bin/sh
2217 all:
2218 @echo '@@@%%%=$(MAKE)=@@@%%%'
2219 _ACEOF
2220 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2221 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2222 *@@@%%%=?*=@@@%%%*)
2223 eval ac_cv_prog_make_${ac_make}_set=yes;;
2225 eval ac_cv_prog_make_${ac_make}_set=no;;
2226 esac
2227 rm -f conftest.make
2229 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2230 { echo "$as_me:$LINENO: result: yes" >&5
2231 echo "${ECHO_T}yes" >&6; }
2232 SET_MAKE=
2233 else
2234 { echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6; }
2236 SET_MAKE="MAKE=${MAKE-make}"
2239 rm -rf .tst 2>/dev/null
2240 mkdir .tst 2>/dev/null
2241 if test -d .tst; then
2242 am__leading_dot=.
2243 else
2244 am__leading_dot=_
2246 rmdir .tst 2>/dev/null
2248 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2249 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2250 # is not polluted with repeated "-I."
2251 am__isrc=' -I$(srcdir)'
2252 # test to see if srcdir already configured
2253 if test -f $srcdir/config.status; then
2254 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2255 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2256 { (exit 1); exit 1; }; }
2260 # test whether we have cygpath
2261 if test -z "$CYGPATH_W"; then
2262 if (cygpath --version) >/dev/null 2>/dev/null; then
2263 CYGPATH_W='cygpath -w'
2264 else
2265 CYGPATH_W=echo
2270 # Define the identity of the package.
2271 PACKAGE='libusb-compat'
2272 VERSION='0.1.3'
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE "$PACKAGE"
2277 _ACEOF
2280 cat >>confdefs.h <<_ACEOF
2281 #define VERSION "$VERSION"
2282 _ACEOF
2284 # Some tools Automake needs.
2286 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2289 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2292 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2295 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2298 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2300 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2302 # Installed binaries are usually stripped using `strip' when the user
2303 # run `make install-strip'. However `strip' might not be the right
2304 # tool to use in cross-compilation environments, therefore Automake
2305 # will honor the `STRIP' environment variable to overrule this program.
2306 if test "$cross_compiling" != no; then
2307 if test -n "$ac_tool_prefix"; then
2308 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2309 set dummy ${ac_tool_prefix}strip; ac_word=$2
2310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2312 if test "${ac_cv_prog_STRIP+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 else
2315 if test -n "$STRIP"; then
2316 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2317 else
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 for as_dir in $PATH
2321 IFS=$as_save_IFS
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2325 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327 break 2
2329 done
2330 done
2331 IFS=$as_save_IFS
2335 STRIP=$ac_cv_prog_STRIP
2336 if test -n "$STRIP"; then
2337 { echo "$as_me:$LINENO: result: $STRIP" >&5
2338 echo "${ECHO_T}$STRIP" >&6; }
2339 else
2340 { echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6; }
2346 if test -z "$ac_cv_prog_STRIP"; then
2347 ac_ct_STRIP=$STRIP
2348 # Extract the first word of "strip", so it can be a program name with args.
2349 set dummy strip; ac_word=$2
2350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2352 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355 if test -n "$ac_ct_STRIP"; then
2356 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365 ac_cv_prog_ac_ct_STRIP="strip"
2366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 break 2
2369 done
2370 done
2371 IFS=$as_save_IFS
2375 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2376 if test -n "$ac_ct_STRIP"; then
2377 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2378 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2379 else
2380 { echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6; }
2384 if test "x$ac_ct_STRIP" = x; then
2385 STRIP=":"
2386 else
2387 case $cross_compiling:$ac_tool_warned in
2388 yes:)
2389 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2390 whose name does not start with the host triplet. If you think this
2391 configuration is useful to you, please write to autoconf@gnu.org." >&5
2392 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2393 whose name does not start with the host triplet. If you think this
2394 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2395 ac_tool_warned=yes ;;
2396 esac
2397 STRIP=$ac_ct_STRIP
2399 else
2400 STRIP="$ac_cv_prog_STRIP"
2404 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2406 # We need awk for the "check" target. The system "awk" is bad on
2407 # some platforms.
2408 # Always define AMTAR for backward compatibility.
2410 AMTAR=${AMTAR-"${am_missing_run}tar"}
2412 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2419 ac_config_headers="$ac_config_headers config.h"
2424 ac_ext=c
2425 ac_cpp='$CPP $CPPFLAGS'
2426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2431 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2443 IFS=$as_save_IFS
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2447 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 break 2
2451 done
2452 done
2453 IFS=$as_save_IFS
2457 CC=$ac_cv_prog_CC
2458 if test -n "$CC"; then
2459 { echo "$as_me:$LINENO: result: $CC" >&5
2460 echo "${ECHO_T}$CC" >&6; }
2461 else
2462 { echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6; }
2468 if test -z "$ac_cv_prog_CC"; then
2469 ac_ct_CC=$CC
2470 # Extract the first word of "gcc", so it can be a program name with args.
2471 set dummy gcc; ac_word=$2
2472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477 if test -n "$ac_ct_CC"; then
2478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2487 ac_cv_prog_ac_ct_CC="gcc"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 break 2
2491 done
2492 done
2493 IFS=$as_save_IFS
2497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2498 if test -n "$ac_ct_CC"; then
2499 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2500 echo "${ECHO_T}$ac_ct_CC" >&6; }
2501 else
2502 { echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6; }
2506 if test "x$ac_ct_CC" = x; then
2507 CC=""
2508 else
2509 case $cross_compiling:$ac_tool_warned in
2510 yes:)
2511 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2512 whose name does not start with the host triplet. If you think this
2513 configuration is useful to you, please write to autoconf@gnu.org." >&5
2514 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2515 whose name does not start with the host triplet. If you think this
2516 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2517 ac_tool_warned=yes ;;
2518 esac
2519 CC=$ac_ct_CC
2521 else
2522 CC="$ac_cv_prog_CC"
2525 if test -z "$CC"; then
2526 if test -n "$ac_tool_prefix"; then
2527 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2528 set dummy ${ac_tool_prefix}cc; ac_word=$2
2529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2531 if test "${ac_cv_prog_CC+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534 if test -n "$CC"; then
2535 ac_cv_prog_CC="$CC" # Let the user override the test.
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544 ac_cv_prog_CC="${ac_tool_prefix}cc"
2545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 break 2
2548 done
2549 done
2550 IFS=$as_save_IFS
2554 CC=$ac_cv_prog_CC
2555 if test -n "$CC"; then
2556 { echo "$as_me:$LINENO: result: $CC" >&5
2557 echo "${ECHO_T}$CC" >&6; }
2558 else
2559 { echo "$as_me:$LINENO: result: no" >&5
2560 echo "${ECHO_T}no" >&6; }
2566 if test -z "$CC"; then
2567 # Extract the first word of "cc", so it can be a program name with args.
2568 set dummy cc; ac_word=$2
2569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2571 if test "${ac_cv_prog_CC+set}" = set; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2573 else
2574 if test -n "$CC"; then
2575 ac_cv_prog_CC="$CC" # Let the user override the test.
2576 else
2577 ac_prog_rejected=no
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2586 ac_prog_rejected=yes
2587 continue
2589 ac_cv_prog_CC="cc"
2590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2593 done
2594 done
2595 IFS=$as_save_IFS
2597 if test $ac_prog_rejected = yes; then
2598 # We found a bogon in the path, so make sure we never use it.
2599 set dummy $ac_cv_prog_CC
2600 shift
2601 if test $# != 0; then
2602 # We chose a different compiler from the bogus one.
2603 # However, it has the same basename, so the bogon will be chosen
2604 # first if we set CC to just the basename; use the full file name.
2605 shift
2606 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2611 CC=$ac_cv_prog_CC
2612 if test -n "$CC"; then
2613 { echo "$as_me:$LINENO: result: $CC" >&5
2614 echo "${ECHO_T}$CC" >&6; }
2615 else
2616 { echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6; }
2622 if test -z "$CC"; then
2623 if test -n "$ac_tool_prefix"; then
2624 for ac_prog in cl.exe
2626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_CC+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633 if test -n "$CC"; then
2634 ac_cv_prog_CC="$CC" # Let the user override the test.
2635 else
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 break 2
2647 done
2648 done
2649 IFS=$as_save_IFS
2653 CC=$ac_cv_prog_CC
2654 if test -n "$CC"; then
2655 { echo "$as_me:$LINENO: result: $CC" >&5
2656 echo "${ECHO_T}$CC" >&6; }
2657 else
2658 { echo "$as_me:$LINENO: result: no" >&5
2659 echo "${ECHO_T}no" >&6; }
2663 test -n "$CC" && break
2664 done
2666 if test -z "$CC"; then
2667 ac_ct_CC=$CC
2668 for ac_prog in cl.exe
2670 # Extract the first word of "$ac_prog", so it can be a program name with args.
2671 set dummy $ac_prog; ac_word=$2
2672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2674 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677 if test -n "$ac_ct_CC"; then
2678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 ac_cv_prog_ac_ct_CC="$ac_prog"
2688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2691 done
2692 done
2693 IFS=$as_save_IFS
2697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2698 if test -n "$ac_ct_CC"; then
2699 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2700 echo "${ECHO_T}$ac_ct_CC" >&6; }
2701 else
2702 { echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6; }
2707 test -n "$ac_ct_CC" && break
2708 done
2710 if test "x$ac_ct_CC" = x; then
2711 CC=""
2712 else
2713 case $cross_compiling:$ac_tool_warned in
2714 yes:)
2715 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2716 whose name does not start with the host triplet. If you think this
2717 configuration is useful to you, please write to autoconf@gnu.org." >&5
2718 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2719 whose name does not start with the host triplet. If you think this
2720 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2721 ac_tool_warned=yes ;;
2722 esac
2723 CC=$ac_ct_CC
2730 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2731 See \`config.log' for more details." >&5
2732 echo "$as_me: error: no acceptable C compiler found in \$PATH
2733 See \`config.log' for more details." >&2;}
2734 { (exit 1); exit 1; }; }
2736 # Provide some information about the compiler.
2737 echo "$as_me:$LINENO: checking for C compiler version" >&5
2738 ac_compiler=`set X $ac_compile; echo $2`
2739 { (ac_try="$ac_compiler --version >&5"
2740 case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2743 esac
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_compiler --version >&5") 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }
2749 { (ac_try="$ac_compiler -v >&5"
2750 case "(($ac_try" in
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2753 esac
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_compiler -v >&5") 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }
2759 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }
2770 cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h. */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2778 main ()
2782 return 0;
2784 _ACEOF
2785 ac_clean_files_save=$ac_clean_files
2786 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2787 # Try to create an executable without -o first, disregard a.out.
2788 # It will help us diagnose broken compilers, and finding out an intuition
2789 # of exeext.
2790 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2791 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2792 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2794 # List of possible output files, starting from the most likely.
2795 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2796 # only as a last resort. b.out is created by i960 compilers.
2797 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2799 # The IRIX 6 linker writes into existing files which may not be
2800 # executable, retaining their permissions. Remove them first so a
2801 # subsequent execution test works.
2802 ac_rmfiles=
2803 for ac_file in $ac_files
2805 case $ac_file in
2806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2807 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2808 esac
2809 done
2810 rm -f $ac_rmfiles
2812 if { (ac_try="$ac_link_default"
2813 case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2816 esac
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_link_default") 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; then
2822 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2823 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2824 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2825 # so that the user can short-circuit this test for compilers unknown to
2826 # Autoconf.
2827 for ac_file in $ac_files ''
2829 test -f "$ac_file" || continue
2830 case $ac_file in
2831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2833 [ab].out )
2834 # We found the default executable, but exeext='' is most
2835 # certainly right.
2836 break;;
2837 *.* )
2838 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2839 then :; else
2840 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2842 # We set ac_cv_exeext here because the later test for it is not
2843 # safe: cross compilers may not add the suffix if given an `-o'
2844 # argument, so we may need to know it at that point already.
2845 # Even if this section looks crufty: it has the advantage of
2846 # actually working.
2847 break;;
2849 break;;
2850 esac
2851 done
2852 test "$ac_cv_exeext" = no && ac_cv_exeext=
2854 else
2855 ac_file=''
2858 { echo "$as_me:$LINENO: result: $ac_file" >&5
2859 echo "${ECHO_T}$ac_file" >&6; }
2860 if test -z "$ac_file"; then
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2865 See \`config.log' for more details." >&5
2866 echo "$as_me: error: C compiler cannot create executables
2867 See \`config.log' for more details." >&2;}
2868 { (exit 77); exit 77; }; }
2871 ac_exeext=$ac_cv_exeext
2873 # Check that the compiler produces executables we can run. If not, either
2874 # the compiler is broken, or we cross compile.
2875 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2876 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2877 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2878 # If not cross compiling, check that we can run a simple program.
2879 if test "$cross_compiling" != yes; then
2880 if { ac_try='./$ac_file'
2881 { (case "(($ac_try" in
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2884 esac
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886 (eval "$ac_try") 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 cross_compiling=no
2891 else
2892 if test "$cross_compiling" = maybe; then
2893 cross_compiling=yes
2894 else
2895 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2896 If you meant to cross compile, use \`--host'.
2897 See \`config.log' for more details." >&5
2898 echo "$as_me: error: cannot run C compiled programs.
2899 If you meant to cross compile, use \`--host'.
2900 See \`config.log' for more details." >&2;}
2901 { (exit 1); exit 1; }; }
2905 { echo "$as_me:$LINENO: result: yes" >&5
2906 echo "${ECHO_T}yes" >&6; }
2908 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2909 ac_clean_files=$ac_clean_files_save
2910 # Check that the compiler produces executables we can run. If not, either
2911 # the compiler is broken, or we cross compile.
2912 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2913 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2914 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2915 echo "${ECHO_T}$cross_compiling" >&6; }
2917 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2918 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2919 if { (ac_try="$ac_link"
2920 case "(($ac_try" in
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2923 esac
2924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925 (eval "$ac_link") 2>&5
2926 ac_status=$?
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; then
2929 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2930 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2931 # work properly (i.e., refer to `conftest.exe'), while it won't with
2932 # `rm'.
2933 for ac_file in conftest.exe conftest conftest.*; do
2934 test -f "$ac_file" || continue
2935 case $ac_file in
2936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2937 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2938 break;;
2939 * ) break;;
2940 esac
2941 done
2942 else
2943 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2944 See \`config.log' for more details." >&5
2945 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2946 See \`config.log' for more details." >&2;}
2947 { (exit 1); exit 1; }; }
2950 rm -f conftest$ac_cv_exeext
2951 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2952 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2954 rm -f conftest.$ac_ext
2955 EXEEXT=$ac_cv_exeext
2956 ac_exeext=$EXEEXT
2957 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2958 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2959 if test "${ac_cv_objext+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962 cat >conftest.$ac_ext <<_ACEOF
2963 /* confdefs.h. */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2970 main ()
2974 return 0;
2976 _ACEOF
2977 rm -f conftest.o conftest.obj
2978 if { (ac_try="$ac_compile"
2979 case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982 esac
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compile") 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; then
2988 for ac_file in conftest.o conftest.obj conftest.*; do
2989 test -f "$ac_file" || continue;
2990 case $ac_file in
2991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2992 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2993 break;;
2994 esac
2995 done
2996 else
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3001 See \`config.log' for more details." >&5
3002 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3003 See \`config.log' for more details." >&2;}
3004 { (exit 1); exit 1; }; }
3007 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3009 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3010 echo "${ECHO_T}$ac_cv_objext" >&6; }
3011 OBJEXT=$ac_cv_objext
3012 ac_objext=$OBJEXT
3013 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3014 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3015 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018 cat >conftest.$ac_ext <<_ACEOF
3019 /* confdefs.h. */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3026 main ()
3028 #ifndef __GNUC__
3029 choke me
3030 #endif
3033 return 0;
3035 _ACEOF
3036 rm -f conftest.$ac_objext
3037 if { (ac_try="$ac_compile"
3038 case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3041 esac
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_compile") 2>conftest.er1
3044 ac_status=$?
3045 grep -v '^ *+' conftest.er1 >conftest.err
3046 rm -f conftest.er1
3047 cat conftest.err >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } && {
3050 test -z "$ac_c_werror_flag" ||
3051 test ! -s conftest.err
3052 } && test -s conftest.$ac_objext; then
3053 ac_compiler_gnu=yes
3054 else
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3058 ac_compiler_gnu=no
3061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3062 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3065 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3066 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3067 GCC=`test $ac_compiler_gnu = yes && echo yes`
3068 ac_test_CFLAGS=${CFLAGS+set}
3069 ac_save_CFLAGS=$CFLAGS
3070 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3071 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3072 if test "${ac_cv_prog_cc_g+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075 ac_save_c_werror_flag=$ac_c_werror_flag
3076 ac_c_werror_flag=yes
3077 ac_cv_prog_cc_g=no
3078 CFLAGS="-g"
3079 cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h. */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3087 main ()
3091 return 0;
3093 _ACEOF
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3096 case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
3102 ac_status=$?
3103 grep -v '^ *+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } && {
3108 test -z "$ac_c_werror_flag" ||
3109 test ! -s conftest.err
3110 } && test -s conftest.$ac_objext; then
3111 ac_cv_prog_cc_g=yes
3112 else
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3116 CFLAGS=""
3117 cat >conftest.$ac_ext <<_ACEOF
3118 /* confdefs.h. */
3119 _ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3125 main ()
3129 return 0;
3131 _ACEOF
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3140 ac_status=$?
3141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } && {
3146 test -z "$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3148 } && test -s conftest.$ac_objext; then
3150 else
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3154 ac_c_werror_flag=$ac_save_c_werror_flag
3155 CFLAGS="-g"
3156 cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h. */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3164 main ()
3168 return 0;
3170 _ACEOF
3171 rm -f conftest.$ac_objext
3172 if { (ac_try="$ac_compile"
3173 case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_compile") 2>conftest.er1
3179 ac_status=$?
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } && {
3185 test -z "$ac_c_werror_flag" ||
3186 test ! -s conftest.err
3187 } && test -s conftest.$ac_objext; then
3188 ac_cv_prog_cc_g=yes
3189 else
3190 echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 ac_c_werror_flag=$ac_save_c_werror_flag
3205 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3206 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3207 if test "$ac_test_CFLAGS" = set; then
3208 CFLAGS=$ac_save_CFLAGS
3209 elif test $ac_cv_prog_cc_g = yes; then
3210 if test "$GCC" = yes; then
3211 CFLAGS="-g -O2"
3212 else
3213 CFLAGS="-g"
3215 else
3216 if test "$GCC" = yes; then
3217 CFLAGS="-O2"
3218 else
3219 CFLAGS=
3222 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3223 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3224 if test "${ac_cv_prog_cc_c89+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 else
3227 ac_cv_prog_cc_c89=no
3228 ac_save_CC=$CC
3229 cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h. */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3235 #include <stdarg.h>
3236 #include <stdio.h>
3237 #include <sys/types.h>
3238 #include <sys/stat.h>
3239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3240 struct buf { int x; };
3241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3242 static char *e (p, i)
3243 char **p;
3244 int i;
3246 return p[i];
3248 static char *f (char * (*g) (char **, int), char **p, ...)
3250 char *s;
3251 va_list v;
3252 va_start (v,p);
3253 s = g (p, va_arg (v,int));
3254 va_end (v);
3255 return s;
3258 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3259 function prototypes and stuff, but not '\xHH' hex character constants.
3260 These don't provoke an error unfortunately, instead are silently treated
3261 as 'x'. The following induces an error, until -std is added to get
3262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3263 array size at least. It's necessary to write '\x00'==0 to get something
3264 that's true only with -std. */
3265 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3267 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3268 inside strings and character constants. */
3269 #define FOO(x) 'x'
3270 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3272 int test (int i, double x);
3273 struct s1 {int (*f) (int a);};
3274 struct s2 {int (*f) (double a);};
3275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3276 int argc;
3277 char **argv;
3279 main ()
3281 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3283 return 0;
3285 _ACEOF
3286 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3289 CC="$ac_save_CC $ac_arg"
3290 rm -f conftest.$ac_objext
3291 if { (ac_try="$ac_compile"
3292 case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295 esac
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_compile") 2>conftest.er1
3298 ac_status=$?
3299 grep -v '^ *+' conftest.er1 >conftest.err
3300 rm -f conftest.er1
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } && {
3304 test -z "$ac_c_werror_flag" ||
3305 test ! -s conftest.err
3306 } && test -s conftest.$ac_objext; then
3307 ac_cv_prog_cc_c89=$ac_arg
3308 else
3309 echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3315 rm -f core conftest.err conftest.$ac_objext
3316 test "x$ac_cv_prog_cc_c89" != "xno" && break
3317 done
3318 rm -f conftest.$ac_ext
3319 CC=$ac_save_CC
3322 # AC_CACHE_VAL
3323 case "x$ac_cv_prog_cc_c89" in
3325 { echo "$as_me:$LINENO: result: none needed" >&5
3326 echo "${ECHO_T}none needed" >&6; } ;;
3327 xno)
3328 { echo "$as_me:$LINENO: result: unsupported" >&5
3329 echo "${ECHO_T}unsupported" >&6; } ;;
3331 CC="$CC $ac_cv_prog_cc_c89"
3332 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3333 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3334 esac
3337 ac_ext=c
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342 DEPDIR="${am__leading_dot}deps"
3344 ac_config_commands="$ac_config_commands depfiles"
3347 am_make=${MAKE-make}
3348 cat > confinc << 'END'
3349 am__doit:
3350 @echo done
3351 .PHONY: am__doit
3353 # If we don't find an include directive, just comment out the code.
3354 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3355 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3356 am__include="#"
3357 am__quote=
3358 _am_result=none
3359 # First try GNU make style include.
3360 echo "include confinc" > confmf
3361 # We grep out `Entering directory' and `Leaving directory'
3362 # messages which can occur if `w' ends up in MAKEFLAGS.
3363 # In particular we don't look at `^make:' because GNU make might
3364 # be invoked under some other name (usually "gmake"), in which
3365 # case it prints its new name instead of `make'.
3366 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3367 am__include=include
3368 am__quote=
3369 _am_result=GNU
3371 # Now try BSD make style include.
3372 if test "$am__include" = "#"; then
3373 echo '.include "confinc"' > confmf
3374 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3375 am__include=.include
3376 am__quote="\""
3377 _am_result=BSD
3382 { echo "$as_me:$LINENO: result: $_am_result" >&5
3383 echo "${ECHO_T}$_am_result" >&6; }
3384 rm -f confinc confmf
3386 # Check whether --enable-dependency-tracking was given.
3387 if test "${enable_dependency_tracking+set}" = set; then
3388 enableval=$enable_dependency_tracking;
3391 if test "x$enable_dependency_tracking" != xno; then
3392 am_depcomp="$ac_aux_dir/depcomp"
3393 AMDEPBACKSLASH='\'
3395 if test "x$enable_dependency_tracking" != xno; then
3396 AMDEP_TRUE=
3397 AMDEP_FALSE='#'
3398 else
3399 AMDEP_TRUE='#'
3400 AMDEP_FALSE=
3405 depcc="$CC" am_compiler_list=
3407 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3408 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3409 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3413 # We make a subdir and do the tests there. Otherwise we can end up
3414 # making bogus files that we don't know about and never remove. For
3415 # instance it was reported that on HP-UX the gcc test will end up
3416 # making a dummy file named `D' -- because `-MD' means `put the output
3417 # in D'.
3418 mkdir conftest.dir
3419 # Copy depcomp to subdir because otherwise we won't find it if we're
3420 # using a relative directory.
3421 cp "$am_depcomp" conftest.dir
3422 cd conftest.dir
3423 # We will build objects and dependencies in a subdirectory because
3424 # it helps to detect inapplicable dependency modes. For instance
3425 # both Tru64's cc and ICC support -MD to output dependencies as a
3426 # side effect of compilation, but ICC will put the dependencies in
3427 # the current directory while Tru64 will put them in the object
3428 # directory.
3429 mkdir sub
3431 am_cv_CC_dependencies_compiler_type=none
3432 if test "$am_compiler_list" = ""; then
3433 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3435 for depmode in $am_compiler_list; do
3436 # Setup a source with many dependencies, because some compilers
3437 # like to wrap large dependency lists on column 80 (with \), and
3438 # we should not choose a depcomp mode which is confused by this.
3440 # We need to recreate these files for each test, as the compiler may
3441 # overwrite some of them when testing with obscure command lines.
3442 # This happens at least with the AIX C compiler.
3443 : > sub/conftest.c
3444 for i in 1 2 3 4 5 6; do
3445 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3446 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3447 # Solaris 8's {/usr,}/bin/sh.
3448 touch sub/conftst$i.h
3449 done
3450 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3452 case $depmode in
3453 nosideeffect)
3454 # after this tag, mechanisms are not by side-effect, so they'll
3455 # only be used when explicitly requested
3456 if test "x$enable_dependency_tracking" = xyes; then
3457 continue
3458 else
3459 break
3462 none) break ;;
3463 esac
3464 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3465 # mode. It turns out that the SunPro C++ compiler does not properly
3466 # handle `-M -o', and we need to detect this.
3467 if depmode=$depmode \
3468 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3469 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3470 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3471 >/dev/null 2>conftest.err &&
3472 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3473 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3474 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3475 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3476 # icc doesn't choke on unknown options, it will just issue warnings
3477 # or remarks (even with -Werror). So we grep stderr for any message
3478 # that says an option was ignored or not supported.
3479 # When given -MP, icc 7.0 and 7.1 complain thusly:
3480 # icc: Command line warning: ignoring option '-M'; no argument required
3481 # The diagnosis changed in icc 8.0:
3482 # icc: Command line remark: option '-MP' not supported
3483 if (grep 'ignoring option' conftest.err ||
3484 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3485 am_cv_CC_dependencies_compiler_type=$depmode
3486 break
3489 done
3491 cd ..
3492 rm -rf conftest.dir
3493 else
3494 am_cv_CC_dependencies_compiler_type=none
3498 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3499 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3500 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3503 test "x$enable_dependency_tracking" != xno \
3504 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3505 am__fastdepCC_TRUE=
3506 am__fastdepCC_FALSE='#'
3507 else
3508 am__fastdepCC_TRUE='#'
3509 am__fastdepCC_FALSE=
3513 case `pwd` in
3514 *\ * | *\ *)
3515 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3516 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3517 esac
3521 macro_version='2.2.6'
3522 macro_revision='1.3012'
3536 ltmain="$ac_aux_dir/ltmain.sh"
3538 # Make sure we can run config.sub.
3539 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3540 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3541 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3542 { (exit 1); exit 1; }; }
3544 { echo "$as_me:$LINENO: checking build system type" >&5
3545 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3546 if test "${ac_cv_build+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549 ac_build_alias=$build_alias
3550 test "x$ac_build_alias" = x &&
3551 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3552 test "x$ac_build_alias" = x &&
3553 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3554 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3555 { (exit 1); exit 1; }; }
3556 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3557 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3558 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3559 { (exit 1); exit 1; }; }
3562 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3563 echo "${ECHO_T}$ac_cv_build" >&6; }
3564 case $ac_cv_build in
3565 *-*-*) ;;
3566 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3567 echo "$as_me: error: invalid value of canonical build" >&2;}
3568 { (exit 1); exit 1; }; };;
3569 esac
3570 build=$ac_cv_build
3571 ac_save_IFS=$IFS; IFS='-'
3572 set x $ac_cv_build
3573 shift
3574 build_cpu=$1
3575 build_vendor=$2
3576 shift; shift
3577 # Remember, the first character of IFS is used to create $*,
3578 # except with old shells:
3579 build_os=$*
3580 IFS=$ac_save_IFS
3581 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3584 { echo "$as_me:$LINENO: checking host system type" >&5
3585 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3586 if test "${ac_cv_host+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589 if test "x$host_alias" = x; then
3590 ac_cv_host=$ac_cv_build
3591 else
3592 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3593 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3594 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3595 { (exit 1); exit 1; }; }
3599 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3600 echo "${ECHO_T}$ac_cv_host" >&6; }
3601 case $ac_cv_host in
3602 *-*-*) ;;
3603 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3604 echo "$as_me: error: invalid value of canonical host" >&2;}
3605 { (exit 1); exit 1; }; };;
3606 esac
3607 host=$ac_cv_host
3608 ac_save_IFS=$IFS; IFS='-'
3609 set x $ac_cv_host
3610 shift
3611 host_cpu=$1
3612 host_vendor=$2
3613 shift; shift
3614 # Remember, the first character of IFS is used to create $*,
3615 # except with old shells:
3616 host_os=$*
3617 IFS=$ac_save_IFS
3618 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3621 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3622 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3623 if test "${ac_cv_path_SED+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3627 for ac_i in 1 2 3 4 5 6 7; do
3628 ac_script="$ac_script$as_nl$ac_script"
3629 done
3630 echo "$ac_script" | sed 99q >conftest.sed
3631 $as_unset ac_script || ac_script=
3632 # Extract the first word of "sed gsed" to use in msg output
3633 if test -z "$SED"; then
3634 set dummy sed gsed; ac_prog_name=$2
3635 if test "${ac_cv_path_SED+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 else
3638 ac_path_SED_found=false
3639 # Loop through the user's path and test for each of PROGNAME-LIST
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH
3643 IFS=$as_save_IFS
3644 test -z "$as_dir" && as_dir=.
3645 for ac_prog in sed gsed; do
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3648 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3649 # Check for GNU ac_path_SED and select it if it is found.
3650 # Check for GNU $ac_path_SED
3651 case `"$ac_path_SED" --version 2>&1` in
3652 *GNU*)
3653 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3655 ac_count=0
3656 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3657 while :
3659 cat "conftest.in" "conftest.in" >"conftest.tmp"
3660 mv "conftest.tmp" "conftest.in"
3661 cp "conftest.in" "conftest.nl"
3662 echo '' >> "conftest.nl"
3663 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3665 ac_count=`expr $ac_count + 1`
3666 if test $ac_count -gt ${ac_path_SED_max-0}; then
3667 # Best one so far, save it but keep looking for a better one
3668 ac_cv_path_SED="$ac_path_SED"
3669 ac_path_SED_max=$ac_count
3671 # 10*(2^10) chars as input seems more than enough
3672 test $ac_count -gt 10 && break
3673 done
3674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3675 esac
3678 $ac_path_SED_found && break 3
3679 done
3680 done
3682 done
3683 IFS=$as_save_IFS
3688 SED="$ac_cv_path_SED"
3689 if test -z "$SED"; then
3690 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3691 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3692 { (exit 1); exit 1; }; }
3695 else
3696 ac_cv_path_SED=$SED
3700 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3701 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3702 SED="$ac_cv_path_SED"
3703 rm -f conftest.sed
3705 test -z "$SED" && SED=sed
3706 Xsed="$SED -e 1s/^X//"
3718 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3719 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3720 if test "${ac_cv_path_GREP+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 # Extract the first word of "grep ggrep" to use in msg output
3724 if test -z "$GREP"; then
3725 set dummy grep ggrep; ac_prog_name=$2
3726 if test "${ac_cv_path_GREP+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729 ac_path_GREP_found=false
3730 # Loop through the user's path and test for each of PROGNAME-LIST
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_prog in grep ggrep; do
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3739 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3740 # Check for GNU ac_path_GREP and select it if it is found.
3741 # Check for GNU $ac_path_GREP
3742 case `"$ac_path_GREP" --version 2>&1` in
3743 *GNU*)
3744 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3746 ac_count=0
3747 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3748 while :
3750 cat "conftest.in" "conftest.in" >"conftest.tmp"
3751 mv "conftest.tmp" "conftest.in"
3752 cp "conftest.in" "conftest.nl"
3753 echo 'GREP' >> "conftest.nl"
3754 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3756 ac_count=`expr $ac_count + 1`
3757 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3758 # Best one so far, save it but keep looking for a better one
3759 ac_cv_path_GREP="$ac_path_GREP"
3760 ac_path_GREP_max=$ac_count
3762 # 10*(2^10) chars as input seems more than enough
3763 test $ac_count -gt 10 && break
3764 done
3765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3766 esac
3769 $ac_path_GREP_found && break 3
3770 done
3771 done
3773 done
3774 IFS=$as_save_IFS
3779 GREP="$ac_cv_path_GREP"
3780 if test -z "$GREP"; then
3781 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3782 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3783 { (exit 1); exit 1; }; }
3786 else
3787 ac_cv_path_GREP=$GREP
3792 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3793 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3794 GREP="$ac_cv_path_GREP"
3797 { echo "$as_me:$LINENO: checking for egrep" >&5
3798 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3799 if test "${ac_cv_path_EGREP+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3803 then ac_cv_path_EGREP="$GREP -E"
3804 else
3805 # Extract the first word of "egrep" to use in msg output
3806 if test -z "$EGREP"; then
3807 set dummy egrep; ac_prog_name=$2
3808 if test "${ac_cv_path_EGREP+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 ac_path_EGREP_found=false
3812 # Loop through the user's path and test for each of PROGNAME-LIST
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for ac_prog in egrep; do
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3821 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3822 # Check for GNU ac_path_EGREP and select it if it is found.
3823 # Check for GNU $ac_path_EGREP
3824 case `"$ac_path_EGREP" --version 2>&1` in
3825 *GNU*)
3826 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3828 ac_count=0
3829 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3830 while :
3832 cat "conftest.in" "conftest.in" >"conftest.tmp"
3833 mv "conftest.tmp" "conftest.in"
3834 cp "conftest.in" "conftest.nl"
3835 echo 'EGREP' >> "conftest.nl"
3836 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3838 ac_count=`expr $ac_count + 1`
3839 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3840 # Best one so far, save it but keep looking for a better one
3841 ac_cv_path_EGREP="$ac_path_EGREP"
3842 ac_path_EGREP_max=$ac_count
3844 # 10*(2^10) chars as input seems more than enough
3845 test $ac_count -gt 10 && break
3846 done
3847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3848 esac
3851 $ac_path_EGREP_found && break 3
3852 done
3853 done
3855 done
3856 IFS=$as_save_IFS
3861 EGREP="$ac_cv_path_EGREP"
3862 if test -z "$EGREP"; then
3863 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3864 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3865 { (exit 1); exit 1; }; }
3868 else
3869 ac_cv_path_EGREP=$EGREP
3875 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3876 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3877 EGREP="$ac_cv_path_EGREP"
3880 { echo "$as_me:$LINENO: checking for fgrep" >&5
3881 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3882 if test "${ac_cv_path_FGREP+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3886 then ac_cv_path_FGREP="$GREP -F"
3887 else
3888 # Extract the first word of "fgrep" to use in msg output
3889 if test -z "$FGREP"; then
3890 set dummy fgrep; ac_prog_name=$2
3891 if test "${ac_cv_path_FGREP+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894 ac_path_FGREP_found=false
3895 # Loop through the user's path and test for each of PROGNAME-LIST
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3899 IFS=$as_save_IFS
3900 test -z "$as_dir" && as_dir=.
3901 for ac_prog in fgrep; do
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3904 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3905 # Check for GNU ac_path_FGREP and select it if it is found.
3906 # Check for GNU $ac_path_FGREP
3907 case `"$ac_path_FGREP" --version 2>&1` in
3908 *GNU*)
3909 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3911 ac_count=0
3912 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3913 while :
3915 cat "conftest.in" "conftest.in" >"conftest.tmp"
3916 mv "conftest.tmp" "conftest.in"
3917 cp "conftest.in" "conftest.nl"
3918 echo 'FGREP' >> "conftest.nl"
3919 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3920 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3921 ac_count=`expr $ac_count + 1`
3922 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3923 # Best one so far, save it but keep looking for a better one
3924 ac_cv_path_FGREP="$ac_path_FGREP"
3925 ac_path_FGREP_max=$ac_count
3927 # 10*(2^10) chars as input seems more than enough
3928 test $ac_count -gt 10 && break
3929 done
3930 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3931 esac
3934 $ac_path_FGREP_found && break 3
3935 done
3936 done
3938 done
3939 IFS=$as_save_IFS
3944 FGREP="$ac_cv_path_FGREP"
3945 if test -z "$FGREP"; then
3946 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3947 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3948 { (exit 1); exit 1; }; }
3951 else
3952 ac_cv_path_FGREP=$FGREP
3958 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3959 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
3960 FGREP="$ac_cv_path_FGREP"
3963 test -z "$GREP" && GREP=grep
3983 # Check whether --with-gnu-ld was given.
3984 if test "${with_gnu_ld+set}" = set; then
3985 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3986 else
3987 with_gnu_ld=no
3990 ac_prog=ld
3991 if test "$GCC" = yes; then
3992 # Check if gcc -print-prog-name=ld gives a path.
3993 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3994 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3995 case $host in
3996 *-*-mingw*)
3997 # gcc leaves a trailing carriage return which upsets mingw
3998 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4000 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4001 esac
4002 case $ac_prog in
4003 # Accept absolute paths.
4004 [\\/]* | ?:[\\/]*)
4005 re_direlt='/[^/][^/]*/\.\./'
4006 # Canonicalize the pathname of ld
4007 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4008 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4009 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4010 done
4011 test -z "$LD" && LD="$ac_prog"
4014 # If it fails, then pretend we aren't using GCC.
4015 ac_prog=ld
4018 # If it is relative, then search for the first ld in PATH.
4019 with_gnu_ld=unknown
4021 esac
4022 elif test "$with_gnu_ld" = yes; then
4023 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4024 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4025 else
4026 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4027 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4029 if test "${lt_cv_path_LD+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 else
4032 if test -z "$LD"; then
4033 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4034 for ac_dir in $PATH; do
4035 IFS="$lt_save_ifs"
4036 test -z "$ac_dir" && ac_dir=.
4037 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4038 lt_cv_path_LD="$ac_dir/$ac_prog"
4039 # Check to see if the program is GNU ld. I'd rather use --version,
4040 # but apparently some variants of GNU ld only accept -v.
4041 # Break only if it was the GNU/non-GNU ld that we prefer.
4042 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4043 *GNU* | *'with BFD'*)
4044 test "$with_gnu_ld" != no && break
4047 test "$with_gnu_ld" != yes && break
4049 esac
4051 done
4052 IFS="$lt_save_ifs"
4053 else
4054 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4058 LD="$lt_cv_path_LD"
4059 if test -n "$LD"; then
4060 { echo "$as_me:$LINENO: result: $LD" >&5
4061 echo "${ECHO_T}$LD" >&6; }
4062 else
4063 { echo "$as_me:$LINENO: result: no" >&5
4064 echo "${ECHO_T}no" >&6; }
4066 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4067 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4068 { (exit 1); exit 1; }; }
4069 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4070 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4071 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4075 case `$LD -v 2>&1 </dev/null` in
4076 *GNU* | *'with BFD'*)
4077 lt_cv_prog_gnu_ld=yes
4080 lt_cv_prog_gnu_ld=no
4082 esac
4084 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4085 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4086 with_gnu_ld=$lt_cv_prog_gnu_ld
4096 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4097 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4098 if test "${lt_cv_path_NM+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101 if test -n "$NM"; then
4102 # Let the user override the test.
4103 lt_cv_path_NM="$NM"
4104 else
4105 lt_nm_to_check="${ac_tool_prefix}nm"
4106 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4107 lt_nm_to_check="$lt_nm_to_check nm"
4109 for lt_tmp_nm in $lt_nm_to_check; do
4110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4111 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4112 IFS="$lt_save_ifs"
4113 test -z "$ac_dir" && ac_dir=.
4114 tmp_nm="$ac_dir/$lt_tmp_nm"
4115 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4116 # Check to see if the nm accepts a BSD-compat flag.
4117 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4118 # nm: unknown option "B" ignored
4119 # Tru64's nm complains that /dev/null is an invalid object file
4120 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4121 */dev/null* | *'Invalid file or object type'*)
4122 lt_cv_path_NM="$tmp_nm -B"
4123 break
4126 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4127 */dev/null*)
4128 lt_cv_path_NM="$tmp_nm -p"
4129 break
4132 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4133 continue # so that we can try to find one that supports BSD flags
4135 esac
4137 esac
4139 done
4140 IFS="$lt_save_ifs"
4141 done
4142 : ${lt_cv_path_NM=no}
4145 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4146 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4147 if test "$lt_cv_path_NM" != "no"; then
4148 NM="$lt_cv_path_NM"
4149 else
4150 # Didn't find any BSD compatible name lister, look for dumpbin.
4151 if test -n "$ac_tool_prefix"; then
4152 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4158 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161 if test -n "$DUMPBIN"; then
4162 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4163 else
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4171 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 break 2
4175 done
4176 done
4177 IFS=$as_save_IFS
4181 DUMPBIN=$ac_cv_prog_DUMPBIN
4182 if test -n "$DUMPBIN"; then
4183 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4184 echo "${ECHO_T}$DUMPBIN" >&6; }
4185 else
4186 { echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6; }
4191 test -n "$DUMPBIN" && break
4192 done
4194 if test -z "$DUMPBIN"; then
4195 ac_ct_DUMPBIN=$DUMPBIN
4196 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4198 # Extract the first word of "$ac_prog", so it can be a program name with args.
4199 set dummy $ac_prog; ac_word=$2
4200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4202 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 if test -n "$ac_ct_DUMPBIN"; then
4206 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4219 done
4220 done
4221 IFS=$as_save_IFS
4225 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4226 if test -n "$ac_ct_DUMPBIN"; then
4227 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4228 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4229 else
4230 { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4235 test -n "$ac_ct_DUMPBIN" && break
4236 done
4238 if test "x$ac_ct_DUMPBIN" = x; then
4239 DUMPBIN=":"
4240 else
4241 case $cross_compiling:$ac_tool_warned in
4242 yes:)
4243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4244 whose name does not start with the host triplet. If you think this
4245 configuration is useful to you, please write to autoconf@gnu.org." >&5
4246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4247 whose name does not start with the host triplet. If you think this
4248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4249 ac_tool_warned=yes ;;
4250 esac
4251 DUMPBIN=$ac_ct_DUMPBIN
4256 if test "$DUMPBIN" != ":"; then
4257 NM="$DUMPBIN"
4260 test -z "$NM" && NM=nm
4267 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4268 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4269 if test "${lt_cv_nm_interface+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272 lt_cv_nm_interface="BSD nm"
4273 echo "int some_variable = 0;" > conftest.$ac_ext
4274 (eval echo "\"\$as_me:4274: $ac_compile\"" >&5)
4275 (eval "$ac_compile" 2>conftest.err)
4276 cat conftest.err >&5
4277 (eval echo "\"\$as_me:4277: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4278 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4279 cat conftest.err >&5
4280 (eval echo "\"\$as_me:4280: output\"" >&5)
4281 cat conftest.out >&5
4282 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4283 lt_cv_nm_interface="MS dumpbin"
4285 rm -f conftest*
4287 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4288 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4290 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4291 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4292 LN_S=$as_ln_s
4293 if test "$LN_S" = "ln -s"; then
4294 { echo "$as_me:$LINENO: result: yes" >&5
4295 echo "${ECHO_T}yes" >&6; }
4296 else
4297 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4298 echo "${ECHO_T}no, using $LN_S" >&6; }
4301 # find the maximum length of command line arguments
4302 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4303 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4304 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4308 teststring="ABCD"
4310 case $build_os in
4311 msdosdjgpp*)
4312 # On DJGPP, this test can blow up pretty badly due to problems in libc
4313 # (any single argument exceeding 2000 bytes causes a buffer overrun
4314 # during glob expansion). Even if it were fixed, the result of this
4315 # check would be larger than it should be.
4316 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4319 gnu*)
4320 # Under GNU Hurd, this test is not required because there is
4321 # no limit to the length of command line arguments.
4322 # Libtool will interpret -1 as no limit whatsoever
4323 lt_cv_sys_max_cmd_len=-1;
4326 cygwin* | mingw* | cegcc*)
4327 # On Win9x/ME, this test blows up -- it succeeds, but takes
4328 # about 5 minutes as the teststring grows exponentially.
4329 # Worse, since 9x/ME are not pre-emptively multitasking,
4330 # you end up with a "frozen" computer, even though with patience
4331 # the test eventually succeeds (with a max line length of 256k).
4332 # Instead, let's just punt: use the minimum linelength reported by
4333 # all of the supported platforms: 8192 (on NT/2K/XP).
4334 lt_cv_sys_max_cmd_len=8192;
4337 amigaos*)
4338 # On AmigaOS with pdksh, this test takes hours, literally.
4339 # So we just punt and use a minimum line length of 8192.
4340 lt_cv_sys_max_cmd_len=8192;
4343 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4344 # This has been around since 386BSD, at least. Likely further.
4345 if test -x /sbin/sysctl; then
4346 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4347 elif test -x /usr/sbin/sysctl; then
4348 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4349 else
4350 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4352 # And add a safety zone
4353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4354 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4357 interix*)
4358 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4359 lt_cv_sys_max_cmd_len=196608
4362 osf*)
4363 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4364 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4365 # nice to cause kernel panics so lets avoid the loop below.
4366 # First set a reasonable default.
4367 lt_cv_sys_max_cmd_len=16384
4369 if test -x /sbin/sysconfig; then
4370 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4371 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4372 esac
4375 sco3.2v5*)
4376 lt_cv_sys_max_cmd_len=102400
4378 sysv5* | sco5v6* | sysv4.2uw2*)
4379 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4380 if test -n "$kargmax"; then
4381 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4382 else
4383 lt_cv_sys_max_cmd_len=32768
4387 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4388 if test -n "$lt_cv_sys_max_cmd_len"; then
4389 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4390 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4391 else
4392 # Make teststring a little bigger before we do anything with it.
4393 # a 1K string should be a reasonable start.
4394 for i in 1 2 3 4 5 6 7 8 ; do
4395 teststring=$teststring$teststring
4396 done
4397 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4398 # If test is not a shell built-in, we'll probably end up computing a
4399 # maximum length that is only half of the actual maximum length, but
4400 # we can't tell.
4401 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4402 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4403 test $i != 17 # 1/2 MB should be enough
4405 i=`expr $i + 1`
4406 teststring=$teststring$teststring
4407 done
4408 # Only check the string length outside the loop.
4409 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4410 teststring=
4411 # Add a significant safety factor because C++ compilers can tack on
4412 # massive amounts of additional arguments before passing them to the
4413 # linker. It appears as though 1/2 is a usable value.
4414 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4417 esac
4421 if test -n $lt_cv_sys_max_cmd_len ; then
4422 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4423 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4424 else
4425 { echo "$as_me:$LINENO: result: none" >&5
4426 echo "${ECHO_T}none" >&6; }
4428 max_cmd_len=$lt_cv_sys_max_cmd_len
4435 : ${CP="cp -f"}
4436 : ${MV="mv -f"}
4437 : ${RM="rm -f"}
4439 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4440 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4441 # Try some XSI features
4442 xsi_shell=no
4443 ( _lt_dummy="a/b/c"
4444 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4445 = c,a/b,, \
4446 && eval 'test $(( 1 + 1 )) -eq 2 \
4447 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4448 && xsi_shell=yes
4449 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
4450 echo "${ECHO_T}$xsi_shell" >&6; }
4453 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4454 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4455 lt_shell_append=no
4456 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4457 >/dev/null 2>&1 \
4458 && lt_shell_append=yes
4459 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4460 echo "${ECHO_T}$lt_shell_append" >&6; }
4463 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4464 lt_unset=unset
4465 else
4466 lt_unset=false
4473 # test EBCDIC or ASCII
4474 case `echo X|tr X '\101'` in
4475 A) # ASCII based system
4476 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4477 lt_SP2NL='tr \040 \012'
4478 lt_NL2SP='tr \015\012 \040\040'
4480 *) # EBCDIC based system
4481 lt_SP2NL='tr \100 \n'
4482 lt_NL2SP='tr \r\n \100\100'
4484 esac
4494 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4495 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4496 if test "${lt_cv_ld_reload_flag+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499 lt_cv_ld_reload_flag='-r'
4501 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4502 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4503 reload_flag=$lt_cv_ld_reload_flag
4504 case $reload_flag in
4505 "" | " "*) ;;
4506 *) reload_flag=" $reload_flag" ;;
4507 esac
4508 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4509 case $host_os in
4510 darwin*)
4511 if test "$GCC" = yes; then
4512 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4513 else
4514 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4517 esac
4527 if test -n "$ac_tool_prefix"; then
4528 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4529 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4532 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 else
4535 if test -n "$OBJDUMP"; then
4536 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4537 else
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4545 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 break 2
4549 done
4550 done
4551 IFS=$as_save_IFS
4555 OBJDUMP=$ac_cv_prog_OBJDUMP
4556 if test -n "$OBJDUMP"; then
4557 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4558 echo "${ECHO_T}$OBJDUMP" >&6; }
4559 else
4560 { echo "$as_me:$LINENO: result: no" >&5
4561 echo "${ECHO_T}no" >&6; }
4566 if test -z "$ac_cv_prog_OBJDUMP"; then
4567 ac_ct_OBJDUMP=$OBJDUMP
4568 # Extract the first word of "objdump", so it can be a program name with args.
4569 set dummy objdump; ac_word=$2
4570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575 if test -n "$ac_ct_OBJDUMP"; then
4576 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4577 else
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4589 done
4590 done
4591 IFS=$as_save_IFS
4595 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4596 if test -n "$ac_ct_OBJDUMP"; then
4597 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4598 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4599 else
4600 { echo "$as_me:$LINENO: result: no" >&5
4601 echo "${ECHO_T}no" >&6; }
4604 if test "x$ac_ct_OBJDUMP" = x; then
4605 OBJDUMP="false"
4606 else
4607 case $cross_compiling:$ac_tool_warned in
4608 yes:)
4609 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4610 whose name does not start with the host triplet. If you think this
4611 configuration is useful to you, please write to autoconf@gnu.org." >&5
4612 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4613 whose name does not start with the host triplet. If you think this
4614 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4615 ac_tool_warned=yes ;;
4616 esac
4617 OBJDUMP=$ac_ct_OBJDUMP
4619 else
4620 OBJDUMP="$ac_cv_prog_OBJDUMP"
4623 test -z "$OBJDUMP" && OBJDUMP=objdump
4633 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4634 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4635 if test "${lt_cv_deplibs_check_method+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638 lt_cv_file_magic_cmd='$MAGIC_CMD'
4639 lt_cv_file_magic_test_file=
4640 lt_cv_deplibs_check_method='unknown'
4641 # Need to set the preceding variable on all platforms that support
4642 # interlibrary dependencies.
4643 # 'none' -- dependencies not supported.
4644 # `unknown' -- same as none, but documents that we really don't know.
4645 # 'pass_all' -- all dependencies passed with no checks.
4646 # 'test_compile' -- check by making test program.
4647 # 'file_magic [[regex]]' -- check by looking for files in library path
4648 # which responds to the $file_magic_cmd with a given extended regex.
4649 # If you have `file' or equivalent on your system and you're not sure
4650 # whether `pass_all' will *always* work, you probably want this one.
4652 case $host_os in
4653 aix[4-9]*)
4654 lt_cv_deplibs_check_method=pass_all
4657 beos*)
4658 lt_cv_deplibs_check_method=pass_all
4661 bsdi[45]*)
4662 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4663 lt_cv_file_magic_cmd='/usr/bin/file -L'
4664 lt_cv_file_magic_test_file=/shlib/libc.so
4667 cygwin*)
4668 # func_win32_libid is a shell function defined in ltmain.sh
4669 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4670 lt_cv_file_magic_cmd='func_win32_libid'
4673 mingw* | pw32*)
4674 # Base MSYS/MinGW do not provide the 'file' command needed by
4675 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4676 # unless we find 'file', for example because we are cross-compiling.
4677 if ( file / ) >/dev/null 2>&1; then
4678 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4679 lt_cv_file_magic_cmd='func_win32_libid'
4680 else
4681 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4682 lt_cv_file_magic_cmd='$OBJDUMP -f'
4686 cegcc)
4687 # use the weaker test based on 'objdump'. See mingw*.
4688 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4689 lt_cv_file_magic_cmd='$OBJDUMP -f'
4692 darwin* | rhapsody*)
4693 lt_cv_deplibs_check_method=pass_all
4696 freebsd* | dragonfly*)
4697 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4698 case $host_cpu in
4699 i*86 )
4700 # Not sure whether the presence of OpenBSD here was a mistake.
4701 # Let's accept both of them until this is cleared up.
4702 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4703 lt_cv_file_magic_cmd=/usr/bin/file
4704 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4706 esac
4707 else
4708 lt_cv_deplibs_check_method=pass_all
4712 gnu*)
4713 lt_cv_deplibs_check_method=pass_all
4716 hpux10.20* | hpux11*)
4717 lt_cv_file_magic_cmd=/usr/bin/file
4718 case $host_cpu in
4719 ia64*)
4720 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4721 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4723 hppa*64*)
4724 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]'
4725 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4728 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4729 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4731 esac
4734 interix[3-9]*)
4735 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4739 irix5* | irix6* | nonstopux*)
4740 case $LD in
4741 *-32|*"-32 ") libmagic=32-bit;;
4742 *-n32|*"-n32 ") libmagic=N32;;
4743 *-64|*"-64 ") libmagic=64-bit;;
4744 *) libmagic=never-match;;
4745 esac
4746 lt_cv_deplibs_check_method=pass_all
4749 # This must be Linux ELF.
4750 linux* | k*bsd*-gnu)
4751 lt_cv_deplibs_check_method=pass_all
4754 netbsd*)
4755 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4757 else
4758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4762 newos6*)
4763 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4764 lt_cv_file_magic_cmd=/usr/bin/file
4765 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4768 *nto* | *qnx*)
4769 lt_cv_deplibs_check_method=pass_all
4772 openbsd*)
4773 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4775 else
4776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4780 osf3* | osf4* | osf5*)
4781 lt_cv_deplibs_check_method=pass_all
4784 rdos*)
4785 lt_cv_deplibs_check_method=pass_all
4788 solaris*)
4789 lt_cv_deplibs_check_method=pass_all
4792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4793 lt_cv_deplibs_check_method=pass_all
4796 sysv4 | sysv4.3*)
4797 case $host_vendor in
4798 motorola)
4799 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]'
4800 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4802 ncr)
4803 lt_cv_deplibs_check_method=pass_all
4805 sequent)
4806 lt_cv_file_magic_cmd='/bin/file'
4807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4809 sni)
4810 lt_cv_file_magic_cmd='/bin/file'
4811 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4812 lt_cv_file_magic_test_file=/lib/libc.so
4814 siemens)
4815 lt_cv_deplibs_check_method=pass_all
4818 lt_cv_deplibs_check_method=pass_all
4820 esac
4823 tpf*)
4824 lt_cv_deplibs_check_method=pass_all
4826 esac
4829 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4830 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4831 file_magic_cmd=$lt_cv_file_magic_cmd
4832 deplibs_check_method=$lt_cv_deplibs_check_method
4833 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4846 if test -n "$ac_tool_prefix"; then
4847 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4848 set dummy ${ac_tool_prefix}ar; ac_word=$2
4849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4851 if test "${ac_cv_prog_AR+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 else
4854 if test -n "$AR"; then
4855 ac_cv_prog_AR="$AR" # Let the user override the test.
4856 else
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864 ac_cv_prog_AR="${ac_tool_prefix}ar"
4865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 break 2
4868 done
4869 done
4870 IFS=$as_save_IFS
4874 AR=$ac_cv_prog_AR
4875 if test -n "$AR"; then
4876 { echo "$as_me:$LINENO: result: $AR" >&5
4877 echo "${ECHO_T}$AR" >&6; }
4878 else
4879 { echo "$as_me:$LINENO: result: no" >&5
4880 echo "${ECHO_T}no" >&6; }
4885 if test -z "$ac_cv_prog_AR"; then
4886 ac_ct_AR=$AR
4887 # Extract the first word of "ar", so it can be a program name with args.
4888 set dummy ar; ac_word=$2
4889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4891 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 else
4894 if test -n "$ac_ct_AR"; then
4895 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4896 else
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904 ac_cv_prog_ac_ct_AR="ar"
4905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 break 2
4908 done
4909 done
4910 IFS=$as_save_IFS
4914 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4915 if test -n "$ac_ct_AR"; then
4916 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4917 echo "${ECHO_T}$ac_ct_AR" >&6; }
4918 else
4919 { echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6; }
4923 if test "x$ac_ct_AR" = x; then
4924 AR="false"
4925 else
4926 case $cross_compiling:$ac_tool_warned in
4927 yes:)
4928 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4929 whose name does not start with the host triplet. If you think this
4930 configuration is useful to you, please write to autoconf@gnu.org." >&5
4931 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4932 whose name does not start with the host triplet. If you think this
4933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4934 ac_tool_warned=yes ;;
4935 esac
4936 AR=$ac_ct_AR
4938 else
4939 AR="$ac_cv_prog_AR"
4942 test -z "$AR" && AR=ar
4943 test -z "$AR_FLAGS" && AR_FLAGS=cru
4955 if test -n "$ac_tool_prefix"; then
4956 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4957 set dummy ${ac_tool_prefix}strip; ac_word=$2
4958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4960 if test "${ac_cv_prog_STRIP+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963 if test -n "$STRIP"; then
4964 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 break 2
4977 done
4978 done
4979 IFS=$as_save_IFS
4983 STRIP=$ac_cv_prog_STRIP
4984 if test -n "$STRIP"; then
4985 { echo "$as_me:$LINENO: result: $STRIP" >&5
4986 echo "${ECHO_T}$STRIP" >&6; }
4987 else
4988 { echo "$as_me:$LINENO: result: no" >&5
4989 echo "${ECHO_T}no" >&6; }
4994 if test -z "$ac_cv_prog_STRIP"; then
4995 ac_ct_STRIP=$STRIP
4996 # Extract the first word of "strip", so it can be a program name with args.
4997 set dummy strip; ac_word=$2
4998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5000 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003 if test -n "$ac_ct_STRIP"; then
5004 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5005 else
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013 ac_cv_prog_ac_ct_STRIP="strip"
5014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 break 2
5017 done
5018 done
5019 IFS=$as_save_IFS
5023 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5024 if test -n "$ac_ct_STRIP"; then
5025 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5026 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5027 else
5028 { echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6; }
5032 if test "x$ac_ct_STRIP" = x; then
5033 STRIP=":"
5034 else
5035 case $cross_compiling:$ac_tool_warned in
5036 yes:)
5037 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5038 whose name does not start with the host triplet. If you think this
5039 configuration is useful to you, please write to autoconf@gnu.org." >&5
5040 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5041 whose name does not start with the host triplet. If you think this
5042 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5043 ac_tool_warned=yes ;;
5044 esac
5045 STRIP=$ac_ct_STRIP
5047 else
5048 STRIP="$ac_cv_prog_STRIP"
5051 test -z "$STRIP" && STRIP=:
5058 if test -n "$ac_tool_prefix"; then
5059 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5060 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5063 if test "${ac_cv_prog_RANLIB+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066 if test -n "$RANLIB"; then
5067 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5068 else
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5072 IFS=$as_save_IFS
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 break 2
5080 done
5081 done
5082 IFS=$as_save_IFS
5086 RANLIB=$ac_cv_prog_RANLIB
5087 if test -n "$RANLIB"; then
5088 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5089 echo "${ECHO_T}$RANLIB" >&6; }
5090 else
5091 { echo "$as_me:$LINENO: result: no" >&5
5092 echo "${ECHO_T}no" >&6; }
5097 if test -z "$ac_cv_prog_RANLIB"; then
5098 ac_ct_RANLIB=$RANLIB
5099 # Extract the first word of "ranlib", so it can be a program name with args.
5100 set dummy ranlib; ac_word=$2
5101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5103 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106 if test -n "$ac_ct_RANLIB"; then
5107 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5108 else
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116 ac_cv_prog_ac_ct_RANLIB="ranlib"
5117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 break 2
5120 done
5121 done
5122 IFS=$as_save_IFS
5126 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5127 if test -n "$ac_ct_RANLIB"; then
5128 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5129 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5130 else
5131 { echo "$as_me:$LINENO: result: no" >&5
5132 echo "${ECHO_T}no" >&6; }
5135 if test "x$ac_ct_RANLIB" = x; then
5136 RANLIB=":"
5137 else
5138 case $cross_compiling:$ac_tool_warned in
5139 yes:)
5140 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5141 whose name does not start with the host triplet. If you think this
5142 configuration is useful to you, please write to autoconf@gnu.org." >&5
5143 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5144 whose name does not start with the host triplet. If you think this
5145 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5146 ac_tool_warned=yes ;;
5147 esac
5148 RANLIB=$ac_ct_RANLIB
5150 else
5151 RANLIB="$ac_cv_prog_RANLIB"
5154 test -z "$RANLIB" && RANLIB=:
5161 # Determine commands to create old-style static archives.
5162 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5163 old_postinstall_cmds='chmod 644 $oldlib'
5164 old_postuninstall_cmds=
5166 if test -n "$RANLIB"; then
5167 case $host_os in
5168 openbsd*)
5169 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5172 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5174 esac
5175 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5211 # If no C compiler was specified, use CC.
5212 LTCC=${LTCC-"$CC"}
5214 # If no C compiler flags were specified, use CFLAGS.
5215 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5217 # Allow CC to be a program name with arguments.
5218 compiler=$CC
5221 # Check for command to grab the raw symbol name followed by C symbol from nm.
5222 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5223 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5224 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5228 # These are sane defaults that work on at least a few old systems.
5229 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5231 # Character class describing NM global symbol codes.
5232 symcode='[BCDEGRST]'
5234 # Regexp to match symbols that can be accessed directly from C.
5235 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5237 # Define system-specific variables.
5238 case $host_os in
5239 aix*)
5240 symcode='[BCDT]'
5242 cygwin* | mingw* | pw32* | cegcc*)
5243 symcode='[ABCDGISTW]'
5245 hpux*)
5246 if test "$host_cpu" = ia64; then
5247 symcode='[ABCDEGRST]'
5250 irix* | nonstopux*)
5251 symcode='[BCDEGRST]'
5253 osf*)
5254 symcode='[BCDEGQRST]'
5256 solaris*)
5257 symcode='[BDRT]'
5259 sco3.2v5*)
5260 symcode='[DT]'
5262 sysv4.2uw2*)
5263 symcode='[DT]'
5265 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5266 symcode='[ABDT]'
5268 sysv4)
5269 symcode='[DFNSTU]'
5271 esac
5273 # If we're using GNU nm, then use its standard symbol codes.
5274 case `$NM -V 2>&1` in
5275 *GNU* | *'with BFD'*)
5276 symcode='[ABCDGIRSTW]' ;;
5277 esac
5279 # Transform an extracted symbol line into a proper C declaration.
5280 # Some systems (esp. on ia64) link data and code symbols differently,
5281 # so use this general approach.
5282 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5284 # Transform an extracted symbol line into symbol name and symbol address
5285 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5286 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5288 # Handle CRLF in mingw tool chain
5289 opt_cr=
5290 case $build_os in
5291 mingw*)
5292 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5294 esac
5296 # Try without a prefix underscore, then with it.
5297 for ac_symprfx in "" "_"; do
5299 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5300 symxfrm="\\1 $ac_symprfx\\2 \\2"
5302 # Write the raw and C identifiers.
5303 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5304 # Fake it for dumpbin and say T for any non-static function
5305 # and D for any global variable.
5306 # Also find C++ and __fastcall symbols from MSVC++,
5307 # which start with @ or ?.
5308 lt_cv_sys_global_symbol_pipe="$AWK '"\
5309 " {last_section=section; section=\$ 3};"\
5310 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5311 " \$ 0!~/External *\|/{next};"\
5312 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5313 " {if(hide[section]) next};"\
5314 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5315 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5316 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5317 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5318 " ' prfx=^$ac_symprfx"
5319 else
5320 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5323 # Check to see that the pipe works correctly.
5324 pipe_works=no
5326 rm -f conftest*
5327 cat > conftest.$ac_ext <<_LT_EOF
5328 #ifdef __cplusplus
5329 extern "C" {
5330 #endif
5331 char nm_test_var;
5332 void nm_test_func(void);
5333 void nm_test_func(void){}
5334 #ifdef __cplusplus
5336 #endif
5337 int main(){nm_test_var='a';nm_test_func();return(0);}
5338 _LT_EOF
5340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5341 (eval $ac_compile) 2>&5
5342 ac_status=$?
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; then
5345 # Now try to grab the symbols.
5346 nlist=conftest.nm
5347 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5348 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } && test -s "$nlist"; then
5352 # Try sorting and uniquifying the output.
5353 if sort "$nlist" | uniq > "$nlist"T; then
5354 mv -f "$nlist"T "$nlist"
5355 else
5356 rm -f "$nlist"T
5359 # Make sure that we snagged all the symbols we need.
5360 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5361 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5362 cat <<_LT_EOF > conftest.$ac_ext
5363 #ifdef __cplusplus
5364 extern "C" {
5365 #endif
5367 _LT_EOF
5368 # Now generate the symbol file.
5369 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5371 cat <<_LT_EOF >> conftest.$ac_ext
5373 /* The mapping between symbol names and symbols. */
5374 const struct {
5375 const char *name;
5376 void *address;
5378 lt__PROGRAM__LTX_preloaded_symbols[] =
5380 { "@PROGRAM@", (void *) 0 },
5381 _LT_EOF
5382 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5383 cat <<\_LT_EOF >> conftest.$ac_ext
5384 {0, (void *) 0}
5387 /* This works around a problem in FreeBSD linker */
5388 #ifdef FREEBSD_WORKAROUND
5389 static const void *lt_preloaded_setup() {
5390 return lt__PROGRAM__LTX_preloaded_symbols;
5392 #endif
5394 #ifdef __cplusplus
5396 #endif
5397 _LT_EOF
5398 # Now try linking the two files.
5399 mv conftest.$ac_objext conftstm.$ac_objext
5400 lt_save_LIBS="$LIBS"
5401 lt_save_CFLAGS="$CFLAGS"
5402 LIBS="conftstm.$ac_objext"
5403 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5405 (eval $ac_link) 2>&5
5406 ac_status=$?
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5409 pipe_works=yes
5411 LIBS="$lt_save_LIBS"
5412 CFLAGS="$lt_save_CFLAGS"
5413 else
5414 echo "cannot find nm_test_func in $nlist" >&5
5416 else
5417 echo "cannot find nm_test_var in $nlist" >&5
5419 else
5420 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5422 else
5423 echo "$progname: failed program was:" >&5
5424 cat conftest.$ac_ext >&5
5426 rm -rf conftest* conftst*
5428 # Do not use the global_symbol_pipe unless it works.
5429 if test "$pipe_works" = yes; then
5430 break
5431 else
5432 lt_cv_sys_global_symbol_pipe=
5434 done
5438 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5439 lt_cv_sys_global_symbol_to_cdecl=
5441 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5442 { echo "$as_me:$LINENO: result: failed" >&5
5443 echo "${ECHO_T}failed" >&6; }
5444 else
5445 { echo "$as_me:$LINENO: result: ok" >&5
5446 echo "${ECHO_T}ok" >&6; }
5471 # Check whether --enable-libtool-lock was given.
5472 if test "${enable_libtool_lock+set}" = set; then
5473 enableval=$enable_libtool_lock;
5476 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5478 # Some flags need to be propagated to the compiler or linker for good
5479 # libtool support.
5480 case $host in
5481 ia64-*-hpux*)
5482 # Find out which ABI we are using.
5483 echo 'int i;' > conftest.$ac_ext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485 (eval $ac_compile) 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; then
5489 case `/usr/bin/file conftest.$ac_objext` in
5490 *ELF-32*)
5491 HPUX_IA64_MODE="32"
5493 *ELF-64*)
5494 HPUX_IA64_MODE="64"
5496 esac
5498 rm -rf conftest*
5500 *-*-irix6*)
5501 # Find out which ABI we are using.
5502 echo '#line 5502 "configure"' > conftest.$ac_ext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>&5
5505 ac_status=$?
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; then
5508 if test "$lt_cv_prog_gnu_ld" = yes; then
5509 case `/usr/bin/file conftest.$ac_objext` in
5510 *32-bit*)
5511 LD="${LD-ld} -melf32bsmip"
5513 *N32*)
5514 LD="${LD-ld} -melf32bmipn32"
5516 *64-bit*)
5517 LD="${LD-ld} -melf64bmip"
5519 esac
5520 else
5521 case `/usr/bin/file conftest.$ac_objext` in
5522 *32-bit*)
5523 LD="${LD-ld} -32"
5525 *N32*)
5526 LD="${LD-ld} -n32"
5528 *64-bit*)
5529 LD="${LD-ld} -64"
5531 esac
5534 rm -rf conftest*
5537 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5538 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5539 # Find out which ABI we are using.
5540 echo 'int i;' > conftest.$ac_ext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5542 (eval $ac_compile) 2>&5
5543 ac_status=$?
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; then
5546 case `/usr/bin/file conftest.o` in
5547 *32-bit*)
5548 case $host in
5549 x86_64-*kfreebsd*-gnu)
5550 LD="${LD-ld} -m elf_i386_fbsd"
5552 x86_64-*linux*)
5553 LD="${LD-ld} -m elf_i386"
5555 ppc64-*linux*|powerpc64-*linux*)
5556 LD="${LD-ld} -m elf32ppclinux"
5558 s390x-*linux*)
5559 LD="${LD-ld} -m elf_s390"
5561 sparc64-*linux*)
5562 LD="${LD-ld} -m elf32_sparc"
5564 esac
5566 *64-bit*)
5567 case $host in
5568 x86_64-*kfreebsd*-gnu)
5569 LD="${LD-ld} -m elf_x86_64_fbsd"
5571 x86_64-*linux*)
5572 LD="${LD-ld} -m elf_x86_64"
5574 ppc*-*linux*|powerpc*-*linux*)
5575 LD="${LD-ld} -m elf64ppc"
5577 s390*-*linux*|s390*-*tpf*)
5578 LD="${LD-ld} -m elf64_s390"
5580 sparc*-*linux*)
5581 LD="${LD-ld} -m elf64_sparc"
5583 esac
5585 esac
5587 rm -rf conftest*
5590 *-*-sco3.2v5*)
5591 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5592 SAVE_CFLAGS="$CFLAGS"
5593 CFLAGS="$CFLAGS -belf"
5594 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5595 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5596 if test "${lt_cv_cc_needs_belf+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 else
5599 ac_ext=c
5600 ac_cpp='$CPP $CPPFLAGS'
5601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5605 cat >conftest.$ac_ext <<_ACEOF
5606 /* confdefs.h. */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5613 main ()
5617 return 0;
5619 _ACEOF
5620 rm -f conftest.$ac_objext conftest$ac_exeext
5621 if { (ac_try="$ac_link"
5622 case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625 esac
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_link") 2>conftest.er1
5628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } && {
5634 test -z "$ac_c_werror_flag" ||
5635 test ! -s conftest.err
5636 } && test -s conftest$ac_exeext &&
5637 $as_test_x conftest$ac_exeext; then
5638 lt_cv_cc_needs_belf=yes
5639 else
5640 echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.$ac_ext >&5
5643 lt_cv_cc_needs_belf=no
5646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5647 conftest$ac_exeext conftest.$ac_ext
5648 ac_ext=c
5649 ac_cpp='$CPP $CPPFLAGS'
5650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5656 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5657 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5658 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5659 CFLAGS="$SAVE_CFLAGS"
5662 sparc*-*solaris*)
5663 # Find out which ABI we are using.
5664 echo 'int i;' > conftest.$ac_ext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5666 (eval $ac_compile) 2>&5
5667 ac_status=$?
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; then
5670 case `/usr/bin/file conftest.o` in
5671 *64-bit*)
5672 case $lt_cv_prog_gnu_ld in
5673 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5675 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5676 LD="${LD-ld} -64"
5679 esac
5681 esac
5683 rm -rf conftest*
5685 esac
5687 need_locks="$enable_libtool_lock"
5690 case $host_os in
5691 rhapsody* | darwin*)
5692 if test -n "$ac_tool_prefix"; then
5693 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5694 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5697 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700 if test -n "$DSYMUTIL"; then
5701 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5702 else
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5710 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 break 2
5714 done
5715 done
5716 IFS=$as_save_IFS
5720 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5721 if test -n "$DSYMUTIL"; then
5722 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5723 echo "${ECHO_T}$DSYMUTIL" >&6; }
5724 else
5725 { echo "$as_me:$LINENO: result: no" >&5
5726 echo "${ECHO_T}no" >&6; }
5731 if test -z "$ac_cv_prog_DSYMUTIL"; then
5732 ac_ct_DSYMUTIL=$DSYMUTIL
5733 # Extract the first word of "dsymutil", so it can be a program name with args.
5734 set dummy dsymutil; ac_word=$2
5735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5737 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 else
5740 if test -n "$ac_ct_DSYMUTIL"; then
5741 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5742 else
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 for as_dir in $PATH
5746 IFS=$as_save_IFS
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5750 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 break 2
5754 done
5755 done
5756 IFS=$as_save_IFS
5760 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5761 if test -n "$ac_ct_DSYMUTIL"; then
5762 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5763 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5764 else
5765 { echo "$as_me:$LINENO: result: no" >&5
5766 echo "${ECHO_T}no" >&6; }
5769 if test "x$ac_ct_DSYMUTIL" = x; then
5770 DSYMUTIL=":"
5771 else
5772 case $cross_compiling:$ac_tool_warned in
5773 yes:)
5774 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5775 whose name does not start with the host triplet. If you think this
5776 configuration is useful to you, please write to autoconf@gnu.org." >&5
5777 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5778 whose name does not start with the host triplet. If you think this
5779 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5780 ac_tool_warned=yes ;;
5781 esac
5782 DSYMUTIL=$ac_ct_DSYMUTIL
5784 else
5785 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5788 if test -n "$ac_tool_prefix"; then
5789 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5790 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5793 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796 if test -n "$NMEDIT"; then
5797 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5798 else
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5810 done
5811 done
5812 IFS=$as_save_IFS
5816 NMEDIT=$ac_cv_prog_NMEDIT
5817 if test -n "$NMEDIT"; then
5818 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5819 echo "${ECHO_T}$NMEDIT" >&6; }
5820 else
5821 { echo "$as_me:$LINENO: result: no" >&5
5822 echo "${ECHO_T}no" >&6; }
5827 if test -z "$ac_cv_prog_NMEDIT"; then
5828 ac_ct_NMEDIT=$NMEDIT
5829 # Extract the first word of "nmedit", so it can be a program name with args.
5830 set dummy nmedit; ac_word=$2
5831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5833 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 else
5836 if test -n "$ac_ct_NMEDIT"; then
5837 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5838 else
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5842 IFS=$as_save_IFS
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5848 break 2
5850 done
5851 done
5852 IFS=$as_save_IFS
5856 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5857 if test -n "$ac_ct_NMEDIT"; then
5858 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5859 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5860 else
5861 { echo "$as_me:$LINENO: result: no" >&5
5862 echo "${ECHO_T}no" >&6; }
5865 if test "x$ac_ct_NMEDIT" = x; then
5866 NMEDIT=":"
5867 else
5868 case $cross_compiling:$ac_tool_warned in
5869 yes:)
5870 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5871 whose name does not start with the host triplet. If you think this
5872 configuration is useful to you, please write to autoconf@gnu.org." >&5
5873 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5874 whose name does not start with the host triplet. If you think this
5875 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5876 ac_tool_warned=yes ;;
5877 esac
5878 NMEDIT=$ac_ct_NMEDIT
5880 else
5881 NMEDIT="$ac_cv_prog_NMEDIT"
5884 if test -n "$ac_tool_prefix"; then
5885 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5886 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5889 if test "${ac_cv_prog_LIPO+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892 if test -n "$LIPO"; then
5893 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5898 IFS=$as_save_IFS
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 break 2
5906 done
5907 done
5908 IFS=$as_save_IFS
5912 LIPO=$ac_cv_prog_LIPO
5913 if test -n "$LIPO"; then
5914 { echo "$as_me:$LINENO: result: $LIPO" >&5
5915 echo "${ECHO_T}$LIPO" >&6; }
5916 else
5917 { echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6; }
5923 if test -z "$ac_cv_prog_LIPO"; then
5924 ac_ct_LIPO=$LIPO
5925 # Extract the first word of "lipo", so it can be a program name with args.
5926 set dummy lipo; ac_word=$2
5927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5929 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932 if test -n "$ac_ct_LIPO"; then
5933 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_prog_ac_ct_LIPO="lipo"
5943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 break 2
5946 done
5947 done
5948 IFS=$as_save_IFS
5952 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5953 if test -n "$ac_ct_LIPO"; then
5954 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5955 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5956 else
5957 { echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6; }
5961 if test "x$ac_ct_LIPO" = x; then
5962 LIPO=":"
5963 else
5964 case $cross_compiling:$ac_tool_warned in
5965 yes:)
5966 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5967 whose name does not start with the host triplet. If you think this
5968 configuration is useful to you, please write to autoconf@gnu.org." >&5
5969 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5970 whose name does not start with the host triplet. If you think this
5971 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5972 ac_tool_warned=yes ;;
5973 esac
5974 LIPO=$ac_ct_LIPO
5976 else
5977 LIPO="$ac_cv_prog_LIPO"
5980 if test -n "$ac_tool_prefix"; then
5981 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5982 set dummy ${ac_tool_prefix}otool; ac_word=$2
5983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5985 if test "${ac_cv_prog_OTOOL+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988 if test -n "$OTOOL"; then
5989 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5990 else
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 for as_dir in $PATH
5994 IFS=$as_save_IFS
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5998 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6000 break 2
6002 done
6003 done
6004 IFS=$as_save_IFS
6008 OTOOL=$ac_cv_prog_OTOOL
6009 if test -n "$OTOOL"; then
6010 { echo "$as_me:$LINENO: result: $OTOOL" >&5
6011 echo "${ECHO_T}$OTOOL" >&6; }
6012 else
6013 { echo "$as_me:$LINENO: result: no" >&5
6014 echo "${ECHO_T}no" >&6; }
6019 if test -z "$ac_cv_prog_OTOOL"; then
6020 ac_ct_OTOOL=$OTOOL
6021 # Extract the first word of "otool", so it can be a program name with args.
6022 set dummy otool; ac_word=$2
6023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6025 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028 if test -n "$ac_ct_OTOOL"; then
6029 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6030 else
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 for as_dir in $PATH
6034 IFS=$as_save_IFS
6035 test -z "$as_dir" && as_dir=.
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6038 ac_cv_prog_ac_ct_OTOOL="otool"
6039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 break 2
6042 done
6043 done
6044 IFS=$as_save_IFS
6048 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6049 if test -n "$ac_ct_OTOOL"; then
6050 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6051 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6052 else
6053 { echo "$as_me:$LINENO: result: no" >&5
6054 echo "${ECHO_T}no" >&6; }
6057 if test "x$ac_ct_OTOOL" = x; then
6058 OTOOL=":"
6059 else
6060 case $cross_compiling:$ac_tool_warned in
6061 yes:)
6062 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6063 whose name does not start with the host triplet. If you think this
6064 configuration is useful to you, please write to autoconf@gnu.org." >&5
6065 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6066 whose name does not start with the host triplet. If you think this
6067 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6068 ac_tool_warned=yes ;;
6069 esac
6070 OTOOL=$ac_ct_OTOOL
6072 else
6073 OTOOL="$ac_cv_prog_OTOOL"
6076 if test -n "$ac_tool_prefix"; then
6077 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6078 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6081 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084 if test -n "$OTOOL64"; then
6085 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6086 else
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH
6090 IFS=$as_save_IFS
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 break 2
6098 done
6099 done
6100 IFS=$as_save_IFS
6104 OTOOL64=$ac_cv_prog_OTOOL64
6105 if test -n "$OTOOL64"; then
6106 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6107 echo "${ECHO_T}$OTOOL64" >&6; }
6108 else
6109 { echo "$as_me:$LINENO: result: no" >&5
6110 echo "${ECHO_T}no" >&6; }
6115 if test -z "$ac_cv_prog_OTOOL64"; then
6116 ac_ct_OTOOL64=$OTOOL64
6117 # Extract the first word of "otool64", so it can be a program name with args.
6118 set dummy otool64; ac_word=$2
6119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6121 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124 if test -n "$ac_ct_OTOOL64"; then
6125 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6126 else
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH
6130 IFS=$as_save_IFS
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6134 ac_cv_prog_ac_ct_OTOOL64="otool64"
6135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 break 2
6138 done
6139 done
6140 IFS=$as_save_IFS
6144 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6145 if test -n "$ac_ct_OTOOL64"; then
6146 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6147 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6148 else
6149 { echo "$as_me:$LINENO: result: no" >&5
6150 echo "${ECHO_T}no" >&6; }
6153 if test "x$ac_ct_OTOOL64" = x; then
6154 OTOOL64=":"
6155 else
6156 case $cross_compiling:$ac_tool_warned in
6157 yes:)
6158 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6159 whose name does not start with the host triplet. If you think this
6160 configuration is useful to you, please write to autoconf@gnu.org." >&5
6161 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6162 whose name does not start with the host triplet. If you think this
6163 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6164 ac_tool_warned=yes ;;
6165 esac
6166 OTOOL64=$ac_ct_OTOOL64
6168 else
6169 OTOOL64="$ac_cv_prog_OTOOL64"
6198 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6199 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6200 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203 lt_cv_apple_cc_single_mod=no
6204 if test -z "${LT_MULTI_MODULE}"; then
6205 # By default we will add the -single_module flag. You can override
6206 # by either setting the environment variable LT_MULTI_MODULE
6207 # non-empty at configure time, or by adding -multi_module to the
6208 # link flags.
6209 rm -rf libconftest.dylib*
6210 echo "int foo(void){return 1;}" > conftest.c
6211 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6212 -dynamiclib -Wl,-single_module conftest.c" >&5
6213 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6214 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6215 _lt_result=$?
6216 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6217 lt_cv_apple_cc_single_mod=yes
6218 else
6219 cat conftest.err >&5
6221 rm -rf libconftest.dylib*
6222 rm -f conftest.*
6225 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6226 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6227 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6228 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6229 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 else
6232 lt_cv_ld_exported_symbols_list=no
6233 save_LDFLAGS=$LDFLAGS
6234 echo "_main" > conftest.sym
6235 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6236 cat >conftest.$ac_ext <<_ACEOF
6237 /* confdefs.h. */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6244 main ()
6248 return 0;
6250 _ACEOF
6251 rm -f conftest.$ac_objext conftest$ac_exeext
6252 if { (ac_try="$ac_link"
6253 case "(($ac_try" in
6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 *) ac_try_echo=$ac_try;;
6256 esac
6257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6258 (eval "$ac_link") 2>conftest.er1
6259 ac_status=$?
6260 grep -v '^ *+' conftest.er1 >conftest.err
6261 rm -f conftest.er1
6262 cat conftest.err >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } && {
6265 test -z "$ac_c_werror_flag" ||
6266 test ! -s conftest.err
6267 } && test -s conftest$ac_exeext &&
6268 $as_test_x conftest$ac_exeext; then
6269 lt_cv_ld_exported_symbols_list=yes
6270 else
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6274 lt_cv_ld_exported_symbols_list=no
6277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6278 conftest$ac_exeext conftest.$ac_ext
6279 LDFLAGS="$save_LDFLAGS"
6282 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6283 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6284 case $host_os in
6285 rhapsody* | darwin1.[012])
6286 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6287 darwin1.*)
6288 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6289 darwin*) # darwin 5.x on
6290 # if running on 10.5 or later, the deployment target defaults
6291 # to the OS version, if on x86, and 10.4, the deployment
6292 # target defaults to 10.4. Don't you love it?
6293 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6294 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6295 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6296 10.[012]*)
6297 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6298 10.*)
6299 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6300 esac
6302 esac
6303 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6304 _lt_dar_single_mod='$single_module'
6306 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6307 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6308 else
6309 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6311 if test "$DSYMUTIL" != ":"; then
6312 _lt_dsymutil='~$DSYMUTIL $lib || :'
6313 else
6314 _lt_dsymutil=
6317 esac
6319 ac_ext=c
6320 ac_cpp='$CPP $CPPFLAGS'
6321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6324 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6325 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6326 # On Suns, sometimes $CPP names a directory.
6327 if test -n "$CPP" && test -d "$CPP"; then
6328 CPP=
6330 if test -z "$CPP"; then
6331 if test "${ac_cv_prog_CPP+set}" = set; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
6333 else
6334 # Double quotes because CPP needs to be expanded
6335 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6337 ac_preproc_ok=false
6338 for ac_c_preproc_warn_flag in '' yes
6340 # Use a header file that comes with gcc, so configuring glibc
6341 # with a fresh cross-compiler works.
6342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6343 # <limits.h> exists even on freestanding compilers.
6344 # On the NeXT, cc -E runs the code through the compiler's parser,
6345 # not just through cpp. "Syntax error" is here to catch this case.
6346 cat >conftest.$ac_ext <<_ACEOF
6347 /* confdefs.h. */
6348 _ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6352 #ifdef __STDC__
6353 # include <limits.h>
6354 #else
6355 # include <assert.h>
6356 #endif
6357 Syntax error
6358 _ACEOF
6359 if { (ac_try="$ac_cpp conftest.$ac_ext"
6360 case "(($ac_try" in
6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6363 esac
6364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6366 ac_status=$?
6367 grep -v '^ *+' conftest.er1 >conftest.err
6368 rm -f conftest.er1
6369 cat conftest.err >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } >/dev/null && {
6372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6373 test ! -s conftest.err
6374 }; then
6376 else
6377 echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6380 # Broken: fails on valid input.
6381 continue
6384 rm -f conftest.err conftest.$ac_ext
6386 # OK, works on sane cases. Now check whether nonexistent headers
6387 # can be detected and how.
6388 cat >conftest.$ac_ext <<_ACEOF
6389 /* confdefs.h. */
6390 _ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6394 #include <ac_nonexistent.h>
6395 _ACEOF
6396 if { (ac_try="$ac_cpp conftest.$ac_ext"
6397 case "(($ac_try" in
6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6400 esac
6401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6403 ac_status=$?
6404 grep -v '^ *+' conftest.er1 >conftest.err
6405 rm -f conftest.er1
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } >/dev/null && {
6409 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6410 test ! -s conftest.err
6411 }; then
6412 # Broken: success on invalid input.
6413 continue
6414 else
6415 echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6418 # Passes both tests.
6419 ac_preproc_ok=:
6420 break
6423 rm -f conftest.err conftest.$ac_ext
6425 done
6426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6427 rm -f conftest.err conftest.$ac_ext
6428 if $ac_preproc_ok; then
6429 break
6432 done
6433 ac_cv_prog_CPP=$CPP
6436 CPP=$ac_cv_prog_CPP
6437 else
6438 ac_cv_prog_CPP=$CPP
6440 { echo "$as_me:$LINENO: result: $CPP" >&5
6441 echo "${ECHO_T}$CPP" >&6; }
6442 ac_preproc_ok=false
6443 for ac_c_preproc_warn_flag in '' yes
6445 # Use a header file that comes with gcc, so configuring glibc
6446 # with a fresh cross-compiler works.
6447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6448 # <limits.h> exists even on freestanding compilers.
6449 # On the NeXT, cc -E runs the code through the compiler's parser,
6450 # not just through cpp. "Syntax error" is here to catch this case.
6451 cat >conftest.$ac_ext <<_ACEOF
6452 /* confdefs.h. */
6453 _ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h. */
6457 #ifdef __STDC__
6458 # include <limits.h>
6459 #else
6460 # include <assert.h>
6461 #endif
6462 Syntax error
6463 _ACEOF
6464 if { (ac_try="$ac_cpp conftest.$ac_ext"
6465 case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6468 esac
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6471 ac_status=$?
6472 grep -v '^ *+' conftest.er1 >conftest.err
6473 rm -f conftest.er1
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } >/dev/null && {
6477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6478 test ! -s conftest.err
6479 }; then
6481 else
6482 echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6485 # Broken: fails on valid input.
6486 continue
6489 rm -f conftest.err conftest.$ac_ext
6491 # OK, works on sane cases. Now check whether nonexistent headers
6492 # can be detected and how.
6493 cat >conftest.$ac_ext <<_ACEOF
6494 /* confdefs.h. */
6495 _ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h. */
6499 #include <ac_nonexistent.h>
6500 _ACEOF
6501 if { (ac_try="$ac_cpp conftest.$ac_ext"
6502 case "(($ac_try" in
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6505 esac
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6508 ac_status=$?
6509 grep -v '^ *+' conftest.er1 >conftest.err
6510 rm -f conftest.er1
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } >/dev/null && {
6514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6515 test ! -s conftest.err
6516 }; then
6517 # Broken: success on invalid input.
6518 continue
6519 else
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6523 # Passes both tests.
6524 ac_preproc_ok=:
6525 break
6528 rm -f conftest.err conftest.$ac_ext
6530 done
6531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6532 rm -f conftest.err conftest.$ac_ext
6533 if $ac_preproc_ok; then
6535 else
6536 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6537 See \`config.log' for more details." >&5
6538 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6539 See \`config.log' for more details." >&2;}
6540 { (exit 1); exit 1; }; }
6543 ac_ext=c
6544 ac_cpp='$CPP $CPPFLAGS'
6545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6550 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6551 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6552 if test "${ac_cv_header_stdc+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555 cat >conftest.$ac_ext <<_ACEOF
6556 /* confdefs.h. */
6557 _ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h. */
6561 #include <stdlib.h>
6562 #include <stdarg.h>
6563 #include <string.h>
6564 #include <float.h>
6567 main ()
6571 return 0;
6573 _ACEOF
6574 rm -f conftest.$ac_objext
6575 if { (ac_try="$ac_compile"
6576 case "(($ac_try" in
6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578 *) ac_try_echo=$ac_try;;
6579 esac
6580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6581 (eval "$ac_compile") 2>conftest.er1
6582 ac_status=$?
6583 grep -v '^ *+' conftest.er1 >conftest.err
6584 rm -f conftest.er1
6585 cat conftest.err >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } && {
6588 test -z "$ac_c_werror_flag" ||
6589 test ! -s conftest.err
6590 } && test -s conftest.$ac_objext; then
6591 ac_cv_header_stdc=yes
6592 else
6593 echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6596 ac_cv_header_stdc=no
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 if test $ac_cv_header_stdc = yes; then
6602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6603 cat >conftest.$ac_ext <<_ACEOF
6604 /* confdefs.h. */
6605 _ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h. */
6609 #include <string.h>
6611 _ACEOF
6612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6613 $EGREP "memchr" >/dev/null 2>&1; then
6615 else
6616 ac_cv_header_stdc=no
6618 rm -f conftest*
6622 if test $ac_cv_header_stdc = yes; then
6623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6624 cat >conftest.$ac_ext <<_ACEOF
6625 /* confdefs.h. */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 #include <stdlib.h>
6632 _ACEOF
6633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6634 $EGREP "free" >/dev/null 2>&1; then
6636 else
6637 ac_cv_header_stdc=no
6639 rm -f conftest*
6643 if test $ac_cv_header_stdc = yes; then
6644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6645 if test "$cross_compiling" = yes; then
6647 else
6648 cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h. */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6654 #include <ctype.h>
6655 #include <stdlib.h>
6656 #if ((' ' & 0x0FF) == 0x020)
6657 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6658 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6659 #else
6660 # define ISLOWER(c) \
6661 (('a' <= (c) && (c) <= 'i') \
6662 || ('j' <= (c) && (c) <= 'r') \
6663 || ('s' <= (c) && (c) <= 'z'))
6664 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6665 #endif
6667 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6669 main ()
6671 int i;
6672 for (i = 0; i < 256; i++)
6673 if (XOR (islower (i), ISLOWER (i))
6674 || toupper (i) != TOUPPER (i))
6675 return 2;
6676 return 0;
6678 _ACEOF
6679 rm -f conftest$ac_exeext
6680 if { (ac_try="$ac_link"
6681 case "(($ac_try" in
6682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6683 *) ac_try_echo=$ac_try;;
6684 esac
6685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6686 (eval "$ac_link") 2>&5
6687 ac_status=$?
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6690 { (case "(($ac_try" in
6691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6693 esac
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_try") 2>&5
6696 ac_status=$?
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6700 else
6701 echo "$as_me: program exited with status $ac_status" >&5
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6705 ( exit $ac_status )
6706 ac_cv_header_stdc=no
6708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6714 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6715 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6716 if test $ac_cv_header_stdc = yes; then
6718 cat >>confdefs.h <<\_ACEOF
6719 #define STDC_HEADERS 1
6720 _ACEOF
6724 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6734 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6735 inttypes.h stdint.h unistd.h
6737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 else
6743 cat >conftest.$ac_ext <<_ACEOF
6744 /* confdefs.h. */
6745 _ACEOF
6746 cat confdefs.h >>conftest.$ac_ext
6747 cat >>conftest.$ac_ext <<_ACEOF
6748 /* end confdefs.h. */
6749 $ac_includes_default
6751 #include <$ac_header>
6752 _ACEOF
6753 rm -f conftest.$ac_objext
6754 if { (ac_try="$ac_compile"
6755 case "(($ac_try" in
6756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6757 *) ac_try_echo=$ac_try;;
6758 esac
6759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6760 (eval "$ac_compile") 2>conftest.er1
6761 ac_status=$?
6762 grep -v '^ *+' conftest.er1 >conftest.err
6763 rm -f conftest.er1
6764 cat conftest.err >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } && {
6767 test -z "$ac_c_werror_flag" ||
6768 test ! -s conftest.err
6769 } && test -s conftest.$ac_objext; then
6770 eval "$as_ac_Header=yes"
6771 else
6772 echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6775 eval "$as_ac_Header=no"
6778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780 ac_res=`eval echo '${'$as_ac_Header'}'`
6781 { echo "$as_me:$LINENO: result: $ac_res" >&5
6782 echo "${ECHO_T}$ac_res" >&6; }
6783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6784 cat >>confdefs.h <<_ACEOF
6785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6786 _ACEOF
6790 done
6794 for ac_header in dlfcn.h
6796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802 cat >conftest.$ac_ext <<_ACEOF
6803 /* confdefs.h. */
6804 _ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6808 $ac_includes_default
6810 #include <$ac_header>
6811 _ACEOF
6812 rm -f conftest.$ac_objext
6813 if { (ac_try="$ac_compile"
6814 case "(($ac_try" in
6815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6816 *) ac_try_echo=$ac_try;;
6817 esac
6818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6819 (eval "$ac_compile") 2>conftest.er1
6820 ac_status=$?
6821 grep -v '^ *+' conftest.er1 >conftest.err
6822 rm -f conftest.er1
6823 cat conftest.err >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } && {
6826 test -z "$ac_c_werror_flag" ||
6827 test ! -s conftest.err
6828 } && test -s conftest.$ac_objext; then
6829 eval "$as_ac_Header=yes"
6830 else
6831 echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6834 eval "$as_ac_Header=no"
6837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839 ac_res=`eval echo '${'$as_ac_Header'}'`
6840 { echo "$as_me:$LINENO: result: $ac_res" >&5
6841 echo "${ECHO_T}$ac_res" >&6; }
6842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6843 cat >>confdefs.h <<_ACEOF
6844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6845 _ACEOF
6849 done
6853 # Set options
6857 enable_dlopen=no
6860 enable_win32_dll=no
6863 # Check whether --enable-shared was given.
6864 if test "${enable_shared+set}" = set; then
6865 enableval=$enable_shared; p=${PACKAGE-default}
6866 case $enableval in
6867 yes) enable_shared=yes ;;
6868 no) enable_shared=no ;;
6870 enable_shared=no
6871 # Look at the argument we got. We use all the common list separators.
6872 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6873 for pkg in $enableval; do
6874 IFS="$lt_save_ifs"
6875 if test "X$pkg" = "X$p"; then
6876 enable_shared=yes
6878 done
6879 IFS="$lt_save_ifs"
6881 esac
6882 else
6883 enable_shared=yes
6894 # Check whether --enable-static was given.
6895 if test "${enable_static+set}" = set; then
6896 enableval=$enable_static; p=${PACKAGE-default}
6897 case $enableval in
6898 yes) enable_static=yes ;;
6899 no) enable_static=no ;;
6901 enable_static=no
6902 # Look at the argument we got. We use all the common list separators.
6903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6904 for pkg in $enableval; do
6905 IFS="$lt_save_ifs"
6906 if test "X$pkg" = "X$p"; then
6907 enable_static=yes
6909 done
6910 IFS="$lt_save_ifs"
6912 esac
6913 else
6914 enable_static=yes
6926 # Check whether --with-pic was given.
6927 if test "${with_pic+set}" = set; then
6928 withval=$with_pic; pic_mode="$withval"
6929 else
6930 pic_mode=default
6934 test -z "$pic_mode" && pic_mode=default
6942 # Check whether --enable-fast-install was given.
6943 if test "${enable_fast_install+set}" = set; then
6944 enableval=$enable_fast_install; p=${PACKAGE-default}
6945 case $enableval in
6946 yes) enable_fast_install=yes ;;
6947 no) enable_fast_install=no ;;
6949 enable_fast_install=no
6950 # Look at the argument we got. We use all the common list separators.
6951 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6952 for pkg in $enableval; do
6953 IFS="$lt_save_ifs"
6954 if test "X$pkg" = "X$p"; then
6955 enable_fast_install=yes
6957 done
6958 IFS="$lt_save_ifs"
6960 esac
6961 else
6962 enable_fast_install=yes
6975 # This can be used to rebuild libtool when needed
6976 LIBTOOL_DEPS="$ltmain"
6978 # Always use our own libtool.
6979 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7005 test -z "$LN_S" && LN_S="ln -s"
7020 if test -n "${ZSH_VERSION+set}" ; then
7021 setopt NO_GLOB_SUBST
7024 { echo "$as_me:$LINENO: checking for objdir" >&5
7025 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7026 if test "${lt_cv_objdir+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029 rm -f .libs 2>/dev/null
7030 mkdir .libs 2>/dev/null
7031 if test -d .libs; then
7032 lt_cv_objdir=.libs
7033 else
7034 # MS-DOS does not allow filenames that begin with a dot.
7035 lt_cv_objdir=_libs
7037 rmdir .libs 2>/dev/null
7039 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7040 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7041 objdir=$lt_cv_objdir
7047 cat >>confdefs.h <<_ACEOF
7048 #define LT_OBJDIR "$lt_cv_objdir/"
7049 _ACEOF
7067 case $host_os in
7068 aix3*)
7069 # AIX sometimes has problems with the GCC collect2 program. For some
7070 # reason, if we set the COLLECT_NAMES environment variable, the problems
7071 # vanish in a puff of smoke.
7072 if test "X${COLLECT_NAMES+set}" != Xset; then
7073 COLLECT_NAMES=
7074 export COLLECT_NAMES
7077 esac
7079 # Sed substitution that helps us do robust quoting. It backslashifies
7080 # metacharacters that are still active within double-quoted strings.
7081 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7083 # Same as above, but do not quote variable references.
7084 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7086 # Sed substitution to delay expansion of an escaped shell variable in a
7087 # double_quote_subst'ed string.
7088 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7090 # Sed substitution to delay expansion of an escaped single quote.
7091 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7093 # Sed substitution to avoid accidental globbing in evaled expressions
7094 no_glob_subst='s/\*/\\\*/g'
7096 # Global variables:
7097 ofile=libtool
7098 can_build_shared=yes
7100 # All known linkers require a `.a' archive for static linking (except MSVC,
7101 # which needs '.lib').
7102 libext=a
7104 with_gnu_ld="$lt_cv_prog_gnu_ld"
7106 old_CC="$CC"
7107 old_CFLAGS="$CFLAGS"
7109 # Set sane defaults for various variables
7110 test -z "$CC" && CC=cc
7111 test -z "$LTCC" && LTCC=$CC
7112 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7113 test -z "$LD" && LD=ld
7114 test -z "$ac_objext" && ac_objext=o
7116 for cc_temp in $compiler""; do
7117 case $cc_temp in
7118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7120 \-*) ;;
7121 *) break;;
7122 esac
7123 done
7124 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7127 # Only perform the check for file, if the check method requires it
7128 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7129 case $deplibs_check_method in
7130 file_magic*)
7131 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7132 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7133 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7134 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137 case $MAGIC_CMD in
7138 [\\/*] | ?:[\\/]*)
7139 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7142 lt_save_MAGIC_CMD="$MAGIC_CMD"
7143 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7144 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7145 for ac_dir in $ac_dummy; do
7146 IFS="$lt_save_ifs"
7147 test -z "$ac_dir" && ac_dir=.
7148 if test -f $ac_dir/${ac_tool_prefix}file; then
7149 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7150 if test -n "$file_magic_test_file"; then
7151 case $deplibs_check_method in
7152 "file_magic "*)
7153 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7155 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7156 $EGREP "$file_magic_regex" > /dev/null; then
7158 else
7159 cat <<_LT_EOF 1>&2
7161 *** Warning: the command libtool uses to detect shared libraries,
7162 *** $file_magic_cmd, produces output that libtool cannot recognize.
7163 *** The result is that libtool may fail to recognize shared libraries
7164 *** as such. This will affect the creation of libtool libraries that
7165 *** depend on shared libraries, but programs linked with such libtool
7166 *** libraries will work regardless of this problem. Nevertheless, you
7167 *** may want to report the problem to your system manager and/or to
7168 *** bug-libtool@gnu.org
7170 _LT_EOF
7171 fi ;;
7172 esac
7174 break
7176 done
7177 IFS="$lt_save_ifs"
7178 MAGIC_CMD="$lt_save_MAGIC_CMD"
7180 esac
7183 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7184 if test -n "$MAGIC_CMD"; then
7185 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7186 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7187 else
7188 { echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6; }
7196 if test -z "$lt_cv_path_MAGIC_CMD"; then
7197 if test -n "$ac_tool_prefix"; then
7198 { echo "$as_me:$LINENO: checking for file" >&5
7199 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7200 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 else
7203 case $MAGIC_CMD in
7204 [\\/*] | ?:[\\/]*)
7205 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7208 lt_save_MAGIC_CMD="$MAGIC_CMD"
7209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7210 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7211 for ac_dir in $ac_dummy; do
7212 IFS="$lt_save_ifs"
7213 test -z "$ac_dir" && ac_dir=.
7214 if test -f $ac_dir/file; then
7215 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7216 if test -n "$file_magic_test_file"; then
7217 case $deplibs_check_method in
7218 "file_magic "*)
7219 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7220 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7221 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7222 $EGREP "$file_magic_regex" > /dev/null; then
7224 else
7225 cat <<_LT_EOF 1>&2
7227 *** Warning: the command libtool uses to detect shared libraries,
7228 *** $file_magic_cmd, produces output that libtool cannot recognize.
7229 *** The result is that libtool may fail to recognize shared libraries
7230 *** as such. This will affect the creation of libtool libraries that
7231 *** depend on shared libraries, but programs linked with such libtool
7232 *** libraries will work regardless of this problem. Nevertheless, you
7233 *** may want to report the problem to your system manager and/or to
7234 *** bug-libtool@gnu.org
7236 _LT_EOF
7237 fi ;;
7238 esac
7240 break
7242 done
7243 IFS="$lt_save_ifs"
7244 MAGIC_CMD="$lt_save_MAGIC_CMD"
7246 esac
7249 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7250 if test -n "$MAGIC_CMD"; then
7251 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7252 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7253 else
7254 { echo "$as_me:$LINENO: result: no" >&5
7255 echo "${ECHO_T}no" >&6; }
7259 else
7260 MAGIC_CMD=:
7266 esac
7268 # Use C for the default configuration in the libtool script
7270 lt_save_CC="$CC"
7271 ac_ext=c
7272 ac_cpp='$CPP $CPPFLAGS'
7273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7278 # Source file extension for C test sources.
7279 ac_ext=c
7281 # Object file extension for compiled C test sources.
7282 objext=o
7283 objext=$objext
7285 # Code to be used in simple compile tests
7286 lt_simple_compile_test_code="int some_variable = 0;"
7288 # Code to be used in simple link tests
7289 lt_simple_link_test_code='int main(){return(0);}'
7297 # If no C compiler was specified, use CC.
7298 LTCC=${LTCC-"$CC"}
7300 # If no C compiler flags were specified, use CFLAGS.
7301 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7303 # Allow CC to be a program name with arguments.
7304 compiler=$CC
7306 # Save the default compiler, since it gets overwritten when the other
7307 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7308 compiler_DEFAULT=$CC
7310 # save warnings/boilerplate of simple test code
7311 ac_outfile=conftest.$ac_objext
7312 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7313 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7314 _lt_compiler_boilerplate=`cat conftest.err`
7315 $RM conftest*
7317 ac_outfile=conftest.$ac_objext
7318 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7319 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7320 _lt_linker_boilerplate=`cat conftest.err`
7321 $RM -r conftest*
7324 ## CAVEAT EMPTOR:
7325 ## There is no encapsulation within the following macros, do not change
7326 ## the running order or otherwise move them around unless you know exactly
7327 ## what you are doing...
7328 if test -n "$compiler"; then
7330 lt_prog_compiler_no_builtin_flag=
7332 if test "$GCC" = yes; then
7333 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7335 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7336 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7337 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340 lt_cv_prog_compiler_rtti_exceptions=no
7341 ac_outfile=conftest.$ac_objext
7342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7343 lt_compiler_flag="-fno-rtti -fno-exceptions"
7344 # Insert the option either (1) after the last *FLAGS variable, or
7345 # (2) before a word containing "conftest.", or (3) at the end.
7346 # Note that $ac_compile itself does not contain backslashes and begins
7347 # with a dollar sign (not a hyphen), so the echo should work correctly.
7348 # The option is referenced via a variable to avoid confusing sed.
7349 lt_compile=`echo "$ac_compile" | $SED \
7350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7352 -e 's:$: $lt_compiler_flag:'`
7353 (eval echo "\"\$as_me:7353: $lt_compile\"" >&5)
7354 (eval "$lt_compile" 2>conftest.err)
7355 ac_status=$?
7356 cat conftest.err >&5
7357 echo "$as_me:7357: \$? = $ac_status" >&5
7358 if (exit $ac_status) && test -s "$ac_outfile"; then
7359 # The compiler can only warn and ignore the option if not recognized
7360 # So say no if there are warnings other than the usual output.
7361 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7363 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7364 lt_cv_prog_compiler_rtti_exceptions=yes
7367 $RM conftest*
7370 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7371 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7373 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7374 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7375 else
7386 lt_prog_compiler_wl=
7387 lt_prog_compiler_pic=
7388 lt_prog_compiler_static=
7390 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7391 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7393 if test "$GCC" = yes; then
7394 lt_prog_compiler_wl='-Wl,'
7395 lt_prog_compiler_static='-static'
7397 case $host_os in
7398 aix*)
7399 # All AIX code is PIC.
7400 if test "$host_cpu" = ia64; then
7401 # AIX 5 now supports IA64 processor
7402 lt_prog_compiler_static='-Bstatic'
7406 amigaos*)
7407 case $host_cpu in
7408 powerpc)
7409 # see comment about AmigaOS4 .so support
7410 lt_prog_compiler_pic='-fPIC'
7412 m68k)
7413 # FIXME: we need at least 68020 code to build shared libraries, but
7414 # adding the `-m68020' flag to GCC prevents building anything better,
7415 # like `-m68040'.
7416 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7418 esac
7421 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7422 # PIC is the default for these OSes.
7425 mingw* | cygwin* | pw32* | os2* | cegcc*)
7426 # This hack is so that the source file can tell whether it is being
7427 # built for inclusion in a dll (and should export symbols for example).
7428 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7429 # (--disable-auto-import) libraries
7430 lt_prog_compiler_pic='-DDLL_EXPORT'
7433 darwin* | rhapsody*)
7434 # PIC is the default on this platform
7435 # Common symbols not allowed in MH_DYLIB files
7436 lt_prog_compiler_pic='-fno-common'
7439 hpux*)
7440 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7441 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7442 # sets the default TLS model and affects inlining.
7443 case $host_cpu in
7444 hppa*64*)
7445 # +Z the default
7448 lt_prog_compiler_pic='-fPIC'
7450 esac
7453 interix[3-9]*)
7454 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7455 # Instead, we relocate shared libraries at runtime.
7458 msdosdjgpp*)
7459 # Just because we use GCC doesn't mean we suddenly get shared libraries
7460 # on systems that don't support them.
7461 lt_prog_compiler_can_build_shared=no
7462 enable_shared=no
7465 *nto* | *qnx*)
7466 # QNX uses GNU C++, but need to define -shared option too, otherwise
7467 # it will coredump.
7468 lt_prog_compiler_pic='-fPIC -shared'
7471 sysv4*MP*)
7472 if test -d /usr/nec; then
7473 lt_prog_compiler_pic=-Kconform_pic
7478 lt_prog_compiler_pic='-fPIC'
7480 esac
7481 else
7482 # PORTME Check for flag to pass linker flags through the system compiler.
7483 case $host_os in
7484 aix*)
7485 lt_prog_compiler_wl='-Wl,'
7486 if test "$host_cpu" = ia64; then
7487 # AIX 5 now supports IA64 processor
7488 lt_prog_compiler_static='-Bstatic'
7489 else
7490 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7494 mingw* | cygwin* | pw32* | os2* | cegcc*)
7495 # This hack is so that the source file can tell whether it is being
7496 # built for inclusion in a dll (and should export symbols for example).
7497 lt_prog_compiler_pic='-DDLL_EXPORT'
7500 hpux9* | hpux10* | hpux11*)
7501 lt_prog_compiler_wl='-Wl,'
7502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7503 # not for PA HP-UX.
7504 case $host_cpu in
7505 hppa*64*|ia64*)
7506 # +Z the default
7509 lt_prog_compiler_pic='+Z'
7511 esac
7512 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7513 lt_prog_compiler_static='${wl}-a ${wl}archive'
7516 irix5* | irix6* | nonstopux*)
7517 lt_prog_compiler_wl='-Wl,'
7518 # PIC (with -KPIC) is the default.
7519 lt_prog_compiler_static='-non_shared'
7522 linux* | k*bsd*-gnu)
7523 case $cc_basename in
7524 # old Intel for x86_64 which still supported -KPIC.
7525 ecc*)
7526 lt_prog_compiler_wl='-Wl,'
7527 lt_prog_compiler_pic='-KPIC'
7528 lt_prog_compiler_static='-static'
7530 # icc used to be incompatible with GCC.
7531 # ICC 10 doesn't accept -KPIC any more.
7532 icc* | ifort*)
7533 lt_prog_compiler_wl='-Wl,'
7534 lt_prog_compiler_pic='-fPIC'
7535 lt_prog_compiler_static='-static'
7537 # Lahey Fortran 8.1.
7538 lf95*)
7539 lt_prog_compiler_wl='-Wl,'
7540 lt_prog_compiler_pic='--shared'
7541 lt_prog_compiler_static='--static'
7543 pgcc* | pgf77* | pgf90* | pgf95*)
7544 # Portland Group compilers (*not* the Pentium gcc compiler,
7545 # which looks to be a dead project)
7546 lt_prog_compiler_wl='-Wl,'
7547 lt_prog_compiler_pic='-fpic'
7548 lt_prog_compiler_static='-Bstatic'
7550 ccc*)
7551 lt_prog_compiler_wl='-Wl,'
7552 # All Alpha code is PIC.
7553 lt_prog_compiler_static='-non_shared'
7555 xl*)
7556 # IBM XL C 8.0/Fortran 10.1 on PPC
7557 lt_prog_compiler_wl='-Wl,'
7558 lt_prog_compiler_pic='-qpic'
7559 lt_prog_compiler_static='-qstaticlink'
7562 case `$CC -V 2>&1 | sed 5q` in
7563 *Sun\ C*)
7564 # Sun C 5.9
7565 lt_prog_compiler_pic='-KPIC'
7566 lt_prog_compiler_static='-Bstatic'
7567 lt_prog_compiler_wl='-Wl,'
7569 *Sun\ F*)
7570 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7571 lt_prog_compiler_pic='-KPIC'
7572 lt_prog_compiler_static='-Bstatic'
7573 lt_prog_compiler_wl=''
7575 esac
7577 esac
7580 newsos6)
7581 lt_prog_compiler_pic='-KPIC'
7582 lt_prog_compiler_static='-Bstatic'
7585 *nto* | *qnx*)
7586 # QNX uses GNU C++, but need to define -shared option too, otherwise
7587 # it will coredump.
7588 lt_prog_compiler_pic='-fPIC -shared'
7591 osf3* | osf4* | osf5*)
7592 lt_prog_compiler_wl='-Wl,'
7593 # All OSF/1 code is PIC.
7594 lt_prog_compiler_static='-non_shared'
7597 rdos*)
7598 lt_prog_compiler_static='-non_shared'
7601 solaris*)
7602 lt_prog_compiler_pic='-KPIC'
7603 lt_prog_compiler_static='-Bstatic'
7604 case $cc_basename in
7605 f77* | f90* | f95*)
7606 lt_prog_compiler_wl='-Qoption ld ';;
7608 lt_prog_compiler_wl='-Wl,';;
7609 esac
7612 sunos4*)
7613 lt_prog_compiler_wl='-Qoption ld '
7614 lt_prog_compiler_pic='-PIC'
7615 lt_prog_compiler_static='-Bstatic'
7618 sysv4 | sysv4.2uw2* | sysv4.3*)
7619 lt_prog_compiler_wl='-Wl,'
7620 lt_prog_compiler_pic='-KPIC'
7621 lt_prog_compiler_static='-Bstatic'
7624 sysv4*MP*)
7625 if test -d /usr/nec ;then
7626 lt_prog_compiler_pic='-Kconform_pic'
7627 lt_prog_compiler_static='-Bstatic'
7631 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7632 lt_prog_compiler_wl='-Wl,'
7633 lt_prog_compiler_pic='-KPIC'
7634 lt_prog_compiler_static='-Bstatic'
7637 unicos*)
7638 lt_prog_compiler_wl='-Wl,'
7639 lt_prog_compiler_can_build_shared=no
7642 uts4*)
7643 lt_prog_compiler_pic='-pic'
7644 lt_prog_compiler_static='-Bstatic'
7648 lt_prog_compiler_can_build_shared=no
7650 esac
7653 case $host_os in
7654 # For platforms which do not support PIC, -DPIC is meaningless:
7655 *djgpp*)
7656 lt_prog_compiler_pic=
7659 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7661 esac
7662 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7663 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7671 # Check to make sure the PIC flag actually works.
7673 if test -n "$lt_prog_compiler_pic"; then
7674 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7675 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7676 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679 lt_cv_prog_compiler_pic_works=no
7680 ac_outfile=conftest.$ac_objext
7681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7682 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7683 # Insert the option either (1) after the last *FLAGS variable, or
7684 # (2) before a word containing "conftest.", or (3) at the end.
7685 # Note that $ac_compile itself does not contain backslashes and begins
7686 # with a dollar sign (not a hyphen), so the echo should work correctly.
7687 # The option is referenced via a variable to avoid confusing sed.
7688 lt_compile=`echo "$ac_compile" | $SED \
7689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7691 -e 's:$: $lt_compiler_flag:'`
7692 (eval echo "\"\$as_me:7692: $lt_compile\"" >&5)
7693 (eval "$lt_compile" 2>conftest.err)
7694 ac_status=$?
7695 cat conftest.err >&5
7696 echo "$as_me:7696: \$? = $ac_status" >&5
7697 if (exit $ac_status) && test -s "$ac_outfile"; then
7698 # The compiler can only warn and ignore the option if not recognized
7699 # So say no if there are warnings other than the usual output.
7700 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7703 lt_cv_prog_compiler_pic_works=yes
7706 $RM conftest*
7709 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7710 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7712 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7713 case $lt_prog_compiler_pic in
7714 "" | " "*) ;;
7715 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7716 esac
7717 else
7718 lt_prog_compiler_pic=
7719 lt_prog_compiler_can_build_shared=no
7730 # Check to make sure the static flag actually works.
7732 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7733 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7734 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7735 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 else
7738 lt_cv_prog_compiler_static_works=no
7739 save_LDFLAGS="$LDFLAGS"
7740 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7741 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7742 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7743 # The linker can only warn and ignore the option if not recognized
7744 # So say no if there are warnings
7745 if test -s conftest.err; then
7746 # Append any errors to the config.log.
7747 cat conftest.err 1>&5
7748 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7749 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7750 if diff conftest.exp conftest.er2 >/dev/null; then
7751 lt_cv_prog_compiler_static_works=yes
7753 else
7754 lt_cv_prog_compiler_static_works=yes
7757 $RM -r conftest*
7758 LDFLAGS="$save_LDFLAGS"
7761 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7762 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7764 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7766 else
7767 lt_prog_compiler_static=
7776 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7777 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7778 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781 lt_cv_prog_compiler_c_o=no
7782 $RM -r conftest 2>/dev/null
7783 mkdir conftest
7784 cd conftest
7785 mkdir out
7786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7788 lt_compiler_flag="-o out/conftest2.$ac_objext"
7789 # Insert the option either (1) after the last *FLAGS variable, or
7790 # (2) before a word containing "conftest.", or (3) at the end.
7791 # Note that $ac_compile itself does not contain backslashes and begins
7792 # with a dollar sign (not a hyphen), so the echo should work correctly.
7793 lt_compile=`echo "$ac_compile" | $SED \
7794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7796 -e 's:$: $lt_compiler_flag:'`
7797 (eval echo "\"\$as_me:7797: $lt_compile\"" >&5)
7798 (eval "$lt_compile" 2>out/conftest.err)
7799 ac_status=$?
7800 cat out/conftest.err >&5
7801 echo "$as_me:7801: \$? = $ac_status" >&5
7802 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7803 then
7804 # The compiler can only warn and ignore the option if not recognized
7805 # So say no if there are warnings
7806 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7807 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7808 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7809 lt_cv_prog_compiler_c_o=yes
7812 chmod u+w . 2>&5
7813 $RM conftest*
7814 # SGI C++ compiler will create directory out/ii_files/ for
7815 # template instantiation
7816 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7817 $RM out/* && rmdir out
7818 cd ..
7819 $RM -r conftest
7820 $RM conftest*
7823 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7824 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7831 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7832 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7833 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836 lt_cv_prog_compiler_c_o=no
7837 $RM -r conftest 2>/dev/null
7838 mkdir conftest
7839 cd conftest
7840 mkdir out
7841 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7843 lt_compiler_flag="-o out/conftest2.$ac_objext"
7844 # Insert the option either (1) after the last *FLAGS variable, or
7845 # (2) before a word containing "conftest.", or (3) at the end.
7846 # Note that $ac_compile itself does not contain backslashes and begins
7847 # with a dollar sign (not a hyphen), so the echo should work correctly.
7848 lt_compile=`echo "$ac_compile" | $SED \
7849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7851 -e 's:$: $lt_compiler_flag:'`
7852 (eval echo "\"\$as_me:7852: $lt_compile\"" >&5)
7853 (eval "$lt_compile" 2>out/conftest.err)
7854 ac_status=$?
7855 cat out/conftest.err >&5
7856 echo "$as_me:7856: \$? = $ac_status" >&5
7857 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7858 then
7859 # The compiler can only warn and ignore the option if not recognized
7860 # So say no if there are warnings
7861 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7862 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7863 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7864 lt_cv_prog_compiler_c_o=yes
7867 chmod u+w . 2>&5
7868 $RM conftest*
7869 # SGI C++ compiler will create directory out/ii_files/ for
7870 # template instantiation
7871 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7872 $RM out/* && rmdir out
7873 cd ..
7874 $RM -r conftest
7875 $RM conftest*
7878 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7879 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7884 hard_links="nottested"
7885 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7886 # do not overwrite the value of need_locks provided by the user
7887 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7888 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7889 hard_links=yes
7890 $RM conftest*
7891 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7892 touch conftest.a
7893 ln conftest.a conftest.b 2>&5 || hard_links=no
7894 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7895 { echo "$as_me:$LINENO: result: $hard_links" >&5
7896 echo "${ECHO_T}$hard_links" >&6; }
7897 if test "$hard_links" = no; then
7898 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7899 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7900 need_locks=warn
7902 else
7903 need_locks=no
7911 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7912 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7914 runpath_var=
7915 allow_undefined_flag=
7916 always_export_symbols=no
7917 archive_cmds=
7918 archive_expsym_cmds=
7919 compiler_needs_object=no
7920 enable_shared_with_static_runtimes=no
7921 export_dynamic_flag_spec=
7922 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7923 hardcode_automatic=no
7924 hardcode_direct=no
7925 hardcode_direct_absolute=no
7926 hardcode_libdir_flag_spec=
7927 hardcode_libdir_flag_spec_ld=
7928 hardcode_libdir_separator=
7929 hardcode_minus_L=no
7930 hardcode_shlibpath_var=unsupported
7931 inherit_rpath=no
7932 link_all_deplibs=unknown
7933 module_cmds=
7934 module_expsym_cmds=
7935 old_archive_from_new_cmds=
7936 old_archive_from_expsyms_cmds=
7937 thread_safe_flag_spec=
7938 whole_archive_flag_spec=
7939 # include_expsyms should be a list of space-separated symbols to be *always*
7940 # included in the symbol list
7941 include_expsyms=
7942 # exclude_expsyms can be an extended regexp of symbols to exclude
7943 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7944 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7945 # as well as any symbol that contains `d'.
7946 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7947 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7948 # platforms (ab)use it in PIC code, but their linkers get confused if
7949 # the symbol is explicitly referenced. Since portable code cannot
7950 # rely on this symbol name, it's probably fine to never include it in
7951 # preloaded symbol tables.
7952 # Exclude shared library initialization/finalization symbols.
7953 extract_expsyms_cmds=
7955 case $host_os in
7956 cygwin* | mingw* | pw32* | cegcc*)
7957 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7958 # When not using gcc, we currently assume that we are using
7959 # Microsoft Visual C++.
7960 if test "$GCC" != yes; then
7961 with_gnu_ld=no
7964 interix*)
7965 # we just hope/assume this is gcc and not c89 (= MSVC++)
7966 with_gnu_ld=yes
7968 openbsd*)
7969 with_gnu_ld=no
7971 esac
7973 ld_shlibs=yes
7974 if test "$with_gnu_ld" = yes; then
7975 # If archive_cmds runs LD, not CC, wlarc should be empty
7976 wlarc='${wl}'
7978 # Set some defaults for GNU ld with shared library support. These
7979 # are reset later if shared libraries are not supported. Putting them
7980 # here allows them to be overridden if necessary.
7981 runpath_var=LD_RUN_PATH
7982 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7983 export_dynamic_flag_spec='${wl}--export-dynamic'
7984 # ancient GNU ld didn't support --whole-archive et. al.
7985 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7986 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7987 else
7988 whole_archive_flag_spec=
7990 supports_anon_versioning=no
7991 case `$LD -v 2>&1` in
7992 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7993 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7994 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7995 *\ 2.11.*) ;; # other 2.11 versions
7996 *) supports_anon_versioning=yes ;;
7997 esac
7999 # See if GNU ld supports shared libraries.
8000 case $host_os in
8001 aix[3-9]*)
8002 # On AIX/PPC, the GNU linker is very broken
8003 if test "$host_cpu" != ia64; then
8004 ld_shlibs=no
8005 cat <<_LT_EOF 1>&2
8007 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8008 *** to be unable to reliably create shared libraries on AIX.
8009 *** Therefore, libtool is disabling shared libraries support. If you
8010 *** really care for shared libraries, you may want to modify your PATH
8011 *** so that a non-GNU linker is found, and then restart.
8013 _LT_EOF
8017 amigaos*)
8018 case $host_cpu in
8019 powerpc)
8020 # see comment about AmigaOS4 .so support
8021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8022 archive_expsym_cmds=''
8024 m68k)
8025 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)'
8026 hardcode_libdir_flag_spec='-L$libdir'
8027 hardcode_minus_L=yes
8029 esac
8032 beos*)
8033 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8034 allow_undefined_flag=unsupported
8035 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8036 # support --undefined. This deserves some investigation. FIXME
8037 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8038 else
8039 ld_shlibs=no
8043 cygwin* | mingw* | pw32* | cegcc*)
8044 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8045 # as there is no search path for DLLs.
8046 hardcode_libdir_flag_spec='-L$libdir'
8047 allow_undefined_flag=unsupported
8048 always_export_symbols=no
8049 enable_shared_with_static_runtimes=yes
8050 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8052 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8054 # If the export-symbols file already is a .def file (1st line
8055 # is EXPORTS), use it as is; otherwise, prepend...
8056 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8057 cp $export_symbols $output_objdir/$soname.def;
8058 else
8059 echo EXPORTS > $output_objdir/$soname.def;
8060 cat $export_symbols >> $output_objdir/$soname.def;
8062 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8063 else
8064 ld_shlibs=no
8068 interix[3-9]*)
8069 hardcode_direct=no
8070 hardcode_shlibpath_var=no
8071 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8072 export_dynamic_flag_spec='${wl}-E'
8073 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8074 # Instead, shared libraries are loaded at an image base (0x10000000 by
8075 # default) and relocated if they conflict, which is a slow very memory
8076 # consuming and fragmenting process. To avoid this, we pick a random,
8077 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8078 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8079 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8080 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'
8083 gnu* | linux* | tpf* | k*bsd*-gnu)
8084 tmp_diet=no
8085 if test "$host_os" = linux-dietlibc; then
8086 case $cc_basename in
8087 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8088 esac
8090 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8091 && test "$tmp_diet" = no
8092 then
8093 tmp_addflag=
8094 tmp_sharedflag='-shared'
8095 case $cc_basename,$host_cpu in
8096 pgcc*) # Portland Group C compiler
8097 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'
8098 tmp_addflag=' $pic_flag'
8100 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8101 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'
8102 tmp_addflag=' $pic_flag -Mnomain' ;;
8103 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8104 tmp_addflag=' -i_dynamic' ;;
8105 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8106 tmp_addflag=' -i_dynamic -nofor_main' ;;
8107 ifc* | ifort*) # Intel Fortran compiler
8108 tmp_addflag=' -nofor_main' ;;
8109 lf95*) # Lahey Fortran 8.1
8110 whole_archive_flag_spec=
8111 tmp_sharedflag='--shared' ;;
8112 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8113 tmp_sharedflag='-qmkshrobj'
8114 tmp_addflag= ;;
8115 esac
8116 case `$CC -V 2>&1 | sed 5q` in
8117 *Sun\ C*) # Sun C 5.9
8118 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'
8119 compiler_needs_object=yes
8120 tmp_sharedflag='-G' ;;
8121 *Sun\ F*) # Sun Fortran 8.3
8122 tmp_sharedflag='-G' ;;
8123 esac
8124 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8126 if test "x$supports_anon_versioning" = xyes; then
8127 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8128 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8129 echo "local: *; };" >> $output_objdir/$libname.ver~
8130 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8133 case $cc_basename in
8134 xlf*)
8135 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8136 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8137 hardcode_libdir_flag_spec=
8138 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8139 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8140 if test "x$supports_anon_versioning" = xyes; then
8141 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8142 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8143 echo "local: *; };" >> $output_objdir/$libname.ver~
8144 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8147 esac
8148 else
8149 ld_shlibs=no
8153 netbsd*)
8154 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8155 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8156 wlarc=
8157 else
8158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8159 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8163 solaris*)
8164 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8165 ld_shlibs=no
8166 cat <<_LT_EOF 1>&2
8168 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8169 *** create shared libraries on Solaris systems. Therefore, libtool
8170 *** is disabling shared libraries support. We urge you to upgrade GNU
8171 *** binutils to release 2.9.1 or newer. Another option is to modify
8172 *** your PATH or compiler configuration so that the native linker is
8173 *** used, and then restart.
8175 _LT_EOF
8176 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8178 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8179 else
8180 ld_shlibs=no
8184 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8185 case `$LD -v 2>&1` in
8186 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8187 ld_shlibs=no
8188 cat <<_LT_EOF 1>&2
8190 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8191 *** reliably create shared libraries on SCO systems. Therefore, libtool
8192 *** is disabling shared libraries support. We urge you to upgrade GNU
8193 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8194 *** your PATH or compiler configuration so that the native linker is
8195 *** used, and then restart.
8197 _LT_EOF
8200 # For security reasons, it is highly recommended that you always
8201 # use absolute paths for naming shared libraries, and exclude the
8202 # DT_RUNPATH tag from executables and libraries. But doing so
8203 # requires that you compile everything twice, which is a pain.
8204 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8205 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8207 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8208 else
8209 ld_shlibs=no
8212 esac
8215 sunos4*)
8216 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8217 wlarc=
8218 hardcode_direct=yes
8219 hardcode_shlibpath_var=no
8223 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8225 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8226 else
8227 ld_shlibs=no
8230 esac
8232 if test "$ld_shlibs" = no; then
8233 runpath_var=
8234 hardcode_libdir_flag_spec=
8235 export_dynamic_flag_spec=
8236 whole_archive_flag_spec=
8238 else
8239 # PORTME fill in a description of your system's linker (not GNU ld)
8240 case $host_os in
8241 aix3*)
8242 allow_undefined_flag=unsupported
8243 always_export_symbols=yes
8244 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'
8245 # Note: this linker hardcodes the directories in LIBPATH if there
8246 # are no directories specified by -L.
8247 hardcode_minus_L=yes
8248 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8249 # Neither direct hardcoding nor static linking is supported with a
8250 # broken collect2.
8251 hardcode_direct=unsupported
8255 aix[4-9]*)
8256 if test "$host_cpu" = ia64; then
8257 # On IA64, the linker does run time linking by default, so we don't
8258 # have to do anything special.
8259 aix_use_runtimelinking=no
8260 exp_sym_flag='-Bexport'
8261 no_entry_flag=""
8262 else
8263 # If we're using GNU nm, then we don't want the "-C" option.
8264 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8265 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8266 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'
8267 else
8268 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'
8270 aix_use_runtimelinking=no
8272 # Test if we are trying to use run time linking or normal
8273 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8274 # need to do runtime linking.
8275 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8276 for ld_flag in $LDFLAGS; do
8277 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8278 aix_use_runtimelinking=yes
8279 break
8281 done
8283 esac
8285 exp_sym_flag='-bexport'
8286 no_entry_flag='-bnoentry'
8289 # When large executables or shared objects are built, AIX ld can
8290 # have problems creating the table of contents. If linking a library
8291 # or program results in "error TOC overflow" add -mminimal-toc to
8292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8295 archive_cmds=''
8296 hardcode_direct=yes
8297 hardcode_direct_absolute=yes
8298 hardcode_libdir_separator=':'
8299 link_all_deplibs=yes
8300 file_list_spec='${wl}-f,'
8302 if test "$GCC" = yes; then
8303 case $host_os in aix4.[012]|aix4.[012].*)
8304 # We only want to do this on AIX 4.2 and lower, the check
8305 # below for broken collect2 doesn't work under 4.3+
8306 collect2name=`${CC} -print-prog-name=collect2`
8307 if test -f "$collect2name" &&
8308 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8309 then
8310 # We have reworked collect2
8312 else
8313 # We have old collect2
8314 hardcode_direct=unsupported
8315 # It fails to find uninstalled libraries when the uninstalled
8316 # path is not listed in the libpath. Setting hardcode_minus_L
8317 # to unsupported forces relinking
8318 hardcode_minus_L=yes
8319 hardcode_libdir_flag_spec='-L$libdir'
8320 hardcode_libdir_separator=
8323 esac
8324 shared_flag='-shared'
8325 if test "$aix_use_runtimelinking" = yes; then
8326 shared_flag="$shared_flag "'${wl}-G'
8328 else
8329 # not using gcc
8330 if test "$host_cpu" = ia64; then
8331 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8332 # chokes on -Wl,-G. The following line is correct:
8333 shared_flag='-G'
8334 else
8335 if test "$aix_use_runtimelinking" = yes; then
8336 shared_flag='${wl}-G'
8337 else
8338 shared_flag='${wl}-bM:SRE'
8343 export_dynamic_flag_spec='${wl}-bexpall'
8344 # It seems that -bexpall does not export symbols beginning with
8345 # underscore (_), so it is better to generate a list of symbols to export.
8346 always_export_symbols=yes
8347 if test "$aix_use_runtimelinking" = yes; then
8348 # Warning - without using the other runtime loading flags (-brtl),
8349 # -berok will link without error, but may produce a broken library.
8350 allow_undefined_flag='-berok'
8351 # Determine the default libpath from the value encoded in an
8352 # empty executable.
8353 cat >conftest.$ac_ext <<_ACEOF
8354 /* confdefs.h. */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8361 main ()
8365 return 0;
8367 _ACEOF
8368 rm -f conftest.$ac_objext conftest$ac_exeext
8369 if { (ac_try="$ac_link"
8370 case "(($ac_try" in
8371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372 *) ac_try_echo=$ac_try;;
8373 esac
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375 (eval "$ac_link") 2>conftest.er1
8376 ac_status=$?
8377 grep -v '^ *+' conftest.er1 >conftest.err
8378 rm -f conftest.er1
8379 cat conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } && {
8382 test -z "$ac_c_werror_flag" ||
8383 test ! -s conftest.err
8384 } && test -s conftest$ac_exeext &&
8385 $as_test_x conftest$ac_exeext; then
8387 lt_aix_libpath_sed='
8388 /Import File Strings/,/^$/ {
8389 /^0/ {
8390 s/^0 *\(.*\)$/\1/
8394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8395 # Check for a 64-bit object if we didn't find anything.
8396 if test -z "$aix_libpath"; then
8397 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8399 else
8400 echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8407 conftest$ac_exeext conftest.$ac_ext
8408 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8410 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8411 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"
8412 else
8413 if test "$host_cpu" = ia64; then
8414 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8415 allow_undefined_flag="-z nodefs"
8416 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"
8417 else
8418 # Determine the default libpath from the value encoded in an
8419 # empty executable.
8420 cat >conftest.$ac_ext <<_ACEOF
8421 /* confdefs.h. */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8428 main ()
8432 return 0;
8434 _ACEOF
8435 rm -f conftest.$ac_objext conftest$ac_exeext
8436 if { (ac_try="$ac_link"
8437 case "(($ac_try" in
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8440 esac
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_link") 2>conftest.er1
8443 ac_status=$?
8444 grep -v '^ *+' conftest.er1 >conftest.err
8445 rm -f conftest.er1
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } && {
8449 test -z "$ac_c_werror_flag" ||
8450 test ! -s conftest.err
8451 } && test -s conftest$ac_exeext &&
8452 $as_test_x conftest$ac_exeext; then
8454 lt_aix_libpath_sed='
8455 /Import File Strings/,/^$/ {
8456 /^0/ {
8457 s/^0 *\(.*\)$/\1/
8461 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8462 # Check for a 64-bit object if we didn't find anything.
8463 if test -z "$aix_libpath"; then
8464 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8466 else
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8474 conftest$ac_exeext conftest.$ac_ext
8475 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8477 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8478 # Warning - without using the other run time loading flags,
8479 # -berok will link without error, but may produce a broken library.
8480 no_undefined_flag=' ${wl}-bernotok'
8481 allow_undefined_flag=' ${wl}-berok'
8482 # Exported symbols can be pulled into shared objects from archives
8483 whole_archive_flag_spec='$convenience'
8484 archive_cmds_need_lc=yes
8485 # This is similar to how AIX traditionally builds its shared libraries.
8486 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'
8491 amigaos*)
8492 case $host_cpu in
8493 powerpc)
8494 # see comment about AmigaOS4 .so support
8495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8496 archive_expsym_cmds=''
8498 m68k)
8499 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)'
8500 hardcode_libdir_flag_spec='-L$libdir'
8501 hardcode_minus_L=yes
8503 esac
8506 bsdi[45]*)
8507 export_dynamic_flag_spec=-rdynamic
8510 cygwin* | mingw* | pw32* | cegcc*)
8511 # When not using gcc, we currently assume that we are using
8512 # Microsoft Visual C++.
8513 # hardcode_libdir_flag_spec is actually meaningless, as there is
8514 # no search path for DLLs.
8515 hardcode_libdir_flag_spec=' '
8516 allow_undefined_flag=unsupported
8517 # Tell ltmain to make .lib files, not .a files.
8518 libext=lib
8519 # Tell ltmain to make .dll files, not .so files.
8520 shrext_cmds=".dll"
8521 # FIXME: Setting linknames here is a bad hack.
8522 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8523 # The linker will automatically build a .lib file if we build a DLL.
8524 old_archive_from_new_cmds='true'
8525 # FIXME: Should let the user specify the lib program.
8526 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8527 fix_srcfile_path='`cygpath -w "$srcfile"`'
8528 enable_shared_with_static_runtimes=yes
8531 darwin* | rhapsody*)
8534 archive_cmds_need_lc=no
8535 hardcode_direct=no
8536 hardcode_automatic=yes
8537 hardcode_shlibpath_var=unsupported
8538 whole_archive_flag_spec=''
8539 link_all_deplibs=yes
8540 allow_undefined_flag="$_lt_dar_allow_undefined"
8541 case $cc_basename in
8542 ifort*) _lt_dar_can_shared=yes ;;
8543 *) _lt_dar_can_shared=$GCC ;;
8544 esac
8545 if test "$_lt_dar_can_shared" = "yes"; then
8546 output_verbose_link_cmd=echo
8547 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8548 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8549 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8550 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8552 else
8553 ld_shlibs=no
8558 dgux*)
8559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8560 hardcode_libdir_flag_spec='-L$libdir'
8561 hardcode_shlibpath_var=no
8564 freebsd1*)
8565 ld_shlibs=no
8568 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8569 # support. Future versions do this automatically, but an explicit c++rt0.o
8570 # does not break anything, and helps significantly (at the cost of a little
8571 # extra space).
8572 freebsd2.2*)
8573 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8574 hardcode_libdir_flag_spec='-R$libdir'
8575 hardcode_direct=yes
8576 hardcode_shlibpath_var=no
8579 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8580 freebsd2*)
8581 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8582 hardcode_direct=yes
8583 hardcode_minus_L=yes
8584 hardcode_shlibpath_var=no
8587 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8588 freebsd* | dragonfly*)
8589 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8590 hardcode_libdir_flag_spec='-R$libdir'
8591 hardcode_direct=yes
8592 hardcode_shlibpath_var=no
8595 hpux9*)
8596 if test "$GCC" = yes; then
8597 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'
8598 else
8599 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'
8601 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8602 hardcode_libdir_separator=:
8603 hardcode_direct=yes
8605 # hardcode_minus_L: Not really in the search PATH,
8606 # but as the default location of the library.
8607 hardcode_minus_L=yes
8608 export_dynamic_flag_spec='${wl}-E'
8611 hpux10*)
8612 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8613 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8614 else
8615 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8617 if test "$with_gnu_ld" = no; then
8618 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8619 hardcode_libdir_flag_spec_ld='+b $libdir'
8620 hardcode_libdir_separator=:
8621 hardcode_direct=yes
8622 hardcode_direct_absolute=yes
8623 export_dynamic_flag_spec='${wl}-E'
8624 # hardcode_minus_L: Not really in the search PATH,
8625 # but as the default location of the library.
8626 hardcode_minus_L=yes
8630 hpux11*)
8631 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8632 case $host_cpu in
8633 hppa*64*)
8634 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8636 ia64*)
8637 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8640 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8642 esac
8643 else
8644 case $host_cpu in
8645 hppa*64*)
8646 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8648 ia64*)
8649 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8652 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8654 esac
8656 if test "$with_gnu_ld" = no; then
8657 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8658 hardcode_libdir_separator=:
8660 case $host_cpu in
8661 hppa*64*|ia64*)
8662 hardcode_direct=no
8663 hardcode_shlibpath_var=no
8666 hardcode_direct=yes
8667 hardcode_direct_absolute=yes
8668 export_dynamic_flag_spec='${wl}-E'
8670 # hardcode_minus_L: Not really in the search PATH,
8671 # but as the default location of the library.
8672 hardcode_minus_L=yes
8674 esac
8678 irix5* | irix6* | nonstopux*)
8679 if test "$GCC" = yes; then
8680 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'
8681 # Try to use the -exported_symbol ld option, if it does not
8682 # work, assume that -exports_file does not work either and
8683 # implicitly export all symbols.
8684 save_LDFLAGS="$LDFLAGS"
8685 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8686 cat >conftest.$ac_ext <<_ACEOF
8687 int foo(void) {}
8688 _ACEOF
8689 rm -f conftest.$ac_objext conftest$ac_exeext
8690 if { (ac_try="$ac_link"
8691 case "(($ac_try" in
8692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693 *) ac_try_echo=$ac_try;;
8694 esac
8695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696 (eval "$ac_link") 2>conftest.er1
8697 ac_status=$?
8698 grep -v '^ *+' conftest.er1 >conftest.err
8699 rm -f conftest.er1
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } && {
8703 test -z "$ac_c_werror_flag" ||
8704 test ! -s conftest.err
8705 } && test -s conftest$ac_exeext &&
8706 $as_test_x conftest$ac_exeext; then
8707 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'
8709 else
8710 echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.$ac_ext >&5
8716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8717 conftest$ac_exeext conftest.$ac_ext
8718 LDFLAGS="$save_LDFLAGS"
8719 else
8720 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'
8721 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'
8723 archive_cmds_need_lc='no'
8724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8725 hardcode_libdir_separator=:
8726 inherit_rpath=yes
8727 link_all_deplibs=yes
8730 netbsd*)
8731 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8733 else
8734 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8736 hardcode_libdir_flag_spec='-R$libdir'
8737 hardcode_direct=yes
8738 hardcode_shlibpath_var=no
8741 newsos6)
8742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8743 hardcode_direct=yes
8744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8745 hardcode_libdir_separator=:
8746 hardcode_shlibpath_var=no
8749 *nto* | *qnx*)
8752 openbsd*)
8753 if test -f /usr/libexec/ld.so; then
8754 hardcode_direct=yes
8755 hardcode_shlibpath_var=no
8756 hardcode_direct_absolute=yes
8757 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8758 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8759 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8760 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8761 export_dynamic_flag_spec='${wl}-E'
8762 else
8763 case $host_os in
8764 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8765 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8766 hardcode_libdir_flag_spec='-R$libdir'
8769 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8770 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8772 esac
8774 else
8775 ld_shlibs=no
8779 os2*)
8780 hardcode_libdir_flag_spec='-L$libdir'
8781 hardcode_minus_L=yes
8782 allow_undefined_flag=unsupported
8783 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'
8784 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8787 osf3*)
8788 if test "$GCC" = yes; then
8789 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8790 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'
8791 else
8792 allow_undefined_flag=' -expect_unresolved \*'
8793 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'
8795 archive_cmds_need_lc='no'
8796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8797 hardcode_libdir_separator=:
8800 osf4* | osf5*) # as osf3* with the addition of -msym flag
8801 if test "$GCC" = yes; then
8802 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8803 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'
8804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8805 else
8806 allow_undefined_flag=' -expect_unresolved \*'
8807 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'
8808 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~
8809 $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'
8811 # Both c and cxx compiler support -rpath directly
8812 hardcode_libdir_flag_spec='-rpath $libdir'
8814 archive_cmds_need_lc='no'
8815 hardcode_libdir_separator=:
8818 solaris*)
8819 no_undefined_flag=' -z defs'
8820 if test "$GCC" = yes; then
8821 wlarc='${wl}'
8822 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8823 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8824 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8825 else
8826 case `$CC -V 2>&1` in
8827 *"Compilers 5.0"*)
8828 wlarc=''
8829 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8830 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8831 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8834 wlarc='${wl}'
8835 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8836 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8837 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8839 esac
8841 hardcode_libdir_flag_spec='-R$libdir'
8842 hardcode_shlibpath_var=no
8843 case $host_os in
8844 solaris2.[0-5] | solaris2.[0-5].*) ;;
8846 # The compiler driver will combine and reorder linker options,
8847 # but understands `-z linker_flag'. GCC discards it without `$wl',
8848 # but is careful enough not to reorder.
8849 # Supported since Solaris 2.6 (maybe 2.5.1?)
8850 if test "$GCC" = yes; then
8851 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8852 else
8853 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8856 esac
8857 link_all_deplibs=yes
8860 sunos4*)
8861 if test "x$host_vendor" = xsequent; then
8862 # Use $CC to link under sequent, because it throws in some extra .o
8863 # files that make .init and .fini sections work.
8864 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8865 else
8866 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8868 hardcode_libdir_flag_spec='-L$libdir'
8869 hardcode_direct=yes
8870 hardcode_minus_L=yes
8871 hardcode_shlibpath_var=no
8874 sysv4)
8875 case $host_vendor in
8876 sni)
8877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8878 hardcode_direct=yes # is this really true???
8880 siemens)
8881 ## LD is ld it makes a PLAMLIB
8882 ## CC just makes a GrossModule.
8883 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8884 reload_cmds='$CC -r -o $output$reload_objs'
8885 hardcode_direct=no
8887 motorola)
8888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8889 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8891 esac
8892 runpath_var='LD_RUN_PATH'
8893 hardcode_shlibpath_var=no
8896 sysv4.3*)
8897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898 hardcode_shlibpath_var=no
8899 export_dynamic_flag_spec='-Bexport'
8902 sysv4*MP*)
8903 if test -d /usr/nec; then
8904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8905 hardcode_shlibpath_var=no
8906 runpath_var=LD_RUN_PATH
8907 hardcode_runpath_var=yes
8908 ld_shlibs=yes
8912 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8913 no_undefined_flag='${wl}-z,text'
8914 archive_cmds_need_lc=no
8915 hardcode_shlibpath_var=no
8916 runpath_var='LD_RUN_PATH'
8918 if test "$GCC" = yes; then
8919 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8920 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8921 else
8922 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8923 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8927 sysv5* | sco3.2v5* | sco5v6*)
8928 # Note: We can NOT use -z defs as we might desire, because we do not
8929 # link with -lc, and that would cause any symbols used from libc to
8930 # always be unresolved, which means just about no library would
8931 # ever link correctly. If we're not using GNU ld we use -z text
8932 # though, which does catch some bad symbols but isn't as heavy-handed
8933 # as -z defs.
8934 no_undefined_flag='${wl}-z,text'
8935 allow_undefined_flag='${wl}-z,nodefs'
8936 archive_cmds_need_lc=no
8937 hardcode_shlibpath_var=no
8938 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8939 hardcode_libdir_separator=':'
8940 link_all_deplibs=yes
8941 export_dynamic_flag_spec='${wl}-Bexport'
8942 runpath_var='LD_RUN_PATH'
8944 if test "$GCC" = yes; then
8945 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8946 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8947 else
8948 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8949 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8953 uts4*)
8954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8955 hardcode_libdir_flag_spec='-L$libdir'
8956 hardcode_shlibpath_var=no
8960 ld_shlibs=no
8962 esac
8964 if test x$host_vendor = xsni; then
8965 case $host in
8966 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8967 export_dynamic_flag_spec='${wl}-Blargedynsym'
8969 esac
8973 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8974 echo "${ECHO_T}$ld_shlibs" >&6; }
8975 test "$ld_shlibs" = no && can_build_shared=no
8977 with_gnu_ld=$with_gnu_ld
8994 # Do we need to explicitly link libc?
8996 case "x$archive_cmds_need_lc" in
8997 x|xyes)
8998 # Assume -lc should be added
8999 archive_cmds_need_lc=yes
9001 if test "$enable_shared" = yes && test "$GCC" = yes; then
9002 case $archive_cmds in
9003 *'~'*)
9004 # FIXME: we may have to deal with multi-command sequences.
9006 '$CC '*)
9007 # Test whether the compiler implicitly links with -lc since on some
9008 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9009 # to ld, don't add -lc before -lgcc.
9010 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9011 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9012 $RM conftest*
9013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9016 (eval $ac_compile) 2>&5
9017 ac_status=$?
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } 2>conftest.err; then
9020 soname=conftest
9021 lib=conftest
9022 libobjs=conftest.$ac_objext
9023 deplibs=
9024 wl=$lt_prog_compiler_wl
9025 pic_flag=$lt_prog_compiler_pic
9026 compiler_flags=-v
9027 linker_flags=-v
9028 verstring=
9029 output_objdir=.
9030 libname=conftest
9031 lt_save_allow_undefined_flag=$allow_undefined_flag
9032 allow_undefined_flag=
9033 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9034 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9035 ac_status=$?
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }
9038 then
9039 archive_cmds_need_lc=no
9040 else
9041 archive_cmds_need_lc=yes
9043 allow_undefined_flag=$lt_save_allow_undefined_flag
9044 else
9045 cat conftest.err 1>&5
9047 $RM conftest*
9048 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9049 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9051 esac
9054 esac
9212 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9213 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9215 if test "$GCC" = yes; then
9216 case $host_os in
9217 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9218 *) lt_awk_arg="/^libraries:/" ;;
9219 esac
9220 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9221 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9222 # if the path contains ";" then we assume it to be the separator
9223 # otherwise default to the standard path separator (i.e. ":") - it is
9224 # assumed that no part of a normal pathname contains ";" but that should
9225 # okay in the real world where ";" in dirpaths is itself problematic.
9226 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9227 else
9228 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9230 # Ok, now we have the path, separated by spaces, we can step through it
9231 # and add multilib dir if necessary.
9232 lt_tmp_lt_search_path_spec=
9233 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9234 for lt_sys_path in $lt_search_path_spec; do
9235 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9236 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9237 else
9238 test -d "$lt_sys_path" && \
9239 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9241 done
9242 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9243 BEGIN {RS=" "; FS="/|\n";} {
9244 lt_foo="";
9245 lt_count=0;
9246 for (lt_i = NF; lt_i > 0; lt_i--) {
9247 if ($lt_i != "" && $lt_i != ".") {
9248 if ($lt_i == "..") {
9249 lt_count++;
9250 } else {
9251 if (lt_count == 0) {
9252 lt_foo="/" $lt_i lt_foo;
9253 } else {
9254 lt_count--;
9259 if (lt_foo != "") { lt_freq[lt_foo]++; }
9260 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9262 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9263 else
9264 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9266 library_names_spec=
9267 libname_spec='lib$name'
9268 soname_spec=
9269 shrext_cmds=".so"
9270 postinstall_cmds=
9271 postuninstall_cmds=
9272 finish_cmds=
9273 finish_eval=
9274 shlibpath_var=
9275 shlibpath_overrides_runpath=unknown
9276 version_type=none
9277 dynamic_linker="$host_os ld.so"
9278 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9279 need_lib_prefix=unknown
9280 hardcode_into_libs=no
9282 # when you set need_version to no, make sure it does not cause -set_version
9283 # flags to be left without arguments
9284 need_version=unknown
9286 case $host_os in
9287 aix3*)
9288 version_type=linux
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9290 shlibpath_var=LIBPATH
9292 # AIX 3 has no versioning support, so we append a major version to the name.
9293 soname_spec='${libname}${release}${shared_ext}$major'
9296 aix[4-9]*)
9297 version_type=linux
9298 need_lib_prefix=no
9299 need_version=no
9300 hardcode_into_libs=yes
9301 if test "$host_cpu" = ia64; then
9302 # AIX 5 supports IA64
9303 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9304 shlibpath_var=LD_LIBRARY_PATH
9305 else
9306 # With GCC up to 2.95.x, collect2 would create an import file
9307 # for dependence libraries. The import file would start with
9308 # the line `#! .'. This would cause the generated library to
9309 # depend on `.', always an invalid library. This was fixed in
9310 # development snapshots of GCC prior to 3.0.
9311 case $host_os in
9312 aix4 | aix4.[01] | aix4.[01].*)
9313 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9314 echo ' yes '
9315 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9317 else
9318 can_build_shared=no
9321 esac
9322 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9323 # soname into executable. Probably we can add versioning support to
9324 # collect2, so additional links can be useful in future.
9325 if test "$aix_use_runtimelinking" = yes; then
9326 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9327 # instead of lib<name>.a to let people know that these are not
9328 # typical AIX shared libraries.
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330 else
9331 # We preserve .a as extension for shared libraries through AIX4.2
9332 # and later when we are not doing run time linking.
9333 library_names_spec='${libname}${release}.a $libname.a'
9334 soname_spec='${libname}${release}${shared_ext}$major'
9336 shlibpath_var=LIBPATH
9340 amigaos*)
9341 case $host_cpu in
9342 powerpc)
9343 # Since July 2007 AmigaOS4 officially supports .so libraries.
9344 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9347 m68k)
9348 library_names_spec='$libname.ixlibrary $libname.a'
9349 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9350 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'
9352 esac
9355 beos*)
9356 library_names_spec='${libname}${shared_ext}'
9357 dynamic_linker="$host_os ld.so"
9358 shlibpath_var=LIBRARY_PATH
9361 bsdi[45]*)
9362 version_type=linux
9363 need_version=no
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9367 shlibpath_var=LD_LIBRARY_PATH
9368 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9369 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9370 # the default ld.so.conf also contains /usr/contrib/lib and
9371 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9372 # libtool to hard-code these into programs
9375 cygwin* | mingw* | pw32* | cegcc*)
9376 version_type=windows
9377 shrext_cmds=".dll"
9378 need_version=no
9379 need_lib_prefix=no
9381 case $GCC,$host_os in
9382 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9383 library_names_spec='$libname.dll.a'
9384 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9385 postinstall_cmds='base_file=`basename \${file}`~
9386 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9387 dldir=$destdir/`dirname \$dlpath`~
9388 test -d \$dldir || mkdir -p \$dldir~
9389 $install_prog $dir/$dlname \$dldir/$dlname~
9390 chmod a+x \$dldir/$dlname~
9391 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9392 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9394 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9395 dlpath=$dir/\$dldll~
9396 $RM \$dlpath'
9397 shlibpath_overrides_runpath=yes
9399 case $host_os in
9400 cygwin*)
9401 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9402 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9403 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9405 mingw* | cegcc*)
9406 # MinGW DLLs use traditional 'lib' prefix
9407 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9408 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9409 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9410 # It is most probably a Windows format PATH printed by
9411 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9412 # path with ; separators, and with drive letters. We can handle the
9413 # drive letters (cygwin fileutils understands them), so leave them,
9414 # especially as we might pass files found there to a mingw objdump,
9415 # which wouldn't understand a cygwinified path. Ahh.
9416 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9417 else
9418 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9421 pw32*)
9422 # pw32 DLLs use 'pw' prefix rather than 'lib'
9423 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9425 esac
9429 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9431 esac
9432 dynamic_linker='Win32 ld.exe'
9433 # FIXME: first we should search . and the directory the executable is in
9434 shlibpath_var=PATH
9437 darwin* | rhapsody*)
9438 dynamic_linker="$host_os dyld"
9439 version_type=darwin
9440 need_lib_prefix=no
9441 need_version=no
9442 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9443 soname_spec='${libname}${release}${major}$shared_ext'
9444 shlibpath_overrides_runpath=yes
9445 shlibpath_var=DYLD_LIBRARY_PATH
9446 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9448 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9449 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9452 dgux*)
9453 version_type=linux
9454 need_lib_prefix=no
9455 need_version=no
9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9457 soname_spec='${libname}${release}${shared_ext}$major'
9458 shlibpath_var=LD_LIBRARY_PATH
9461 freebsd1*)
9462 dynamic_linker=no
9465 freebsd* | dragonfly*)
9466 # DragonFly does not have aout. When/if they implement a new
9467 # versioning mechanism, adjust this.
9468 if test -x /usr/bin/objformat; then
9469 objformat=`/usr/bin/objformat`
9470 else
9471 case $host_os in
9472 freebsd[123]*) objformat=aout ;;
9473 *) objformat=elf ;;
9474 esac
9476 # Handle Gentoo/FreeBSD as it was Linux
9477 case $host_vendor in
9478 gentoo)
9479 version_type=linux ;;
9481 version_type=freebsd-$objformat ;;
9482 esac
9484 case $version_type in
9485 freebsd-elf*)
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9487 need_version=no
9488 need_lib_prefix=no
9490 freebsd-*)
9491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9492 need_version=yes
9494 linux)
9495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9496 soname_spec='${libname}${release}${shared_ext}$major'
9497 need_lib_prefix=no
9498 need_version=no
9500 esac
9501 shlibpath_var=LD_LIBRARY_PATH
9502 case $host_os in
9503 freebsd2*)
9504 shlibpath_overrides_runpath=yes
9506 freebsd3.[01]* | freebsdelf3.[01]*)
9507 shlibpath_overrides_runpath=yes
9508 hardcode_into_libs=yes
9510 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9511 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9512 shlibpath_overrides_runpath=no
9513 hardcode_into_libs=yes
9515 *) # from 4.6 on, and DragonFly
9516 shlibpath_overrides_runpath=yes
9517 hardcode_into_libs=yes
9519 esac
9522 gnu*)
9523 version_type=linux
9524 need_lib_prefix=no
9525 need_version=no
9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9527 soname_spec='${libname}${release}${shared_ext}$major'
9528 shlibpath_var=LD_LIBRARY_PATH
9529 hardcode_into_libs=yes
9532 hpux9* | hpux10* | hpux11*)
9533 # Give a soname corresponding to the major version so that dld.sl refuses to
9534 # link against other versions.
9535 version_type=sunos
9536 need_lib_prefix=no
9537 need_version=no
9538 case $host_cpu in
9539 ia64*)
9540 shrext_cmds='.so'
9541 hardcode_into_libs=yes
9542 dynamic_linker="$host_os dld.so"
9543 shlibpath_var=LD_LIBRARY_PATH
9544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9546 soname_spec='${libname}${release}${shared_ext}$major'
9547 if test "X$HPUX_IA64_MODE" = X32; then
9548 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9549 else
9550 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9552 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9554 hppa*64*)
9555 shrext_cmds='.sl'
9556 hardcode_into_libs=yes
9557 dynamic_linker="$host_os dld.sl"
9558 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9561 soname_spec='${libname}${release}${shared_ext}$major'
9562 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9563 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9566 shrext_cmds='.sl'
9567 dynamic_linker="$host_os dld.sl"
9568 shlibpath_var=SHLIB_PATH
9569 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571 soname_spec='${libname}${release}${shared_ext}$major'
9573 esac
9574 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9575 postinstall_cmds='chmod 555 $lib'
9578 interix[3-9]*)
9579 version_type=linux
9580 need_lib_prefix=no
9581 need_version=no
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9583 soname_spec='${libname}${release}${shared_ext}$major'
9584 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9585 shlibpath_var=LD_LIBRARY_PATH
9586 shlibpath_overrides_runpath=no
9587 hardcode_into_libs=yes
9590 irix5* | irix6* | nonstopux*)
9591 case $host_os in
9592 nonstopux*) version_type=nonstopux ;;
9594 if test "$lt_cv_prog_gnu_ld" = yes; then
9595 version_type=linux
9596 else
9597 version_type=irix
9598 fi ;;
9599 esac
9600 need_lib_prefix=no
9601 need_version=no
9602 soname_spec='${libname}${release}${shared_ext}$major'
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9604 case $host_os in
9605 irix5* | nonstopux*)
9606 libsuff= shlibsuff=
9609 case $LD in # libtool.m4 will add one of these switches to LD
9610 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9611 libsuff= shlibsuff= libmagic=32-bit;;
9612 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9613 libsuff=32 shlibsuff=N32 libmagic=N32;;
9614 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9615 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9616 *) libsuff= shlibsuff= libmagic=never-match;;
9617 esac
9619 esac
9620 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9621 shlibpath_overrides_runpath=no
9622 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9623 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9624 hardcode_into_libs=yes
9627 # No shared lib support for Linux oldld, aout, or coff.
9628 linux*oldld* | linux*aout* | linux*coff*)
9629 dynamic_linker=no
9632 # This must be Linux ELF.
9633 linux* | k*bsd*-gnu)
9634 version_type=linux
9635 need_lib_prefix=no
9636 need_version=no
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638 soname_spec='${libname}${release}${shared_ext}$major'
9639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9640 shlibpath_var=LD_LIBRARY_PATH
9641 shlibpath_overrides_runpath=no
9642 # Some binutils ld are patched to set DT_RUNPATH
9643 save_LDFLAGS=$LDFLAGS
9644 save_libdir=$libdir
9645 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9646 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9647 cat >conftest.$ac_ext <<_ACEOF
9648 /* confdefs.h. */
9649 _ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9655 main ()
9659 return 0;
9661 _ACEOF
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (ac_try="$ac_link"
9664 case "(($ac_try" in
9665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666 *) ac_try_echo=$ac_try;;
9667 esac
9668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669 (eval "$ac_link") 2>conftest.er1
9670 ac_status=$?
9671 grep -v '^ *+' conftest.er1 >conftest.err
9672 rm -f conftest.er1
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } && {
9676 test -z "$ac_c_werror_flag" ||
9677 test ! -s conftest.err
9678 } && test -s conftest$ac_exeext &&
9679 $as_test_x conftest$ac_exeext; then
9680 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9681 shlibpath_overrides_runpath=yes
9684 else
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9692 conftest$ac_exeext conftest.$ac_ext
9693 LDFLAGS=$save_LDFLAGS
9694 libdir=$save_libdir
9696 # This implies no fast_install, which is unacceptable.
9697 # Some rework will be needed to allow for fast_install
9698 # before this can be enabled.
9699 hardcode_into_libs=yes
9701 # Append ld.so.conf contents to the search path
9702 if test -f /etc/ld.so.conf; then
9703 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9704 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9707 # We used to test for /lib/ld.so.1 and disable shared libraries on
9708 # powerpc, because MkLinux only supported shared libraries with the
9709 # GNU dynamic linker. Since this was broken with cross compilers,
9710 # most powerpc-linux boxes support dynamic linking these days and
9711 # people can always --disable-shared, the test was removed, and we
9712 # assume the GNU/Linux dynamic linker is in use.
9713 dynamic_linker='GNU/Linux ld.so'
9716 netbsd*)
9717 version_type=sunos
9718 need_lib_prefix=no
9719 need_version=no
9720 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9723 dynamic_linker='NetBSD (a.out) ld.so'
9724 else
9725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9726 soname_spec='${libname}${release}${shared_ext}$major'
9727 dynamic_linker='NetBSD ld.elf_so'
9729 shlibpath_var=LD_LIBRARY_PATH
9730 shlibpath_overrides_runpath=yes
9731 hardcode_into_libs=yes
9734 newsos6)
9735 version_type=linux
9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9737 shlibpath_var=LD_LIBRARY_PATH
9738 shlibpath_overrides_runpath=yes
9741 *nto* | *qnx*)
9742 version_type=qnx
9743 need_lib_prefix=no
9744 need_version=no
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746 soname_spec='${libname}${release}${shared_ext}$major'
9747 shlibpath_var=LD_LIBRARY_PATH
9748 shlibpath_overrides_runpath=no
9749 hardcode_into_libs=yes
9750 dynamic_linker='ldqnx.so'
9753 openbsd*)
9754 version_type=sunos
9755 sys_lib_dlsearch_path_spec="/usr/lib"
9756 need_lib_prefix=no
9757 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9758 case $host_os in
9759 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9760 *) need_version=no ;;
9761 esac
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9764 shlibpath_var=LD_LIBRARY_PATH
9765 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9766 case $host_os in
9767 openbsd2.[89] | openbsd2.[89].*)
9768 shlibpath_overrides_runpath=no
9771 shlibpath_overrides_runpath=yes
9773 esac
9774 else
9775 shlibpath_overrides_runpath=yes
9779 os2*)
9780 libname_spec='$name'
9781 shrext_cmds=".dll"
9782 need_lib_prefix=no
9783 library_names_spec='$libname${shared_ext} $libname.a'
9784 dynamic_linker='OS/2 ld.exe'
9785 shlibpath_var=LIBPATH
9788 osf3* | osf4* | osf5*)
9789 version_type=osf
9790 need_lib_prefix=no
9791 need_version=no
9792 soname_spec='${libname}${release}${shared_ext}$major'
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794 shlibpath_var=LD_LIBRARY_PATH
9795 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9796 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9799 rdos*)
9800 dynamic_linker=no
9803 solaris*)
9804 version_type=linux
9805 need_lib_prefix=no
9806 need_version=no
9807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9808 soname_spec='${libname}${release}${shared_ext}$major'
9809 shlibpath_var=LD_LIBRARY_PATH
9810 shlibpath_overrides_runpath=yes
9811 hardcode_into_libs=yes
9812 # ldd complains unless libraries are executable
9813 postinstall_cmds='chmod +x $lib'
9816 sunos4*)
9817 version_type=sunos
9818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9819 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9820 shlibpath_var=LD_LIBRARY_PATH
9821 shlibpath_overrides_runpath=yes
9822 if test "$with_gnu_ld" = yes; then
9823 need_lib_prefix=no
9825 need_version=yes
9828 sysv4 | sysv4.3*)
9829 version_type=linux
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9831 soname_spec='${libname}${release}${shared_ext}$major'
9832 shlibpath_var=LD_LIBRARY_PATH
9833 case $host_vendor in
9834 sni)
9835 shlibpath_overrides_runpath=no
9836 need_lib_prefix=no
9837 runpath_var=LD_RUN_PATH
9839 siemens)
9840 need_lib_prefix=no
9842 motorola)
9843 need_lib_prefix=no
9844 need_version=no
9845 shlibpath_overrides_runpath=no
9846 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9848 esac
9851 sysv4*MP*)
9852 if test -d /usr/nec ;then
9853 version_type=linux
9854 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9855 soname_spec='$libname${shared_ext}.$major'
9856 shlibpath_var=LD_LIBRARY_PATH
9860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9861 version_type=freebsd-elf
9862 need_lib_prefix=no
9863 need_version=no
9864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9865 soname_spec='${libname}${release}${shared_ext}$major'
9866 shlibpath_var=LD_LIBRARY_PATH
9867 shlibpath_overrides_runpath=yes
9868 hardcode_into_libs=yes
9869 if test "$with_gnu_ld" = yes; then
9870 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9871 else
9872 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9873 case $host_os in
9874 sco3.2v5*)
9875 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9877 esac
9879 sys_lib_dlsearch_path_spec='/usr/lib'
9882 tpf*)
9883 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9884 version_type=linux
9885 need_lib_prefix=no
9886 need_version=no
9887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9888 shlibpath_var=LD_LIBRARY_PATH
9889 shlibpath_overrides_runpath=no
9890 hardcode_into_libs=yes
9893 uts4*)
9894 version_type=linux
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9896 soname_spec='${libname}${release}${shared_ext}$major'
9897 shlibpath_var=LD_LIBRARY_PATH
9901 dynamic_linker=no
9903 esac
9904 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9905 echo "${ECHO_T}$dynamic_linker" >&6; }
9906 test "$dynamic_linker" = no && can_build_shared=no
9908 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9909 if test "$GCC" = yes; then
9910 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9913 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9914 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9916 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9917 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10006 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10007 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10008 hardcode_action=
10009 if test -n "$hardcode_libdir_flag_spec" ||
10010 test -n "$runpath_var" ||
10011 test "X$hardcode_automatic" = "Xyes" ; then
10013 # We can hardcode non-existent directories.
10014 if test "$hardcode_direct" != no &&
10015 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10016 # have to relink, otherwise we might link with an installed library
10017 # when we should be linking with a yet-to-be-installed one
10018 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10019 test "$hardcode_minus_L" != no; then
10020 # Linking always hardcodes the temporary library directory.
10021 hardcode_action=relink
10022 else
10023 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10024 hardcode_action=immediate
10026 else
10027 # We cannot hardcode anything, or else we can only hardcode existing
10028 # directories.
10029 hardcode_action=unsupported
10031 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10032 echo "${ECHO_T}$hardcode_action" >&6; }
10034 if test "$hardcode_action" = relink ||
10035 test "$inherit_rpath" = yes; then
10036 # Fast installation is not supported
10037 enable_fast_install=no
10038 elif test "$shlibpath_overrides_runpath" = yes ||
10039 test "$enable_shared" = no; then
10040 # Fast installation is not necessary
10041 enable_fast_install=needless
10049 if test "x$enable_dlopen" != xyes; then
10050 enable_dlopen=unknown
10051 enable_dlopen_self=unknown
10052 enable_dlopen_self_static=unknown
10053 else
10054 lt_cv_dlopen=no
10055 lt_cv_dlopen_libs=
10057 case $host_os in
10058 beos*)
10059 lt_cv_dlopen="load_add_on"
10060 lt_cv_dlopen_libs=
10061 lt_cv_dlopen_self=yes
10064 mingw* | pw32* | cegcc*)
10065 lt_cv_dlopen="LoadLibrary"
10066 lt_cv_dlopen_libs=
10069 cygwin*)
10070 lt_cv_dlopen="dlopen"
10071 lt_cv_dlopen_libs=
10074 darwin*)
10075 # if libdl is installed we need to link against it
10076 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10077 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10078 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 else
10081 ac_check_lib_save_LIBS=$LIBS
10082 LIBS="-ldl $LIBS"
10083 cat >conftest.$ac_ext <<_ACEOF
10084 /* confdefs.h. */
10085 _ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10090 /* Override any GCC internal prototype to avoid an error.
10091 Use char because int might match the return type of a GCC
10092 builtin and then its argument prototype would still apply. */
10093 #ifdef __cplusplus
10094 extern "C"
10095 #endif
10096 char dlopen ();
10098 main ()
10100 return dlopen ();
10102 return 0;
10104 _ACEOF
10105 rm -f conftest.$ac_objext conftest$ac_exeext
10106 if { (ac_try="$ac_link"
10107 case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10110 esac
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_link") 2>conftest.er1
10113 ac_status=$?
10114 grep -v '^ *+' conftest.er1 >conftest.err
10115 rm -f conftest.er1
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } && {
10119 test -z "$ac_c_werror_flag" ||
10120 test ! -s conftest.err
10121 } && test -s conftest$ac_exeext &&
10122 $as_test_x conftest$ac_exeext; then
10123 ac_cv_lib_dl_dlopen=yes
10124 else
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10128 ac_cv_lib_dl_dlopen=no
10131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10132 conftest$ac_exeext conftest.$ac_ext
10133 LIBS=$ac_check_lib_save_LIBS
10135 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10136 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10137 if test $ac_cv_lib_dl_dlopen = yes; then
10138 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10139 else
10141 lt_cv_dlopen="dyld"
10142 lt_cv_dlopen_libs=
10143 lt_cv_dlopen_self=yes
10150 { echo "$as_me:$LINENO: checking for shl_load" >&5
10151 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10152 if test "${ac_cv_func_shl_load+set}" = set; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10154 else
10155 cat >conftest.$ac_ext <<_ACEOF
10156 /* confdefs.h. */
10157 _ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h. */
10161 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10163 #define shl_load innocuous_shl_load
10165 /* System header to define __stub macros and hopefully few prototypes,
10166 which can conflict with char shl_load (); below.
10167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10168 <limits.h> exists even on freestanding compilers. */
10170 #ifdef __STDC__
10171 # include <limits.h>
10172 #else
10173 # include <assert.h>
10174 #endif
10176 #undef shl_load
10178 /* Override any GCC internal prototype to avoid an error.
10179 Use char because int might match the return type of a GCC
10180 builtin and then its argument prototype would still apply. */
10181 #ifdef __cplusplus
10182 extern "C"
10183 #endif
10184 char shl_load ();
10185 /* The GNU C library defines this for functions which it implements
10186 to always fail with ENOSYS. Some functions are actually named
10187 something starting with __ and the normal name is an alias. */
10188 #if defined __stub_shl_load || defined __stub___shl_load
10189 choke me
10190 #endif
10193 main ()
10195 return shl_load ();
10197 return 0;
10199 _ACEOF
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (ac_try="$ac_link"
10202 case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10205 esac
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_link") 2>conftest.er1
10208 ac_status=$?
10209 grep -v '^ *+' conftest.er1 >conftest.err
10210 rm -f conftest.er1
10211 cat conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } && {
10214 test -z "$ac_c_werror_flag" ||
10215 test ! -s conftest.err
10216 } && test -s conftest$ac_exeext &&
10217 $as_test_x conftest$ac_exeext; then
10218 ac_cv_func_shl_load=yes
10219 else
10220 echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10223 ac_cv_func_shl_load=no
10226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10227 conftest$ac_exeext conftest.$ac_ext
10229 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10230 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10231 if test $ac_cv_func_shl_load = yes; then
10232 lt_cv_dlopen="shl_load"
10233 else
10234 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10235 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10236 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 else
10239 ac_check_lib_save_LIBS=$LIBS
10240 LIBS="-ldld $LIBS"
10241 cat >conftest.$ac_ext <<_ACEOF
10242 /* confdefs.h. */
10243 _ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h. */
10248 /* Override any GCC internal prototype to avoid an error.
10249 Use char because int might match the return type of a GCC
10250 builtin and then its argument prototype would still apply. */
10251 #ifdef __cplusplus
10252 extern "C"
10253 #endif
10254 char shl_load ();
10256 main ()
10258 return shl_load ();
10260 return 0;
10262 _ACEOF
10263 rm -f conftest.$ac_objext conftest$ac_exeext
10264 if { (ac_try="$ac_link"
10265 case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10268 esac
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_link") 2>conftest.er1
10271 ac_status=$?
10272 grep -v '^ *+' conftest.er1 >conftest.err
10273 rm -f conftest.er1
10274 cat conftest.err >&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } && {
10277 test -z "$ac_c_werror_flag" ||
10278 test ! -s conftest.err
10279 } && test -s conftest$ac_exeext &&
10280 $as_test_x conftest$ac_exeext; then
10281 ac_cv_lib_dld_shl_load=yes
10282 else
10283 echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10286 ac_cv_lib_dld_shl_load=no
10289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10290 conftest$ac_exeext conftest.$ac_ext
10291 LIBS=$ac_check_lib_save_LIBS
10293 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10294 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10295 if test $ac_cv_lib_dld_shl_load = yes; then
10296 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10297 else
10298 { echo "$as_me:$LINENO: checking for dlopen" >&5
10299 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10300 if test "${ac_cv_func_dlopen+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 else
10303 cat >conftest.$ac_ext <<_ACEOF
10304 /* confdefs.h. */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10309 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10311 #define dlopen innocuous_dlopen
10313 /* System header to define __stub macros and hopefully few prototypes,
10314 which can conflict with char dlopen (); below.
10315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10316 <limits.h> exists even on freestanding compilers. */
10318 #ifdef __STDC__
10319 # include <limits.h>
10320 #else
10321 # include <assert.h>
10322 #endif
10324 #undef dlopen
10326 /* Override any GCC internal prototype to avoid an error.
10327 Use char because int might match the return type of a GCC
10328 builtin and then its argument prototype would still apply. */
10329 #ifdef __cplusplus
10330 extern "C"
10331 #endif
10332 char dlopen ();
10333 /* The GNU C library defines this for functions which it implements
10334 to always fail with ENOSYS. Some functions are actually named
10335 something starting with __ and the normal name is an alias. */
10336 #if defined __stub_dlopen || defined __stub___dlopen
10337 choke me
10338 #endif
10341 main ()
10343 return dlopen ();
10345 return 0;
10347 _ACEOF
10348 rm -f conftest.$ac_objext conftest$ac_exeext
10349 if { (ac_try="$ac_link"
10350 case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10353 esac
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_link") 2>conftest.er1
10356 ac_status=$?
10357 grep -v '^ *+' conftest.er1 >conftest.err
10358 rm -f conftest.er1
10359 cat conftest.err >&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } && {
10362 test -z "$ac_c_werror_flag" ||
10363 test ! -s conftest.err
10364 } && test -s conftest$ac_exeext &&
10365 $as_test_x conftest$ac_exeext; then
10366 ac_cv_func_dlopen=yes
10367 else
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10371 ac_cv_func_dlopen=no
10374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10375 conftest$ac_exeext conftest.$ac_ext
10377 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10378 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10379 if test $ac_cv_func_dlopen = yes; then
10380 lt_cv_dlopen="dlopen"
10381 else
10382 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10383 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10384 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 else
10387 ac_check_lib_save_LIBS=$LIBS
10388 LIBS="-ldl $LIBS"
10389 cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h. */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10396 /* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
10399 #ifdef __cplusplus
10400 extern "C"
10401 #endif
10402 char dlopen ();
10404 main ()
10406 return dlopen ();
10408 return 0;
10410 _ACEOF
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10416 esac
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_link") 2>conftest.er1
10419 ac_status=$?
10420 grep -v '^ *+' conftest.er1 >conftest.err
10421 rm -f conftest.er1
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } && {
10425 test -z "$ac_c_werror_flag" ||
10426 test ! -s conftest.err
10427 } && test -s conftest$ac_exeext &&
10428 $as_test_x conftest$ac_exeext; then
10429 ac_cv_lib_dl_dlopen=yes
10430 else
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10434 ac_cv_lib_dl_dlopen=no
10437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10438 conftest$ac_exeext conftest.$ac_ext
10439 LIBS=$ac_check_lib_save_LIBS
10441 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10442 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10443 if test $ac_cv_lib_dl_dlopen = yes; then
10444 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10445 else
10446 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10447 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10448 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10450 else
10451 ac_check_lib_save_LIBS=$LIBS
10452 LIBS="-lsvld $LIBS"
10453 cat >conftest.$ac_ext <<_ACEOF
10454 /* confdefs.h. */
10455 _ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10460 /* Override any GCC internal prototype to avoid an error.
10461 Use char because int might match the return type of a GCC
10462 builtin and then its argument prototype would still apply. */
10463 #ifdef __cplusplus
10464 extern "C"
10465 #endif
10466 char dlopen ();
10468 main ()
10470 return dlopen ();
10472 return 0;
10474 _ACEOF
10475 rm -f conftest.$ac_objext conftest$ac_exeext
10476 if { (ac_try="$ac_link"
10477 case "(($ac_try" in
10478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10479 *) ac_try_echo=$ac_try;;
10480 esac
10481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10482 (eval "$ac_link") 2>conftest.er1
10483 ac_status=$?
10484 grep -v '^ *+' conftest.er1 >conftest.err
10485 rm -f conftest.er1
10486 cat conftest.err >&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } && {
10489 test -z "$ac_c_werror_flag" ||
10490 test ! -s conftest.err
10491 } && test -s conftest$ac_exeext &&
10492 $as_test_x conftest$ac_exeext; then
10493 ac_cv_lib_svld_dlopen=yes
10494 else
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10498 ac_cv_lib_svld_dlopen=no
10501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10502 conftest$ac_exeext conftest.$ac_ext
10503 LIBS=$ac_check_lib_save_LIBS
10505 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10506 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10507 if test $ac_cv_lib_svld_dlopen = yes; then
10508 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10509 else
10510 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10511 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10512 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10513 echo $ECHO_N "(cached) $ECHO_C" >&6
10514 else
10515 ac_check_lib_save_LIBS=$LIBS
10516 LIBS="-ldld $LIBS"
10517 cat >conftest.$ac_ext <<_ACEOF
10518 /* confdefs.h. */
10519 _ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10524 /* Override any GCC internal prototype to avoid an error.
10525 Use char because int might match the return type of a GCC
10526 builtin and then its argument prototype would still apply. */
10527 #ifdef __cplusplus
10528 extern "C"
10529 #endif
10530 char dld_link ();
10532 main ()
10534 return dld_link ();
10536 return 0;
10538 _ACEOF
10539 rm -f conftest.$ac_objext conftest$ac_exeext
10540 if { (ac_try="$ac_link"
10541 case "(($ac_try" in
10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543 *) ac_try_echo=$ac_try;;
10544 esac
10545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10546 (eval "$ac_link") 2>conftest.er1
10547 ac_status=$?
10548 grep -v '^ *+' conftest.er1 >conftest.err
10549 rm -f conftest.er1
10550 cat conftest.err >&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } && {
10553 test -z "$ac_c_werror_flag" ||
10554 test ! -s conftest.err
10555 } && test -s conftest$ac_exeext &&
10556 $as_test_x conftest$ac_exeext; then
10557 ac_cv_lib_dld_dld_link=yes
10558 else
10559 echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10562 ac_cv_lib_dld_dld_link=no
10565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10566 conftest$ac_exeext conftest.$ac_ext
10567 LIBS=$ac_check_lib_save_LIBS
10569 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10570 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10571 if test $ac_cv_lib_dld_dld_link = yes; then
10572 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10591 esac
10593 if test "x$lt_cv_dlopen" != xno; then
10594 enable_dlopen=yes
10595 else
10596 enable_dlopen=no
10599 case $lt_cv_dlopen in
10600 dlopen)
10601 save_CPPFLAGS="$CPPFLAGS"
10602 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10604 save_LDFLAGS="$LDFLAGS"
10605 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10607 save_LIBS="$LIBS"
10608 LIBS="$lt_cv_dlopen_libs $LIBS"
10610 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10611 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10612 if test "${lt_cv_dlopen_self+set}" = set; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10614 else
10615 if test "$cross_compiling" = yes; then :
10616 lt_cv_dlopen_self=cross
10617 else
10618 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10619 lt_status=$lt_dlunknown
10620 cat > conftest.$ac_ext <<_LT_EOF
10621 #line 10621 "configure"
10622 #include "confdefs.h"
10624 #if HAVE_DLFCN_H
10625 #include <dlfcn.h>
10626 #endif
10628 #include <stdio.h>
10630 #ifdef RTLD_GLOBAL
10631 # define LT_DLGLOBAL RTLD_GLOBAL
10632 #else
10633 # ifdef DL_GLOBAL
10634 # define LT_DLGLOBAL DL_GLOBAL
10635 # else
10636 # define LT_DLGLOBAL 0
10637 # endif
10638 #endif
10640 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10641 find out it does not work in some platform. */
10642 #ifndef LT_DLLAZY_OR_NOW
10643 # ifdef RTLD_LAZY
10644 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10645 # else
10646 # ifdef DL_LAZY
10647 # define LT_DLLAZY_OR_NOW DL_LAZY
10648 # else
10649 # ifdef RTLD_NOW
10650 # define LT_DLLAZY_OR_NOW RTLD_NOW
10651 # else
10652 # ifdef DL_NOW
10653 # define LT_DLLAZY_OR_NOW DL_NOW
10654 # else
10655 # define LT_DLLAZY_OR_NOW 0
10656 # endif
10657 # endif
10658 # endif
10659 # endif
10660 #endif
10662 void fnord() { int i=42;}
10663 int main ()
10665 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10666 int status = $lt_dlunknown;
10668 if (self)
10670 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10671 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10672 /* dlclose (self); */
10674 else
10675 puts (dlerror ());
10677 return status;
10679 _LT_EOF
10680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10681 (eval $ac_link) 2>&5
10682 ac_status=$?
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10685 (./conftest; exit; ) >&5 2>/dev/null
10686 lt_status=$?
10687 case x$lt_status in
10688 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10689 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10690 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10691 esac
10692 else :
10693 # compilation failed
10694 lt_cv_dlopen_self=no
10697 rm -fr conftest*
10701 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10702 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10704 if test "x$lt_cv_dlopen_self" = xyes; then
10705 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10706 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10707 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10708 if test "${lt_cv_dlopen_self_static+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711 if test "$cross_compiling" = yes; then :
10712 lt_cv_dlopen_self_static=cross
10713 else
10714 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10715 lt_status=$lt_dlunknown
10716 cat > conftest.$ac_ext <<_LT_EOF
10717 #line 10717 "configure"
10718 #include "confdefs.h"
10720 #if HAVE_DLFCN_H
10721 #include <dlfcn.h>
10722 #endif
10724 #include <stdio.h>
10726 #ifdef RTLD_GLOBAL
10727 # define LT_DLGLOBAL RTLD_GLOBAL
10728 #else
10729 # ifdef DL_GLOBAL
10730 # define LT_DLGLOBAL DL_GLOBAL
10731 # else
10732 # define LT_DLGLOBAL 0
10733 # endif
10734 #endif
10736 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10737 find out it does not work in some platform. */
10738 #ifndef LT_DLLAZY_OR_NOW
10739 # ifdef RTLD_LAZY
10740 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10741 # else
10742 # ifdef DL_LAZY
10743 # define LT_DLLAZY_OR_NOW DL_LAZY
10744 # else
10745 # ifdef RTLD_NOW
10746 # define LT_DLLAZY_OR_NOW RTLD_NOW
10747 # else
10748 # ifdef DL_NOW
10749 # define LT_DLLAZY_OR_NOW DL_NOW
10750 # else
10751 # define LT_DLLAZY_OR_NOW 0
10752 # endif
10753 # endif
10754 # endif
10755 # endif
10756 #endif
10758 void fnord() { int i=42;}
10759 int main ()
10761 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10762 int status = $lt_dlunknown;
10764 if (self)
10766 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10767 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10768 /* dlclose (self); */
10770 else
10771 puts (dlerror ());
10773 return status;
10775 _LT_EOF
10776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10777 (eval $ac_link) 2>&5
10778 ac_status=$?
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10781 (./conftest; exit; ) >&5 2>/dev/null
10782 lt_status=$?
10783 case x$lt_status in
10784 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10785 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10786 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10787 esac
10788 else :
10789 # compilation failed
10790 lt_cv_dlopen_self_static=no
10793 rm -fr conftest*
10797 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10798 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10801 CPPFLAGS="$save_CPPFLAGS"
10802 LDFLAGS="$save_LDFLAGS"
10803 LIBS="$save_LIBS"
10805 esac
10807 case $lt_cv_dlopen_self in
10808 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10809 *) enable_dlopen_self=unknown ;;
10810 esac
10812 case $lt_cv_dlopen_self_static in
10813 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10814 *) enable_dlopen_self_static=unknown ;;
10815 esac
10834 striplib=
10835 old_striplib=
10836 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10837 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10838 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10839 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10840 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10841 { echo "$as_me:$LINENO: result: yes" >&5
10842 echo "${ECHO_T}yes" >&6; }
10843 else
10844 # FIXME - insert some real tests, host_os isn't really good enough
10845 case $host_os in
10846 darwin*)
10847 if test -n "$STRIP" ; then
10848 striplib="$STRIP -x"
10849 old_striplib="$STRIP -S"
10850 { echo "$as_me:$LINENO: result: yes" >&5
10851 echo "${ECHO_T}yes" >&6; }
10852 else
10853 { echo "$as_me:$LINENO: result: no" >&5
10854 echo "${ECHO_T}no" >&6; }
10858 { echo "$as_me:$LINENO: result: no" >&5
10859 echo "${ECHO_T}no" >&6; }
10861 esac
10875 # Report which library types will actually be built
10876 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10877 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10878 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10879 echo "${ECHO_T}$can_build_shared" >&6; }
10881 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10882 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10883 test "$can_build_shared" = "no" && enable_shared=no
10885 # On AIX, shared libraries and static libraries use the same namespace, and
10886 # are all built from PIC.
10887 case $host_os in
10888 aix3*)
10889 test "$enable_shared" = yes && enable_static=no
10890 if test -n "$RANLIB"; then
10891 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10892 postinstall_cmds='$RANLIB $lib'
10896 aix[4-9]*)
10897 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10898 test "$enable_shared" = yes && enable_static=no
10901 esac
10902 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10903 echo "${ECHO_T}$enable_shared" >&6; }
10905 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10906 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10907 # Make sure either enable_shared or enable_static is yes.
10908 test "$enable_shared" = yes || enable_static=yes
10909 { echo "$as_me:$LINENO: result: $enable_static" >&5
10910 echo "${ECHO_T}$enable_static" >&6; }
10916 ac_ext=c
10917 ac_cpp='$CPP $CPPFLAGS'
10918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10922 CC="$lt_save_CC"
10936 ac_config_commands="$ac_config_commands libtool"
10941 # Only expand once:
10944 { echo "$as_me:$LINENO: checking for inline" >&5
10945 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
10946 if test "${ac_cv_c_inline+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10949 ac_cv_c_inline=no
10950 for ac_kw in inline __inline__ __inline; do
10951 cat >conftest.$ac_ext <<_ACEOF
10952 /* confdefs.h. */
10953 _ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10957 #ifndef __cplusplus
10958 typedef int foo_t;
10959 static $ac_kw foo_t static_foo () {return 0; }
10960 $ac_kw foo_t foo () {return 0; }
10961 #endif
10963 _ACEOF
10964 rm -f conftest.$ac_objext
10965 if { (ac_try="$ac_compile"
10966 case "(($ac_try" in
10967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10968 *) ac_try_echo=$ac_try;;
10969 esac
10970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971 (eval "$ac_compile") 2>conftest.er1
10972 ac_status=$?
10973 grep -v '^ *+' conftest.er1 >conftest.err
10974 rm -f conftest.er1
10975 cat conftest.err >&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } && {
10978 test -z "$ac_c_werror_flag" ||
10979 test ! -s conftest.err
10980 } && test -s conftest.$ac_objext; then
10981 ac_cv_c_inline=$ac_kw
10982 else
10983 echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10990 test "$ac_cv_c_inline" != no && break
10991 done
10994 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10995 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10998 case $ac_cv_c_inline in
10999 inline | yes) ;;
11001 case $ac_cv_c_inline in
11002 no) ac_val=;;
11003 *) ac_val=$ac_cv_c_inline;;
11004 esac
11005 cat >>confdefs.h <<_ACEOF
11006 #ifndef __cplusplus
11007 #define inline $ac_val
11008 #endif
11009 _ACEOF
11011 esac
11013 if test "x$CC" != xcc; then
11014 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
11015 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
11016 else
11017 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
11018 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
11020 set dummy $CC; ac_cc=`echo $2 |
11021 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11022 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11024 else
11025 cat >conftest.$ac_ext <<_ACEOF
11026 /* confdefs.h. */
11027 _ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h. */
11033 main ()
11037 return 0;
11039 _ACEOF
11040 # Make sure it works both with $CC and with simple cc.
11041 # We do the test twice because some compilers refuse to overwrite an
11042 # existing .o file with -o, though they will create one.
11043 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11044 rm -f conftest2.*
11045 if { (case "(($ac_try" in
11046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047 *) ac_try_echo=$ac_try;;
11048 esac
11049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11050 (eval "$ac_try") 2>&5
11051 ac_status=$?
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } &&
11054 test -f conftest2.$ac_objext && { (case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11057 esac
11058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_try") 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); };
11063 then
11064 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11065 if test "x$CC" != xcc; then
11066 # Test first that cc exists at all.
11067 if { ac_try='cc -c conftest.$ac_ext >&5'
11068 { (case "(($ac_try" in
11069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11070 *) ac_try_echo=$ac_try;;
11071 esac
11072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11073 (eval "$ac_try") 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; }; then
11077 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11078 rm -f conftest2.*
11079 if { (case "(($ac_try" in
11080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081 *) ac_try_echo=$ac_try;;
11082 esac
11083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084 (eval "$ac_try") 2>&5
11085 ac_status=$?
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 test -f conftest2.$ac_objext && { (case "(($ac_try" in
11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090 *) ac_try_echo=$ac_try;;
11091 esac
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093 (eval "$ac_try") 2>&5
11094 ac_status=$?
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); };
11097 then
11098 # cc works too.
11100 else
11101 # cc exists but doesn't like -o.
11102 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11106 else
11107 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11109 rm -f core conftest*
11112 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11113 { echo "$as_me:$LINENO: result: yes" >&5
11114 echo "${ECHO_T}yes" >&6; }
11115 else
11116 { echo "$as_me:$LINENO: result: no" >&5
11117 echo "${ECHO_T}no" >&6; }
11119 cat >>confdefs.h <<\_ACEOF
11120 #define NO_MINUS_C_MINUS_O 1
11121 _ACEOF
11125 # FIXME: we rely on the cache variable name because
11126 # there is no other way.
11127 set dummy $CC
11128 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11129 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
11130 # Losing compiler, so override with the script.
11131 # FIXME: It is wrong to rewrite CC.
11132 # But if we don't then we get into trouble of one sort or another.
11133 # A longer-term fix would be to have automake use am__CC in this case,
11134 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11135 CC="$am_aux_dir/compile $CC"
11140 # Library versioning
11141 LT_MAJOR="8"
11142 LT_REVISION="4"
11143 LT_AGE="4"
11148 # The libusb-0.1 version we pretend to be
11149 LIBUSB01_VERSION="0.1.12"
11154 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11155 if test -n "$ac_tool_prefix"; then
11156 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11157 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11160 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11162 else
11163 case $PKG_CONFIG in
11164 [\\/]* | ?:[\\/]*)
11165 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169 for as_dir in $PATH
11171 IFS=$as_save_IFS
11172 test -z "$as_dir" && as_dir=.
11173 for ac_exec_ext in '' $ac_executable_extensions; do
11174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11175 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11177 break 2
11179 done
11180 done
11181 IFS=$as_save_IFS
11184 esac
11186 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11187 if test -n "$PKG_CONFIG"; then
11188 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11189 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11190 else
11191 { echo "$as_me:$LINENO: result: no" >&5
11192 echo "${ECHO_T}no" >&6; }
11197 if test -z "$ac_cv_path_PKG_CONFIG"; then
11198 ac_pt_PKG_CONFIG=$PKG_CONFIG
11199 # Extract the first word of "pkg-config", so it can be a program name with args.
11200 set dummy pkg-config; ac_word=$2
11201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11203 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11205 else
11206 case $ac_pt_PKG_CONFIG in
11207 [\\/]* | ?:[\\/]*)
11208 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11212 for as_dir in $PATH
11214 IFS=$as_save_IFS
11215 test -z "$as_dir" && as_dir=.
11216 for ac_exec_ext in '' $ac_executable_extensions; do
11217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11218 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11220 break 2
11222 done
11223 done
11224 IFS=$as_save_IFS
11227 esac
11229 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11230 if test -n "$ac_pt_PKG_CONFIG"; then
11231 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11232 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
11233 else
11234 { echo "$as_me:$LINENO: result: no" >&5
11235 echo "${ECHO_T}no" >&6; }
11238 if test "x$ac_pt_PKG_CONFIG" = x; then
11239 PKG_CONFIG=""
11240 else
11241 case $cross_compiling:$ac_tool_warned in
11242 yes:)
11243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11244 whose name does not start with the host triplet. If you think this
11245 configuration is useful to you, please write to autoconf@gnu.org." >&5
11246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11247 whose name does not start with the host triplet. If you think this
11248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11249 ac_tool_warned=yes ;;
11250 esac
11251 PKG_CONFIG=$ac_pt_PKG_CONFIG
11253 else
11254 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11258 if test -n "$PKG_CONFIG"; then
11259 _pkg_min_version=0.9.0
11260 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11261 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
11262 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11263 { echo "$as_me:$LINENO: result: yes" >&5
11264 echo "${ECHO_T}yes" >&6; }
11265 else
11266 { echo "$as_me:$LINENO: result: no" >&5
11267 echo "${ECHO_T}no" >&6; }
11268 PKG_CONFIG=""
11273 pkg_failed=no
11274 { echo "$as_me:$LINENO: checking for LIBUSB_1_0" >&5
11275 echo $ECHO_N "checking for LIBUSB_1_0... $ECHO_C" >&6; }
11277 if test -n "$PKG_CONFIG"; then
11278 if test -n "$LIBUSB_1_0_CFLAGS"; then
11279 pkg_cv_LIBUSB_1_0_CFLAGS="$LIBUSB_1_0_CFLAGS"
11280 else
11281 if test -n "$PKG_CONFIG" && \
11282 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 0.9.1\"") >&5
11283 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 0.9.1") 2>&5
11284 ac_status=$?
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; then
11287 pkg_cv_LIBUSB_1_0_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= 0.9.1" 2>/dev/null`
11288 else
11289 pkg_failed=yes
11292 else
11293 pkg_failed=untried
11295 if test -n "$PKG_CONFIG"; then
11296 if test -n "$LIBUSB_1_0_LIBS"; then
11297 pkg_cv_LIBUSB_1_0_LIBS="$LIBUSB_1_0_LIBS"
11298 else
11299 if test -n "$PKG_CONFIG" && \
11300 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 0.9.1\"") >&5
11301 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 0.9.1") 2>&5
11302 ac_status=$?
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; then
11305 pkg_cv_LIBUSB_1_0_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= 0.9.1" 2>/dev/null`
11306 else
11307 pkg_failed=yes
11310 else
11311 pkg_failed=untried
11316 if test $pkg_failed = yes; then
11318 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11319 _pkg_short_errors_supported=yes
11320 else
11321 _pkg_short_errors_supported=no
11323 if test $_pkg_short_errors_supported = yes; then
11324 LIBUSB_1_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libusb-1.0 >= 0.9.1"`
11325 else
11326 LIBUSB_1_0_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libusb-1.0 >= 0.9.1"`
11328 # Put the nasty error message in config.log where it belongs
11329 echo "$LIBUSB_1_0_PKG_ERRORS" >&5
11331 { { echo "$as_me:$LINENO: error: Package requirements (libusb-1.0 >= 0.9.1) were not met:
11333 $LIBUSB_1_0_PKG_ERRORS
11335 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11336 installed software in a non-standard prefix.
11338 Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
11339 and LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
11340 See the pkg-config man page for more details.
11341 " >&5
11342 echo "$as_me: error: Package requirements (libusb-1.0 >= 0.9.1) were not met:
11344 $LIBUSB_1_0_PKG_ERRORS
11346 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11347 installed software in a non-standard prefix.
11349 Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
11350 and LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
11351 See the pkg-config man page for more details.
11352 " >&2;}
11353 { (exit 1); exit 1; }; }
11354 elif test $pkg_failed = untried; then
11355 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11356 is in your PATH or set the PKG_CONFIG environment variable to the full
11357 path to pkg-config.
11359 Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
11360 and LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
11361 See the pkg-config man page for more details.
11363 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11364 See \`config.log' for more details." >&5
11365 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11366 is in your PATH or set the PKG_CONFIG environment variable to the full
11367 path to pkg-config.
11369 Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
11370 and LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
11371 See the pkg-config man page for more details.
11373 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11374 See \`config.log' for more details." >&2;}
11375 { (exit 1); exit 1; }; }
11376 else
11377 LIBUSB_1_0_CFLAGS=$pkg_cv_LIBUSB_1_0_CFLAGS
11378 LIBUSB_1_0_LIBS=$pkg_cv_LIBUSB_1_0_LIBS
11379 { echo "$as_me:$LINENO: result: yes" >&5
11380 echo "${ECHO_T}yes" >&6; }
11386 # Message logging
11387 # Check whether --enable-log was given.
11388 if test "${enable_log+set}" = set; then
11389 enableval=$enable_log; log_enabled=$enableval
11390 else
11391 log_enabled='yes'
11394 if test "x$log_enabled" != "xno"; then
11396 cat >>confdefs.h <<\_ACEOF
11397 #define ENABLE_LOGGING 1
11398 _ACEOF
11402 # Check whether --enable-debug-log was given.
11403 if test "${enable_debug_log+set}" = set; then
11404 enableval=$enable_debug_log; debug_log_enabled=$enableval
11405 else
11406 debug_log_enabled='no'
11409 if test "x$debug_log_enabled" != "xno"; then
11411 cat >>confdefs.h <<\_ACEOF
11412 #define ENABLE_DEBUG_LOGGING 1
11413 _ACEOF
11417 # Examples build
11418 # Check whether --enable-examples-build was given.
11419 if test "${enable_examples_build+set}" = set; then
11420 enableval=$enable_examples_build; build_examples=$enableval
11421 else
11422 build_examples='no'
11425 if test "x$build_examples" != "xno"; then
11426 BUILD_EXAMPLES_TRUE=
11427 BUILD_EXAMPLES_FALSE='#'
11428 else
11429 BUILD_EXAMPLES_TRUE='#'
11430 BUILD_EXAMPLES_FALSE=
11434 # Restore gnu89 inline semantics on gcc 4.3 and newer
11435 saved_cflags="$CFLAGS"
11436 CFLAGS="$CFLAGS -fgnu89-inline"
11437 cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h. */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11445 main ()
11449 return 0;
11451 _ACEOF
11452 rm -f conftest.$ac_objext
11453 if { (ac_try="$ac_compile"
11454 case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11457 esac
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_compile") 2>conftest.er1
11460 ac_status=$?
11461 grep -v '^ *+' conftest.er1 >conftest.err
11462 rm -f conftest.er1
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } && {
11466 test -z "$ac_c_werror_flag" ||
11467 test ! -s conftest.err
11468 } && test -s conftest.$ac_objext; then
11469 inline_cflags="-fgnu89-inline"
11470 else
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 inline_cflags=""
11477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11478 CFLAGS="$saved_cflags"
11481 cat >>confdefs.h <<\_ACEOF
11482 #define API_EXPORTED __attribute__((visibility("default")))
11483 _ACEOF
11485 AM_CFLAGS="-std=gnu99 $inline_cflags -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wshadow"
11488 ac_config_files="$ac_config_files libusb.pc libusb-config Makefile libusb/Makefile examples/Makefile"
11490 ac_config_commands="$ac_config_commands default"
11493 cat >confcache <<\_ACEOF
11494 # This file is a shell script that caches the results of configure
11495 # tests run on this system so they can be shared between configure
11496 # scripts and configure runs, see configure's option --config-cache.
11497 # It is not useful on other systems. If it contains results you don't
11498 # want to keep, you may remove or edit it.
11500 # config.status only pays attention to the cache file if you give it
11501 # the --recheck option to rerun configure.
11503 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11504 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11505 # following values.
11507 _ACEOF
11509 # The following way of writing the cache mishandles newlines in values,
11510 # but we know of no workaround that is simple, portable, and efficient.
11511 # So, we kill variables containing newlines.
11512 # Ultrix sh set writes to stderr and can't be redirected directly,
11513 # and sets the high bit in the cache file unless we assign to the vars.
11515 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11516 eval ac_val=\$$ac_var
11517 case $ac_val in #(
11518 *${as_nl}*)
11519 case $ac_var in #(
11520 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11521 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11522 esac
11523 case $ac_var in #(
11524 _ | IFS | as_nl) ;; #(
11525 *) $as_unset $ac_var ;;
11526 esac ;;
11527 esac
11528 done
11530 (set) 2>&1 |
11531 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11532 *${as_nl}ac_space=\ *)
11533 # `set' does not quote correctly, so add quotes (double-quote
11534 # substitution turns \\\\ into \\, and sed turns \\ into \).
11535 sed -n \
11536 "s/'/'\\\\''/g;
11537 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11538 ;; #(
11540 # `set' quotes correctly as required by POSIX, so do not add quotes.
11541 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11543 esac |
11544 sort
11546 sed '
11547 /^ac_cv_env_/b end
11548 t clear
11549 :clear
11550 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11551 t end
11552 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11553 :end' >>confcache
11554 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11555 if test -w "$cache_file"; then
11556 test "x$cache_file" != "x/dev/null" &&
11557 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11558 echo "$as_me: updating cache $cache_file" >&6;}
11559 cat confcache >$cache_file
11560 else
11561 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11562 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11565 rm -f confcache
11567 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11568 # Let make expand exec_prefix.
11569 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11571 DEFS=-DHAVE_CONFIG_H
11573 ac_libobjs=
11574 ac_ltlibobjs=
11575 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11576 # 1. Remove the extension, and $U if already installed.
11577 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11578 ac_i=`echo "$ac_i" | sed "$ac_script"`
11579 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11580 # will be set to the directory where LIBOBJS objects are built.
11581 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11582 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11583 done
11584 LIBOBJS=$ac_libobjs
11586 LTLIBOBJS=$ac_ltlibobjs
11589 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11590 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11591 Usually this means the macro was only invoked conditionally." >&5
11592 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11593 Usually this means the macro was only invoked conditionally." >&2;}
11594 { (exit 1); exit 1; }; }
11596 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11597 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11598 Usually this means the macro was only invoked conditionally." >&5
11599 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11600 Usually this means the macro was only invoked conditionally." >&2;}
11601 { (exit 1); exit 1; }; }
11603 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
11604 { { echo "$as_me:$LINENO: error: conditional \"BUILD_EXAMPLES\" was never defined.
11605 Usually this means the macro was only invoked conditionally." >&5
11606 echo "$as_me: error: conditional \"BUILD_EXAMPLES\" was never defined.
11607 Usually this means the macro was only invoked conditionally." >&2;}
11608 { (exit 1); exit 1; }; }
11611 : ${CONFIG_STATUS=./config.status}
11612 ac_clean_files_save=$ac_clean_files
11613 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11614 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11615 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11616 cat >$CONFIG_STATUS <<_ACEOF
11617 #! $SHELL
11618 # Generated by $as_me.
11619 # Run this file to recreate the current configuration.
11620 # Compiler output produced by configure, useful for debugging
11621 # configure, is in config.log if it exists.
11623 debug=false
11624 ac_cs_recheck=false
11625 ac_cs_silent=false
11626 SHELL=\${CONFIG_SHELL-$SHELL}
11627 _ACEOF
11629 cat >>$CONFIG_STATUS <<\_ACEOF
11630 ## --------------------- ##
11631 ## M4sh Initialization. ##
11632 ## --------------------- ##
11634 # Be more Bourne compatible
11635 DUALCASE=1; export DUALCASE # for MKS sh
11636 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11637 emulate sh
11638 NULLCMD=:
11639 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11640 # is contrary to our usage. Disable this feature.
11641 alias -g '${1+"$@"}'='"$@"'
11642 setopt NO_GLOB_SUBST
11643 else
11644 case `(set -o) 2>/dev/null` in
11645 *posix*) set -o posix ;;
11646 esac
11653 # PATH needs CR
11654 # Avoid depending upon Character Ranges.
11655 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11656 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11657 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11658 as_cr_digits='0123456789'
11659 as_cr_alnum=$as_cr_Letters$as_cr_digits
11661 # The user is always right.
11662 if test "${PATH_SEPARATOR+set}" != set; then
11663 echo "#! /bin/sh" >conf$$.sh
11664 echo "exit 0" >>conf$$.sh
11665 chmod +x conf$$.sh
11666 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11667 PATH_SEPARATOR=';'
11668 else
11669 PATH_SEPARATOR=:
11671 rm -f conf$$.sh
11674 # Support unset when possible.
11675 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11676 as_unset=unset
11677 else
11678 as_unset=false
11682 # IFS
11683 # We need space, tab and new line, in precisely that order. Quoting is
11684 # there to prevent editors from complaining about space-tab.
11685 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11686 # splitting by setting IFS to empty value.)
11687 as_nl='
11689 IFS=" "" $as_nl"
11691 # Find who we are. Look in the path if we contain no directory separator.
11692 case $0 in
11693 *[\\/]* ) as_myself=$0 ;;
11694 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11695 for as_dir in $PATH
11697 IFS=$as_save_IFS
11698 test -z "$as_dir" && as_dir=.
11699 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11700 done
11701 IFS=$as_save_IFS
11704 esac
11705 # We did not find ourselves, most probably we were run as `sh COMMAND'
11706 # in which case we are not to be found in the path.
11707 if test "x$as_myself" = x; then
11708 as_myself=$0
11710 if test ! -f "$as_myself"; then
11711 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11712 { (exit 1); exit 1; }
11715 # Work around bugs in pre-3.0 UWIN ksh.
11716 for as_var in ENV MAIL MAILPATH
11717 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11718 done
11719 PS1='$ '
11720 PS2='> '
11721 PS4='+ '
11723 # NLS nuisances.
11724 for as_var in \
11725 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11726 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11727 LC_TELEPHONE LC_TIME
11729 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11730 eval $as_var=C; export $as_var
11731 else
11732 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11734 done
11736 # Required to use basename.
11737 if expr a : '\(a\)' >/dev/null 2>&1 &&
11738 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11739 as_expr=expr
11740 else
11741 as_expr=false
11744 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11745 as_basename=basename
11746 else
11747 as_basename=false
11751 # Name of the executable.
11752 as_me=`$as_basename -- "$0" ||
11753 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11754 X"$0" : 'X\(//\)$' \| \
11755 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11756 echo X/"$0" |
11757 sed '/^.*\/\([^/][^/]*\)\/*$/{
11758 s//\1/
11761 /^X\/\(\/\/\)$/{
11762 s//\1/
11765 /^X\/\(\/\).*/{
11766 s//\1/
11769 s/.*/./; q'`
11771 # CDPATH.
11772 $as_unset CDPATH
11776 as_lineno_1=$LINENO
11777 as_lineno_2=$LINENO
11778 test "x$as_lineno_1" != "x$as_lineno_2" &&
11779 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11781 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11782 # uniformly replaced by the line number. The first 'sed' inserts a
11783 # line-number line after each line using $LINENO; the second 'sed'
11784 # does the real work. The second script uses 'N' to pair each
11785 # line-number line with the line containing $LINENO, and appends
11786 # trailing '-' during substitution so that $LINENO is not a special
11787 # case at line end.
11788 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11789 # scripts with optimization help from Paolo Bonzini. Blame Lee
11790 # E. McMahon (1931-1989) for sed's syntax. :-)
11791 sed -n '
11793 /[$]LINENO/=
11794 ' <$as_myself |
11795 sed '
11796 s/[$]LINENO.*/&-/
11797 t lineno
11799 :lineno
11801 :loop
11802 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11803 t loop
11804 s/-\n.*//
11805 ' >$as_me.lineno &&
11806 chmod +x "$as_me.lineno" ||
11807 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11808 { (exit 1); exit 1; }; }
11810 # Don't try to exec as it changes $[0], causing all sort of problems
11811 # (the dirname of $[0] is not the place where we might find the
11812 # original and so on. Autoconf is especially sensitive to this).
11813 . "./$as_me.lineno"
11814 # Exit status is that of the last command.
11815 exit
11819 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11820 as_dirname=dirname
11821 else
11822 as_dirname=false
11825 ECHO_C= ECHO_N= ECHO_T=
11826 case `echo -n x` in
11827 -n*)
11828 case `echo 'x\c'` in
11829 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11830 *) ECHO_C='\c';;
11831 esac;;
11833 ECHO_N='-n';;
11834 esac
11836 if expr a : '\(a\)' >/dev/null 2>&1 &&
11837 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11838 as_expr=expr
11839 else
11840 as_expr=false
11843 rm -f conf$$ conf$$.exe conf$$.file
11844 if test -d conf$$.dir; then
11845 rm -f conf$$.dir/conf$$.file
11846 else
11847 rm -f conf$$.dir
11848 mkdir conf$$.dir
11850 echo >conf$$.file
11851 if ln -s conf$$.file conf$$ 2>/dev/null; then
11852 as_ln_s='ln -s'
11853 # ... but there are two gotchas:
11854 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11855 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11856 # In both cases, we have to default to `cp -p'.
11857 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11858 as_ln_s='cp -p'
11859 elif ln conf$$.file conf$$ 2>/dev/null; then
11860 as_ln_s=ln
11861 else
11862 as_ln_s='cp -p'
11864 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11865 rmdir conf$$.dir 2>/dev/null
11867 if mkdir -p . 2>/dev/null; then
11868 as_mkdir_p=:
11869 else
11870 test -d ./-p && rmdir ./-p
11871 as_mkdir_p=false
11874 if test -x / >/dev/null 2>&1; then
11875 as_test_x='test -x'
11876 else
11877 if ls -dL / >/dev/null 2>&1; then
11878 as_ls_L_option=L
11879 else
11880 as_ls_L_option=
11882 as_test_x='
11883 eval sh -c '\''
11884 if test -d "$1"; then
11885 test -d "$1/.";
11886 else
11887 case $1 in
11888 -*)set "./$1";;
11889 esac;
11890 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11891 ???[sx]*):;;*)false;;esac;fi
11892 '\'' sh
11895 as_executable_p=$as_test_x
11897 # Sed expression to map a string onto a valid CPP name.
11898 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11900 # Sed expression to map a string onto a valid variable name.
11901 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11904 exec 6>&1
11906 # Save the log message, to keep $[0] and so on meaningful, and to
11907 # report actual input values of CONFIG_FILES etc. instead of their
11908 # values after options handling.
11909 ac_log="
11910 This file was extended by libusb-compat $as_me 0.1.3, which was
11911 generated by GNU Autoconf 2.61. Invocation command line was
11913 CONFIG_FILES = $CONFIG_FILES
11914 CONFIG_HEADERS = $CONFIG_HEADERS
11915 CONFIG_LINKS = $CONFIG_LINKS
11916 CONFIG_COMMANDS = $CONFIG_COMMANDS
11917 $ $0 $@
11919 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11922 _ACEOF
11924 cat >>$CONFIG_STATUS <<_ACEOF
11925 # Files that config.status was made for.
11926 config_files="$ac_config_files"
11927 config_headers="$ac_config_headers"
11928 config_commands="$ac_config_commands"
11930 _ACEOF
11932 cat >>$CONFIG_STATUS <<\_ACEOF
11933 ac_cs_usage="\
11934 \`$as_me' instantiates files from templates according to the
11935 current configuration.
11937 Usage: $0 [OPTIONS] [FILE]...
11939 -h, --help print this help, then exit
11940 -V, --version print version number and configuration settings, then exit
11941 -q, --quiet do not print progress messages
11942 -d, --debug don't remove temporary files
11943 --recheck update $as_me by reconfiguring in the same conditions
11944 --file=FILE[:TEMPLATE]
11945 instantiate the configuration file FILE
11946 --header=FILE[:TEMPLATE]
11947 instantiate the configuration header FILE
11949 Configuration files:
11950 $config_files
11952 Configuration headers:
11953 $config_headers
11955 Configuration commands:
11956 $config_commands
11958 Report bugs to <bug-autoconf@gnu.org>."
11960 _ACEOF
11961 cat >>$CONFIG_STATUS <<_ACEOF
11962 ac_cs_version="\\
11963 libusb-compat config.status 0.1.3
11964 configured by $0, generated by GNU Autoconf 2.61,
11965 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11967 Copyright (C) 2006 Free Software Foundation, Inc.
11968 This config.status script is free software; the Free Software Foundation
11969 gives unlimited permission to copy, distribute and modify it."
11971 ac_pwd='$ac_pwd'
11972 srcdir='$srcdir'
11973 INSTALL='$INSTALL'
11974 MKDIR_P='$MKDIR_P'
11975 _ACEOF
11977 cat >>$CONFIG_STATUS <<\_ACEOF
11978 # If no file are specified by the user, then we need to provide default
11979 # value. By we need to know if files were specified by the user.
11980 ac_need_defaults=:
11981 while test $# != 0
11983 case $1 in
11984 --*=*)
11985 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11986 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11987 ac_shift=:
11990 ac_option=$1
11991 ac_optarg=$2
11992 ac_shift=shift
11994 esac
11996 case $ac_option in
11997 # Handling of the options.
11998 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11999 ac_cs_recheck=: ;;
12000 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12001 echo "$ac_cs_version"; exit ;;
12002 --debug | --debu | --deb | --de | --d | -d )
12003 debug=: ;;
12004 --file | --fil | --fi | --f )
12005 $ac_shift
12006 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12007 ac_need_defaults=false;;
12008 --header | --heade | --head | --hea )
12009 $ac_shift
12010 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12011 ac_need_defaults=false;;
12012 --he | --h)
12013 # Conflict between --help and --header
12014 { echo "$as_me: error: ambiguous option: $1
12015 Try \`$0 --help' for more information." >&2
12016 { (exit 1); exit 1; }; };;
12017 --help | --hel | -h )
12018 echo "$ac_cs_usage"; exit ;;
12019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12020 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12021 ac_cs_silent=: ;;
12023 # This is an error.
12024 -*) { echo "$as_me: error: unrecognized option: $1
12025 Try \`$0 --help' for more information." >&2
12026 { (exit 1); exit 1; }; } ;;
12028 *) ac_config_targets="$ac_config_targets $1"
12029 ac_need_defaults=false ;;
12031 esac
12032 shift
12033 done
12035 ac_configure_extra_args=
12037 if $ac_cs_silent; then
12038 exec 6>/dev/null
12039 ac_configure_extra_args="$ac_configure_extra_args --silent"
12042 _ACEOF
12043 cat >>$CONFIG_STATUS <<_ACEOF
12044 if \$ac_cs_recheck; then
12045 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12046 CONFIG_SHELL=$SHELL
12047 export CONFIG_SHELL
12048 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12051 _ACEOF
12052 cat >>$CONFIG_STATUS <<\_ACEOF
12053 exec 5>>config.log
12055 echo
12056 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12057 ## Running $as_me. ##
12058 _ASBOX
12059 echo "$ac_log"
12060 } >&5
12062 _ACEOF
12063 cat >>$CONFIG_STATUS <<_ACEOF
12065 # INIT-COMMANDS
12067 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12070 # The HP-UX ksh and POSIX shell print the target directory to stdout
12071 # if CDPATH is set.
12072 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12074 sed_quote_subst='$sed_quote_subst'
12075 double_quote_subst='$double_quote_subst'
12076 delay_variable_subst='$delay_variable_subst'
12077 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12078 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12079 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12080 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12081 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12082 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12083 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12084 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12085 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12086 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12087 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12088 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12089 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12090 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12091 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12092 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12093 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12094 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12095 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12096 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12097 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12098 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12099 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12100 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12101 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12102 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12103 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12104 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12105 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12106 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12107 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12108 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12109 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12110 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12111 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12112 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12113 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12114 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12115 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12116 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12117 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12118 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12119 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12120 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12121 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"`'
12122 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12123 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12124 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12125 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12126 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12127 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12128 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12129 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12130 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12131 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12132 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12133 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12134 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12135 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12136 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12137 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12138 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12139 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12140 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12141 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12142 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12143 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12144 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12145 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12146 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12147 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12148 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12149 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12150 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12151 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12152 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12153 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12154 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12155 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12156 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12157 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12158 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12159 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12160 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12161 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12162 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12163 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12164 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12165 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12166 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12167 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12168 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12169 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12170 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12171 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12172 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12173 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12174 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12175 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12176 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12177 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12178 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12179 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12180 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12181 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12182 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12183 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12184 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12185 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12186 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12187 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12188 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12189 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12190 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12191 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12192 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12193 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12194 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12196 LTCC='$LTCC'
12197 LTCFLAGS='$LTCFLAGS'
12198 compiler='$compiler_DEFAULT'
12200 # Quote evaled strings.
12201 for var in SED \
12202 GREP \
12203 EGREP \
12204 FGREP \
12205 LD \
12206 NM \
12207 LN_S \
12208 lt_SP2NL \
12209 lt_NL2SP \
12210 reload_flag \
12211 OBJDUMP \
12212 deplibs_check_method \
12213 file_magic_cmd \
12214 AR \
12215 AR_FLAGS \
12216 STRIP \
12217 RANLIB \
12218 CC \
12219 CFLAGS \
12220 compiler \
12221 lt_cv_sys_global_symbol_pipe \
12222 lt_cv_sys_global_symbol_to_cdecl \
12223 lt_cv_sys_global_symbol_to_c_name_address \
12224 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12225 SHELL \
12226 ECHO \
12227 lt_prog_compiler_no_builtin_flag \
12228 lt_prog_compiler_wl \
12229 lt_prog_compiler_pic \
12230 lt_prog_compiler_static \
12231 lt_cv_prog_compiler_c_o \
12232 need_locks \
12233 DSYMUTIL \
12234 NMEDIT \
12235 LIPO \
12236 OTOOL \
12237 OTOOL64 \
12238 shrext_cmds \
12239 export_dynamic_flag_spec \
12240 whole_archive_flag_spec \
12241 compiler_needs_object \
12242 with_gnu_ld \
12243 allow_undefined_flag \
12244 no_undefined_flag \
12245 hardcode_libdir_flag_spec \
12246 hardcode_libdir_flag_spec_ld \
12247 hardcode_libdir_separator \
12248 fix_srcfile_path \
12249 exclude_expsyms \
12250 include_expsyms \
12251 file_list_spec \
12252 variables_saved_for_relink \
12253 libname_spec \
12254 library_names_spec \
12255 soname_spec \
12256 finish_eval \
12257 old_striplib \
12258 striplib; do
12259 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12260 *[\\\\\\\`\\"\\\$]*)
12261 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12264 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12266 esac
12267 done
12269 # Double-quote double-evaled strings.
12270 for var in reload_cmds \
12271 old_postinstall_cmds \
12272 old_postuninstall_cmds \
12273 old_archive_cmds \
12274 extract_expsyms_cmds \
12275 old_archive_from_new_cmds \
12276 old_archive_from_expsyms_cmds \
12277 archive_cmds \
12278 archive_expsym_cmds \
12279 module_cmds \
12280 module_expsym_cmds \
12281 export_symbols_cmds \
12282 prelink_cmds \
12283 postinstall_cmds \
12284 postuninstall_cmds \
12285 finish_cmds \
12286 sys_lib_search_path_spec \
12287 sys_lib_dlsearch_path_spec; do
12288 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12289 *[\\\\\\\`\\"\\\$]*)
12290 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12293 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12295 esac
12296 done
12298 # Fix-up fallback echo if it was mangled by the above quoting rules.
12299 case \$lt_ECHO in
12300 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12302 esac
12304 ac_aux_dir='$ac_aux_dir'
12305 xsi_shell='$xsi_shell'
12306 lt_shell_append='$lt_shell_append'
12308 # See if we are running on zsh, and set the options which allow our
12309 # commands through without removal of \ escapes INIT.
12310 if test -n "\${ZSH_VERSION+set}" ; then
12311 setopt NO_GLOB_SUBST
12315 PACKAGE='$PACKAGE'
12316 VERSION='$VERSION'
12317 TIMESTAMP='$TIMESTAMP'
12318 RM='$RM'
12319 ofile='$ofile'
12325 _ACEOF
12327 cat >>$CONFIG_STATUS <<\_ACEOF
12329 # Handling of arguments.
12330 for ac_config_target in $ac_config_targets
12332 case $ac_config_target in
12333 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12334 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12335 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12336 "libusb.pc") CONFIG_FILES="$CONFIG_FILES libusb.pc" ;;
12337 "libusb-config") CONFIG_FILES="$CONFIG_FILES libusb-config" ;;
12338 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12339 "libusb/Makefile") CONFIG_FILES="$CONFIG_FILES libusb/Makefile" ;;
12340 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
12341 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12343 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12344 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12345 { (exit 1); exit 1; }; };;
12346 esac
12347 done
12350 # If the user did not use the arguments to specify the items to instantiate,
12351 # then the envvar interface is used. Set only those that are not.
12352 # We use the long form for the default assignment because of an extremely
12353 # bizarre bug on SunOS 4.1.3.
12354 if $ac_need_defaults; then
12355 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12356 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12357 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12360 # Have a temporary directory for convenience. Make it in the build tree
12361 # simply because there is no reason against having it here, and in addition,
12362 # creating and moving files from /tmp can sometimes cause problems.
12363 # Hook for its removal unless debugging.
12364 # Note that there is a small window in which the directory will not be cleaned:
12365 # after its creation but before its name has been assigned to `$tmp'.
12366 $debug ||
12368 tmp=
12369 trap 'exit_status=$?
12370 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12372 trap '{ (exit 1); exit 1; }' 1 2 13 15
12374 # Create a (secure) tmp directory for tmp files.
12377 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12378 test -n "$tmp" && test -d "$tmp"
12379 } ||
12381 tmp=./conf$$-$RANDOM
12382 (umask 077 && mkdir "$tmp")
12383 } ||
12385 echo "$me: cannot create a temporary directory in ." >&2
12386 { (exit 1); exit 1; }
12390 # Set up the sed scripts for CONFIG_FILES section.
12393 # No need to generate the scripts if there are no CONFIG_FILES.
12394 # This happens for instance when ./config.status config.h
12395 if test -n "$CONFIG_FILES"; then
12397 _ACEOF
12401 ac_delim='%!_!# '
12402 for ac_last_try in false false false false false :; do
12403 cat >conf$$subs.sed <<_ACEOF
12404 SHELL!$SHELL$ac_delim
12405 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12406 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12407 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12408 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12409 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12410 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12411 exec_prefix!$exec_prefix$ac_delim
12412 prefix!$prefix$ac_delim
12413 program_transform_name!$program_transform_name$ac_delim
12414 bindir!$bindir$ac_delim
12415 sbindir!$sbindir$ac_delim
12416 libexecdir!$libexecdir$ac_delim
12417 datarootdir!$datarootdir$ac_delim
12418 datadir!$datadir$ac_delim
12419 sysconfdir!$sysconfdir$ac_delim
12420 sharedstatedir!$sharedstatedir$ac_delim
12421 localstatedir!$localstatedir$ac_delim
12422 includedir!$includedir$ac_delim
12423 oldincludedir!$oldincludedir$ac_delim
12424 docdir!$docdir$ac_delim
12425 infodir!$infodir$ac_delim
12426 htmldir!$htmldir$ac_delim
12427 dvidir!$dvidir$ac_delim
12428 pdfdir!$pdfdir$ac_delim
12429 psdir!$psdir$ac_delim
12430 libdir!$libdir$ac_delim
12431 localedir!$localedir$ac_delim
12432 mandir!$mandir$ac_delim
12433 DEFS!$DEFS$ac_delim
12434 ECHO_C!$ECHO_C$ac_delim
12435 ECHO_N!$ECHO_N$ac_delim
12436 ECHO_T!$ECHO_T$ac_delim
12437 LIBS!$LIBS$ac_delim
12438 build_alias!$build_alias$ac_delim
12439 host_alias!$host_alias$ac_delim
12440 target_alias!$target_alias$ac_delim
12441 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12442 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12443 INSTALL_DATA!$INSTALL_DATA$ac_delim
12444 am__isrc!$am__isrc$ac_delim
12445 CYGPATH_W!$CYGPATH_W$ac_delim
12446 PACKAGE!$PACKAGE$ac_delim
12447 VERSION!$VERSION$ac_delim
12448 ACLOCAL!$ACLOCAL$ac_delim
12449 AUTOCONF!$AUTOCONF$ac_delim
12450 AUTOMAKE!$AUTOMAKE$ac_delim
12451 AUTOHEADER!$AUTOHEADER$ac_delim
12452 MAKEINFO!$MAKEINFO$ac_delim
12453 install_sh!$install_sh$ac_delim
12454 STRIP!$STRIP$ac_delim
12455 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
12456 mkdir_p!$mkdir_p$ac_delim
12457 AWK!$AWK$ac_delim
12458 SET_MAKE!$SET_MAKE$ac_delim
12459 am__leading_dot!$am__leading_dot$ac_delim
12460 AMTAR!$AMTAR$ac_delim
12461 am__tar!$am__tar$ac_delim
12462 am__untar!$am__untar$ac_delim
12463 CC!$CC$ac_delim
12464 CFLAGS!$CFLAGS$ac_delim
12465 LDFLAGS!$LDFLAGS$ac_delim
12466 CPPFLAGS!$CPPFLAGS$ac_delim
12467 ac_ct_CC!$ac_ct_CC$ac_delim
12468 EXEEXT!$EXEEXT$ac_delim
12469 OBJEXT!$OBJEXT$ac_delim
12470 DEPDIR!$DEPDIR$ac_delim
12471 am__include!$am__include$ac_delim
12472 am__quote!$am__quote$ac_delim
12473 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
12474 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
12475 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
12476 CCDEPMODE!$CCDEPMODE$ac_delim
12477 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
12478 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
12479 LIBTOOL!$LIBTOOL$ac_delim
12480 build!$build$ac_delim
12481 build_cpu!$build_cpu$ac_delim
12482 build_vendor!$build_vendor$ac_delim
12483 build_os!$build_os$ac_delim
12484 host!$host$ac_delim
12485 host_cpu!$host_cpu$ac_delim
12486 host_vendor!$host_vendor$ac_delim
12487 host_os!$host_os$ac_delim
12488 SED!$SED$ac_delim
12489 GREP!$GREP$ac_delim
12490 EGREP!$EGREP$ac_delim
12491 FGREP!$FGREP$ac_delim
12492 LD!$LD$ac_delim
12493 DUMPBIN!$DUMPBIN$ac_delim
12494 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
12495 NM!$NM$ac_delim
12496 LN_S!$LN_S$ac_delim
12497 OBJDUMP!$OBJDUMP$ac_delim
12498 AR!$AR$ac_delim
12499 RANLIB!$RANLIB$ac_delim
12500 lt_ECHO!$lt_ECHO$ac_delim
12501 _ACEOF
12503 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12504 break
12505 elif $ac_last_try; then
12506 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12507 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12508 { (exit 1); exit 1; }; }
12509 else
12510 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12512 done
12514 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12515 if test -n "$ac_eof"; then
12516 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12517 ac_eof=`expr $ac_eof + 1`
12520 cat >>$CONFIG_STATUS <<_ACEOF
12521 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12522 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12523 _ACEOF
12524 sed '
12525 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12526 s/^/s,@/; s/!/@,|#_!!_#|/
12529 s/'"$ac_delim"'$/,g/; t
12530 s/$/\\/; p
12531 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12532 ' >>$CONFIG_STATUS <conf$$subs.sed
12533 rm -f conf$$subs.sed
12534 cat >>$CONFIG_STATUS <<_ACEOF
12535 CEOF$ac_eof
12536 _ACEOF
12539 ac_delim='%!_!# '
12540 for ac_last_try in false false false false false :; do
12541 cat >conf$$subs.sed <<_ACEOF
12542 DSYMUTIL!$DSYMUTIL$ac_delim
12543 NMEDIT!$NMEDIT$ac_delim
12544 LIPO!$LIPO$ac_delim
12545 OTOOL!$OTOOL$ac_delim
12546 OTOOL64!$OTOOL64$ac_delim
12547 CPP!$CPP$ac_delim
12548 LT_MAJOR!$LT_MAJOR$ac_delim
12549 LT_REVISION!$LT_REVISION$ac_delim
12550 LT_AGE!$LT_AGE$ac_delim
12551 LIBUSB01_VERSION!$LIBUSB01_VERSION$ac_delim
12552 PKG_CONFIG!$PKG_CONFIG$ac_delim
12553 LIBUSB_1_0_CFLAGS!$LIBUSB_1_0_CFLAGS$ac_delim
12554 LIBUSB_1_0_LIBS!$LIBUSB_1_0_LIBS$ac_delim
12555 BUILD_EXAMPLES_TRUE!$BUILD_EXAMPLES_TRUE$ac_delim
12556 BUILD_EXAMPLES_FALSE!$BUILD_EXAMPLES_FALSE$ac_delim
12557 AM_CFLAGS!$AM_CFLAGS$ac_delim
12558 LIBOBJS!$LIBOBJS$ac_delim
12559 LTLIBOBJS!$LTLIBOBJS$ac_delim
12560 _ACEOF
12562 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
12563 break
12564 elif $ac_last_try; then
12565 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12566 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12567 { (exit 1); exit 1; }; }
12568 else
12569 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12571 done
12573 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12574 if test -n "$ac_eof"; then
12575 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12576 ac_eof=`expr $ac_eof + 1`
12579 cat >>$CONFIG_STATUS <<_ACEOF
12580 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12581 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12582 _ACEOF
12583 sed '
12584 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12585 s/^/s,@/; s/!/@,|#_!!_#|/
12588 s/'"$ac_delim"'$/,g/; t
12589 s/$/\\/; p
12590 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12591 ' >>$CONFIG_STATUS <conf$$subs.sed
12592 rm -f conf$$subs.sed
12593 cat >>$CONFIG_STATUS <<_ACEOF
12594 :end
12595 s/|#_!!_#|//g
12596 CEOF$ac_eof
12597 _ACEOF
12600 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12601 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12602 # trailing colons and then remove the whole line if VPATH becomes empty
12603 # (actually we leave an empty line to preserve line numbers).
12604 if test "x$srcdir" = x.; then
12605 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12606 s/:*\$(srcdir):*/:/
12607 s/:*\${srcdir}:*/:/
12608 s/:*@srcdir@:*/:/
12609 s/^\([^=]*=[ ]*\):*/\1/
12610 s/:*$//
12611 s/^[^=]*=[ ]*$//
12615 cat >>$CONFIG_STATUS <<\_ACEOF
12616 fi # test -n "$CONFIG_FILES"
12619 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
12621 case $ac_tag in
12622 :[FHLC]) ac_mode=$ac_tag; continue;;
12623 esac
12624 case $ac_mode$ac_tag in
12625 :[FHL]*:*);;
12626 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12627 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12628 { (exit 1); exit 1; }; };;
12629 :[FH]-) ac_tag=-:-;;
12630 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12631 esac
12632 ac_save_IFS=$IFS
12633 IFS=:
12634 set x $ac_tag
12635 IFS=$ac_save_IFS
12636 shift
12637 ac_file=$1
12638 shift
12640 case $ac_mode in
12641 :L) ac_source=$1;;
12642 :[FH])
12643 ac_file_inputs=
12644 for ac_f
12646 case $ac_f in
12647 -) ac_f="$tmp/stdin";;
12648 *) # Look for the file first in the build tree, then in the source tree
12649 # (if the path is not absolute). The absolute path cannot be DOS-style,
12650 # because $ac_f cannot contain `:'.
12651 test -f "$ac_f" ||
12652 case $ac_f in
12653 [\\/$]*) false;;
12654 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12655 esac ||
12656 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12657 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12658 { (exit 1); exit 1; }; };;
12659 esac
12660 ac_file_inputs="$ac_file_inputs $ac_f"
12661 done
12663 # Let's still pretend it is `configure' which instantiates (i.e., don't
12664 # use $as_me), people would be surprised to read:
12665 # /* config.h. Generated by config.status. */
12666 configure_input="Generated from "`IFS=:
12667 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12668 if test x"$ac_file" != x-; then
12669 configure_input="$ac_file. $configure_input"
12670 { echo "$as_me:$LINENO: creating $ac_file" >&5
12671 echo "$as_me: creating $ac_file" >&6;}
12674 case $ac_tag in
12675 *:-:* | *:-) cat >"$tmp/stdin";;
12676 esac
12678 esac
12680 ac_dir=`$as_dirname -- "$ac_file" ||
12681 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12682 X"$ac_file" : 'X\(//\)[^/]' \| \
12683 X"$ac_file" : 'X\(//\)$' \| \
12684 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12685 echo X"$ac_file" |
12686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12687 s//\1/
12690 /^X\(\/\/\)[^/].*/{
12691 s//\1/
12694 /^X\(\/\/\)$/{
12695 s//\1/
12698 /^X\(\/\).*/{
12699 s//\1/
12702 s/.*/./; q'`
12703 { as_dir="$ac_dir"
12704 case $as_dir in #(
12705 -*) as_dir=./$as_dir;;
12706 esac
12707 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12708 as_dirs=
12709 while :; do
12710 case $as_dir in #(
12711 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12712 *) as_qdir=$as_dir;;
12713 esac
12714 as_dirs="'$as_qdir' $as_dirs"
12715 as_dir=`$as_dirname -- "$as_dir" ||
12716 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12717 X"$as_dir" : 'X\(//\)[^/]' \| \
12718 X"$as_dir" : 'X\(//\)$' \| \
12719 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12720 echo X"$as_dir" |
12721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12722 s//\1/
12725 /^X\(\/\/\)[^/].*/{
12726 s//\1/
12729 /^X\(\/\/\)$/{
12730 s//\1/
12733 /^X\(\/\).*/{
12734 s//\1/
12737 s/.*/./; q'`
12738 test -d "$as_dir" && break
12739 done
12740 test -z "$as_dirs" || eval "mkdir $as_dirs"
12741 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12742 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12743 { (exit 1); exit 1; }; }; }
12744 ac_builddir=.
12746 case "$ac_dir" in
12747 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12749 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12750 # A ".." for each directory in $ac_dir_suffix.
12751 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12752 case $ac_top_builddir_sub in
12753 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12754 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12755 esac ;;
12756 esac
12757 ac_abs_top_builddir=$ac_pwd
12758 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12759 # for backward compatibility:
12760 ac_top_builddir=$ac_top_build_prefix
12762 case $srcdir in
12763 .) # We are building in place.
12764 ac_srcdir=.
12765 ac_top_srcdir=$ac_top_builddir_sub
12766 ac_abs_top_srcdir=$ac_pwd ;;
12767 [\\/]* | ?:[\\/]* ) # Absolute name.
12768 ac_srcdir=$srcdir$ac_dir_suffix;
12769 ac_top_srcdir=$srcdir
12770 ac_abs_top_srcdir=$srcdir ;;
12771 *) # Relative name.
12772 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12773 ac_top_srcdir=$ac_top_build_prefix$srcdir
12774 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12775 esac
12776 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12779 case $ac_mode in
12782 # CONFIG_FILE
12785 case $INSTALL in
12786 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12787 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12788 esac
12789 ac_MKDIR_P=$MKDIR_P
12790 case $MKDIR_P in
12791 [\\/$]* | ?:[\\/]* ) ;;
12792 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12793 esac
12794 _ACEOF
12796 cat >>$CONFIG_STATUS <<\_ACEOF
12797 # If the template does not know about datarootdir, expand it.
12798 # FIXME: This hack should be removed a few years after 2.60.
12799 ac_datarootdir_hack=; ac_datarootdir_seen=
12801 case `sed -n '/datarootdir/ {
12805 /@datadir@/p
12806 /@docdir@/p
12807 /@infodir@/p
12808 /@localedir@/p
12809 /@mandir@/p
12810 ' $ac_file_inputs` in
12811 *datarootdir*) ac_datarootdir_seen=yes;;
12812 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12813 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12814 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12815 _ACEOF
12816 cat >>$CONFIG_STATUS <<_ACEOF
12817 ac_datarootdir_hack='
12818 s&@datadir@&$datadir&g
12819 s&@docdir@&$docdir&g
12820 s&@infodir@&$infodir&g
12821 s&@localedir@&$localedir&g
12822 s&@mandir@&$mandir&g
12823 s&\\\${datarootdir}&$datarootdir&g' ;;
12824 esac
12825 _ACEOF
12827 # Neutralize VPATH when `$srcdir' = `.'.
12828 # Shell code in configure.ac might set extrasub.
12829 # FIXME: do we really want to maintain this feature?
12830 cat >>$CONFIG_STATUS <<_ACEOF
12831 sed "$ac_vpsub
12832 $extrasub
12833 _ACEOF
12834 cat >>$CONFIG_STATUS <<\_ACEOF
12836 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12837 s&@configure_input@&$configure_input&;t t
12838 s&@top_builddir@&$ac_top_builddir_sub&;t t
12839 s&@srcdir@&$ac_srcdir&;t t
12840 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12841 s&@top_srcdir@&$ac_top_srcdir&;t t
12842 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12843 s&@builddir@&$ac_builddir&;t t
12844 s&@abs_builddir@&$ac_abs_builddir&;t t
12845 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12846 s&@INSTALL@&$ac_INSTALL&;t t
12847 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12848 $ac_datarootdir_hack
12849 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12851 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12852 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12853 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12854 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12855 which seems to be undefined. Please make sure it is defined." >&5
12856 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12857 which seems to be undefined. Please make sure it is defined." >&2;}
12859 rm -f "$tmp/stdin"
12860 case $ac_file in
12861 -) cat "$tmp/out"; rm -f "$tmp/out";;
12862 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12863 esac
12867 # CONFIG_HEADER
12869 _ACEOF
12871 # Transform confdefs.h into a sed script `conftest.defines', that
12872 # substitutes the proper values into config.h.in to produce config.h.
12873 rm -f conftest.defines conftest.tail
12874 # First, append a space to every undef/define line, to ease matching.
12875 echo 's/$/ /' >conftest.defines
12876 # Then, protect against being on the right side of a sed subst, or in
12877 # an unquoted here document, in config.status. If some macros were
12878 # called several times there might be several #defines for the same
12879 # symbol, which is useless. But do not sort them, since the last
12880 # AC_DEFINE must be honored.
12881 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12882 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12883 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12884 # PARAMS is the parameter list in the macro definition--in most cases, it's
12885 # just an empty string.
12886 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12887 ac_dB='\\)[ (].*,\\1define\\2'
12888 ac_dC=' '
12889 ac_dD=' ,'
12891 uniq confdefs.h |
12892 sed -n '
12893 t rset
12894 :rset
12895 s/^[ ]*#[ ]*define[ ][ ]*//
12896 t ok
12899 s/[\\&,]/\\&/g
12900 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12901 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12902 ' >>conftest.defines
12904 # Remove the space that was appended to ease matching.
12905 # Then replace #undef with comments. This is necessary, for
12906 # example, in the case of _POSIX_SOURCE, which is predefined and required
12907 # on some systems where configure will not decide to define it.
12908 # (The regexp can be short, since the line contains either #define or #undef.)
12909 echo 's/ $//
12910 s,^[ #]*u.*,/* & */,' >>conftest.defines
12912 # Break up conftest.defines:
12913 ac_max_sed_lines=50
12915 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12916 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12917 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12918 # et cetera.
12919 ac_in='$ac_file_inputs'
12920 ac_out='"$tmp/out1"'
12921 ac_nxt='"$tmp/out2"'
12923 while :
12925 # Write a here document:
12926 cat >>$CONFIG_STATUS <<_ACEOF
12927 # First, check the format of the line:
12928 cat >"\$tmp/defines.sed" <<\\CEOF
12929 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12930 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12932 :def
12933 _ACEOF
12934 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12935 echo 'CEOF
12936 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12937 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12938 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12939 grep . conftest.tail >/dev/null || break
12940 rm -f conftest.defines
12941 mv conftest.tail conftest.defines
12942 done
12943 rm -f conftest.defines conftest.tail
12945 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12946 cat >>$CONFIG_STATUS <<\_ACEOF
12947 if test x"$ac_file" != x-; then
12948 echo "/* $configure_input */" >"$tmp/config.h"
12949 cat "$ac_result" >>"$tmp/config.h"
12950 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12951 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12952 echo "$as_me: $ac_file is unchanged" >&6;}
12953 else
12954 rm -f $ac_file
12955 mv "$tmp/config.h" $ac_file
12957 else
12958 echo "/* $configure_input */"
12959 cat "$ac_result"
12961 rm -f "$tmp/out12"
12962 # Compute $ac_file's index in $config_headers.
12963 _am_arg=$ac_file
12964 _am_stamp_count=1
12965 for _am_header in $config_headers :; do
12966 case $_am_header in
12967 $_am_arg | $_am_arg:* )
12968 break ;;
12970 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12971 esac
12972 done
12973 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12974 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12975 X"$_am_arg" : 'X\(//\)[^/]' \| \
12976 X"$_am_arg" : 'X\(//\)$' \| \
12977 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12978 echo X"$_am_arg" |
12979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12980 s//\1/
12983 /^X\(\/\/\)[^/].*/{
12984 s//\1/
12987 /^X\(\/\/\)$/{
12988 s//\1/
12991 /^X\(\/\).*/{
12992 s//\1/
12995 s/.*/./; q'`/stamp-h$_am_stamp_count
12998 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12999 echo "$as_me: executing $ac_file commands" >&6;}
13001 esac
13004 case $ac_file$ac_mode in
13005 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13006 # Strip MF so we end up with the name of the file.
13007 mf=`echo "$mf" | sed -e 's/:.*$//'`
13008 # Check whether this is an Automake generated Makefile or not.
13009 # We used to match only the files named `Makefile.in', but
13010 # some people rename them; so instead we look at the file content.
13011 # Grep'ing the first line is not enough: some people post-process
13012 # each Makefile.in and add a new line on top of each file to say so.
13013 # Grep'ing the whole file is not good either: AIX grep has a line
13014 # limit of 2048, but all sed's we know have understand at least 4000.
13015 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13016 dirpart=`$as_dirname -- "$mf" ||
13017 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13018 X"$mf" : 'X\(//\)[^/]' \| \
13019 X"$mf" : 'X\(//\)$' \| \
13020 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13021 echo X"$mf" |
13022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13023 s//\1/
13026 /^X\(\/\/\)[^/].*/{
13027 s//\1/
13030 /^X\(\/\/\)$/{
13031 s//\1/
13034 /^X\(\/\).*/{
13035 s//\1/
13038 s/.*/./; q'`
13039 else
13040 continue
13042 # Extract the definition of DEPDIR, am__include, and am__quote
13043 # from the Makefile without running `make'.
13044 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13045 test -z "$DEPDIR" && continue
13046 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13047 test -z "am__include" && continue
13048 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13049 # When using ansi2knr, U may be empty or an underscore; expand it
13050 U=`sed -n 's/^U = //p' < "$mf"`
13051 # Find all dependency output files, they are included files with
13052 # $(DEPDIR) in their names. We invoke sed twice because it is the
13053 # simplest approach to changing $(DEPDIR) to its actual value in the
13054 # expansion.
13055 for file in `sed -n "
13056 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13057 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13058 # Make sure the directory exists.
13059 test -f "$dirpart/$file" && continue
13060 fdir=`$as_dirname -- "$file" ||
13061 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13062 X"$file" : 'X\(//\)[^/]' \| \
13063 X"$file" : 'X\(//\)$' \| \
13064 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13065 echo X"$file" |
13066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13067 s//\1/
13070 /^X\(\/\/\)[^/].*/{
13071 s//\1/
13074 /^X\(\/\/\)$/{
13075 s//\1/
13078 /^X\(\/\).*/{
13079 s//\1/
13082 s/.*/./; q'`
13083 { as_dir=$dirpart/$fdir
13084 case $as_dir in #(
13085 -*) as_dir=./$as_dir;;
13086 esac
13087 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13088 as_dirs=
13089 while :; do
13090 case $as_dir in #(
13091 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13092 *) as_qdir=$as_dir;;
13093 esac
13094 as_dirs="'$as_qdir' $as_dirs"
13095 as_dir=`$as_dirname -- "$as_dir" ||
13096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13097 X"$as_dir" : 'X\(//\)[^/]' \| \
13098 X"$as_dir" : 'X\(//\)$' \| \
13099 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13100 echo X"$as_dir" |
13101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13102 s//\1/
13105 /^X\(\/\/\)[^/].*/{
13106 s//\1/
13109 /^X\(\/\/\)$/{
13110 s//\1/
13113 /^X\(\/\).*/{
13114 s//\1/
13117 s/.*/./; q'`
13118 test -d "$as_dir" && break
13119 done
13120 test -z "$as_dirs" || eval "mkdir $as_dirs"
13121 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13122 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13123 { (exit 1); exit 1; }; }; }
13124 # echo "creating $dirpart/$file"
13125 echo '# dummy' > "$dirpart/$file"
13126 done
13127 done
13129 "libtool":C)
13131 # See if we are running on zsh, and set the options which allow our
13132 # commands through without removal of \ escapes.
13133 if test -n "${ZSH_VERSION+set}" ; then
13134 setopt NO_GLOB_SUBST
13137 cfgfile="${ofile}T"
13138 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13139 $RM "$cfgfile"
13141 cat <<_LT_EOF >> "$cfgfile"
13142 #! $SHELL
13144 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13145 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13146 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13147 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13149 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13150 # 2006, 2007, 2008 Free Software Foundation, Inc.
13151 # Written by Gordon Matzigkeit, 1996
13153 # This file is part of GNU Libtool.
13155 # GNU Libtool is free software; you can redistribute it and/or
13156 # modify it under the terms of the GNU General Public License as
13157 # published by the Free Software Foundation; either version 2 of
13158 # the License, or (at your option) any later version.
13160 # As a special exception to the GNU General Public License,
13161 # if you distribute this file as part of a program or library that
13162 # is built using GNU Libtool, you may include this file under the
13163 # same distribution terms that you use for the rest of that program.
13165 # GNU Libtool is distributed in the hope that it will be useful,
13166 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13167 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13168 # GNU General Public License for more details.
13170 # You should have received a copy of the GNU General Public License
13171 # along with GNU Libtool; see the file COPYING. If not, a copy
13172 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13173 # obtained by writing to the Free Software Foundation, Inc.,
13174 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13177 # The names of the tagged configurations supported by this script.
13178 available_tags=""
13180 # ### BEGIN LIBTOOL CONFIG
13182 # Which release of libtool.m4 was used?
13183 macro_version=$macro_version
13184 macro_revision=$macro_revision
13186 # Whether or not to build shared libraries.
13187 build_libtool_libs=$enable_shared
13189 # Whether or not to build static libraries.
13190 build_old_libs=$enable_static
13192 # What type of objects to build.
13193 pic_mode=$pic_mode
13195 # Whether or not to optimize for fast installation.
13196 fast_install=$enable_fast_install
13198 # The host system.
13199 host_alias=$host_alias
13200 host=$host
13201 host_os=$host_os
13203 # The build system.
13204 build_alias=$build_alias
13205 build=$build
13206 build_os=$build_os
13208 # A sed program that does not truncate output.
13209 SED=$lt_SED
13211 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13212 Xsed="\$SED -e 1s/^X//"
13214 # A grep program that handles long lines.
13215 GREP=$lt_GREP
13217 # An ERE matcher.
13218 EGREP=$lt_EGREP
13220 # A literal string matcher.
13221 FGREP=$lt_FGREP
13223 # A BSD- or MS-compatible name lister.
13224 NM=$lt_NM
13226 # Whether we need soft or hard links.
13227 LN_S=$lt_LN_S
13229 # What is the maximum length of a command?
13230 max_cmd_len=$max_cmd_len
13232 # Object file suffix (normally "o").
13233 objext=$ac_objext
13235 # Executable file suffix (normally "").
13236 exeext=$exeext
13238 # whether the shell understands "unset".
13239 lt_unset=$lt_unset
13241 # turn spaces into newlines.
13242 SP2NL=$lt_lt_SP2NL
13244 # turn newlines into spaces.
13245 NL2SP=$lt_lt_NL2SP
13247 # How to create reloadable object files.
13248 reload_flag=$lt_reload_flag
13249 reload_cmds=$lt_reload_cmds
13251 # An object symbol dumper.
13252 OBJDUMP=$lt_OBJDUMP
13254 # Method to check whether dependent libraries are shared objects.
13255 deplibs_check_method=$lt_deplibs_check_method
13257 # Command to use when deplibs_check_method == "file_magic".
13258 file_magic_cmd=$lt_file_magic_cmd
13260 # The archiver.
13261 AR=$lt_AR
13262 AR_FLAGS=$lt_AR_FLAGS
13264 # A symbol stripping program.
13265 STRIP=$lt_STRIP
13267 # Commands used to install an old-style archive.
13268 RANLIB=$lt_RANLIB
13269 old_postinstall_cmds=$lt_old_postinstall_cmds
13270 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13272 # A C compiler.
13273 LTCC=$lt_CC
13275 # LTCC compiler flags.
13276 LTCFLAGS=$lt_CFLAGS
13278 # Take the output of nm and produce a listing of raw symbols and C names.
13279 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13281 # Transform the output of nm in a proper C declaration.
13282 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13284 # Transform the output of nm in a C name address pair.
13285 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13287 # Transform the output of nm in a C name address pair when lib prefix is needed.
13288 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13290 # The name of the directory that contains temporary libtool files.
13291 objdir=$objdir
13293 # Shell to use when invoking shell scripts.
13294 SHELL=$lt_SHELL
13296 # An echo program that does not interpret backslashes.
13297 ECHO=$lt_ECHO
13299 # Used to examine libraries when file_magic_cmd begins with "file".
13300 MAGIC_CMD=$MAGIC_CMD
13302 # Must we lock files when doing compilation?
13303 need_locks=$lt_need_locks
13305 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13306 DSYMUTIL=$lt_DSYMUTIL
13308 # Tool to change global to local symbols on Mac OS X.
13309 NMEDIT=$lt_NMEDIT
13311 # Tool to manipulate fat objects and archives on Mac OS X.
13312 LIPO=$lt_LIPO
13314 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13315 OTOOL=$lt_OTOOL
13317 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13318 OTOOL64=$lt_OTOOL64
13320 # Old archive suffix (normally "a").
13321 libext=$libext
13323 # Shared library suffix (normally ".so").
13324 shrext_cmds=$lt_shrext_cmds
13326 # The commands to extract the exported symbol list from a shared archive.
13327 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13329 # Variables whose values should be saved in libtool wrapper scripts and
13330 # restored at link time.
13331 variables_saved_for_relink=$lt_variables_saved_for_relink
13333 # Do we need the "lib" prefix for modules?
13334 need_lib_prefix=$need_lib_prefix
13336 # Do we need a version for libraries?
13337 need_version=$need_version
13339 # Library versioning type.
13340 version_type=$version_type
13342 # Shared library runtime path variable.
13343 runpath_var=$runpath_var
13345 # Shared library path variable.
13346 shlibpath_var=$shlibpath_var
13348 # Is shlibpath searched before the hard-coded library search path?
13349 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13351 # Format of library name prefix.
13352 libname_spec=$lt_libname_spec
13354 # List of archive names. First name is the real one, the rest are links.
13355 # The last name is the one that the linker finds with -lNAME
13356 library_names_spec=$lt_library_names_spec
13358 # The coded name of the library, if different from the real name.
13359 soname_spec=$lt_soname_spec
13361 # Command to use after installation of a shared archive.
13362 postinstall_cmds=$lt_postinstall_cmds
13364 # Command to use after uninstallation of a shared archive.
13365 postuninstall_cmds=$lt_postuninstall_cmds
13367 # Commands used to finish a libtool library installation in a directory.
13368 finish_cmds=$lt_finish_cmds
13370 # As "finish_cmds", except a single script fragment to be evaled but
13371 # not shown.
13372 finish_eval=$lt_finish_eval
13374 # Whether we should hardcode library paths into libraries.
13375 hardcode_into_libs=$hardcode_into_libs
13377 # Compile-time system search path for libraries.
13378 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13380 # Run-time system search path for libraries.
13381 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13383 # Whether dlopen is supported.
13384 dlopen_support=$enable_dlopen
13386 # Whether dlopen of programs is supported.
13387 dlopen_self=$enable_dlopen_self
13389 # Whether dlopen of statically linked programs is supported.
13390 dlopen_self_static=$enable_dlopen_self_static
13392 # Commands to strip libraries.
13393 old_striplib=$lt_old_striplib
13394 striplib=$lt_striplib
13397 # The linker used to build libraries.
13398 LD=$lt_LD
13400 # Commands used to build an old-style archive.
13401 old_archive_cmds=$lt_old_archive_cmds
13403 # A language specific compiler.
13404 CC=$lt_compiler
13406 # Is the compiler the GNU compiler?
13407 with_gcc=$GCC
13409 # Compiler flag to turn off builtin functions.
13410 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13412 # How to pass a linker flag through the compiler.
13413 wl=$lt_lt_prog_compiler_wl
13415 # Additional compiler flags for building library objects.
13416 pic_flag=$lt_lt_prog_compiler_pic
13418 # Compiler flag to prevent dynamic linking.
13419 link_static_flag=$lt_lt_prog_compiler_static
13421 # Does compiler simultaneously support -c and -o options?
13422 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13424 # Whether or not to add -lc for building shared libraries.
13425 build_libtool_need_lc=$archive_cmds_need_lc
13427 # Whether or not to disallow shared libs when runtime libs are static.
13428 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13430 # Compiler flag to allow reflexive dlopens.
13431 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13433 # Compiler flag to generate shared objects directly from archives.
13434 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13436 # Whether the compiler copes with passing no objects directly.
13437 compiler_needs_object=$lt_compiler_needs_object
13439 # Create an old-style archive from a shared archive.
13440 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13442 # Create a temporary old-style archive to link instead of a shared archive.
13443 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13445 # Commands used to build a shared archive.
13446 archive_cmds=$lt_archive_cmds
13447 archive_expsym_cmds=$lt_archive_expsym_cmds
13449 # Commands used to build a loadable module if different from building
13450 # a shared archive.
13451 module_cmds=$lt_module_cmds
13452 module_expsym_cmds=$lt_module_expsym_cmds
13454 # Whether we are building with GNU ld or not.
13455 with_gnu_ld=$lt_with_gnu_ld
13457 # Flag that allows shared libraries with undefined symbols to be built.
13458 allow_undefined_flag=$lt_allow_undefined_flag
13460 # Flag that enforces no undefined symbols.
13461 no_undefined_flag=$lt_no_undefined_flag
13463 # Flag to hardcode \$libdir into a binary during linking.
13464 # This must work even if \$libdir does not exist
13465 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13467 # If ld is used when linking, flag to hardcode \$libdir into a binary
13468 # during linking. This must work even if \$libdir does not exist.
13469 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13471 # Whether we need a single "-rpath" flag with a separated argument.
13472 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13474 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13475 # DIR into the resulting binary.
13476 hardcode_direct=$hardcode_direct
13478 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13479 # DIR into the resulting binary and the resulting library dependency is
13480 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13481 # library is relocated.
13482 hardcode_direct_absolute=$hardcode_direct_absolute
13484 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13485 # into the resulting binary.
13486 hardcode_minus_L=$hardcode_minus_L
13488 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13489 # into the resulting binary.
13490 hardcode_shlibpath_var=$hardcode_shlibpath_var
13492 # Set to "yes" if building a shared library automatically hardcodes DIR
13493 # into the library and all subsequent libraries and executables linked
13494 # against it.
13495 hardcode_automatic=$hardcode_automatic
13497 # Set to yes if linker adds runtime paths of dependent libraries
13498 # to runtime path list.
13499 inherit_rpath=$inherit_rpath
13501 # Whether libtool must link a program against all its dependency libraries.
13502 link_all_deplibs=$link_all_deplibs
13504 # Fix the shell variable \$srcfile for the compiler.
13505 fix_srcfile_path=$lt_fix_srcfile_path
13507 # Set to "yes" if exported symbols are required.
13508 always_export_symbols=$always_export_symbols
13510 # The commands to list exported symbols.
13511 export_symbols_cmds=$lt_export_symbols_cmds
13513 # Symbols that should not be listed in the preloaded symbols.
13514 exclude_expsyms=$lt_exclude_expsyms
13516 # Symbols that must always be exported.
13517 include_expsyms=$lt_include_expsyms
13519 # Commands necessary for linking programs (against libraries) with templates.
13520 prelink_cmds=$lt_prelink_cmds
13522 # Specify filename containing input files.
13523 file_list_spec=$lt_file_list_spec
13525 # How to hardcode a shared library path into an executable.
13526 hardcode_action=$hardcode_action
13528 # ### END LIBTOOL CONFIG
13530 _LT_EOF
13532 case $host_os in
13533 aix3*)
13534 cat <<\_LT_EOF >> "$cfgfile"
13535 # AIX sometimes has problems with the GCC collect2 program. For some
13536 # reason, if we set the COLLECT_NAMES environment variable, the problems
13537 # vanish in a puff of smoke.
13538 if test "X${COLLECT_NAMES+set}" != Xset; then
13539 COLLECT_NAMES=
13540 export COLLECT_NAMES
13542 _LT_EOF
13544 esac
13547 ltmain="$ac_aux_dir/ltmain.sh"
13550 # We use sed instead of cat because bash on DJGPP gets confused if
13551 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13552 # text mode, it properly converts lines to CR/LF. This bash problem
13553 # is reportedly fixed, but why not run on old versions too?
13554 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13555 || (rm -f "$cfgfile"; exit 1)
13557 case $xsi_shell in
13558 yes)
13559 cat << \_LT_EOF >> "$cfgfile"
13561 # func_dirname file append nondir_replacement
13562 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13563 # otherwise set result to NONDIR_REPLACEMENT.
13564 func_dirname ()
13566 case ${1} in
13567 */*) func_dirname_result="${1%/*}${2}" ;;
13568 * ) func_dirname_result="${3}" ;;
13569 esac
13572 # func_basename file
13573 func_basename ()
13575 func_basename_result="${1##*/}"
13578 # func_dirname_and_basename file append nondir_replacement
13579 # perform func_basename and func_dirname in a single function
13580 # call:
13581 # dirname: Compute the dirname of FILE. If nonempty,
13582 # add APPEND to the result, otherwise set result
13583 # to NONDIR_REPLACEMENT.
13584 # value returned in "$func_dirname_result"
13585 # basename: Compute filename of FILE.
13586 # value retuned in "$func_basename_result"
13587 # Implementation must be kept synchronized with func_dirname
13588 # and func_basename. For efficiency, we do not delegate to
13589 # those functions but instead duplicate the functionality here.
13590 func_dirname_and_basename ()
13592 case ${1} in
13593 */*) func_dirname_result="${1%/*}${2}" ;;
13594 * ) func_dirname_result="${3}" ;;
13595 esac
13596 func_basename_result="${1##*/}"
13599 # func_stripname prefix suffix name
13600 # strip PREFIX and SUFFIX off of NAME.
13601 # PREFIX and SUFFIX must not contain globbing or regex special
13602 # characters, hashes, percent signs, but SUFFIX may contain a leading
13603 # dot (in which case that matches only a dot).
13604 func_stripname ()
13606 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13607 # positional parameters, so assign one to ordinary parameter first.
13608 func_stripname_result=${3}
13609 func_stripname_result=${func_stripname_result#"${1}"}
13610 func_stripname_result=${func_stripname_result%"${2}"}
13613 # func_opt_split
13614 func_opt_split ()
13616 func_opt_split_opt=${1%%=*}
13617 func_opt_split_arg=${1#*=}
13620 # func_lo2o object
13621 func_lo2o ()
13623 case ${1} in
13624 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13625 *) func_lo2o_result=${1} ;;
13626 esac
13629 # func_xform libobj-or-source
13630 func_xform ()
13632 func_xform_result=${1%.*}.lo
13635 # func_arith arithmetic-term...
13636 func_arith ()
13638 func_arith_result=$(( $* ))
13641 # func_len string
13642 # STRING may not start with a hyphen.
13643 func_len ()
13645 func_len_result=${#1}
13648 _LT_EOF
13650 *) # Bourne compatible functions.
13651 cat << \_LT_EOF >> "$cfgfile"
13653 # func_dirname file append nondir_replacement
13654 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13655 # otherwise set result to NONDIR_REPLACEMENT.
13656 func_dirname ()
13658 # Extract subdirectory from the argument.
13659 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13660 if test "X$func_dirname_result" = "X${1}"; then
13661 func_dirname_result="${3}"
13662 else
13663 func_dirname_result="$func_dirname_result${2}"
13667 # func_basename file
13668 func_basename ()
13670 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13674 # func_stripname prefix suffix name
13675 # strip PREFIX and SUFFIX off of NAME.
13676 # PREFIX and SUFFIX must not contain globbing or regex special
13677 # characters, hashes, percent signs, but SUFFIX may contain a leading
13678 # dot (in which case that matches only a dot).
13679 # func_strip_suffix prefix name
13680 func_stripname ()
13682 case ${2} in
13683 .*) func_stripname_result=`$ECHO "X${3}" \
13684 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13685 *) func_stripname_result=`$ECHO "X${3}" \
13686 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13687 esac
13690 # sed scripts:
13691 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13692 my_sed_long_arg='1s/^-[^=]*=//'
13694 # func_opt_split
13695 func_opt_split ()
13697 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13698 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13701 # func_lo2o object
13702 func_lo2o ()
13704 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13707 # func_xform libobj-or-source
13708 func_xform ()
13710 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13713 # func_arith arithmetic-term...
13714 func_arith ()
13716 func_arith_result=`expr "$@"`
13719 # func_len string
13720 # STRING may not start with a hyphen.
13721 func_len ()
13723 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13726 _LT_EOF
13727 esac
13729 case $lt_shell_append in
13730 yes)
13731 cat << \_LT_EOF >> "$cfgfile"
13733 # func_append var value
13734 # Append VALUE to the end of shell variable VAR.
13735 func_append ()
13737 eval "$1+=\$2"
13739 _LT_EOF
13742 cat << \_LT_EOF >> "$cfgfile"
13744 # func_append var value
13745 # Append VALUE to the end of shell variable VAR.
13746 func_append ()
13748 eval "$1=\$$1\$2"
13751 _LT_EOF
13753 esac
13756 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13757 || (rm -f "$cfgfile"; exit 1)
13759 mv -f "$cfgfile" "$ofile" ||
13760 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13761 chmod +x "$ofile"
13764 "default":C) chmod +x libusb-config ;;
13766 esac
13767 done # for ac_tag
13770 { (exit 0); exit 0; }
13771 _ACEOF
13772 chmod +x $CONFIG_STATUS
13773 ac_clean_files=$ac_clean_files_save
13776 # configure is writing to config.log, and then calls config.status.
13777 # config.status does its own redirection, appending to config.log.
13778 # Unfortunately, on DOS this fails, as config.log is still kept open
13779 # by configure, so config.status won't be able to write to it; its
13780 # output is simply discarded. So we exec the FD to /dev/null,
13781 # effectively closing config.log, so it can be properly (re)opened and
13782 # appended to by config.status. When coming back to configure, we
13783 # need to make the FD available again.
13784 if test "$no_create" != yes; then
13785 ac_cs_success=:
13786 ac_config_status_args=
13787 test "$silent" = yes &&
13788 ac_config_status_args="$ac_config_status_args --quiet"
13789 exec 5>/dev/null
13790 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13791 exec 5>>config.log
13792 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13793 # would make configure fail if this is the last instruction.
13794 $ac_cs_success || { (exit 1); exit 1; }