· 9 years ago · Oct 07, 2016, 01:36 AM
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for hpklinux 3.08.06.
4#
5# Report bugs to <<support@audioscience.com>>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121else
122 as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
161fi
162
163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
179
180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
187
188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584$*
585EOF
586 exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704exec 7<&0 </dev/null 6>&1
705
706# Name of the host.
707# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
708# so uname gets run too.
709ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
710
711#
712# Initializations.
713#
714ac_default_prefix=/usr/local
715ac_clean_files=
716ac_config_libobj_dir=.
717LIBOBJS=
718cross_compiling=no
719subdirs=
720MFLAGS=
721MAKEFLAGS=
722SHELL=${CONFIG_SHELL-/bin/sh}
723
724# Identity of this package.
725PACKAGE_NAME='hpklinux'
726PACKAGE_TARNAME='hpklinux'
727PACKAGE_VERSION='3.08.06'
728PACKAGE_STRING='hpklinux 3.08.06'
729PACKAGE_BUGREPORT='<support@audioscience.com>'
730
731# Factoring default headers for most tests.
732ac_includes_default="\
733#include <stdio.h>
734#ifdef HAVE_SYS_TYPES_H
735# include <sys/types.h>
736#endif
737#ifdef HAVE_SYS_STAT_H
738# include <sys/stat.h>
739#endif
740#ifdef STDC_HEADERS
741# include <stdlib.h>
742# include <stddef.h>
743#else
744# ifdef HAVE_STDLIB_H
745# include <stdlib.h>
746# endif
747#endif
748#ifdef HAVE_STRING_H
749# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
750# include <memory.h>
751# endif
752# include <string.h>
753#endif
754#ifdef HAVE_STRINGS_H
755# include <strings.h>
756#endif
757#ifdef HAVE_INTTYPES_H
758# include <inttypes.h>
759#endif
760#ifdef HAVE_STDINT_H
761# include <stdint.h>
762#endif
763#ifdef HAVE_UNISTD_H
764# include <unistd.h>
765#endif"
766
767ac_subst_vars='SHELL
768PATH_SEPARATOR
769PACKAGE_NAME
770PACKAGE_TARNAME
771PACKAGE_VERSION
772PACKAGE_STRING
773PACKAGE_BUGREPORT
774exec_prefix
775prefix
776program_transform_name
777bindir
778sbindir
779libexecdir
780datarootdir
781datadir
782sysconfdir
783sharedstatedir
784localstatedir
785includedir
786oldincludedir
787docdir
788infodir
789htmldir
790dvidir
791pdfdir
792psdir
793libdir
794localedir
795mandir
796DEFS
797ECHO_C
798ECHO_N
799ECHO_T
800LIBS
801build_alias
802host_alias
803target_alias
804INSTALL_PROGRAM
805INSTALL_SCRIPT
806INSTALL_DATA
807CYGPATH_W
808PACKAGE
809VERSION
810ACLOCAL
811AUTOCONF
812AUTOMAKE
813AUTOHEADER
814MAKEINFO
815install_sh
816STRIP
817INSTALL_STRIP_PROGRAM
818mkdir_p
819AWK
820SET_MAKE
821am__leading_dot
822AMTAR
823am__tar
824am__untar
825RPM_RELEASE
826INTERFACE_CURRENT
827INTERFACE_REVISION
828INTERFACE_AGE
829INTERFACE_MAJOR
830INTERFACE_MINOR
831INTERFACE_POINT
832LOCAL_PREFIX
833CC
834CFLAGS
835LDFLAGS
836CPPFLAGS
837ac_ct_CC
838EXEEXT
839OBJEXT
840DEPDIR
841am__include
842am__quote
843AMDEP_TRUE
844AMDEP_FALSE
845AMDEPBACKSLASH
846CCDEPMODE
847am__fastdepCC_TRUE
848am__fastdepCC_FALSE
849build
850build_cpu
851build_vendor
852build_os
853host
854host_cpu
855host_vendor
856host_os
857SED
858GREP
859EGREP
860LN_S
861ECHO
862AR
863RANLIB
864DSYMUTIL
865NMEDIT
866CPP
867LIBTOOL
868BUILD_KERNEL_COMPILE_TRUE
869BUILD_KERNEL_COMPILE_FALSE
870CONFIG_HPI_KERNELDIR
871MAKE_ADDS
872kaversion
873kversion
874kpatchlevel
875ksublevel
876kextraversion
877NEW_KBUILD
878MODVERSIONS
879SMP
880DSPBINPATH
881SPINLOCK
882BUILD_TESTS_TRUE
883BUILD_TESTS_FALSE
884KERNEL_26_TRUE
885KERNEL_26_FALSE
886RPM_MODULE_PATH
887RPM_MODULE_NAME
888VENDOR
889ARCH
890HPI_64BIT
891LIB_PATH
892RPMBUILD_FOUND
893RPMBUILD
894KERNEL_VERSION
895RPM_ROOT
896HAVE_PCAP_TRUE
897HAVE_PCAP_FALSE
898LIBOBJS
899LTLIBOBJS'
900ac_subst_files=''
901 ac_precious_vars='build_alias
902host_alias
903target_alias
904CC
905CFLAGS
906LDFLAGS
907LIBS
908CPPFLAGS
909CPP'
910
911
912# Initialize some variables set by options.
913ac_init_help=
914ac_init_version=false
915# The variables have the same names as the options, with
916# dashes changed to underlines.
917cache_file=/dev/null
918exec_prefix=NONE
919no_create=
920no_recursion=
921prefix=NONE
922program_prefix=NONE
923program_suffix=NONE
924program_transform_name=s,x,x,
925silent=
926site=
927srcdir=
928verbose=
929x_includes=NONE
930x_libraries=NONE
931
932# Installation directory options.
933# These are left unexpanded so users can "make install exec_prefix=/foo"
934# and all the variables that are supposed to be based on exec_prefix
935# by default will actually change.
936# Use braces instead of parens because sh, perl, etc. also accept them.
937# (The list follows the same order as the GNU Coding Standards.)
938bindir='${exec_prefix}/bin'
939sbindir='${exec_prefix}/sbin'
940libexecdir='${exec_prefix}/libexec'
941datarootdir='${prefix}/share'
942datadir='${datarootdir}'
943sysconfdir='${prefix}/etc'
944sharedstatedir='${prefix}/com'
945localstatedir='${prefix}/var'
946includedir='${prefix}/include'
947oldincludedir='/usr/include'
948docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
949infodir='${datarootdir}/info'
950htmldir='${docdir}'
951dvidir='${docdir}'
952pdfdir='${docdir}'
953psdir='${docdir}'
954libdir='${exec_prefix}/lib'
955localedir='${datarootdir}/locale'
956mandir='${datarootdir}/man'
957
958ac_prev=
959ac_dashdash=
960for ac_option
961do
962 # If the previous option needs an argument, assign it.
963 if test -n "$ac_prev"; then
964 eval $ac_prev=\$ac_option
965 ac_prev=
966 continue
967 fi
968
969 case $ac_option in
970 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971 *) ac_optarg=yes ;;
972 esac
973
974 # Accept the important Cygnus configure options, so we can diagnose typos.
975
976 case $ac_dashdash$ac_option in
977 --)
978 ac_dashdash=yes ;;
979
980 -bindir | --bindir | --bindi | --bind | --bin | --bi)
981 ac_prev=bindir ;;
982 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
983 bindir=$ac_optarg ;;
984
985 -build | --build | --buil | --bui | --bu)
986 ac_prev=build_alias ;;
987 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
988 build_alias=$ac_optarg ;;
989
990 -cache-file | --cache-file | --cache-fil | --cache-fi \
991 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
992 ac_prev=cache_file ;;
993 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
994 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
995 cache_file=$ac_optarg ;;
996
997 --config-cache | -C)
998 cache_file=config.cache ;;
999
1000 -datadir | --datadir | --datadi | --datad)
1001 ac_prev=datadir ;;
1002 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1003 datadir=$ac_optarg ;;
1004
1005 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1006 | --dataroo | --dataro | --datar)
1007 ac_prev=datarootdir ;;
1008 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1009 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1010 datarootdir=$ac_optarg ;;
1011
1012 -disable-* | --disable-*)
1013 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1016 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1017 { (exit 1); exit 1; }; }
1018 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1019 eval enable_$ac_feature=no ;;
1020
1021 -docdir | --docdir | --docdi | --doc | --do)
1022 ac_prev=docdir ;;
1023 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1024 docdir=$ac_optarg ;;
1025
1026 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027 ac_prev=dvidir ;;
1028 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1029 dvidir=$ac_optarg ;;
1030
1031 -enable-* | --enable-*)
1032 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1035 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1036 { (exit 1); exit 1; }; }
1037 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1038 eval enable_$ac_feature=\$ac_optarg ;;
1039
1040 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1041 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1042 | --exec | --exe | --ex)
1043 ac_prev=exec_prefix ;;
1044 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1045 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1046 | --exec=* | --exe=* | --ex=*)
1047 exec_prefix=$ac_optarg ;;
1048
1049 -gas | --gas | --ga | --g)
1050 # Obsolete; use --with-gas.
1051 with_gas=yes ;;
1052
1053 -help | --help | --hel | --he | -h)
1054 ac_init_help=long ;;
1055 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1056 ac_init_help=recursive ;;
1057 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1058 ac_init_help=short ;;
1059
1060 -host | --host | --hos | --ho)
1061 ac_prev=host_alias ;;
1062 -host=* | --host=* | --hos=* | --ho=*)
1063 host_alias=$ac_optarg ;;
1064
1065 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066 ac_prev=htmldir ;;
1067 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068 | --ht=*)
1069 htmldir=$ac_optarg ;;
1070
1071 -includedir | --includedir | --includedi | --included | --include \
1072 | --includ | --inclu | --incl | --inc)
1073 ac_prev=includedir ;;
1074 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1075 | --includ=* | --inclu=* | --incl=* | --inc=*)
1076 includedir=$ac_optarg ;;
1077
1078 -infodir | --infodir | --infodi | --infod | --info | --inf)
1079 ac_prev=infodir ;;
1080 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1081 infodir=$ac_optarg ;;
1082
1083 -libdir | --libdir | --libdi | --libd)
1084 ac_prev=libdir ;;
1085 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1086 libdir=$ac_optarg ;;
1087
1088 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1089 | --libexe | --libex | --libe)
1090 ac_prev=libexecdir ;;
1091 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1092 | --libexe=* | --libex=* | --libe=*)
1093 libexecdir=$ac_optarg ;;
1094
1095 -localedir | --localedir | --localedi | --localed | --locale)
1096 ac_prev=localedir ;;
1097 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1098 localedir=$ac_optarg ;;
1099
1100 -localstatedir | --localstatedir | --localstatedi | --localstated \
1101 | --localstate | --localstat | --localsta | --localst | --locals)
1102 ac_prev=localstatedir ;;
1103 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1104 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1105 localstatedir=$ac_optarg ;;
1106
1107 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108 ac_prev=mandir ;;
1109 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1110 mandir=$ac_optarg ;;
1111
1112 -nfp | --nfp | --nf)
1113 # Obsolete; use --without-fp.
1114 with_fp=no ;;
1115
1116 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1117 | --no-cr | --no-c | -n)
1118 no_create=yes ;;
1119
1120 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1121 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1122 no_recursion=yes ;;
1123
1124 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1125 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1126 | --oldin | --oldi | --old | --ol | --o)
1127 ac_prev=oldincludedir ;;
1128 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1129 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1130 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1131 oldincludedir=$ac_optarg ;;
1132
1133 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134 ac_prev=prefix ;;
1135 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1136 prefix=$ac_optarg ;;
1137
1138 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1139 | --program-pre | --program-pr | --program-p)
1140 ac_prev=program_prefix ;;
1141 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1142 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1143 program_prefix=$ac_optarg ;;
1144
1145 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1146 | --program-suf | --program-su | --program-s)
1147 ac_prev=program_suffix ;;
1148 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1149 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1150 program_suffix=$ac_optarg ;;
1151
1152 -program-transform-name | --program-transform-name \
1153 | --program-transform-nam | --program-transform-na \
1154 | --program-transform-n | --program-transform- \
1155 | --program-transform | --program-transfor \
1156 | --program-transfo | --program-transf \
1157 | --program-trans | --program-tran \
1158 | --progr-tra | --program-tr | --program-t)
1159 ac_prev=program_transform_name ;;
1160 -program-transform-name=* | --program-transform-name=* \
1161 | --program-transform-nam=* | --program-transform-na=* \
1162 | --program-transform-n=* | --program-transform-=* \
1163 | --program-transform=* | --program-transfor=* \
1164 | --program-transfo=* | --program-transf=* \
1165 | --program-trans=* | --program-tran=* \
1166 | --progr-tra=* | --program-tr=* | --program-t=*)
1167 program_transform_name=$ac_optarg ;;
1168
1169 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170 ac_prev=pdfdir ;;
1171 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1172 pdfdir=$ac_optarg ;;
1173
1174 -psdir | --psdir | --psdi | --psd | --ps)
1175 ac_prev=psdir ;;
1176 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1177 psdir=$ac_optarg ;;
1178
1179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180 | -silent | --silent | --silen | --sile | --sil)
1181 silent=yes ;;
1182
1183 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184 ac_prev=sbindir ;;
1185 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186 | --sbi=* | --sb=*)
1187 sbindir=$ac_optarg ;;
1188
1189 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191 | --sharedst | --shareds | --shared | --share | --shar \
1192 | --sha | --sh)
1193 ac_prev=sharedstatedir ;;
1194 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197 | --sha=* | --sh=*)
1198 sharedstatedir=$ac_optarg ;;
1199
1200 -site | --site | --sit)
1201 ac_prev=site ;;
1202 -site=* | --site=* | --sit=*)
1203 site=$ac_optarg ;;
1204
1205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206 ac_prev=srcdir ;;
1207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1208 srcdir=$ac_optarg ;;
1209
1210 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211 | --syscon | --sysco | --sysc | --sys | --sy)
1212 ac_prev=sysconfdir ;;
1213 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1215 sysconfdir=$ac_optarg ;;
1216
1217 -target | --target | --targe | --targ | --tar | --ta | --t)
1218 ac_prev=target_alias ;;
1219 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1220 target_alias=$ac_optarg ;;
1221
1222 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223 verbose=yes ;;
1224
1225 -version | --version | --versio | --versi | --vers | -V)
1226 ac_init_version=: ;;
1227
1228 -with-* | --with-*)
1229 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 { echo "$as_me: error: invalid package name: $ac_package" >&2
1233 { (exit 1); exit 1; }; }
1234 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1235 eval with_$ac_package=\$ac_optarg ;;
1236
1237 -without-* | --without-*)
1238 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 { echo "$as_me: error: invalid package name: $ac_package" >&2
1242 { (exit 1); exit 1; }; }
1243 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1244 eval with_$ac_package=no ;;
1245
1246 --x)
1247 # Obsolete; use --with-x.
1248 with_x=yes ;;
1249
1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1251 | --x-incl | --x-inc | --x-in | --x-i)
1252 ac_prev=x_includes ;;
1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1255 x_includes=$ac_optarg ;;
1256
1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1259 ac_prev=x_libraries ;;
1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1262 x_libraries=$ac_optarg ;;
1263
1264 -*) { echo "$as_me: error: unrecognized option: $ac_option
1265Try \`$0 --help' for more information." >&2
1266 { (exit 1); exit 1; }; }
1267 ;;
1268
1269 *=*)
1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1273 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1274 { (exit 1); exit 1; }; }
1275 eval $ac_envvar=\$ac_optarg
1276 export $ac_envvar ;;
1277
1278 *)
1279 # FIXME: should be removed in autoconf 3.0.
1280 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1283 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1284 ;;
1285
1286 esac
1287done
1288
1289if test -n "$ac_prev"; then
1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1291 { echo "$as_me: error: missing argument to $ac_option" >&2
1292 { (exit 1); exit 1; }; }
1293fi
1294
1295# Be sure to have absolute directory names.
1296for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297 datadir sysconfdir sharedstatedir localstatedir includedir \
1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299 libdir localedir mandir
1300do
1301 eval ac_val=\$$ac_var
1302 case $ac_val in
1303 [\\/$]* | ?:[\\/]* ) continue;;
1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305 esac
1306 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1307 { (exit 1); exit 1; }; }
1308done
1309
1310# There might be people who depend on the old broken behavior: `$host'
1311# used to hold the argument of --host etc.
1312# FIXME: To remove some day.
1313build=$build_alias
1314host=$host_alias
1315target=$target_alias
1316
1317# FIXME: To remove some day.
1318if test "x$host_alias" != x; then
1319 if test "x$build_alias" = x; then
1320 cross_compiling=maybe
1321 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1322 If a cross compiler is detected then cross compile mode will be used." >&2
1323 elif test "x$build_alias" != "x$host_alias"; then
1324 cross_compiling=yes
1325 fi
1326fi
1327
1328ac_tool_prefix=
1329test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330
1331test "$silent" = yes && exec 6>/dev/null
1332
1333
1334ac_pwd=`pwd` && test -n "$ac_pwd" &&
1335ac_ls_di=`ls -di .` &&
1336ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1337 { echo "$as_me: error: Working directory cannot be determined" >&2
1338 { (exit 1); exit 1; }; }
1339test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1340 { echo "$as_me: error: pwd does not report name of working directory" >&2
1341 { (exit 1); exit 1; }; }
1342
1343
1344# Find the source files, if location was not specified.
1345if test -z "$srcdir"; then
1346 ac_srcdir_defaulted=yes
1347 # Try the directory containing this script, then the parent directory.
1348 ac_confdir=`$as_dirname -- "$0" ||
1349$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350 X"$0" : 'X\(//\)[^/]' \| \
1351 X"$0" : 'X\(//\)$' \| \
1352 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1353echo X"$0" |
1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\/\)[^/].*/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\/\)$/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\).*/{
1367 s//\1/
1368 q
1369 }
1370 s/.*/./; q'`
1371 srcdir=$ac_confdir
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 srcdir=..
1374 fi
1375else
1376 ac_srcdir_defaulted=no
1377fi
1378if test ! -r "$srcdir/$ac_unique_file"; then
1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1381 { (exit 1); exit 1; }; }
1382fi
1383ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384ac_abs_confdir=`(
1385 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1386 { (exit 1); exit 1; }; }
1387 pwd)`
1388# When building in place, set srcdir=.
1389if test "$ac_abs_confdir" = "$ac_pwd"; then
1390 srcdir=.
1391fi
1392# Remove unnecessary trailing slashes from srcdir.
1393# Double slashes in file names in object file debugging info
1394# mess up M-x gdb in Emacs.
1395case $srcdir in
1396*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397esac
1398for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403done
1404
1405#
1406# Report the --help message.
1407#
1408if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1411 cat <<_ACEOF
1412\`configure' configures hpklinux 3.08.06 to adapt to many kinds of systems.
1413
1414Usage: $0 [OPTION]... [VAR=VALUE]...
1415
1416To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417VAR=VALUE. See below for descriptions of some of the useful variables.
1418
1419Defaults for the options are specified in brackets.
1420
1421Configuration:
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print \`checking...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1431
1432Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
1434 [$ac_default_prefix]
1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1436 [PREFIX]
1437
1438By default, \`make install' will install all the files in
1439\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441for instance \`--prefix=\$HOME'.
1442
1443For better control, use the options below.
1444
1445Fine tuning of the installation directories:
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/hpklinux]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1465_ACEOF
1466
1467 cat <<\_ACEOF
1468
1469Program names:
1470 --program-prefix=PREFIX prepend PREFIX to installed program names
1471 --program-suffix=SUFFIX append SUFFIX to installed program names
1472 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1473
1474System types:
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477_ACEOF
1478fi
1479
1480if test -n "$ac_init_help"; then
1481 case $ac_init_help in
1482 short | recursive ) echo "Configuration of hpklinux 3.08.06:";;
1483 esac
1484 cat <<\_ACEOF
1485
1486Optional Features:
1487 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1488 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1489 --disable-dependency-tracking speeds up one-time build
1490 --enable-dependency-tracking do not reject slow dependency extractors
1491 --enable-shared[=PKGS] build shared libraries [default=yes]
1492 --enable-static[=PKGS] build static libraries [default=yes]
1493 --enable-fast-install[=PKGS]
1494 optimize for fast installation [default=yes]
1495 --disable-libtool-lock avoid locking (might break parallel builds)
1496 --disable-kernel-compile disable compiling kernel modules
1497 --disable-alsa disable ALSA compatibility mode
1498 --disable-tests disable building adapter test utilities
1499
1500Optional Packages:
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1504 --with-pic try to use only PIC/non-PIC objects [default=use
1505 both]
1506 --with-tags[=TAGS] include additional configurations [automatic]
1507 --with-kernel=dir give the directory with kernel sources
1508 [/usr/src/linux]
1509 --with-build=dir give the directory with kernel build tree
1510 --with-firmware=dir give the directory to install firmware to
1511 --with-pcap use libpcap yes
1512
1513Some influential environment variables:
1514 CC C compiler command
1515 CFLAGS C compiler flags
1516 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1517 nonstandard directory <lib dir>
1518 LIBS libraries to pass to the linker, e.g. -l<library>
1519 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1520 you have headers in a nonstandard directory <include dir>
1521 CPP C preprocessor
1522
1523Use these variables to override the choices made by `configure' or to help
1524it to find libraries and programs with nonstandard names/locations.
1525
1526Report bugs to <<support@audioscience.com>>.
1527_ACEOF
1528ac_status=$?
1529fi
1530
1531if test "$ac_init_help" = "recursive"; then
1532 # If there are subdirs, report their specific --help.
1533 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534 test -d "$ac_dir" || continue
1535 ac_builddir=.
1536
1537case "$ac_dir" in
1538.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539*)
1540 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1541 # A ".." for each directory in $ac_dir_suffix.
1542 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1543 case $ac_top_builddir_sub in
1544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546 esac ;;
1547esac
1548ac_abs_top_builddir=$ac_pwd
1549ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550# for backward compatibility:
1551ac_top_builddir=$ac_top_build_prefix
1552
1553case $srcdir in
1554 .) # We are building in place.
1555 ac_srcdir=.
1556 ac_top_srcdir=$ac_top_builddir_sub
1557 ac_abs_top_srcdir=$ac_pwd ;;
1558 [\\/]* | ?:[\\/]* ) # Absolute name.
1559 ac_srcdir=$srcdir$ac_dir_suffix;
1560 ac_top_srcdir=$srcdir
1561 ac_abs_top_srcdir=$srcdir ;;
1562 *) # Relative name.
1563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564 ac_top_srcdir=$ac_top_build_prefix$srcdir
1565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566esac
1567ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568
1569 cd "$ac_dir" || { ac_status=$?; continue; }
1570 # Check for guested configure.
1571 if test -f "$ac_srcdir/configure.gnu"; then
1572 echo &&
1573 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1574 elif test -f "$ac_srcdir/configure"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure" --help=recursive
1577 else
1578 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579 fi || ac_status=$?
1580 cd "$ac_pwd" || { ac_status=$?; break; }
1581 done
1582fi
1583
1584test -n "$ac_init_help" && exit $ac_status
1585if $ac_init_version; then
1586 cat <<\_ACEOF
1587hpklinux configure 3.08.06
1588generated by GNU Autoconf 2.61
1589
1590Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15912002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1592This configure script is free software; the Free Software Foundation
1593gives unlimited permission to copy, distribute and modify it.
1594_ACEOF
1595 exit
1596fi
1597cat >config.log <<_ACEOF
1598This file contains any messages produced by compilers while
1599running configure, to aid debugging if configure makes a mistake.
1600
1601It was created by hpklinux $as_me 3.08.06, which was
1602generated by GNU Autoconf 2.61. Invocation command line was
1603
1604 $ $0 $@
1605
1606_ACEOF
1607exec 5>>config.log
1608{
1609cat <<_ASUNAME
1610## --------- ##
1611## Platform. ##
1612## --------- ##
1613
1614hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1615uname -m = `(uname -m) 2>/dev/null || echo unknown`
1616uname -r = `(uname -r) 2>/dev/null || echo unknown`
1617uname -s = `(uname -s) 2>/dev/null || echo unknown`
1618uname -v = `(uname -v) 2>/dev/null || echo unknown`
1619
1620/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1621/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1622
1623/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1624/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1625/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1626/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1627/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1628/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1629/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1630
1631_ASUNAME
1632
1633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634for as_dir in $PATH
1635do
1636 IFS=$as_save_IFS
1637 test -z "$as_dir" && as_dir=.
1638 echo "PATH: $as_dir"
1639done
1640IFS=$as_save_IFS
1641
1642} >&5
1643
1644cat >&5 <<_ACEOF
1645
1646
1647## ----------- ##
1648## Core tests. ##
1649## ----------- ##
1650
1651_ACEOF
1652
1653
1654# Keep a trace of the command line.
1655# Strip out --no-create and --no-recursion so they do not pile up.
1656# Strip out --silent because we don't want to record it for future runs.
1657# Also quote any args containing shell meta-characters.
1658# Make two passes to allow for proper duplicate-argument suppression.
1659ac_configure_args=
1660ac_configure_args0=
1661ac_configure_args1=
1662ac_must_keep_next=false
1663for ac_pass in 1 2
1664do
1665 for ac_arg
1666 do
1667 case $ac_arg in
1668 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1669 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1670 | -silent | --silent | --silen | --sile | --sil)
1671 continue ;;
1672 *\'*)
1673 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1674 esac
1675 case $ac_pass in
1676 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1677 2)
1678 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1679 if test $ac_must_keep_next = true; then
1680 ac_must_keep_next=false # Got value, back to normal.
1681 else
1682 case $ac_arg in
1683 *=* | --config-cache | -C | -disable-* | --disable-* \
1684 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1685 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1686 | -with-* | --with-* | -without-* | --without-* | --x)
1687 case "$ac_configure_args0 " in
1688 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1689 esac
1690 ;;
1691 -* ) ac_must_keep_next=true ;;
1692 esac
1693 fi
1694 ac_configure_args="$ac_configure_args '$ac_arg'"
1695 ;;
1696 esac
1697 done
1698done
1699$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1700$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1701
1702# When interrupted or exit'd, cleanup temporary files, and complete
1703# config.log. We remove comments because anyway the quotes in there
1704# would cause problems or look ugly.
1705# WARNING: Use '\'' to represent an apostrophe within the trap.
1706# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1707trap 'exit_status=$?
1708 # Save into config.log some information that might help in debugging.
1709 {
1710 echo
1711
1712 cat <<\_ASBOX
1713## ---------------- ##
1714## Cache variables. ##
1715## ---------------- ##
1716_ASBOX
1717 echo
1718 # The following way of writing the cache mishandles newlines in values,
1719(
1720 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1721 eval ac_val=\$$ac_var
1722 case $ac_val in #(
1723 *${as_nl}*)
1724 case $ac_var in #(
1725 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1726echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1727 esac
1728 case $ac_var in #(
1729 _ | IFS | as_nl) ;; #(
1730 *) $as_unset $ac_var ;;
1731 esac ;;
1732 esac
1733 done
1734 (set) 2>&1 |
1735 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1736 *${as_nl}ac_space=\ *)
1737 sed -n \
1738 "s/'\''/'\''\\\\'\'''\''/g;
1739 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1740 ;; #(
1741 *)
1742 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1743 ;;
1744 esac |
1745 sort
1746)
1747 echo
1748
1749 cat <<\_ASBOX
1750## ----------------- ##
1751## Output variables. ##
1752## ----------------- ##
1753_ASBOX
1754 echo
1755 for ac_var in $ac_subst_vars
1756 do
1757 eval ac_val=\$$ac_var
1758 case $ac_val in
1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 esac
1761 echo "$ac_var='\''$ac_val'\''"
1762 done | sort
1763 echo
1764
1765 if test -n "$ac_subst_files"; then
1766 cat <<\_ASBOX
1767## ------------------- ##
1768## File substitutions. ##
1769## ------------------- ##
1770_ASBOX
1771 echo
1772 for ac_var in $ac_subst_files
1773 do
1774 eval ac_val=\$$ac_var
1775 case $ac_val in
1776 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1777 esac
1778 echo "$ac_var='\''$ac_val'\''"
1779 done | sort
1780 echo
1781 fi
1782
1783 if test -s confdefs.h; then
1784 cat <<\_ASBOX
1785## ----------- ##
1786## confdefs.h. ##
1787## ----------- ##
1788_ASBOX
1789 echo
1790 cat confdefs.h
1791 echo
1792 fi
1793 test "$ac_signal" != 0 &&
1794 echo "$as_me: caught signal $ac_signal"
1795 echo "$as_me: exit $exit_status"
1796 } >&5
1797 rm -f core *.core core.conftest.* &&
1798 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1799 exit $exit_status
1800' 0
1801for ac_signal in 1 2 13 15; do
1802 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1803done
1804ac_signal=0
1805
1806# confdefs.h avoids OS command line length limits that DEFS can exceed.
1807rm -f -r conftest* confdefs.h
1808
1809# Predefined preprocessor variables.
1810
1811cat >>confdefs.h <<_ACEOF
1812#define PACKAGE_NAME "$PACKAGE_NAME"
1813_ACEOF
1814
1815
1816cat >>confdefs.h <<_ACEOF
1817#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1818_ACEOF
1819
1820
1821cat >>confdefs.h <<_ACEOF
1822#define PACKAGE_VERSION "$PACKAGE_VERSION"
1823_ACEOF
1824
1825
1826cat >>confdefs.h <<_ACEOF
1827#define PACKAGE_STRING "$PACKAGE_STRING"
1828_ACEOF
1829
1830
1831cat >>confdefs.h <<_ACEOF
1832#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1833_ACEOF
1834
1835
1836# Let the site file select an alternate cache file if it wants to.
1837# Prefer explicitly selected file to automatically selected ones.
1838if test -n "$CONFIG_SITE"; then
1839 set x "$CONFIG_SITE"
1840elif test "x$prefix" != xNONE; then
1841 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1842else
1843 set x "$ac_default_prefix/share/config.site" \
1844 "$ac_default_prefix/etc/config.site"
1845fi
1846shift
1847for ac_site_file
1848do
1849 if test -r "$ac_site_file"; then
1850 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1851echo "$as_me: loading site script $ac_site_file" >&6;}
1852 sed 's/^/| /' "$ac_site_file" >&5
1853 . "$ac_site_file"
1854 fi
1855done
1856
1857if test -r "$cache_file"; then
1858 # Some versions of bash will fail to source /dev/null (special
1859 # files actually), so we avoid doing that.
1860 if test -f "$cache_file"; then
1861 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1862echo "$as_me: loading cache $cache_file" >&6;}
1863 case $cache_file in
1864 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1865 *) . "./$cache_file";;
1866 esac
1867 fi
1868else
1869 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1870echo "$as_me: creating cache $cache_file" >&6;}
1871 >$cache_file
1872fi
1873
1874# Check that the precious variables saved in the cache have kept the same
1875# value.
1876ac_cache_corrupted=false
1877for ac_var in $ac_precious_vars; do
1878 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1879 eval ac_new_set=\$ac_env_${ac_var}_set
1880 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1881 eval ac_new_val=\$ac_env_${ac_var}_value
1882 case $ac_old_set,$ac_new_set in
1883 set,)
1884 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1885echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1886 ac_cache_corrupted=: ;;
1887 ,set)
1888 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1889echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1890 ac_cache_corrupted=: ;;
1891 ,);;
1892 *)
1893 if test "x$ac_old_val" != "x$ac_new_val"; then
1894 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1895echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1896 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1897echo "$as_me: former value: $ac_old_val" >&2;}
1898 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1899echo "$as_me: current value: $ac_new_val" >&2;}
1900 ac_cache_corrupted=:
1901 fi;;
1902 esac
1903 # Pass precious variables to config.status.
1904 if test "$ac_new_set" = set; then
1905 case $ac_new_val in
1906 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1907 *) ac_arg=$ac_var=$ac_new_val ;;
1908 esac
1909 case " $ac_configure_args " in
1910 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1911 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1912 esac
1913 fi
1914done
1915if $ac_cache_corrupted; then
1916 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1917echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1918 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1919echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1920 { (exit 1); exit 1; }; }
1921fi
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947ac_ext=c
1948ac_cpp='$CPP $CPPFLAGS'
1949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1951ac_compiler_gnu=$ac_cv_c_compiler_gnu
1952
1953
1954am__api_version="1.9"
1955ac_aux_dir=
1956for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1957 if test -f "$ac_dir/install-sh"; then
1958 ac_aux_dir=$ac_dir
1959 ac_install_sh="$ac_aux_dir/install-sh -c"
1960 break
1961 elif test -f "$ac_dir/install.sh"; then
1962 ac_aux_dir=$ac_dir
1963 ac_install_sh="$ac_aux_dir/install.sh -c"
1964 break
1965 elif test -f "$ac_dir/shtool"; then
1966 ac_aux_dir=$ac_dir
1967 ac_install_sh="$ac_aux_dir/shtool install -c"
1968 break
1969 fi
1970done
1971if test -z "$ac_aux_dir"; then
1972 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1973echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1974 { (exit 1); exit 1; }; }
1975fi
1976
1977# These three variables are undocumented and unsupported,
1978# and are intended to be withdrawn in a future Autoconf release.
1979# They can cause serious problems if a builder's source tree is in a directory
1980# whose full name contains unusual characters.
1981ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1982ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1983ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1984
1985
1986# Find a good install program. We prefer a C program (faster),
1987# so one script is as good as another. But avoid the broken or
1988# incompatible versions:
1989# SysV /etc/install, /usr/sbin/install
1990# SunOS /usr/etc/install
1991# IRIX /sbin/install
1992# AIX /bin/install
1993# AmigaOS /C/install, which installs bootblocks on floppy discs
1994# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1995# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1996# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1997# OS/2's system install, which has a completely different semantic
1998# ./install, which can be erroneously created by make from ./install.sh.
1999{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2000echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2001if test -z "$INSTALL"; then
2002if test "${ac_cv_path_install+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2004else
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006for as_dir in $PATH
2007do
2008 IFS=$as_save_IFS
2009 test -z "$as_dir" && as_dir=.
2010 # Account for people who put trailing slashes in PATH elements.
2011case $as_dir/ in
2012 ./ | .// | /cC/* | \
2013 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2014 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2015 /usr/ucb/* ) ;;
2016 *)
2017 # OSF1 and SCO ODT 3.0 have their own names for install.
2018 # Don't use installbsd from OSF since it installs stuff as root
2019 # by default.
2020 for ac_prog in ginstall scoinst install; do
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2023 if test $ac_prog = install &&
2024 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2025 # AIX install. It has an incompatible calling convention.
2026 :
2027 elif test $ac_prog = install &&
2028 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2029 # program-specific install script used by HP pwplus--don't use.
2030 :
2031 else
2032 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2033 break 3
2034 fi
2035 fi
2036 done
2037 done
2038 ;;
2039esac
2040done
2041IFS=$as_save_IFS
2042
2043
2044fi
2045 if test "${ac_cv_path_install+set}" = set; then
2046 INSTALL=$ac_cv_path_install
2047 else
2048 # As a last resort, use the slow shell script. Don't cache a
2049 # value for INSTALL within a source directory, because that will
2050 # break other packages using the cache if that directory is
2051 # removed, or if the value is a relative name.
2052 INSTALL=$ac_install_sh
2053 fi
2054fi
2055{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2056echo "${ECHO_T}$INSTALL" >&6; }
2057
2058# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2059# It thinks the first close brace ends the variable substitution.
2060test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2061
2062test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2063
2064test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2065
2066{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2067echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2068# Just in case
2069sleep 1
2070echo timestamp > conftest.file
2071# Do `set' in a subshell so we don't clobber the current shell's
2072# arguments. Must try -L first in case configure is actually a
2073# symlink; some systems play weird games with the mod time of symlinks
2074# (eg FreeBSD returns the mod time of the symlink's containing
2075# directory).
2076if (
2077 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2078 if test "$*" = "X"; then
2079 # -L didn't work.
2080 set X `ls -t $srcdir/configure conftest.file`
2081 fi
2082 rm -f conftest.file
2083 if test "$*" != "X $srcdir/configure conftest.file" \
2084 && test "$*" != "X conftest.file $srcdir/configure"; then
2085
2086 # If neither matched, then we have a broken ls. This can happen
2087 # if, for instance, CONFIG_SHELL is bash and it inherits a
2088 # broken ls alias from the environment. This has actually
2089 # happened. Such a system could not be considered "sane".
2090 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2091alias in your environment" >&5
2092echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2093alias in your environment" >&2;}
2094 { (exit 1); exit 1; }; }
2095 fi
2096
2097 test "$2" = conftest.file
2098 )
2099then
2100 # Ok.
2101 :
2102else
2103 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2104Check your system clock" >&5
2105echo "$as_me: error: newly created file is older than distributed files!
2106Check your system clock" >&2;}
2107 { (exit 1); exit 1; }; }
2108fi
2109{ echo "$as_me:$LINENO: result: yes" >&5
2110echo "${ECHO_T}yes" >&6; }
2111test "$program_prefix" != NONE &&
2112 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2113# Use a double $ so make ignores it.
2114test "$program_suffix" != NONE &&
2115 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2116# Double any \ or $. echo might interpret backslashes.
2117# By default was `s,x,x', remove it if useless.
2118cat <<\_ACEOF >conftest.sed
2119s/[\\$]/&&/g;s/;s,x,x,$//
2120_ACEOF
2121program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2122rm -f conftest.sed
2123
2124# expand $ac_aux_dir to an absolute path
2125am_aux_dir=`cd $ac_aux_dir && pwd`
2126
2127test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2128# Use eval to expand $SHELL
2129if eval "$MISSING --run true"; then
2130 am_missing_run="$MISSING --run "
2131else
2132 am_missing_run=
2133 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2134echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2135fi
2136
2137if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2138 # We used to keeping the `.' as first argument, in order to
2139 # allow $(mkdir_p) to be used without argument. As in
2140 # $(mkdir_p) $(somedir)
2141 # where $(somedir) is conditionally defined. However this is wrong
2142 # for two reasons:
2143 # 1. if the package is installed by a user who cannot write `.'
2144 # make install will fail,
2145 # 2. the above comment should most certainly read
2146 # $(mkdir_p) $(DESTDIR)$(somedir)
2147 # so it does not work when $(somedir) is undefined and
2148 # $(DESTDIR) is not.
2149 # To support the latter case, we have to write
2150 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2151 # so the `.' trick is pointless.
2152 mkdir_p='mkdir -p --'
2153else
2154 # On NextStep and OpenStep, the `mkdir' command does not
2155 # recognize any option. It will interpret all options as
2156 # directories to create, and then abort because `.' already
2157 # exists.
2158 for d in ./-p ./--version;
2159 do
2160 test -d $d && rmdir $d
2161 done
2162 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2163 if test -f "$ac_aux_dir/mkinstalldirs"; then
2164 mkdir_p='$(mkinstalldirs)'
2165 else
2166 mkdir_p='$(install_sh) -d'
2167 fi
2168fi
2169
2170for ac_prog in gawk mawk nawk awk
2171do
2172 # Extract the first word of "$ac_prog", so it can be a program name with args.
2173set dummy $ac_prog; ac_word=$2
2174{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2176if test "${ac_cv_prog_AWK+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178else
2179 if test -n "$AWK"; then
2180 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2181else
2182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183for as_dir in $PATH
2184do
2185 IFS=$as_save_IFS
2186 test -z "$as_dir" && as_dir=.
2187 for ac_exec_ext in '' $ac_executable_extensions; do
2188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2189 ac_cv_prog_AWK="$ac_prog"
2190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191 break 2
2192 fi
2193done
2194done
2195IFS=$as_save_IFS
2196
2197fi
2198fi
2199AWK=$ac_cv_prog_AWK
2200if test -n "$AWK"; then
2201 { echo "$as_me:$LINENO: result: $AWK" >&5
2202echo "${ECHO_T}$AWK" >&6; }
2203else
2204 { echo "$as_me:$LINENO: result: no" >&5
2205echo "${ECHO_T}no" >&6; }
2206fi
2207
2208
2209 test -n "$AWK" && break
2210done
2211
2212{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2213echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2214set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2215if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2217else
2218 cat >conftest.make <<\_ACEOF
2219SHELL = /bin/sh
2220all:
2221 @echo '@@@%%%=$(MAKE)=@@@%%%'
2222_ACEOF
2223# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2224case `${MAKE-make} -f conftest.make 2>/dev/null` in
2225 *@@@%%%=?*=@@@%%%*)
2226 eval ac_cv_prog_make_${ac_make}_set=yes;;
2227 *)
2228 eval ac_cv_prog_make_${ac_make}_set=no;;
2229esac
2230rm -f conftest.make
2231fi
2232if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2233 { echo "$as_me:$LINENO: result: yes" >&5
2234echo "${ECHO_T}yes" >&6; }
2235 SET_MAKE=
2236else
2237 { echo "$as_me:$LINENO: result: no" >&5
2238echo "${ECHO_T}no" >&6; }
2239 SET_MAKE="MAKE=${MAKE-make}"
2240fi
2241
2242rm -rf .tst 2>/dev/null
2243mkdir .tst 2>/dev/null
2244if test -d .tst; then
2245 am__leading_dot=.
2246else
2247 am__leading_dot=_
2248fi
2249rmdir .tst 2>/dev/null
2250
2251# test to see if srcdir already configured
2252if test "`cd $srcdir && pwd`" != "`pwd`" &&
2253 test -f $srcdir/config.status; then
2254 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2255echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2256 { (exit 1); exit 1; }; }
2257fi
2258
2259# test whether we have cygpath
2260if test -z "$CYGPATH_W"; then
2261 if (cygpath --version) >/dev/null 2>/dev/null; then
2262 CYGPATH_W='cygpath -w'
2263 else
2264 CYGPATH_W=echo
2265 fi
2266fi
2267
2268
2269# Define the identity of the package.
2270 PACKAGE='hpklinux'
2271 VERSION='3.08.06'
2272
2273
2274cat >>confdefs.h <<_ACEOF
2275#define PACKAGE "$PACKAGE"
2276_ACEOF
2277
2278
2279cat >>confdefs.h <<_ACEOF
2280#define VERSION "$VERSION"
2281_ACEOF
2282
2283# Some tools Automake needs.
2284
2285ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2286
2287
2288AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2289
2290
2291AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2292
2293
2294AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2295
2296
2297MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2298
2299install_sh=${install_sh-"$am_aux_dir/install-sh"}
2300
2301# Installed binaries are usually stripped using `strip' when the user
2302# run `make install-strip'. However `strip' might not be the right
2303# tool to use in cross-compilation environments, therefore Automake
2304# will honor the `STRIP' environment variable to overrule this program.
2305if test "$cross_compiling" != no; then
2306 if test -n "$ac_tool_prefix"; then
2307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2308set dummy ${ac_tool_prefix}strip; ac_word=$2
2309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311if test "${ac_cv_prog_STRIP+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2313else
2314 if test -n "$STRIP"; then
2315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2316else
2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 break 2
2327 fi
2328done
2329done
2330IFS=$as_save_IFS
2331
2332fi
2333fi
2334STRIP=$ac_cv_prog_STRIP
2335if test -n "$STRIP"; then
2336 { echo "$as_me:$LINENO: result: $STRIP" >&5
2337echo "${ECHO_T}$STRIP" >&6; }
2338else
2339 { echo "$as_me:$LINENO: result: no" >&5
2340echo "${ECHO_T}no" >&6; }
2341fi
2342
2343
2344fi
2345if test -z "$ac_cv_prog_STRIP"; then
2346 ac_ct_STRIP=$STRIP
2347 # Extract the first word of "strip", so it can be a program name with args.
2348set dummy strip; ac_word=$2
2349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2353else
2354 if test -n "$ac_ct_STRIP"; then
2355 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2356else
2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358for as_dir in $PATH
2359do
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_ac_ct_STRIP="strip"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 break 2
2367 fi
2368done
2369done
2370IFS=$as_save_IFS
2371
2372fi
2373fi
2374ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2375if test -n "$ac_ct_STRIP"; then
2376 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2377echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2378else
2379 { echo "$as_me:$LINENO: result: no" >&5
2380echo "${ECHO_T}no" >&6; }
2381fi
2382
2383 if test "x$ac_ct_STRIP" = x; then
2384 STRIP=":"
2385 else
2386 case $cross_compiling:$ac_tool_warned in
2387yes:)
2388{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2389whose name does not start with the host triplet. If you think this
2390configuration is useful to you, please write to autoconf@gnu.org." >&5
2391echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2392whose name does not start with the host triplet. If you think this
2393configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2394ac_tool_warned=yes ;;
2395esac
2396 STRIP=$ac_ct_STRIP
2397 fi
2398else
2399 STRIP="$ac_cv_prog_STRIP"
2400fi
2401
2402fi
2403INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2404
2405# We need awk for the "check" target. The system "awk" is bad on
2406# some platforms.
2407# Always define AMTAR for backward compatibility.
2408
2409AMTAR=${AMTAR-"${am_missing_run}tar"}
2410
2411am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2412
2413
2414
2415
2416
2417RPM_RELEASE=1
2418
2419ac_ext=c
2420ac_cpp='$CPP $CPPFLAGS'
2421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423ac_compiler_gnu=$ac_cv_c_compiler_gnu
2424
2425
2426# http://www.gnu.org/software/libtool/manual.html#Updating-version-info
2427# Here are a set of rules to help you update your library version information:
2428#
2429# 1. Start with version information of 0:0:0 for each libtool library.
2430# 2. Update the version information only immediately before a public release of your software. More frequent updates are unnecessary, and only guarantee that the current interface number gets larger faster.
2431# 3. If the library source code has changed at all since the last update, then increment 'REVISION' (c:r:a becomes c:r+1:a).
2432# 4. If any interfaces have been added, removed, or changed since the last update, increment 'CURRENT', and set 'REVISION' to 0.
2433# 5. If any interfaces have been added since the last public release, then increment 'AGE'.
2434# 6. If any interfaces have been removed since the last public release, then set 'AGE' to 0.
2435CURRENT=3
2436REVISION=0
2437AGE=0
2438
2439POINT=$(($CURRENT - $AGE))
2440
2441#
2442# Calculate the Library Version Values
2443#
2444INTERFACE_CURRENT=$CURRENT
2445
2446INTERFACE_REVISION=$REVISION
2447
2448INTERFACE_AGE=$AGE
2449
2450INTERFACE_MAJOR=$POINT
2451
2452INTERFACE_MINOR=$AGE
2453
2454INTERFACE_POINT=$REVISION
2455
2456
2457#
2458# Some Fully Resolved Install Paths
2459# (for the packaging system and friends)
2460#
2461if test ${prefix} = "NONE" ; then
2462 LOCAL_PREFIX=/usr/local
2463
2464else
2465 LOCAL_PREFIX=${prefix}
2466
2467fi
2468
2469#
2470# Basic Compiler Checks
2471#
2472# CFLAGS hackery is to stop AC_PROG_CC adding -O2 to CFLAGS, some files fail compile with -O2
2473savedCFLAGS=$CFLAGS
2474ac_ext=c
2475ac_cpp='$CPP $CPPFLAGS'
2476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479if test -n "$ac_tool_prefix"; then
2480 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2481set dummy ${ac_tool_prefix}gcc; ac_word=$2
2482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484if test "${ac_cv_prog_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486else
2487 if test -n "$CC"; then
2488 ac_cv_prog_CC="$CC" # Let the user override the test.
2489else
2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491for as_dir in $PATH
2492do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2500 fi
2501done
2502done
2503IFS=$as_save_IFS
2504
2505fi
2506fi
2507CC=$ac_cv_prog_CC
2508if test -n "$CC"; then
2509 { echo "$as_me:$LINENO: result: $CC" >&5
2510echo "${ECHO_T}$CC" >&6; }
2511else
2512 { echo "$as_me:$LINENO: result: no" >&5
2513echo "${ECHO_T}no" >&6; }
2514fi
2515
2516
2517fi
2518if test -z "$ac_cv_prog_CC"; then
2519 ac_ct_CC=$CC
2520 # Extract the first word of "gcc", so it can be a program name with args.
2521set dummy gcc; ac_word=$2
2522{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526else
2527 if test -n "$ac_ct_CC"; then
2528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2529else
2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531for as_dir in $PATH
2532do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_ac_ct_CC="gcc"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2540 fi
2541done
2542done
2543IFS=$as_save_IFS
2544
2545fi
2546fi
2547ac_ct_CC=$ac_cv_prog_ac_ct_CC
2548if test -n "$ac_ct_CC"; then
2549 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2550echo "${ECHO_T}$ac_ct_CC" >&6; }
2551else
2552 { echo "$as_me:$LINENO: result: no" >&5
2553echo "${ECHO_T}no" >&6; }
2554fi
2555
2556 if test "x$ac_ct_CC" = x; then
2557 CC=""
2558 else
2559 case $cross_compiling:$ac_tool_warned in
2560yes:)
2561{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2562whose name does not start with the host triplet. If you think this
2563configuration is useful to you, please write to autoconf@gnu.org." >&5
2564echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2565whose name does not start with the host triplet. If you think this
2566configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2567ac_tool_warned=yes ;;
2568esac
2569 CC=$ac_ct_CC
2570 fi
2571else
2572 CC="$ac_cv_prog_CC"
2573fi
2574
2575if test -z "$CC"; then
2576 if test -n "$ac_tool_prefix"; then
2577 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2578set dummy ${ac_tool_prefix}cc; ac_word=$2
2579{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581if test "${ac_cv_prog_CC+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583else
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2586else
2587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588for as_dir in $PATH
2589do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 ac_cv_prog_CC="${ac_tool_prefix}cc"
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2597 fi
2598done
2599done
2600IFS=$as_save_IFS
2601
2602fi
2603fi
2604CC=$ac_cv_prog_CC
2605if test -n "$CC"; then
2606 { echo "$as_me:$LINENO: result: $CC" >&5
2607echo "${ECHO_T}$CC" >&6; }
2608else
2609 { echo "$as_me:$LINENO: result: no" >&5
2610echo "${ECHO_T}no" >&6; }
2611fi
2612
2613
2614 fi
2615fi
2616if test -z "$CC"; then
2617 # Extract the first word of "cc", so it can be a program name with args.
2618set dummy cc; ac_word=$2
2619{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2621if test "${ac_cv_prog_CC+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2623else
2624 if test -n "$CC"; then
2625 ac_cv_prog_CC="$CC" # Let the user override the test.
2626else
2627 ac_prog_rejected=no
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH
2630do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2635 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2636 ac_prog_rejected=yes
2637 continue
2638 fi
2639 ac_cv_prog_CC="cc"
2640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 break 2
2642 fi
2643done
2644done
2645IFS=$as_save_IFS
2646
2647if test $ac_prog_rejected = yes; then
2648 # We found a bogon in the path, so make sure we never use it.
2649 set dummy $ac_cv_prog_CC
2650 shift
2651 if test $# != 0; then
2652 # We chose a different compiler from the bogus one.
2653 # However, it has the same basename, so the bogon will be chosen
2654 # first if we set CC to just the basename; use the full file name.
2655 shift
2656 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2657 fi
2658fi
2659fi
2660fi
2661CC=$ac_cv_prog_CC
2662if test -n "$CC"; then
2663 { echo "$as_me:$LINENO: result: $CC" >&5
2664echo "${ECHO_T}$CC" >&6; }
2665else
2666 { echo "$as_me:$LINENO: result: no" >&5
2667echo "${ECHO_T}no" >&6; }
2668fi
2669
2670
2671fi
2672if test -z "$CC"; then
2673 if test -n "$ac_tool_prefix"; then
2674 for ac_prog in cl.exe
2675 do
2676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2677set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680if test "${ac_cv_prog_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682else
2683 if test -n "$CC"; then
2684 ac_cv_prog_CC="$CC" # Let the user override the test.
2685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697done
2698done
2699IFS=$as_save_IFS
2700
2701fi
2702fi
2703CC=$ac_cv_prog_CC
2704if test -n "$CC"; then
2705 { echo "$as_me:$LINENO: result: $CC" >&5
2706echo "${ECHO_T}$CC" >&6; }
2707else
2708 { echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6; }
2710fi
2711
2712
2713 test -n "$CC" && break
2714 done
2715fi
2716if test -z "$CC"; then
2717 ac_ct_CC=$CC
2718 for ac_prog in cl.exe
2719do
2720 # Extract the first word of "$ac_prog", so it can be a program name with args.
2721set dummy $ac_prog; ac_word=$2
2722{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2724if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2726else
2727 if test -n "$ac_ct_CC"; then
2728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2729else
2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH
2732do
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 ac_cv_prog_ac_ct_CC="$ac_prog"
2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2740 fi
2741done
2742done
2743IFS=$as_save_IFS
2744
2745fi
2746fi
2747ac_ct_CC=$ac_cv_prog_ac_ct_CC
2748if test -n "$ac_ct_CC"; then
2749 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2750echo "${ECHO_T}$ac_ct_CC" >&6; }
2751else
2752 { echo "$as_me:$LINENO: result: no" >&5
2753echo "${ECHO_T}no" >&6; }
2754fi
2755
2756
2757 test -n "$ac_ct_CC" && break
2758done
2759
2760 if test "x$ac_ct_CC" = x; then
2761 CC=""
2762 else
2763 case $cross_compiling:$ac_tool_warned in
2764yes:)
2765{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2766whose name does not start with the host triplet. If you think this
2767configuration is useful to you, please write to autoconf@gnu.org." >&5
2768echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2769whose name does not start with the host triplet. If you think this
2770configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2771ac_tool_warned=yes ;;
2772esac
2773 CC=$ac_ct_CC
2774 fi
2775fi
2776
2777fi
2778
2779
2780test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2781See \`config.log' for more details." >&5
2782echo "$as_me: error: no acceptable C compiler found in \$PATH
2783See \`config.log' for more details." >&2;}
2784 { (exit 1); exit 1; }; }
2785
2786# Provide some information about the compiler.
2787echo "$as_me:$LINENO: checking for C compiler version" >&5
2788ac_compiler=`set X $ac_compile; echo $2`
2789{ (ac_try="$ac_compiler --version >&5"
2790case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2793esac
2794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795 (eval "$ac_compiler --version >&5") 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }
2799{ (ac_try="$ac_compiler -v >&5"
2800case "(($ac_try" in
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802 *) ac_try_echo=$ac_try;;
2803esac
2804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2805 (eval "$ac_compiler -v >&5") 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }
2809{ (ac_try="$ac_compiler -V >&5"
2810case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2813esac
2814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815 (eval "$ac_compiler -V >&5") 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }
2819
2820cat >conftest.$ac_ext <<_ACEOF
2821/* confdefs.h. */
2822_ACEOF
2823cat confdefs.h >>conftest.$ac_ext
2824cat >>conftest.$ac_ext <<_ACEOF
2825/* end confdefs.h. */
2826
2827int
2828main ()
2829{
2830
2831 ;
2832 return 0;
2833}
2834_ACEOF
2835ac_clean_files_save=$ac_clean_files
2836ac_clean_files="$ac_clean_files a.out a.exe b.out"
2837# Try to create an executable without -o first, disregard a.out.
2838# It will help us diagnose broken compilers, and finding out an intuition
2839# of exeext.
2840{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2841echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2842ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2843#
2844# List of possible output files, starting from the most likely.
2845# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2846# only as a last resort. b.out is created by i960 compilers.
2847ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2848#
2849# The IRIX 6 linker writes into existing files which may not be
2850# executable, retaining their permissions. Remove them first so a
2851# subsequent execution test works.
2852ac_rmfiles=
2853for ac_file in $ac_files
2854do
2855 case $ac_file in
2856 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2857 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2858 esac
2859done
2860rm -f $ac_rmfiles
2861
2862if { (ac_try="$ac_link_default"
2863case "(($ac_try" in
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2866esac
2867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2868 (eval "$ac_link_default") 2>&5
2869 ac_status=$?
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; then
2872 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2873# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2874# in a Makefile. We should not override ac_cv_exeext if it was cached,
2875# so that the user can short-circuit this test for compilers unknown to
2876# Autoconf.
2877for ac_file in $ac_files ''
2878do
2879 test -f "$ac_file" || continue
2880 case $ac_file in
2881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2882 ;;
2883 [ab].out )
2884 # We found the default executable, but exeext='' is most
2885 # certainly right.
2886 break;;
2887 *.* )
2888 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2889 then :; else
2890 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2891 fi
2892 # We set ac_cv_exeext here because the later test for it is not
2893 # safe: cross compilers may not add the suffix if given an `-o'
2894 # argument, so we may need to know it at that point already.
2895 # Even if this section looks crufty: it has the advantage of
2896 # actually working.
2897 break;;
2898 * )
2899 break;;
2900 esac
2901done
2902test "$ac_cv_exeext" = no && ac_cv_exeext=
2903
2904else
2905 ac_file=''
2906fi
2907
2908{ echo "$as_me:$LINENO: result: $ac_file" >&5
2909echo "${ECHO_T}$ac_file" >&6; }
2910if test -z "$ac_file"; then
2911 echo "$as_me: failed program was:" >&5
2912sed 's/^/| /' conftest.$ac_ext >&5
2913
2914{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2915See \`config.log' for more details." >&5
2916echo "$as_me: error: C compiler cannot create executables
2917See \`config.log' for more details." >&2;}
2918 { (exit 77); exit 77; }; }
2919fi
2920
2921ac_exeext=$ac_cv_exeext
2922
2923# Check that the compiler produces executables we can run. If not, either
2924# the compiler is broken, or we cross compile.
2925{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2926echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2927# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2928# If not cross compiling, check that we can run a simple program.
2929if test "$cross_compiling" != yes; then
2930 if { ac_try='./$ac_file'
2931 { (case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934esac
2935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_try") 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 cross_compiling=no
2941 else
2942 if test "$cross_compiling" = maybe; then
2943 cross_compiling=yes
2944 else
2945 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2946If you meant to cross compile, use \`--host'.
2947See \`config.log' for more details." >&5
2948echo "$as_me: error: cannot run C compiled programs.
2949If you meant to cross compile, use \`--host'.
2950See \`config.log' for more details." >&2;}
2951 { (exit 1); exit 1; }; }
2952 fi
2953 fi
2954fi
2955{ echo "$as_me:$LINENO: result: yes" >&5
2956echo "${ECHO_T}yes" >&6; }
2957
2958rm -f a.out a.exe conftest$ac_cv_exeext b.out
2959ac_clean_files=$ac_clean_files_save
2960# Check that the compiler produces executables we can run. If not, either
2961# the compiler is broken, or we cross compile.
2962{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2963echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2964{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2965echo "${ECHO_T}$cross_compiling" >&6; }
2966
2967{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2968echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2969if { (ac_try="$ac_link"
2970case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973esac
2974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_link") 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; then
2979 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2980# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2981# work properly (i.e., refer to `conftest.exe'), while it won't with
2982# `rm'.
2983for ac_file in conftest.exe conftest conftest.*; do
2984 test -f "$ac_file" || continue
2985 case $ac_file in
2986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2987 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2988 break;;
2989 * ) break;;
2990 esac
2991done
2992else
2993 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2994See \`config.log' for more details." >&5
2995echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2996See \`config.log' for more details." >&2;}
2997 { (exit 1); exit 1; }; }
2998fi
2999
3000rm -f conftest$ac_cv_exeext
3001{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3002echo "${ECHO_T}$ac_cv_exeext" >&6; }
3003
3004rm -f conftest.$ac_ext
3005EXEEXT=$ac_cv_exeext
3006ac_exeext=$EXEEXT
3007{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3008echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3009if test "${ac_cv_objext+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3011else
3012 cat >conftest.$ac_ext <<_ACEOF
3013/* confdefs.h. */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h. */
3018
3019int
3020main ()
3021{
3022
3023 ;
3024 return 0;
3025}
3026_ACEOF
3027rm -f conftest.o conftest.obj
3028if { (ac_try="$ac_compile"
3029case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032esac
3033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compile") 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; then
3038 for ac_file in conftest.o conftest.obj conftest.*; do
3039 test -f "$ac_file" || continue;
3040 case $ac_file in
3041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3042 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3043 break;;
3044 esac
3045done
3046else
3047 echo "$as_me: failed program was:" >&5
3048sed 's/^/| /' conftest.$ac_ext >&5
3049
3050{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3051See \`config.log' for more details." >&5
3052echo "$as_me: error: cannot compute suffix of object files: cannot compile
3053See \`config.log' for more details." >&2;}
3054 { (exit 1); exit 1; }; }
3055fi
3056
3057rm -f conftest.$ac_cv_objext conftest.$ac_ext
3058fi
3059{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3060echo "${ECHO_T}$ac_cv_objext" >&6; }
3061OBJEXT=$ac_cv_objext
3062ac_objext=$OBJEXT
3063{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3064echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3065if test "${ac_cv_c_compiler_gnu+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067else
3068 cat >conftest.$ac_ext <<_ACEOF
3069/* confdefs.h. */
3070_ACEOF
3071cat confdefs.h >>conftest.$ac_ext
3072cat >>conftest.$ac_ext <<_ACEOF
3073/* end confdefs.h. */
3074
3075int
3076main ()
3077{
3078#ifndef __GNUC__
3079 choke me
3080#endif
3081
3082 ;
3083 return 0;
3084}
3085_ACEOF
3086rm -f conftest.$ac_objext
3087if { (ac_try="$ac_compile"
3088case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091esac
3092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_compile") 2>conftest.er1
3094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } && {
3100 test -z "$ac_c_werror_flag" ||
3101 test ! -s conftest.err
3102 } && test -s conftest.$ac_objext; then
3103 ac_compiler_gnu=yes
3104else
3105 echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 ac_compiler_gnu=no
3109fi
3110
3111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112ac_cv_c_compiler_gnu=$ac_compiler_gnu
3113
3114fi
3115{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3116echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3117GCC=`test $ac_compiler_gnu = yes && echo yes`
3118ac_test_CFLAGS=${CFLAGS+set}
3119ac_save_CFLAGS=$CFLAGS
3120{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3121echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3122if test "${ac_cv_prog_cc_g+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124else
3125 ac_save_c_werror_flag=$ac_c_werror_flag
3126 ac_c_werror_flag=yes
3127 ac_cv_prog_cc_g=no
3128 CFLAGS="-g"
3129 cat >conftest.$ac_ext <<_ACEOF
3130/* confdefs.h. */
3131_ACEOF
3132cat confdefs.h >>conftest.$ac_ext
3133cat >>conftest.$ac_ext <<_ACEOF
3134/* end confdefs.h. */
3135
3136int
3137main ()
3138{
3139
3140 ;
3141 return 0;
3142}
3143_ACEOF
3144rm -f conftest.$ac_objext
3145if { (ac_try="$ac_compile"
3146case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_compile") 2>conftest.er1
3152 ac_status=$?
3153 grep -v '^ *+' conftest.er1 >conftest.err
3154 rm -f conftest.er1
3155 cat conftest.err >&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } && {
3158 test -z "$ac_c_werror_flag" ||
3159 test ! -s conftest.err
3160 } && test -s conftest.$ac_objext; then
3161 ac_cv_prog_cc_g=yes
3162else
3163 echo "$as_me: failed program was:" >&5
3164sed 's/^/| /' conftest.$ac_ext >&5
3165
3166 CFLAGS=""
3167 cat >conftest.$ac_ext <<_ACEOF
3168/* confdefs.h. */
3169_ACEOF
3170cat confdefs.h >>conftest.$ac_ext
3171cat >>conftest.$ac_ext <<_ACEOF
3172/* end confdefs.h. */
3173
3174int
3175main ()
3176{
3177
3178 ;
3179 return 0;
3180}
3181_ACEOF
3182rm -f conftest.$ac_objext
3183if { (ac_try="$ac_compile"
3184case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187esac
3188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_compile") 2>conftest.er1
3190 ac_status=$?
3191 grep -v '^ *+' conftest.er1 >conftest.err
3192 rm -f conftest.er1
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } && {
3196 test -z "$ac_c_werror_flag" ||
3197 test ! -s conftest.err
3198 } && test -s conftest.$ac_objext; then
3199 :
3200else
3201 echo "$as_me: failed program was:" >&5
3202sed 's/^/| /' conftest.$ac_ext >&5
3203
3204 ac_c_werror_flag=$ac_save_c_werror_flag
3205 CFLAGS="-g"
3206 cat >conftest.$ac_ext <<_ACEOF
3207/* confdefs.h. */
3208_ACEOF
3209cat confdefs.h >>conftest.$ac_ext
3210cat >>conftest.$ac_ext <<_ACEOF
3211/* end confdefs.h. */
3212
3213int
3214main ()
3215{
3216
3217 ;
3218 return 0;
3219}
3220_ACEOF
3221rm -f conftest.$ac_objext
3222if { (ac_try="$ac_compile"
3223case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226esac
3227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_compile") 2>conftest.er1
3229 ac_status=$?
3230 grep -v '^ *+' conftest.er1 >conftest.err
3231 rm -f conftest.er1
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } && {
3235 test -z "$ac_c_werror_flag" ||
3236 test ! -s conftest.err
3237 } && test -s conftest.$ac_objext; then
3238 ac_cv_prog_cc_g=yes
3239else
3240 echo "$as_me: failed program was:" >&5
3241sed 's/^/| /' conftest.$ac_ext >&5
3242
3243
3244fi
3245
3246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247fi
3248
3249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250fi
3251
3252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253 ac_c_werror_flag=$ac_save_c_werror_flag
3254fi
3255{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3256echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3257if test "$ac_test_CFLAGS" = set; then
3258 CFLAGS=$ac_save_CFLAGS
3259elif test $ac_cv_prog_cc_g = yes; then
3260 if test "$GCC" = yes; then
3261 CFLAGS="-g -O2"
3262 else
3263 CFLAGS="-g"
3264 fi
3265else
3266 if test "$GCC" = yes; then
3267 CFLAGS="-O2"
3268 else
3269 CFLAGS=
3270 fi
3271fi
3272{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3273echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3274if test "${ac_cv_prog_cc_c89+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3276else
3277 ac_cv_prog_cc_c89=no
3278ac_save_CC=$CC
3279cat >conftest.$ac_ext <<_ACEOF
3280/* confdefs.h. */
3281_ACEOF
3282cat confdefs.h >>conftest.$ac_ext
3283cat >>conftest.$ac_ext <<_ACEOF
3284/* end confdefs.h. */
3285#include <stdarg.h>
3286#include <stdio.h>
3287#include <sys/types.h>
3288#include <sys/stat.h>
3289/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3290struct buf { int x; };
3291FILE * (*rcsopen) (struct buf *, struct stat *, int);
3292static char *e (p, i)
3293 char **p;
3294 int i;
3295{
3296 return p[i];
3297}
3298static char *f (char * (*g) (char **, int), char **p, ...)
3299{
3300 char *s;
3301 va_list v;
3302 va_start (v,p);
3303 s = g (p, va_arg (v,int));
3304 va_end (v);
3305 return s;
3306}
3307
3308/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3309 function prototypes and stuff, but not '\xHH' hex character constants.
3310 These don't provoke an error unfortunately, instead are silently treated
3311 as 'x'. The following induces an error, until -std is added to get
3312 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3313 array size at least. It's necessary to write '\x00'==0 to get something
3314 that's true only with -std. */
3315int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3316
3317/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3318 inside strings and character constants. */
3319#define FOO(x) 'x'
3320int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3321
3322int test (int i, double x);
3323struct s1 {int (*f) (int a);};
3324struct s2 {int (*f) (double a);};
3325int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3326int argc;
3327char **argv;
3328int
3329main ()
3330{
3331return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3332 ;
3333 return 0;
3334}
3335_ACEOF
3336for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3337 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3338do
3339 CC="$ac_save_CC $ac_arg"
3340 rm -f conftest.$ac_objext
3341if { (ac_try="$ac_compile"
3342case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345esac
3346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_compile") 2>conftest.er1
3348 ac_status=$?
3349 grep -v '^ *+' conftest.er1 >conftest.err
3350 rm -f conftest.er1
3351 cat conftest.err >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } && {
3354 test -z "$ac_c_werror_flag" ||
3355 test ! -s conftest.err
3356 } && test -s conftest.$ac_objext; then
3357 ac_cv_prog_cc_c89=$ac_arg
3358else
3359 echo "$as_me: failed program was:" >&5
3360sed 's/^/| /' conftest.$ac_ext >&5
3361
3362
3363fi
3364
3365rm -f core conftest.err conftest.$ac_objext
3366 test "x$ac_cv_prog_cc_c89" != "xno" && break
3367done
3368rm -f conftest.$ac_ext
3369CC=$ac_save_CC
3370
3371fi
3372# AC_CACHE_VAL
3373case "x$ac_cv_prog_cc_c89" in
3374 x)
3375 { echo "$as_me:$LINENO: result: none needed" >&5
3376echo "${ECHO_T}none needed" >&6; } ;;
3377 xno)
3378 { echo "$as_me:$LINENO: result: unsupported" >&5
3379echo "${ECHO_T}unsupported" >&6; } ;;
3380 *)
3381 CC="$CC $ac_cv_prog_cc_c89"
3382 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3383echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3384esac
3385
3386
3387ac_ext=c
3388ac_cpp='$CPP $CPPFLAGS'
3389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392DEPDIR="${am__leading_dot}deps"
3393
3394ac_config_commands="$ac_config_commands depfiles"
3395
3396
3397am_make=${MAKE-make}
3398cat > confinc << 'END'
3399am__doit:
3400 @echo done
3401.PHONY: am__doit
3402END
3403# If we don't find an include directive, just comment out the code.
3404{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3405echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3406am__include="#"
3407am__quote=
3408_am_result=none
3409# First try GNU make style include.
3410echo "include confinc" > confmf
3411# We grep out `Entering directory' and `Leaving directory'
3412# messages which can occur if `w' ends up in MAKEFLAGS.
3413# In particular we don't look at `^make:' because GNU make might
3414# be invoked under some other name (usually "gmake"), in which
3415# case it prints its new name instead of `make'.
3416if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3417 am__include=include
3418 am__quote=
3419 _am_result=GNU
3420fi
3421# Now try BSD make style include.
3422if test "$am__include" = "#"; then
3423 echo '.include "confinc"' > confmf
3424 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3425 am__include=.include
3426 am__quote="\""
3427 _am_result=BSD
3428 fi
3429fi
3430
3431
3432{ echo "$as_me:$LINENO: result: $_am_result" >&5
3433echo "${ECHO_T}$_am_result" >&6; }
3434rm -f confinc confmf
3435
3436# Check whether --enable-dependency-tracking was given.
3437if test "${enable_dependency_tracking+set}" = set; then
3438 enableval=$enable_dependency_tracking;
3439fi
3440
3441if test "x$enable_dependency_tracking" != xno; then
3442 am_depcomp="$ac_aux_dir/depcomp"
3443 AMDEPBACKSLASH='\'
3444fi
3445
3446
3447if test "x$enable_dependency_tracking" != xno; then
3448 AMDEP_TRUE=
3449 AMDEP_FALSE='#'
3450else
3451 AMDEP_TRUE='#'
3452 AMDEP_FALSE=
3453fi
3454
3455
3456
3457
3458depcc="$CC" am_compiler_list=
3459
3460{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3461echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3462if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464else
3465 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3466 # We make a subdir and do the tests there. Otherwise we can end up
3467 # making bogus files that we don't know about and never remove. For
3468 # instance it was reported that on HP-UX the gcc test will end up
3469 # making a dummy file named `D' -- because `-MD' means `put the output
3470 # in D'.
3471 mkdir conftest.dir
3472 # Copy depcomp to subdir because otherwise we won't find it if we're
3473 # using a relative directory.
3474 cp "$am_depcomp" conftest.dir
3475 cd conftest.dir
3476 # We will build objects and dependencies in a subdirectory because
3477 # it helps to detect inapplicable dependency modes. For instance
3478 # both Tru64's cc and ICC support -MD to output dependencies as a
3479 # side effect of compilation, but ICC will put the dependencies in
3480 # the current directory while Tru64 will put them in the object
3481 # directory.
3482 mkdir sub
3483
3484 am_cv_CC_dependencies_compiler_type=none
3485 if test "$am_compiler_list" = ""; then
3486 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3487 fi
3488 for depmode in $am_compiler_list; do
3489 # Setup a source with many dependencies, because some compilers
3490 # like to wrap large dependency lists on column 80 (with \), and
3491 # we should not choose a depcomp mode which is confused by this.
3492 #
3493 # We need to recreate these files for each test, as the compiler may
3494 # overwrite some of them when testing with obscure command lines.
3495 # This happens at least with the AIX C compiler.
3496 : > sub/conftest.c
3497 for i in 1 2 3 4 5 6; do
3498 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3499 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3500 # Solaris 8's {/usr,}/bin/sh.
3501 touch sub/conftst$i.h
3502 done
3503 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3504
3505 case $depmode in
3506 nosideeffect)
3507 # after this tag, mechanisms are not by side-effect, so they'll
3508 # only be used when explicitly requested
3509 if test "x$enable_dependency_tracking" = xyes; then
3510 continue
3511 else
3512 break
3513 fi
3514 ;;
3515 none) break ;;
3516 esac
3517 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3518 # mode. It turns out that the SunPro C++ compiler does not properly
3519 # handle `-M -o', and we need to detect this.
3520 if depmode=$depmode \
3521 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3522 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3523 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3524 >/dev/null 2>conftest.err &&
3525 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3526 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3527 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3528 # icc doesn't choke on unknown options, it will just issue warnings
3529 # or remarks (even with -Werror). So we grep stderr for any message
3530 # that says an option was ignored or not supported.
3531 # When given -MP, icc 7.0 and 7.1 complain thusly:
3532 # icc: Command line warning: ignoring option '-M'; no argument required
3533 # The diagnosis changed in icc 8.0:
3534 # icc: Command line remark: option '-MP' not supported
3535 if (grep 'ignoring option' conftest.err ||
3536 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3537 am_cv_CC_dependencies_compiler_type=$depmode
3538 break
3539 fi
3540 fi
3541 done
3542
3543 cd ..
3544 rm -rf conftest.dir
3545else
3546 am_cv_CC_dependencies_compiler_type=none
3547fi
3548
3549fi
3550{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3551echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3552CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3553
3554
3555
3556if
3557 test "x$enable_dependency_tracking" != xno \
3558 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3559 am__fastdepCC_TRUE=
3560 am__fastdepCC_FALSE='#'
3561else
3562 am__fastdepCC_TRUE='#'
3563 am__fastdepCC_FALSE=
3564fi
3565
3566
3567CFLAGS=$savedCFLAGS
3568
3569# ? valid in libtool 1.6 AC_LIBTOOL_TAGS([])
3570# suppress the unused F77 and CXX checks
3571
3572
3573# Check whether --enable-shared was given.
3574if test "${enable_shared+set}" = set; then
3575 enableval=$enable_shared; p=${PACKAGE-default}
3576 case $enableval in
3577 yes) enable_shared=yes ;;
3578 no) enable_shared=no ;;
3579 *)
3580 enable_shared=no
3581 # Look at the argument we got. We use all the common list separators.
3582 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3583 for pkg in $enableval; do
3584 IFS="$lt_save_ifs"
3585 if test "X$pkg" = "X$p"; then
3586 enable_shared=yes
3587 fi
3588 done
3589 IFS="$lt_save_ifs"
3590 ;;
3591 esac
3592else
3593 enable_shared=yes
3594fi
3595
3596
3597# Check whether --enable-static was given.
3598if test "${enable_static+set}" = set; then
3599 enableval=$enable_static; p=${PACKAGE-default}
3600 case $enableval in
3601 yes) enable_static=yes ;;
3602 no) enable_static=no ;;
3603 *)
3604 enable_static=no
3605 # Look at the argument we got. We use all the common list separators.
3606 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3607 for pkg in $enableval; do
3608 IFS="$lt_save_ifs"
3609 if test "X$pkg" = "X$p"; then
3610 enable_static=yes
3611 fi
3612 done
3613 IFS="$lt_save_ifs"
3614 ;;
3615 esac
3616else
3617 enable_static=yes
3618fi
3619
3620
3621# Check whether --enable-fast-install was given.
3622if test "${enable_fast_install+set}" = set; then
3623 enableval=$enable_fast_install; p=${PACKAGE-default}
3624 case $enableval in
3625 yes) enable_fast_install=yes ;;
3626 no) enable_fast_install=no ;;
3627 *)
3628 enable_fast_install=no
3629 # Look at the argument we got. We use all the common list separators.
3630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3631 for pkg in $enableval; do
3632 IFS="$lt_save_ifs"
3633 if test "X$pkg" = "X$p"; then
3634 enable_fast_install=yes
3635 fi
3636 done
3637 IFS="$lt_save_ifs"
3638 ;;
3639 esac
3640else
3641 enable_fast_install=yes
3642fi
3643
3644
3645# Make sure we can run config.sub.
3646$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3647 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3648echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3649 { (exit 1); exit 1; }; }
3650
3651{ echo "$as_me:$LINENO: checking build system type" >&5
3652echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3653if test "${ac_cv_build+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655else
3656 ac_build_alias=$build_alias
3657test "x$ac_build_alias" = x &&
3658 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3659test "x$ac_build_alias" = x &&
3660 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3661echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3662 { (exit 1); exit 1; }; }
3663ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3664 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3665echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3666 { (exit 1); exit 1; }; }
3667
3668fi
3669{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3670echo "${ECHO_T}$ac_cv_build" >&6; }
3671case $ac_cv_build in
3672*-*-*) ;;
3673*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3674echo "$as_me: error: invalid value of canonical build" >&2;}
3675 { (exit 1); exit 1; }; };;
3676esac
3677build=$ac_cv_build
3678ac_save_IFS=$IFS; IFS='-'
3679set x $ac_cv_build
3680shift
3681build_cpu=$1
3682build_vendor=$2
3683shift; shift
3684# Remember, the first character of IFS is used to create $*,
3685# except with old shells:
3686build_os=$*
3687IFS=$ac_save_IFS
3688case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3689
3690
3691{ echo "$as_me:$LINENO: checking host system type" >&5
3692echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3693if test "${ac_cv_host+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695else
3696 if test "x$host_alias" = x; then
3697 ac_cv_host=$ac_cv_build
3698else
3699 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3700 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3701echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3702 { (exit 1); exit 1; }; }
3703fi
3704
3705fi
3706{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3707echo "${ECHO_T}$ac_cv_host" >&6; }
3708case $ac_cv_host in
3709*-*-*) ;;
3710*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3711echo "$as_me: error: invalid value of canonical host" >&2;}
3712 { (exit 1); exit 1; }; };;
3713esac
3714host=$ac_cv_host
3715ac_save_IFS=$IFS; IFS='-'
3716set x $ac_cv_host
3717shift
3718host_cpu=$1
3719host_vendor=$2
3720shift; shift
3721# Remember, the first character of IFS is used to create $*,
3722# except with old shells:
3723host_os=$*
3724IFS=$ac_save_IFS
3725case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3726
3727
3728{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3729echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3730if test "${lt_cv_path_SED+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3732else
3733 # Loop through the user's path and test for sed and gsed.
3734# Then use that list of sed's as ones to test for truncation.
3735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736for as_dir in $PATH
3737do
3738 IFS=$as_save_IFS
3739 test -z "$as_dir" && as_dir=.
3740 for lt_ac_prog in sed gsed; do
3741 for ac_exec_ext in '' $ac_executable_extensions; do
3742 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3743 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3744 fi
3745 done
3746 done
3747done
3748IFS=$as_save_IFS
3749lt_ac_max=0
3750lt_ac_count=0
3751# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3752# along with /bin/sed that truncates output.
3753for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3754 test ! -f $lt_ac_sed && continue
3755 cat /dev/null > conftest.in
3756 lt_ac_count=0
3757 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3758 # Check for GNU sed and select it if it is found.
3759 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3760 lt_cv_path_SED=$lt_ac_sed
3761 break
3762 fi
3763 while true; do
3764 cat conftest.in conftest.in >conftest.tmp
3765 mv conftest.tmp conftest.in
3766 cp conftest.in conftest.nl
3767 echo >>conftest.nl
3768 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3769 cmp -s conftest.out conftest.nl || break
3770 # 10000 chars as input seems more than enough
3771 test $lt_ac_count -gt 10 && break
3772 lt_ac_count=`expr $lt_ac_count + 1`
3773 if test $lt_ac_count -gt $lt_ac_max; then
3774 lt_ac_max=$lt_ac_count
3775 lt_cv_path_SED=$lt_ac_sed
3776 fi
3777 done
3778done
3779
3780fi
3781
3782SED=$lt_cv_path_SED
3783
3784{ echo "$as_me:$LINENO: result: $SED" >&5
3785echo "${ECHO_T}$SED" >&6; }
3786
3787{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3788echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3789if test "${ac_cv_path_GREP+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791else
3792 # Extract the first word of "grep ggrep" to use in msg output
3793if test -z "$GREP"; then
3794set dummy grep ggrep; ac_prog_name=$2
3795if test "${ac_cv_path_GREP+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798 ac_path_GREP_found=false
3799# Loop through the user's path and test for each of PROGNAME-LIST
3800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3802do
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
3805 for ac_prog in grep ggrep; do
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3808 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3809 # Check for GNU ac_path_GREP and select it if it is found.
3810 # Check for GNU $ac_path_GREP
3811case `"$ac_path_GREP" --version 2>&1` in
3812*GNU*)
3813 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3814*)
3815 ac_count=0
3816 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3817 while :
3818 do
3819 cat "conftest.in" "conftest.in" >"conftest.tmp"
3820 mv "conftest.tmp" "conftest.in"
3821 cp "conftest.in" "conftest.nl"
3822 echo 'GREP' >> "conftest.nl"
3823 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3824 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3825 ac_count=`expr $ac_count + 1`
3826 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3827 # Best one so far, save it but keep looking for a better one
3828 ac_cv_path_GREP="$ac_path_GREP"
3829 ac_path_GREP_max=$ac_count
3830 fi
3831 # 10*(2^10) chars as input seems more than enough
3832 test $ac_count -gt 10 && break
3833 done
3834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3835esac
3836
3837
3838 $ac_path_GREP_found && break 3
3839 done
3840done
3841
3842done
3843IFS=$as_save_IFS
3844
3845
3846fi
3847
3848GREP="$ac_cv_path_GREP"
3849if test -z "$GREP"; then
3850 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3851echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3852 { (exit 1); exit 1; }; }
3853fi
3854
3855else
3856 ac_cv_path_GREP=$GREP
3857fi
3858
3859
3860fi
3861{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3862echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3863 GREP="$ac_cv_path_GREP"
3864
3865
3866{ echo "$as_me:$LINENO: checking for egrep" >&5
3867echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3868if test "${ac_cv_path_EGREP+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870else
3871 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3872 then ac_cv_path_EGREP="$GREP -E"
3873 else
3874 # Extract the first word of "egrep" to use in msg output
3875if test -z "$EGREP"; then
3876set dummy egrep; ac_prog_name=$2
3877if test "${ac_cv_path_EGREP+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3879else
3880 ac_path_EGREP_found=false
3881# Loop through the user's path and test for each of PROGNAME-LIST
3882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3884do
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_prog in egrep; do
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3890 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3891 # Check for GNU ac_path_EGREP and select it if it is found.
3892 # Check for GNU $ac_path_EGREP
3893case `"$ac_path_EGREP" --version 2>&1` in
3894*GNU*)
3895 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3896*)
3897 ac_count=0
3898 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3899 while :
3900 do
3901 cat "conftest.in" "conftest.in" >"conftest.tmp"
3902 mv "conftest.tmp" "conftest.in"
3903 cp "conftest.in" "conftest.nl"
3904 echo 'EGREP' >> "conftest.nl"
3905 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3907 ac_count=`expr $ac_count + 1`
3908 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3909 # Best one so far, save it but keep looking for a better one
3910 ac_cv_path_EGREP="$ac_path_EGREP"
3911 ac_path_EGREP_max=$ac_count
3912 fi
3913 # 10*(2^10) chars as input seems more than enough
3914 test $ac_count -gt 10 && break
3915 done
3916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3917esac
3918
3919
3920 $ac_path_EGREP_found && break 3
3921 done
3922done
3923
3924done
3925IFS=$as_save_IFS
3926
3927
3928fi
3929
3930EGREP="$ac_cv_path_EGREP"
3931if test -z "$EGREP"; then
3932 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3933echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3934 { (exit 1); exit 1; }; }
3935fi
3936
3937else
3938 ac_cv_path_EGREP=$EGREP
3939fi
3940
3941
3942 fi
3943fi
3944{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3945echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3946 EGREP="$ac_cv_path_EGREP"
3947
3948
3949
3950# Check whether --with-gnu-ld was given.
3951if test "${with_gnu_ld+set}" = set; then
3952 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3953else
3954 with_gnu_ld=no
3955fi
3956
3957ac_prog=ld
3958if test "$GCC" = yes; then
3959 # Check if gcc -print-prog-name=ld gives a path.
3960 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3961echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3962 case $host in
3963 *-*-mingw*)
3964 # gcc leaves a trailing carriage return which upsets mingw
3965 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3966 *)
3967 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3968 esac
3969 case $ac_prog in
3970 # Accept absolute paths.
3971 [\\/]* | ?:[\\/]*)
3972 re_direlt='/[^/][^/]*/\.\./'
3973 # Canonicalize the pathname of ld
3974 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3975 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3976 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3977 done
3978 test -z "$LD" && LD="$ac_prog"
3979 ;;
3980 "")
3981 # If it fails, then pretend we aren't using GCC.
3982 ac_prog=ld
3983 ;;
3984 *)
3985 # If it is relative, then search for the first ld in PATH.
3986 with_gnu_ld=unknown
3987 ;;
3988 esac
3989elif test "$with_gnu_ld" = yes; then
3990 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3991echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3992else
3993 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3994echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3995fi
3996if test "${lt_cv_path_LD+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998else
3999 if test -z "$LD"; then
4000 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4001 for ac_dir in $PATH; do
4002 IFS="$lt_save_ifs"
4003 test -z "$ac_dir" && ac_dir=.
4004 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4005 lt_cv_path_LD="$ac_dir/$ac_prog"
4006 # Check to see if the program is GNU ld. I'd rather use --version,
4007 # but apparently some variants of GNU ld only accept -v.
4008 # Break only if it was the GNU/non-GNU ld that we prefer.
4009 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4010 *GNU* | *'with BFD'*)
4011 test "$with_gnu_ld" != no && break
4012 ;;
4013 *)
4014 test "$with_gnu_ld" != yes && break
4015 ;;
4016 esac
4017 fi
4018 done
4019 IFS="$lt_save_ifs"
4020else
4021 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4022fi
4023fi
4024
4025LD="$lt_cv_path_LD"
4026if test -n "$LD"; then
4027 { echo "$as_me:$LINENO: result: $LD" >&5
4028echo "${ECHO_T}$LD" >&6; }
4029else
4030 { echo "$as_me:$LINENO: result: no" >&5
4031echo "${ECHO_T}no" >&6; }
4032fi
4033test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4034echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4035 { (exit 1); exit 1; }; }
4036{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4037echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4038if test "${lt_cv_prog_gnu_ld+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040else
4041 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4042case `$LD -v 2>&1 </dev/null` in
4043*GNU* | *'with BFD'*)
4044 lt_cv_prog_gnu_ld=yes
4045 ;;
4046*)
4047 lt_cv_prog_gnu_ld=no
4048 ;;
4049esac
4050fi
4051{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4052echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4053with_gnu_ld=$lt_cv_prog_gnu_ld
4054
4055
4056{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4057echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4058if test "${lt_cv_ld_reload_flag+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060else
4061 lt_cv_ld_reload_flag='-r'
4062fi
4063{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4064echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4065reload_flag=$lt_cv_ld_reload_flag
4066case $reload_flag in
4067"" | " "*) ;;
4068*) reload_flag=" $reload_flag" ;;
4069esac
4070reload_cmds='$LD$reload_flag -o $output$reload_objs'
4071case $host_os in
4072 darwin*)
4073 if test "$GCC" = yes; then
4074 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4075 else
4076 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4077 fi
4078 ;;
4079esac
4080
4081{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4082echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4083if test "${lt_cv_path_NM+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4085else
4086 if test -n "$NM"; then
4087 # Let the user override the test.
4088 lt_cv_path_NM="$NM"
4089else
4090 lt_nm_to_check="${ac_tool_prefix}nm"
4091 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4092 lt_nm_to_check="$lt_nm_to_check nm"
4093 fi
4094 for lt_tmp_nm in $lt_nm_to_check; do
4095 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4096 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4097 IFS="$lt_save_ifs"
4098 test -z "$ac_dir" && ac_dir=.
4099 tmp_nm="$ac_dir/$lt_tmp_nm"
4100 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4101 # Check to see if the nm accepts a BSD-compat flag.
4102 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4103 # nm: unknown option "B" ignored
4104 # Tru64's nm complains that /dev/null is an invalid object file
4105 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4106 */dev/null* | *'Invalid file or object type'*)
4107 lt_cv_path_NM="$tmp_nm -B"
4108 break
4109 ;;
4110 *)
4111 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4112 */dev/null*)
4113 lt_cv_path_NM="$tmp_nm -p"
4114 break
4115 ;;
4116 *)
4117 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4118 continue # so that we can try to find one that supports BSD flags
4119 ;;
4120 esac
4121 ;;
4122 esac
4123 fi
4124 done
4125 IFS="$lt_save_ifs"
4126 done
4127 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4128fi
4129fi
4130{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4131echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4132NM="$lt_cv_path_NM"
4133
4134{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4135echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4136LN_S=$as_ln_s
4137if test "$LN_S" = "ln -s"; then
4138 { echo "$as_me:$LINENO: result: yes" >&5
4139echo "${ECHO_T}yes" >&6; }
4140else
4141 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4142echo "${ECHO_T}no, using $LN_S" >&6; }
4143fi
4144
4145{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4146echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4147if test "${lt_cv_deplibs_check_method+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150 lt_cv_file_magic_cmd='$MAGIC_CMD'
4151lt_cv_file_magic_test_file=
4152lt_cv_deplibs_check_method='unknown'
4153# Need to set the preceding variable on all platforms that support
4154# interlibrary dependencies.
4155# 'none' -- dependencies not supported.
4156# `unknown' -- same as none, but documents that we really don't know.
4157# 'pass_all' -- all dependencies passed with no checks.
4158# 'test_compile' -- check by making test program.
4159# 'file_magic [[regex]]' -- check by looking for files in library path
4160# which responds to the $file_magic_cmd with a given extended regex.
4161# If you have `file' or equivalent on your system and you're not sure
4162# whether `pass_all' will *always* work, you probably want this one.
4163
4164case $host_os in
4165aix[4-9]*)
4166 lt_cv_deplibs_check_method=pass_all
4167 ;;
4168
4169beos*)
4170 lt_cv_deplibs_check_method=pass_all
4171 ;;
4172
4173bsdi[45]*)
4174 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4175 lt_cv_file_magic_cmd='/usr/bin/file -L'
4176 lt_cv_file_magic_test_file=/shlib/libc.so
4177 ;;
4178
4179cygwin*)
4180 # func_win32_libid is a shell function defined in ltmain.sh
4181 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4182 lt_cv_file_magic_cmd='func_win32_libid'
4183 ;;
4184
4185mingw* | pw32*)
4186 # Base MSYS/MinGW do not provide the 'file' command needed by
4187 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4188 # unless we find 'file', for example because we are cross-compiling.
4189 if ( file / ) >/dev/null 2>&1; then
4190 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4191 lt_cv_file_magic_cmd='func_win32_libid'
4192 else
4193 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4194 lt_cv_file_magic_cmd='$OBJDUMP -f'
4195 fi
4196 ;;
4197
4198darwin* | rhapsody*)
4199 lt_cv_deplibs_check_method=pass_all
4200 ;;
4201
4202freebsd* | dragonfly*)
4203 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4204 case $host_cpu in
4205 i*86 )
4206 # Not sure whether the presence of OpenBSD here was a mistake.
4207 # Let's accept both of them until this is cleared up.
4208 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4209 lt_cv_file_magic_cmd=/usr/bin/file
4210 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4211 ;;
4212 esac
4213 else
4214 lt_cv_deplibs_check_method=pass_all
4215 fi
4216 ;;
4217
4218gnu*)
4219 lt_cv_deplibs_check_method=pass_all
4220 ;;
4221
4222hpux10.20* | hpux11*)
4223 lt_cv_file_magic_cmd=/usr/bin/file
4224 case $host_cpu in
4225 ia64*)
4226 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4227 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4228 ;;
4229 hppa*64*)
4230 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]'
4231 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4232 ;;
4233 *)
4234 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4235 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4236 ;;
4237 esac
4238 ;;
4239
4240interix[3-9]*)
4241 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4242 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4243 ;;
4244
4245irix5* | irix6* | nonstopux*)
4246 case $LD in
4247 *-32|*"-32 ") libmagic=32-bit;;
4248 *-n32|*"-n32 ") libmagic=N32;;
4249 *-64|*"-64 ") libmagic=64-bit;;
4250 *) libmagic=never-match;;
4251 esac
4252 lt_cv_deplibs_check_method=pass_all
4253 ;;
4254
4255# This must be Linux ELF.
4256linux* | k*bsd*-gnu)
4257 lt_cv_deplibs_check_method=pass_all
4258 ;;
4259
4260netbsd* | netbsdelf*-gnu)
4261 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4263 else
4264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4265 fi
4266 ;;
4267
4268newos6*)
4269 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4270 lt_cv_file_magic_cmd=/usr/bin/file
4271 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4272 ;;
4273
4274nto-qnx*)
4275 lt_cv_deplibs_check_method=unknown
4276 ;;
4277
4278openbsd*)
4279 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4281 else
4282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4283 fi
4284 ;;
4285
4286osf3* | osf4* | osf5*)
4287 lt_cv_deplibs_check_method=pass_all
4288 ;;
4289
4290rdos*)
4291 lt_cv_deplibs_check_method=pass_all
4292 ;;
4293
4294solaris*)
4295 lt_cv_deplibs_check_method=pass_all
4296 ;;
4297
4298sysv4 | sysv4.3*)
4299 case $host_vendor in
4300 motorola)
4301 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]'
4302 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4303 ;;
4304 ncr)
4305 lt_cv_deplibs_check_method=pass_all
4306 ;;
4307 sequent)
4308 lt_cv_file_magic_cmd='/bin/file'
4309 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4310 ;;
4311 sni)
4312 lt_cv_file_magic_cmd='/bin/file'
4313 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4314 lt_cv_file_magic_test_file=/lib/libc.so
4315 ;;
4316 siemens)
4317 lt_cv_deplibs_check_method=pass_all
4318 ;;
4319 pc)
4320 lt_cv_deplibs_check_method=pass_all
4321 ;;
4322 esac
4323 ;;
4324
4325sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4326 lt_cv_deplibs_check_method=pass_all
4327 ;;
4328esac
4329
4330fi
4331{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4332echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4333file_magic_cmd=$lt_cv_file_magic_cmd
4334deplibs_check_method=$lt_cv_deplibs_check_method
4335test -z "$deplibs_check_method" && deplibs_check_method=unknown
4336
4337
4338
4339
4340# If no C compiler was specified, use CC.
4341LTCC=${LTCC-"$CC"}
4342
4343# If no C compiler flags were specified, use CFLAGS.
4344LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4345
4346# Allow CC to be a program name with arguments.
4347compiler=$CC
4348
4349
4350# Check whether --enable-libtool-lock was given.
4351if test "${enable_libtool_lock+set}" = set; then
4352 enableval=$enable_libtool_lock;
4353fi
4354
4355test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4356
4357# Some flags need to be propagated to the compiler or linker for good
4358# libtool support.
4359case $host in
4360ia64-*-hpux*)
4361 # Find out which ABI we are using.
4362 echo 'int i;' > conftest.$ac_ext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364 (eval $ac_compile) 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; then
4368 case `/usr/bin/file conftest.$ac_objext` in
4369 *ELF-32*)
4370 HPUX_IA64_MODE="32"
4371 ;;
4372 *ELF-64*)
4373 HPUX_IA64_MODE="64"
4374 ;;
4375 esac
4376 fi
4377 rm -rf conftest*
4378 ;;
4379*-*-irix6*)
4380 # Find out which ABI we are using.
4381 echo '#line 4381 "configure"' > conftest.$ac_ext
4382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4383 (eval $ac_compile) 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; then
4387 if test "$lt_cv_prog_gnu_ld" = yes; then
4388 case `/usr/bin/file conftest.$ac_objext` in
4389 *32-bit*)
4390 LD="${LD-ld} -melf32bsmip"
4391 ;;
4392 *N32*)
4393 LD="${LD-ld} -melf32bmipn32"
4394 ;;
4395 *64-bit*)
4396 LD="${LD-ld} -melf64bmip"
4397 ;;
4398 esac
4399 else
4400 case `/usr/bin/file conftest.$ac_objext` in
4401 *32-bit*)
4402 LD="${LD-ld} -32"
4403 ;;
4404 *N32*)
4405 LD="${LD-ld} -n32"
4406 ;;
4407 *64-bit*)
4408 LD="${LD-ld} -64"
4409 ;;
4410 esac
4411 fi
4412 fi
4413 rm -rf conftest*
4414 ;;
4415
4416x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4417s390*-*linux*|sparc*-*linux*)
4418 # Find out which ABI we are using.
4419 echo 'int i;' > conftest.$ac_ext
4420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4421 (eval $ac_compile) 2>&5
4422 ac_status=$?
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; then
4425 case `/usr/bin/file conftest.o` in
4426 *32-bit*)
4427 case $host in
4428 x86_64-*kfreebsd*-gnu)
4429 LD="${LD-ld} -m elf_i386_fbsd"
4430 ;;
4431 x86_64-*linux*)
4432 LD="${LD-ld} -m elf_i386"
4433 ;;
4434 ppc64-*linux*|powerpc64-*linux*)
4435 LD="${LD-ld} -m elf32ppclinux"
4436 ;;
4437 s390x-*linux*)
4438 LD="${LD-ld} -m elf_s390"
4439 ;;
4440 sparc64-*linux*)
4441 LD="${LD-ld} -m elf32_sparc"
4442 ;;
4443 esac
4444 ;;
4445 *64-bit*)
4446 case $host in
4447 x86_64-*kfreebsd*-gnu)
4448 LD="${LD-ld} -m elf_x86_64_fbsd"
4449 ;;
4450 x86_64-*linux*)
4451 LD="${LD-ld} -m elf_x86_64"
4452 ;;
4453 ppc*-*linux*|powerpc*-*linux*)
4454 LD="${LD-ld} -m elf64ppc"
4455 ;;
4456 s390*-*linux*)
4457 LD="${LD-ld} -m elf64_s390"
4458 ;;
4459 sparc*-*linux*)
4460 LD="${LD-ld} -m elf64_sparc"
4461 ;;
4462 esac
4463 ;;
4464 esac
4465 fi
4466 rm -rf conftest*
4467 ;;
4468
4469*-*-sco3.2v5*)
4470 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4471 SAVE_CFLAGS="$CFLAGS"
4472 CFLAGS="$CFLAGS -belf"
4473 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4474echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4475if test "${lt_cv_cc_needs_belf+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4477else
4478 ac_ext=c
4479ac_cpp='$CPP $CPPFLAGS'
4480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4482ac_compiler_gnu=$ac_cv_c_compiler_gnu
4483
4484 cat >conftest.$ac_ext <<_ACEOF
4485/* confdefs.h. */
4486_ACEOF
4487cat confdefs.h >>conftest.$ac_ext
4488cat >>conftest.$ac_ext <<_ACEOF
4489/* end confdefs.h. */
4490
4491int
4492main ()
4493{
4494
4495 ;
4496 return 0;
4497}
4498_ACEOF
4499rm -f conftest.$ac_objext conftest$ac_exeext
4500if { (ac_try="$ac_link"
4501case "(($ac_try" in
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4504esac
4505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506 (eval "$ac_link") 2>conftest.er1
4507 ac_status=$?
4508 grep -v '^ *+' conftest.er1 >conftest.err
4509 rm -f conftest.er1
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } && {
4513 test -z "$ac_c_werror_flag" ||
4514 test ! -s conftest.err
4515 } && test -s conftest$ac_exeext &&
4516 $as_test_x conftest$ac_exeext; then
4517 lt_cv_cc_needs_belf=yes
4518else
4519 echo "$as_me: failed program was:" >&5
4520sed 's/^/| /' conftest.$ac_ext >&5
4521
4522 lt_cv_cc_needs_belf=no
4523fi
4524
4525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4526 conftest$ac_exeext conftest.$ac_ext
4527 ac_ext=c
4528ac_cpp='$CPP $CPPFLAGS'
4529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531ac_compiler_gnu=$ac_cv_c_compiler_gnu
4532
4533fi
4534{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4535echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4536 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4537 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4538 CFLAGS="$SAVE_CFLAGS"
4539 fi
4540 ;;
4541sparc*-*solaris*)
4542 # Find out which ABI we are using.
4543 echo 'int i;' > conftest.$ac_ext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545 (eval $ac_compile) 2>&5
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; then
4549 case `/usr/bin/file conftest.o` in
4550 *64-bit*)
4551 case $lt_cv_prog_gnu_ld in
4552 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4553 *)
4554 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4555 LD="${LD-ld} -64"
4556 fi
4557 ;;
4558 esac
4559 ;;
4560 esac
4561 fi
4562 rm -rf conftest*
4563 ;;
4564
4565
4566esac
4567
4568need_locks="$enable_libtool_lock"
4569
4570
4571ac_ext=c
4572ac_cpp='$CPP $CPPFLAGS'
4573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4575ac_compiler_gnu=$ac_cv_c_compiler_gnu
4576{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4577echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4578# On Suns, sometimes $CPP names a directory.
4579if test -n "$CPP" && test -d "$CPP"; then
4580 CPP=
4581fi
4582if test -z "$CPP"; then
4583 if test "${ac_cv_prog_CPP+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4585else
4586 # Double quotes because CPP needs to be expanded
4587 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4588 do
4589 ac_preproc_ok=false
4590for ac_c_preproc_warn_flag in '' yes
4591do
4592 # Use a header file that comes with gcc, so configuring glibc
4593 # with a fresh cross-compiler works.
4594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4595 # <limits.h> exists even on freestanding compilers.
4596 # On the NeXT, cc -E runs the code through the compiler's parser,
4597 # not just through cpp. "Syntax error" is here to catch this case.
4598 cat >conftest.$ac_ext <<_ACEOF
4599/* confdefs.h. */
4600_ACEOF
4601cat confdefs.h >>conftest.$ac_ext
4602cat >>conftest.$ac_ext <<_ACEOF
4603/* end confdefs.h. */
4604#ifdef __STDC__
4605# include <limits.h>
4606#else
4607# include <assert.h>
4608#endif
4609 Syntax error
4610_ACEOF
4611if { (ac_try="$ac_cpp conftest.$ac_ext"
4612case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4615esac
4616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4618 ac_status=$?
4619 grep -v '^ *+' conftest.er1 >conftest.err
4620 rm -f conftest.er1
4621 cat conftest.err >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } >/dev/null && {
4624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4625 test ! -s conftest.err
4626 }; then
4627 :
4628else
4629 echo "$as_me: failed program was:" >&5
4630sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 # Broken: fails on valid input.
4633continue
4634fi
4635
4636rm -f conftest.err conftest.$ac_ext
4637
4638 # OK, works on sane cases. Now check whether nonexistent headers
4639 # can be detected and how.
4640 cat >conftest.$ac_ext <<_ACEOF
4641/* confdefs.h. */
4642_ACEOF
4643cat confdefs.h >>conftest.$ac_ext
4644cat >>conftest.$ac_ext <<_ACEOF
4645/* end confdefs.h. */
4646#include <ac_nonexistent.h>
4647_ACEOF
4648if { (ac_try="$ac_cpp conftest.$ac_ext"
4649case "(($ac_try" in
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4652esac
4653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4655 ac_status=$?
4656 grep -v '^ *+' conftest.er1 >conftest.err
4657 rm -f conftest.er1
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } >/dev/null && {
4661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4662 test ! -s conftest.err
4663 }; then
4664 # Broken: success on invalid input.
4665continue
4666else
4667 echo "$as_me: failed program was:" >&5
4668sed 's/^/| /' conftest.$ac_ext >&5
4669
4670 # Passes both tests.
4671ac_preproc_ok=:
4672break
4673fi
4674
4675rm -f conftest.err conftest.$ac_ext
4676
4677done
4678# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4679rm -f conftest.err conftest.$ac_ext
4680if $ac_preproc_ok; then
4681 break
4682fi
4683
4684 done
4685 ac_cv_prog_CPP=$CPP
4686
4687fi
4688 CPP=$ac_cv_prog_CPP
4689else
4690 ac_cv_prog_CPP=$CPP
4691fi
4692{ echo "$as_me:$LINENO: result: $CPP" >&5
4693echo "${ECHO_T}$CPP" >&6; }
4694ac_preproc_ok=false
4695for ac_c_preproc_warn_flag in '' yes
4696do
4697 # Use a header file that comes with gcc, so configuring glibc
4698 # with a fresh cross-compiler works.
4699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4700 # <limits.h> exists even on freestanding compilers.
4701 # On the NeXT, cc -E runs the code through the compiler's parser,
4702 # not just through cpp. "Syntax error" is here to catch this case.
4703 cat >conftest.$ac_ext <<_ACEOF
4704/* confdefs.h. */
4705_ACEOF
4706cat confdefs.h >>conftest.$ac_ext
4707cat >>conftest.$ac_ext <<_ACEOF
4708/* end confdefs.h. */
4709#ifdef __STDC__
4710# include <limits.h>
4711#else
4712# include <assert.h>
4713#endif
4714 Syntax error
4715_ACEOF
4716if { (ac_try="$ac_cpp conftest.$ac_ext"
4717case "(($ac_try" in
4718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719 *) ac_try_echo=$ac_try;;
4720esac
4721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4723 ac_status=$?
4724 grep -v '^ *+' conftest.er1 >conftest.err
4725 rm -f conftest.er1
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } >/dev/null && {
4729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4730 test ! -s conftest.err
4731 }; then
4732 :
4733else
4734 echo "$as_me: failed program was:" >&5
4735sed 's/^/| /' conftest.$ac_ext >&5
4736
4737 # Broken: fails on valid input.
4738continue
4739fi
4740
4741rm -f conftest.err conftest.$ac_ext
4742
4743 # OK, works on sane cases. Now check whether nonexistent headers
4744 # can be detected and how.
4745 cat >conftest.$ac_ext <<_ACEOF
4746/* confdefs.h. */
4747_ACEOF
4748cat confdefs.h >>conftest.$ac_ext
4749cat >>conftest.$ac_ext <<_ACEOF
4750/* end confdefs.h. */
4751#include <ac_nonexistent.h>
4752_ACEOF
4753if { (ac_try="$ac_cpp conftest.$ac_ext"
4754case "(($ac_try" in
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4757esac
4758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4760 ac_status=$?
4761 grep -v '^ *+' conftest.er1 >conftest.err
4762 rm -f conftest.er1
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } >/dev/null && {
4766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4767 test ! -s conftest.err
4768 }; then
4769 # Broken: success on invalid input.
4770continue
4771else
4772 echo "$as_me: failed program was:" >&5
4773sed 's/^/| /' conftest.$ac_ext >&5
4774
4775 # Passes both tests.
4776ac_preproc_ok=:
4777break
4778fi
4779
4780rm -f conftest.err conftest.$ac_ext
4781
4782done
4783# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4784rm -f conftest.err conftest.$ac_ext
4785if $ac_preproc_ok; then
4786 :
4787else
4788 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4789See \`config.log' for more details." >&5
4790echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4791See \`config.log' for more details." >&2;}
4792 { (exit 1); exit 1; }; }
4793fi
4794
4795ac_ext=c
4796ac_cpp='$CPP $CPPFLAGS'
4797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4799ac_compiler_gnu=$ac_cv_c_compiler_gnu
4800
4801
4802{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4803echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4804if test "${ac_cv_header_stdc+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4806else
4807 cat >conftest.$ac_ext <<_ACEOF
4808/* confdefs.h. */
4809_ACEOF
4810cat confdefs.h >>conftest.$ac_ext
4811cat >>conftest.$ac_ext <<_ACEOF
4812/* end confdefs.h. */
4813#include <stdlib.h>
4814#include <stdarg.h>
4815#include <string.h>
4816#include <float.h>
4817
4818int
4819main ()
4820{
4821
4822 ;
4823 return 0;
4824}
4825_ACEOF
4826rm -f conftest.$ac_objext
4827if { (ac_try="$ac_compile"
4828case "(($ac_try" in
4829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4830 *) ac_try_echo=$ac_try;;
4831esac
4832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4833 (eval "$ac_compile") 2>conftest.er1
4834 ac_status=$?
4835 grep -v '^ *+' conftest.er1 >conftest.err
4836 rm -f conftest.er1
4837 cat conftest.err >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } && {
4840 test -z "$ac_c_werror_flag" ||
4841 test ! -s conftest.err
4842 } && test -s conftest.$ac_objext; then
4843 ac_cv_header_stdc=yes
4844else
4845 echo "$as_me: failed program was:" >&5
4846sed 's/^/| /' conftest.$ac_ext >&5
4847
4848 ac_cv_header_stdc=no
4849fi
4850
4851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4852
4853if test $ac_cv_header_stdc = yes; then
4854 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4855 cat >conftest.$ac_ext <<_ACEOF
4856/* confdefs.h. */
4857_ACEOF
4858cat confdefs.h >>conftest.$ac_ext
4859cat >>conftest.$ac_ext <<_ACEOF
4860/* end confdefs.h. */
4861#include <string.h>
4862
4863_ACEOF
4864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4865 $EGREP "memchr" >/dev/null 2>&1; then
4866 :
4867else
4868 ac_cv_header_stdc=no
4869fi
4870rm -f conftest*
4871
4872fi
4873
4874if test $ac_cv_header_stdc = yes; then
4875 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4876 cat >conftest.$ac_ext <<_ACEOF
4877/* confdefs.h. */
4878_ACEOF
4879cat confdefs.h >>conftest.$ac_ext
4880cat >>conftest.$ac_ext <<_ACEOF
4881/* end confdefs.h. */
4882#include <stdlib.h>
4883
4884_ACEOF
4885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4886 $EGREP "free" >/dev/null 2>&1; then
4887 :
4888else
4889 ac_cv_header_stdc=no
4890fi
4891rm -f conftest*
4892
4893fi
4894
4895if test $ac_cv_header_stdc = yes; then
4896 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4897 if test "$cross_compiling" = yes; then
4898 :
4899else
4900 cat >conftest.$ac_ext <<_ACEOF
4901/* confdefs.h. */
4902_ACEOF
4903cat confdefs.h >>conftest.$ac_ext
4904cat >>conftest.$ac_ext <<_ACEOF
4905/* end confdefs.h. */
4906#include <ctype.h>
4907#include <stdlib.h>
4908#if ((' ' & 0x0FF) == 0x020)
4909# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4910# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4911#else
4912# define ISLOWER(c) \
4913 (('a' <= (c) && (c) <= 'i') \
4914 || ('j' <= (c) && (c) <= 'r') \
4915 || ('s' <= (c) && (c) <= 'z'))
4916# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4917#endif
4918
4919#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4920int
4921main ()
4922{
4923 int i;
4924 for (i = 0; i < 256; i++)
4925 if (XOR (islower (i), ISLOWER (i))
4926 || toupper (i) != TOUPPER (i))
4927 return 2;
4928 return 0;
4929}
4930_ACEOF
4931rm -f conftest$ac_exeext
4932if { (ac_try="$ac_link"
4933case "(($ac_try" in
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4936esac
4937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4938 (eval "$ac_link") 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4942 { (case "(($ac_try" in
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4945esac
4946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947 (eval "$ac_try") 2>&5
4948 ac_status=$?
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; }; then
4951 :
4952else
4953 echo "$as_me: program exited with status $ac_status" >&5
4954echo "$as_me: failed program was:" >&5
4955sed 's/^/| /' conftest.$ac_ext >&5
4956
4957( exit $ac_status )
4958ac_cv_header_stdc=no
4959fi
4960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4961fi
4962
4963
4964fi
4965fi
4966{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4967echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4968if test $ac_cv_header_stdc = yes; then
4969
4970cat >>confdefs.h <<\_ACEOF
4971#define STDC_HEADERS 1
4972_ACEOF
4973
4974fi
4975
4976# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4987 inttypes.h stdint.h unistd.h
4988do
4989as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4990{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4994else
4995 cat >conftest.$ac_ext <<_ACEOF
4996/* confdefs.h. */
4997_ACEOF
4998cat confdefs.h >>conftest.$ac_ext
4999cat >>conftest.$ac_ext <<_ACEOF
5000/* end confdefs.h. */
5001$ac_includes_default
5002
5003#include <$ac_header>
5004_ACEOF
5005rm -f conftest.$ac_objext
5006if { (ac_try="$ac_compile"
5007case "(($ac_try" in
5008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009 *) ac_try_echo=$ac_try;;
5010esac
5011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5012 (eval "$ac_compile") 2>conftest.er1
5013 ac_status=$?
5014 grep -v '^ *+' conftest.er1 >conftest.err
5015 rm -f conftest.er1
5016 cat conftest.err >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } && {
5019 test -z "$ac_c_werror_flag" ||
5020 test ! -s conftest.err
5021 } && test -s conftest.$ac_objext; then
5022 eval "$as_ac_Header=yes"
5023else
5024 echo "$as_me: failed program was:" >&5
5025sed 's/^/| /' conftest.$ac_ext >&5
5026
5027 eval "$as_ac_Header=no"
5028fi
5029
5030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031fi
5032ac_res=`eval echo '${'$as_ac_Header'}'`
5033 { echo "$as_me:$LINENO: result: $ac_res" >&5
5034echo "${ECHO_T}$ac_res" >&6; }
5035if test `eval echo '${'$as_ac_Header'}'` = yes; then
5036 cat >>confdefs.h <<_ACEOF
5037#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5038_ACEOF
5039
5040fi
5041
5042done
5043
5044
5045
5046for ac_header in dlfcn.h
5047do
5048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5053 echo $ECHO_N "(cached) $ECHO_C" >&6
5054fi
5055ac_res=`eval echo '${'$as_ac_Header'}'`
5056 { echo "$as_me:$LINENO: result: $ac_res" >&5
5057echo "${ECHO_T}$ac_res" >&6; }
5058else
5059 # Is the header compilable?
5060{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5061echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5062cat >conftest.$ac_ext <<_ACEOF
5063/* confdefs.h. */
5064_ACEOF
5065cat confdefs.h >>conftest.$ac_ext
5066cat >>conftest.$ac_ext <<_ACEOF
5067/* end confdefs.h. */
5068$ac_includes_default
5069#include <$ac_header>
5070_ACEOF
5071rm -f conftest.$ac_objext
5072if { (ac_try="$ac_compile"
5073case "(($ac_try" in
5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5076esac
5077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5078 (eval "$ac_compile") 2>conftest.er1
5079 ac_status=$?
5080 grep -v '^ *+' conftest.er1 >conftest.err
5081 rm -f conftest.er1
5082 cat conftest.err >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } && {
5085 test -z "$ac_c_werror_flag" ||
5086 test ! -s conftest.err
5087 } && test -s conftest.$ac_objext; then
5088 ac_header_compiler=yes
5089else
5090 echo "$as_me: failed program was:" >&5
5091sed 's/^/| /' conftest.$ac_ext >&5
5092
5093 ac_header_compiler=no
5094fi
5095
5096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5097{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5098echo "${ECHO_T}$ac_header_compiler" >&6; }
5099
5100# Is the header present?
5101{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5102echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5103cat >conftest.$ac_ext <<_ACEOF
5104/* confdefs.h. */
5105_ACEOF
5106cat confdefs.h >>conftest.$ac_ext
5107cat >>conftest.$ac_ext <<_ACEOF
5108/* end confdefs.h. */
5109#include <$ac_header>
5110_ACEOF
5111if { (ac_try="$ac_cpp conftest.$ac_ext"
5112case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115esac
5116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5118 ac_status=$?
5119 grep -v '^ *+' conftest.er1 >conftest.err
5120 rm -f conftest.er1
5121 cat conftest.err >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } >/dev/null && {
5124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5125 test ! -s conftest.err
5126 }; then
5127 ac_header_preproc=yes
5128else
5129 echo "$as_me: failed program was:" >&5
5130sed 's/^/| /' conftest.$ac_ext >&5
5131
5132 ac_header_preproc=no
5133fi
5134
5135rm -f conftest.err conftest.$ac_ext
5136{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5137echo "${ECHO_T}$ac_header_preproc" >&6; }
5138
5139# So? What about this header?
5140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5141 yes:no: )
5142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5143echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5145echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5146 ac_header_preproc=yes
5147 ;;
5148 no:yes:* )
5149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5150echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5152echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5154echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5156echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5160echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5161 ( cat <<\_ASBOX
5162## ----------------------------------------- ##
5163## Report this to <support@audioscience.com> ##
5164## ----------------------------------------- ##
5165_ASBOX
5166 ) | sed "s/^/$as_me: WARNING: /" >&2
5167 ;;
5168esac
5169{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5173else
5174 eval "$as_ac_Header=\$ac_header_preproc"
5175fi
5176ac_res=`eval echo '${'$as_ac_Header'}'`
5177 { echo "$as_me:$LINENO: result: $ac_res" >&5
5178echo "${ECHO_T}$ac_res" >&6; }
5179
5180fi
5181if test `eval echo '${'$as_ac_Header'}'` = yes; then
5182 cat >>confdefs.h <<_ACEOF
5183#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5184_ACEOF
5185
5186fi
5187
5188done
5189
5190
5191# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5192# find the maximum length of command line arguments
5193{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5194echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5195if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197else
5198 i=0
5199 teststring="ABCD"
5200
5201 case $build_os in
5202 msdosdjgpp*)
5203 # On DJGPP, this test can blow up pretty badly due to problems in libc
5204 # (any single argument exceeding 2000 bytes causes a buffer overrun
5205 # during glob expansion). Even if it were fixed, the result of this
5206 # check would be larger than it should be.
5207 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5208 ;;
5209
5210 gnu*)
5211 # Under GNU Hurd, this test is not required because there is
5212 # no limit to the length of command line arguments.
5213 # Libtool will interpret -1 as no limit whatsoever
5214 lt_cv_sys_max_cmd_len=-1;
5215 ;;
5216
5217 cygwin* | mingw*)
5218 # On Win9x/ME, this test blows up -- it succeeds, but takes
5219 # about 5 minutes as the teststring grows exponentially.
5220 # Worse, since 9x/ME are not pre-emptively multitasking,
5221 # you end up with a "frozen" computer, even though with patience
5222 # the test eventually succeeds (with a max line length of 256k).
5223 # Instead, let's just punt: use the minimum linelength reported by
5224 # all of the supported platforms: 8192 (on NT/2K/XP).
5225 lt_cv_sys_max_cmd_len=8192;
5226 ;;
5227
5228 amigaos*)
5229 # On AmigaOS with pdksh, this test takes hours, literally.
5230 # So we just punt and use a minimum line length of 8192.
5231 lt_cv_sys_max_cmd_len=8192;
5232 ;;
5233
5234 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5235 # This has been around since 386BSD, at least. Likely further.
5236 if test -x /sbin/sysctl; then
5237 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5238 elif test -x /usr/sbin/sysctl; then
5239 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5240 else
5241 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5242 fi
5243 # And add a safety zone
5244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5246 ;;
5247
5248 interix*)
5249 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5250 lt_cv_sys_max_cmd_len=196608
5251 ;;
5252
5253 osf*)
5254 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5255 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5256 # nice to cause kernel panics so lets avoid the loop below.
5257 # First set a reasonable default.
5258 lt_cv_sys_max_cmd_len=16384
5259 #
5260 if test -x /sbin/sysconfig; then
5261 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5262 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5263 esac
5264 fi
5265 ;;
5266 sco3.2v5*)
5267 lt_cv_sys_max_cmd_len=102400
5268 ;;
5269 sysv5* | sco5v6* | sysv4.2uw2*)
5270 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5271 if test -n "$kargmax"; then
5272 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5273 else
5274 lt_cv_sys_max_cmd_len=32768
5275 fi
5276 ;;
5277 *)
5278 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5279 if test -n "$lt_cv_sys_max_cmd_len"; then
5280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5282 else
5283 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5284 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5285 = "XX$teststring") >/dev/null 2>&1 &&
5286 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5287 lt_cv_sys_max_cmd_len=$new_result &&
5288 test $i != 17 # 1/2 MB should be enough
5289 do
5290 i=`expr $i + 1`
5291 teststring=$teststring$teststring
5292 done
5293 teststring=
5294 # Add a significant safety factor because C++ compilers can tack on massive
5295 # amounts of additional arguments before passing them to the linker.
5296 # It appears as though 1/2 is a usable value.
5297 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5298 fi
5299 ;;
5300 esac
5301
5302fi
5303
5304if test -n $lt_cv_sys_max_cmd_len ; then
5305 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5306echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5307else
5308 { echo "$as_me:$LINENO: result: none" >&5
5309echo "${ECHO_T}none" >&6; }
5310fi
5311
5312
5313
5314
5315
5316# Check for command to grab the raw symbol name followed by C symbol from nm.
5317{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5318echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5319if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5321else
5322
5323# These are sane defaults that work on at least a few old systems.
5324# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5325
5326# Character class describing NM global symbol codes.
5327symcode='[BCDEGRST]'
5328
5329# Regexp to match symbols that can be accessed directly from C.
5330sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5331
5332# Transform an extracted symbol line into a proper C declaration
5333lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5334
5335# Transform an extracted symbol line into symbol name and symbol address
5336lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5337
5338# Define system-specific variables.
5339case $host_os in
5340aix*)
5341 symcode='[BCDT]'
5342 ;;
5343cygwin* | mingw* | pw32*)
5344 symcode='[ABCDGISTW]'
5345 ;;
5346hpux*) # Its linker distinguishes data from code symbols
5347 if test "$host_cpu" = ia64; then
5348 symcode='[ABCDEGRST]'
5349 fi
5350 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5351 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5352 ;;
5353linux* | k*bsd*-gnu)
5354 if test "$host_cpu" = ia64; then
5355 symcode='[ABCDGIRSTW]'
5356 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5357 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5358 fi
5359 ;;
5360irix* | nonstopux*)
5361 symcode='[BCDEGRST]'
5362 ;;
5363osf*)
5364 symcode='[BCDEGQRST]'
5365 ;;
5366solaris*)
5367 symcode='[BDRT]'
5368 ;;
5369sco3.2v5*)
5370 symcode='[DT]'
5371 ;;
5372sysv4.2uw2*)
5373 symcode='[DT]'
5374 ;;
5375sysv5* | sco5v6* | unixware* | OpenUNIX*)
5376 symcode='[ABDT]'
5377 ;;
5378sysv4)
5379 symcode='[DFNSTU]'
5380 ;;
5381esac
5382
5383# Handle CRLF in mingw tool chain
5384opt_cr=
5385case $build_os in
5386mingw*)
5387 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5388 ;;
5389esac
5390
5391# If we're using GNU nm, then use its standard symbol codes.
5392case `$NM -V 2>&1` in
5393*GNU* | *'with BFD'*)
5394 symcode='[ABCDGIRSTW]' ;;
5395esac
5396
5397# Try without a prefix undercore, then with it.
5398for ac_symprfx in "" "_"; do
5399
5400 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5401 symxfrm="\\1 $ac_symprfx\\2 \\2"
5402
5403 # Write the raw and C identifiers.
5404 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5405
5406 # Check to see that the pipe works correctly.
5407 pipe_works=no
5408
5409 rm -f conftest*
5410 cat > conftest.$ac_ext <<EOF
5411#ifdef __cplusplus
5412extern "C" {
5413#endif
5414char nm_test_var;
5415void nm_test_func(){}
5416#ifdef __cplusplus
5417}
5418#endif
5419int main(){nm_test_var='a';nm_test_func();return(0);}
5420EOF
5421
5422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423 (eval $ac_compile) 2>&5
5424 ac_status=$?
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }; then
5427 # Now try to grab the symbols.
5428 nlist=conftest.nm
5429 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5430 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } && test -s "$nlist"; then
5434 # Try sorting and uniquifying the output.
5435 if sort "$nlist" | uniq > "$nlist"T; then
5436 mv -f "$nlist"T "$nlist"
5437 else
5438 rm -f "$nlist"T
5439 fi
5440
5441 # Make sure that we snagged all the symbols we need.
5442 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5443 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5444 cat <<EOF > conftest.$ac_ext
5445#ifdef __cplusplus
5446extern "C" {
5447#endif
5448
5449EOF
5450 # Now generate the symbol file.
5451 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5452
5453 cat <<EOF >> conftest.$ac_ext
5454#if defined (__STDC__) && __STDC__
5455# define lt_ptr_t void *
5456#else
5457# define lt_ptr_t char *
5458# define const
5459#endif
5460
5461/* The mapping between symbol names and symbols. */
5462const struct {
5463 const char *name;
5464 lt_ptr_t address;
5465}
5466lt_preloaded_symbols[] =
5467{
5468EOF
5469 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5470 cat <<\EOF >> conftest.$ac_ext
5471 {0, (lt_ptr_t) 0}
5472};
5473
5474#ifdef __cplusplus
5475}
5476#endif
5477EOF
5478 # Now try linking the two files.
5479 mv conftest.$ac_objext conftstm.$ac_objext
5480 lt_save_LIBS="$LIBS"
5481 lt_save_CFLAGS="$CFLAGS"
5482 LIBS="conftstm.$ac_objext"
5483 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5485 (eval $ac_link) 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5489 pipe_works=yes
5490 fi
5491 LIBS="$lt_save_LIBS"
5492 CFLAGS="$lt_save_CFLAGS"
5493 else
5494 echo "cannot find nm_test_func in $nlist" >&5
5495 fi
5496 else
5497 echo "cannot find nm_test_var in $nlist" >&5
5498 fi
5499 else
5500 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5501 fi
5502 else
5503 echo "$progname: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
5505 fi
5506 rm -rf conftest* conftst*
5507
5508 # Do not use the global_symbol_pipe unless it works.
5509 if test "$pipe_works" = yes; then
5510 break
5511 else
5512 lt_cv_sys_global_symbol_pipe=
5513 fi
5514done
5515
5516fi
5517
5518if test -z "$lt_cv_sys_global_symbol_pipe"; then
5519 lt_cv_sys_global_symbol_to_cdecl=
5520fi
5521if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5522 { echo "$as_me:$LINENO: result: failed" >&5
5523echo "${ECHO_T}failed" >&6; }
5524else
5525 { echo "$as_me:$LINENO: result: ok" >&5
5526echo "${ECHO_T}ok" >&6; }
5527fi
5528
5529{ echo "$as_me:$LINENO: checking for objdir" >&5
5530echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5531if test "${lt_cv_objdir+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533else
5534 rm -f .libs 2>/dev/null
5535mkdir .libs 2>/dev/null
5536if test -d .libs; then
5537 lt_cv_objdir=.libs
5538else
5539 # MS-DOS does not allow filenames that begin with a dot.
5540 lt_cv_objdir=_libs
5541fi
5542rmdir .libs 2>/dev/null
5543fi
5544{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5545echo "${ECHO_T}$lt_cv_objdir" >&6; }
5546objdir=$lt_cv_objdir
5547
5548
5549
5550
5551
5552case $host_os in
5553aix3*)
5554 # AIX sometimes has problems with the GCC collect2 program. For some
5555 # reason, if we set the COLLECT_NAMES environment variable, the problems
5556 # vanish in a puff of smoke.
5557 if test "X${COLLECT_NAMES+set}" != Xset; then
5558 COLLECT_NAMES=
5559 export COLLECT_NAMES
5560 fi
5561 ;;
5562esac
5563
5564# Sed substitution that helps us do robust quoting. It backslashifies
5565# metacharacters that are still active within double-quoted strings.
5566Xsed='sed -e 1s/^X//'
5567sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5568
5569# Same as above, but do not quote variable references.
5570double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5571
5572# Sed substitution to delay expansion of an escaped shell variable in a
5573# double_quote_subst'ed string.
5574delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5575
5576# Sed substitution to avoid accidental globbing in evaled expressions
5577no_glob_subst='s/\*/\\\*/g'
5578
5579# Constants:
5580rm="rm -f"
5581
5582# Global variables:
5583default_ofile=libtool
5584can_build_shared=yes
5585
5586# All known linkers require a `.a' archive for static linking (except MSVC,
5587# which needs '.lib').
5588libext=a
5589ltmain="$ac_aux_dir/ltmain.sh"
5590ofile="$default_ofile"
5591with_gnu_ld="$lt_cv_prog_gnu_ld"
5592
5593if test -n "$ac_tool_prefix"; then
5594 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5595set dummy ${ac_tool_prefix}ar; ac_word=$2
5596{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5598if test "${ac_cv_prog_AR+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5600else
5601 if test -n "$AR"; then
5602 ac_cv_prog_AR="$AR" # Let the user override the test.
5603else
5604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605for as_dir in $PATH
5606do
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5611 ac_cv_prog_AR="${ac_tool_prefix}ar"
5612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 break 2
5614 fi
5615done
5616done
5617IFS=$as_save_IFS
5618
5619fi
5620fi
5621AR=$ac_cv_prog_AR
5622if test -n "$AR"; then
5623 { echo "$as_me:$LINENO: result: $AR" >&5
5624echo "${ECHO_T}$AR" >&6; }
5625else
5626 { echo "$as_me:$LINENO: result: no" >&5
5627echo "${ECHO_T}no" >&6; }
5628fi
5629
5630
5631fi
5632if test -z "$ac_cv_prog_AR"; then
5633 ac_ct_AR=$AR
5634 # Extract the first word of "ar", so it can be a program name with args.
5635set dummy ar; ac_word=$2
5636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5638if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640else
5641 if test -n "$ac_ct_AR"; then
5642 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5643else
5644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645for as_dir in $PATH
5646do
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5651 ac_cv_prog_ac_ct_AR="ar"
5652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 break 2
5654 fi
5655done
5656done
5657IFS=$as_save_IFS
5658
5659fi
5660fi
5661ac_ct_AR=$ac_cv_prog_ac_ct_AR
5662if test -n "$ac_ct_AR"; then
5663 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5664echo "${ECHO_T}$ac_ct_AR" >&6; }
5665else
5666 { echo "$as_me:$LINENO: result: no" >&5
5667echo "${ECHO_T}no" >&6; }
5668fi
5669
5670 if test "x$ac_ct_AR" = x; then
5671 AR="false"
5672 else
5673 case $cross_compiling:$ac_tool_warned in
5674yes:)
5675{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5676whose name does not start with the host triplet. If you think this
5677configuration is useful to you, please write to autoconf@gnu.org." >&5
5678echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5679whose name does not start with the host triplet. If you think this
5680configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5681ac_tool_warned=yes ;;
5682esac
5683 AR=$ac_ct_AR
5684 fi
5685else
5686 AR="$ac_cv_prog_AR"
5687fi
5688
5689if test -n "$ac_tool_prefix"; then
5690 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5691set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5694if test "${ac_cv_prog_RANLIB+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5696else
5697 if test -n "$RANLIB"; then
5698 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5699else
5700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701for as_dir in $PATH
5702do
5703 IFS=$as_save_IFS
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5707 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 break 2
5710 fi
5711done
5712done
5713IFS=$as_save_IFS
5714
5715fi
5716fi
5717RANLIB=$ac_cv_prog_RANLIB
5718if test -n "$RANLIB"; then
5719 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5720echo "${ECHO_T}$RANLIB" >&6; }
5721else
5722 { echo "$as_me:$LINENO: result: no" >&5
5723echo "${ECHO_T}no" >&6; }
5724fi
5725
5726
5727fi
5728if test -z "$ac_cv_prog_RANLIB"; then
5729 ac_ct_RANLIB=$RANLIB
5730 # Extract the first word of "ranlib", so it can be a program name with args.
5731set dummy ranlib; ac_word=$2
5732{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5734if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736else
5737 if test -n "$ac_ct_RANLIB"; then
5738 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5739else
5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741for as_dir in $PATH
5742do
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5747 ac_cv_prog_ac_ct_RANLIB="ranlib"
5748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 break 2
5750 fi
5751done
5752done
5753IFS=$as_save_IFS
5754
5755fi
5756fi
5757ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5758if test -n "$ac_ct_RANLIB"; then
5759 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5760echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5761else
5762 { echo "$as_me:$LINENO: result: no" >&5
5763echo "${ECHO_T}no" >&6; }
5764fi
5765
5766 if test "x$ac_ct_RANLIB" = x; then
5767 RANLIB=":"
5768 else
5769 case $cross_compiling:$ac_tool_warned in
5770yes:)
5771{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5772whose name does not start with the host triplet. If you think this
5773configuration is useful to you, please write to autoconf@gnu.org." >&5
5774echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5775whose name does not start with the host triplet. If you think this
5776configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5777ac_tool_warned=yes ;;
5778esac
5779 RANLIB=$ac_ct_RANLIB
5780 fi
5781else
5782 RANLIB="$ac_cv_prog_RANLIB"
5783fi
5784
5785if test -n "$ac_tool_prefix"; then
5786 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5787set dummy ${ac_tool_prefix}strip; ac_word=$2
5788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5790if test "${ac_cv_prog_STRIP+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5792else
5793 if test -n "$STRIP"; then
5794 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5795else
5796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797for as_dir in $PATH
5798do
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 break 2
5806 fi
5807done
5808done
5809IFS=$as_save_IFS
5810
5811fi
5812fi
5813STRIP=$ac_cv_prog_STRIP
5814if test -n "$STRIP"; then
5815 { echo "$as_me:$LINENO: result: $STRIP" >&5
5816echo "${ECHO_T}$STRIP" >&6; }
5817else
5818 { echo "$as_me:$LINENO: result: no" >&5
5819echo "${ECHO_T}no" >&6; }
5820fi
5821
5822
5823fi
5824if test -z "$ac_cv_prog_STRIP"; then
5825 ac_ct_STRIP=$STRIP
5826 # Extract the first word of "strip", so it can be a program name with args.
5827set dummy strip; ac_word=$2
5828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5830if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5832else
5833 if test -n "$ac_ct_STRIP"; then
5834 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5835else
5836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837for as_dir in $PATH
5838do
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5843 ac_cv_prog_ac_ct_STRIP="strip"
5844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 break 2
5846 fi
5847done
5848done
5849IFS=$as_save_IFS
5850
5851fi
5852fi
5853ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5854if test -n "$ac_ct_STRIP"; then
5855 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5856echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5857else
5858 { echo "$as_me:$LINENO: result: no" >&5
5859echo "${ECHO_T}no" >&6; }
5860fi
5861
5862 if test "x$ac_ct_STRIP" = x; then
5863 STRIP=":"
5864 else
5865 case $cross_compiling:$ac_tool_warned in
5866yes:)
5867{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5868whose name does not start with the host triplet. If you think this
5869configuration is useful to you, please write to autoconf@gnu.org." >&5
5870echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5871whose name does not start with the host triplet. If you think this
5872configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5873ac_tool_warned=yes ;;
5874esac
5875 STRIP=$ac_ct_STRIP
5876 fi
5877else
5878 STRIP="$ac_cv_prog_STRIP"
5879fi
5880
5881
5882old_CC="$CC"
5883old_CFLAGS="$CFLAGS"
5884
5885# Set sane defaults for various variables
5886test -z "$AR" && AR=ar
5887test -z "$AR_FLAGS" && AR_FLAGS=cru
5888test -z "$AS" && AS=as
5889test -z "$CC" && CC=cc
5890test -z "$LTCC" && LTCC=$CC
5891test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5892test -z "$DLLTOOL" && DLLTOOL=dlltool
5893test -z "$LD" && LD=ld
5894test -z "$LN_S" && LN_S="ln -s"
5895test -z "$MAGIC_CMD" && MAGIC_CMD=file
5896test -z "$NM" && NM=nm
5897test -z "$SED" && SED=sed
5898test -z "$OBJDUMP" && OBJDUMP=objdump
5899test -z "$RANLIB" && RANLIB=:
5900test -z "$STRIP" && STRIP=:
5901test -z "$ac_objext" && ac_objext=o
5902
5903# Determine commands to create old-style static archives.
5904old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5905old_postinstall_cmds='chmod 644 $oldlib'
5906old_postuninstall_cmds=
5907
5908if test -n "$RANLIB"; then
5909 case $host_os in
5910 openbsd*)
5911 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5912 ;;
5913 *)
5914 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5915 ;;
5916 esac
5917 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5918fi
5919
5920for cc_temp in $compiler""; do
5921 case $cc_temp in
5922 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5923 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5924 \-*) ;;
5925 *) break;;
5926 esac
5927done
5928cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5929
5930
5931# Only perform the check for file, if the check method requires it
5932case $deplibs_check_method in
5933file_magic*)
5934 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5935 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5936echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
5937if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5939else
5940 case $MAGIC_CMD in
5941[\\/*] | ?:[\\/]*)
5942 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5943 ;;
5944*)
5945 lt_save_MAGIC_CMD="$MAGIC_CMD"
5946 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5947 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5948 for ac_dir in $ac_dummy; do
5949 IFS="$lt_save_ifs"
5950 test -z "$ac_dir" && ac_dir=.
5951 if test -f $ac_dir/${ac_tool_prefix}file; then
5952 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5953 if test -n "$file_magic_test_file"; then
5954 case $deplibs_check_method in
5955 "file_magic "*)
5956 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5957 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5958 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5959 $EGREP "$file_magic_regex" > /dev/null; then
5960 :
5961 else
5962 cat <<EOF 1>&2
5963
5964*** Warning: the command libtool uses to detect shared libraries,
5965*** $file_magic_cmd, produces output that libtool cannot recognize.
5966*** The result is that libtool may fail to recognize shared libraries
5967*** as such. This will affect the creation of libtool libraries that
5968*** depend on shared libraries, but programs linked with such libtool
5969*** libraries will work regardless of this problem. Nevertheless, you
5970*** may want to report the problem to your system manager and/or to
5971*** bug-libtool@gnu.org
5972
5973EOF
5974 fi ;;
5975 esac
5976 fi
5977 break
5978 fi
5979 done
5980 IFS="$lt_save_ifs"
5981 MAGIC_CMD="$lt_save_MAGIC_CMD"
5982 ;;
5983esac
5984fi
5985
5986MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5987if test -n "$MAGIC_CMD"; then
5988 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5989echo "${ECHO_T}$MAGIC_CMD" >&6; }
5990else
5991 { echo "$as_me:$LINENO: result: no" >&5
5992echo "${ECHO_T}no" >&6; }
5993fi
5994
5995if test -z "$lt_cv_path_MAGIC_CMD"; then
5996 if test -n "$ac_tool_prefix"; then
5997 { echo "$as_me:$LINENO: checking for file" >&5
5998echo $ECHO_N "checking for file... $ECHO_C" >&6; }
5999if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001else
6002 case $MAGIC_CMD in
6003[\\/*] | ?:[\\/]*)
6004 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6005 ;;
6006*)
6007 lt_save_MAGIC_CMD="$MAGIC_CMD"
6008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6009 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6010 for ac_dir in $ac_dummy; do
6011 IFS="$lt_save_ifs"
6012 test -z "$ac_dir" && ac_dir=.
6013 if test -f $ac_dir/file; then
6014 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6015 if test -n "$file_magic_test_file"; then
6016 case $deplibs_check_method in
6017 "file_magic "*)
6018 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6020 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6021 $EGREP "$file_magic_regex" > /dev/null; then
6022 :
6023 else
6024 cat <<EOF 1>&2
6025
6026*** Warning: the command libtool uses to detect shared libraries,
6027*** $file_magic_cmd, produces output that libtool cannot recognize.
6028*** The result is that libtool may fail to recognize shared libraries
6029*** as such. This will affect the creation of libtool libraries that
6030*** depend on shared libraries, but programs linked with such libtool
6031*** libraries will work regardless of this problem. Nevertheless, you
6032*** may want to report the problem to your system manager and/or to
6033*** bug-libtool@gnu.org
6034
6035EOF
6036 fi ;;
6037 esac
6038 fi
6039 break
6040 fi
6041 done
6042 IFS="$lt_save_ifs"
6043 MAGIC_CMD="$lt_save_MAGIC_CMD"
6044 ;;
6045esac
6046fi
6047
6048MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6049if test -n "$MAGIC_CMD"; then
6050 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6051echo "${ECHO_T}$MAGIC_CMD" >&6; }
6052else
6053 { echo "$as_me:$LINENO: result: no" >&5
6054echo "${ECHO_T}no" >&6; }
6055fi
6056
6057 else
6058 MAGIC_CMD=:
6059 fi
6060fi
6061
6062 fi
6063 ;;
6064esac
6065
6066
6067 case $host_os in
6068 rhapsody* | darwin*)
6069 if test -n "$ac_tool_prefix"; then
6070 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6071set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6072{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6074if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6076else
6077 if test -n "$DSYMUTIL"; then
6078 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6079else
6080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081for as_dir in $PATH
6082do
6083 IFS=$as_save_IFS
6084 test -z "$as_dir" && as_dir=.
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6087 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6089 break 2
6090 fi
6091done
6092done
6093IFS=$as_save_IFS
6094
6095fi
6096fi
6097DSYMUTIL=$ac_cv_prog_DSYMUTIL
6098if test -n "$DSYMUTIL"; then
6099 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6100echo "${ECHO_T}$DSYMUTIL" >&6; }
6101else
6102 { echo "$as_me:$LINENO: result: no" >&5
6103echo "${ECHO_T}no" >&6; }
6104fi
6105
6106
6107fi
6108if test -z "$ac_cv_prog_DSYMUTIL"; then
6109 ac_ct_DSYMUTIL=$DSYMUTIL
6110 # Extract the first word of "dsymutil", so it can be a program name with args.
6111set dummy dsymutil; ac_word=$2
6112{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6114if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6116else
6117 if test -n "$ac_ct_DSYMUTIL"; then
6118 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6119else
6120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121for as_dir in $PATH
6122do
6123 IFS=$as_save_IFS
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6127 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 break 2
6130 fi
6131done
6132done
6133IFS=$as_save_IFS
6134
6135fi
6136fi
6137ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6138if test -n "$ac_ct_DSYMUTIL"; then
6139 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6140echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6141else
6142 { echo "$as_me:$LINENO: result: no" >&5
6143echo "${ECHO_T}no" >&6; }
6144fi
6145
6146 if test "x$ac_ct_DSYMUTIL" = x; then
6147 DSYMUTIL=":"
6148 else
6149 case $cross_compiling:$ac_tool_warned in
6150yes:)
6151{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6152whose name does not start with the host triplet. If you think this
6153configuration is useful to you, please write to autoconf@gnu.org." >&5
6154echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6155whose name does not start with the host triplet. If you think this
6156configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6157ac_tool_warned=yes ;;
6158esac
6159 DSYMUTIL=$ac_ct_DSYMUTIL
6160 fi
6161else
6162 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6163fi
6164
6165 if test -n "$ac_tool_prefix"; then
6166 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6167set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6168{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6170if test "${ac_cv_prog_NMEDIT+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6172else
6173 if test -n "$NMEDIT"; then
6174 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6175else
6176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177for as_dir in $PATH
6178do
6179 IFS=$as_save_IFS
6180 test -z "$as_dir" && as_dir=.
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 break 2
6186 fi
6187done
6188done
6189IFS=$as_save_IFS
6190
6191fi
6192fi
6193NMEDIT=$ac_cv_prog_NMEDIT
6194if test -n "$NMEDIT"; then
6195 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6196echo "${ECHO_T}$NMEDIT" >&6; }
6197else
6198 { echo "$as_me:$LINENO: result: no" >&5
6199echo "${ECHO_T}no" >&6; }
6200fi
6201
6202
6203fi
6204if test -z "$ac_cv_prog_NMEDIT"; then
6205 ac_ct_NMEDIT=$NMEDIT
6206 # Extract the first word of "nmedit", so it can be a program name with args.
6207set dummy nmedit; ac_word=$2
6208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6210if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6212else
6213 if test -n "$ac_ct_NMEDIT"; then
6214 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6215else
6216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217for as_dir in $PATH
6218do
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 break 2
6226 fi
6227done
6228done
6229IFS=$as_save_IFS
6230
6231fi
6232fi
6233ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6234if test -n "$ac_ct_NMEDIT"; then
6235 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6236echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6237else
6238 { echo "$as_me:$LINENO: result: no" >&5
6239echo "${ECHO_T}no" >&6; }
6240fi
6241
6242 if test "x$ac_ct_NMEDIT" = x; then
6243 NMEDIT=":"
6244 else
6245 case $cross_compiling:$ac_tool_warned in
6246yes:)
6247{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6248whose name does not start with the host triplet. If you think this
6249configuration is useful to you, please write to autoconf@gnu.org." >&5
6250echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6251whose name does not start with the host triplet. If you think this
6252configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6253ac_tool_warned=yes ;;
6254esac
6255 NMEDIT=$ac_ct_NMEDIT
6256 fi
6257else
6258 NMEDIT="$ac_cv_prog_NMEDIT"
6259fi
6260
6261
6262 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6263echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6264if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6266else
6267 lt_cv_apple_cc_single_mod=no
6268 if test -z "${LT_MULTI_MODULE}"; then
6269 # By default we will add the -single_module flag. You can override
6270 # by either setting the environment variable LT_MULTI_MODULE
6271 # non-empty at configure time, or by adding -multi_module to the
6272 # link flags.
6273 echo "int foo(void){return 1;}" > conftest.c
6274 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6275 -dynamiclib ${wl}-single_module conftest.c
6276 if test -f libconftest.dylib; then
6277 lt_cv_apple_cc_single_mod=yes
6278 rm -rf libconftest.dylib*
6279 fi
6280 rm conftest.c
6281 fi
6282fi
6283{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6284echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6285 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6286echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6287if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6289else
6290 lt_cv_ld_exported_symbols_list=no
6291 save_LDFLAGS=$LDFLAGS
6292 echo "_main" > conftest.sym
6293 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6294 cat >conftest.$ac_ext <<_ACEOF
6295/* confdefs.h. */
6296_ACEOF
6297cat confdefs.h >>conftest.$ac_ext
6298cat >>conftest.$ac_ext <<_ACEOF
6299/* end confdefs.h. */
6300
6301int
6302main ()
6303{
6304
6305 ;
6306 return 0;
6307}
6308_ACEOF
6309rm -f conftest.$ac_objext conftest$ac_exeext
6310if { (ac_try="$ac_link"
6311case "(($ac_try" in
6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6314esac
6315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316 (eval "$ac_link") 2>conftest.er1
6317 ac_status=$?
6318 grep -v '^ *+' conftest.er1 >conftest.err
6319 rm -f conftest.er1
6320 cat conftest.err >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } && {
6323 test -z "$ac_c_werror_flag" ||
6324 test ! -s conftest.err
6325 } && test -s conftest$ac_exeext &&
6326 $as_test_x conftest$ac_exeext; then
6327 lt_cv_ld_exported_symbols_list=yes
6328else
6329 echo "$as_me: failed program was:" >&5
6330sed 's/^/| /' conftest.$ac_ext >&5
6331
6332 lt_cv_ld_exported_symbols_list=no
6333fi
6334
6335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6336 conftest$ac_exeext conftest.$ac_ext
6337 LDFLAGS="$save_LDFLAGS"
6338
6339fi
6340{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6341echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6342 case $host_os in
6343 rhapsody* | darwin1.[0123])
6344 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6345 darwin1.*)
6346 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6347 darwin*)
6348 # if running on 10.5 or later, the deployment target defaults
6349 # to the OS version, if on x86, and 10.4, the deployment
6350 # target defaults to 10.4. Don't you love it?
6351 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6352 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6353 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6354 10.[012]*)
6355 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6356 10.*)
6357 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6358 esac
6359 ;;
6360 esac
6361 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6362 _lt_dar_single_mod='$single_module'
6363 fi
6364 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6365 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6366 else
6367 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6368 fi
6369 if test "$DSYMUTIL" != ":"; then
6370 _lt_dsymutil="~$DSYMUTIL \$lib || :"
6371 else
6372 _lt_dsymutil=
6373 fi
6374 ;;
6375 esac
6376
6377
6378enable_dlopen=no
6379enable_win32_dll=no
6380
6381# Check whether --enable-libtool-lock was given.
6382if test "${enable_libtool_lock+set}" = set; then
6383 enableval=$enable_libtool_lock;
6384fi
6385
6386test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6387
6388
6389# Check whether --with-pic was given.
6390if test "${with_pic+set}" = set; then
6391 withval=$with_pic; pic_mode="$withval"
6392else
6393 pic_mode=default
6394fi
6395
6396test -z "$pic_mode" && pic_mode=default
6397
6398# Use C for the default configuration in the libtool script
6399tagname=
6400lt_save_CC="$CC"
6401ac_ext=c
6402ac_cpp='$CPP $CPPFLAGS'
6403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6405ac_compiler_gnu=$ac_cv_c_compiler_gnu
6406
6407
6408# Source file extension for C test sources.
6409ac_ext=c
6410
6411# Object file extension for compiled C test sources.
6412objext=o
6413objext=$objext
6414
6415# Code to be used in simple compile tests
6416lt_simple_compile_test_code="int some_variable = 0;"
6417
6418# Code to be used in simple link tests
6419lt_simple_link_test_code='int main(){return(0);}'
6420
6421
6422# If no C compiler was specified, use CC.
6423LTCC=${LTCC-"$CC"}
6424
6425# If no C compiler flags were specified, use CFLAGS.
6426LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6427
6428# Allow CC to be a program name with arguments.
6429compiler=$CC
6430
6431
6432# save warnings/boilerplate of simple test code
6433ac_outfile=conftest.$ac_objext
6434echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6435eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6436_lt_compiler_boilerplate=`cat conftest.err`
6437$rm conftest*
6438
6439ac_outfile=conftest.$ac_objext
6440echo "$lt_simple_link_test_code" >conftest.$ac_ext
6441eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6442_lt_linker_boilerplate=`cat conftest.err`
6443$rm -r conftest*
6444
6445
6446
6447lt_prog_compiler_no_builtin_flag=
6448
6449if test "$GCC" = yes; then
6450 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6451
6452
6453{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6454echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6455if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6457else
6458 lt_cv_prog_compiler_rtti_exceptions=no
6459 ac_outfile=conftest.$ac_objext
6460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6461 lt_compiler_flag="-fno-rtti -fno-exceptions"
6462 # Insert the option either (1) after the last *FLAGS variable, or
6463 # (2) before a word containing "conftest.", or (3) at the end.
6464 # Note that $ac_compile itself does not contain backslashes and begins
6465 # with a dollar sign (not a hyphen), so the echo should work correctly.
6466 # The option is referenced via a variable to avoid confusing sed.
6467 lt_compile=`echo "$ac_compile" | $SED \
6468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6470 -e 's:$: $lt_compiler_flag:'`
6471 (eval echo "\"\$as_me:6471: $lt_compile\"" >&5)
6472 (eval "$lt_compile" 2>conftest.err)
6473 ac_status=$?
6474 cat conftest.err >&5
6475 echo "$as_me:6475: \$? = $ac_status" >&5
6476 if (exit $ac_status) && test -s "$ac_outfile"; then
6477 # The compiler can only warn and ignore the option if not recognized
6478 # So say no if there are warnings other than the usual output.
6479 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6480 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6481 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6482 lt_cv_prog_compiler_rtti_exceptions=yes
6483 fi
6484 fi
6485 $rm conftest*
6486
6487fi
6488{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6489echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6490
6491if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6492 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6493else
6494 :
6495fi
6496
6497fi
6498
6499lt_prog_compiler_wl=
6500lt_prog_compiler_pic=
6501lt_prog_compiler_static=
6502
6503{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6504echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6505
6506 if test "$GCC" = yes; then
6507 lt_prog_compiler_wl='-Wl,'
6508 lt_prog_compiler_static='-static'
6509
6510 case $host_os in
6511 aix*)
6512 # All AIX code is PIC.
6513 if test "$host_cpu" = ia64; then
6514 # AIX 5 now supports IA64 processor
6515 lt_prog_compiler_static='-Bstatic'
6516 fi
6517 ;;
6518
6519 amigaos*)
6520 # FIXME: we need at least 68020 code to build shared libraries, but
6521 # adding the `-m68020' flag to GCC prevents building anything better,
6522 # like `-m68040'.
6523 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6524 ;;
6525
6526 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6527 # PIC is the default for these OSes.
6528 ;;
6529
6530 mingw* | cygwin* | pw32* | os2*)
6531 # This hack is so that the source file can tell whether it is being
6532 # built for inclusion in a dll (and should export symbols for example).
6533 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6534 # (--disable-auto-import) libraries
6535 lt_prog_compiler_pic='-DDLL_EXPORT'
6536 ;;
6537
6538 darwin* | rhapsody*)
6539 # PIC is the default on this platform
6540 # Common symbols not allowed in MH_DYLIB files
6541 lt_prog_compiler_pic='-fno-common'
6542 ;;
6543
6544 interix[3-9]*)
6545 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6546 # Instead, we relocate shared libraries at runtime.
6547 ;;
6548
6549 msdosdjgpp*)
6550 # Just because we use GCC doesn't mean we suddenly get shared libraries
6551 # on systems that don't support them.
6552 lt_prog_compiler_can_build_shared=no
6553 enable_shared=no
6554 ;;
6555
6556 sysv4*MP*)
6557 if test -d /usr/nec; then
6558 lt_prog_compiler_pic=-Kconform_pic
6559 fi
6560 ;;
6561
6562 hpux*)
6563 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6564 # not for PA HP-UX.
6565 case $host_cpu in
6566 hppa*64*|ia64*)
6567 # +Z the default
6568 ;;
6569 *)
6570 lt_prog_compiler_pic='-fPIC'
6571 ;;
6572 esac
6573 ;;
6574
6575 *)
6576 lt_prog_compiler_pic='-fPIC'
6577 ;;
6578 esac
6579 else
6580 # PORTME Check for flag to pass linker flags through the system compiler.
6581 case $host_os in
6582 aix*)
6583 lt_prog_compiler_wl='-Wl,'
6584 if test "$host_cpu" = ia64; then
6585 # AIX 5 now supports IA64 processor
6586 lt_prog_compiler_static='-Bstatic'
6587 else
6588 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6589 fi
6590 ;;
6591 darwin*)
6592 # PIC is the default on this platform
6593 # Common symbols not allowed in MH_DYLIB files
6594 case $cc_basename in
6595 xlc*)
6596 lt_prog_compiler_pic='-qnocommon'
6597 lt_prog_compiler_wl='-Wl,'
6598 ;;
6599 esac
6600 ;;
6601
6602 mingw* | cygwin* | pw32* | os2*)
6603 # This hack is so that the source file can tell whether it is being
6604 # built for inclusion in a dll (and should export symbols for example).
6605 lt_prog_compiler_pic='-DDLL_EXPORT'
6606 ;;
6607
6608 hpux9* | hpux10* | hpux11*)
6609 lt_prog_compiler_wl='-Wl,'
6610 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6611 # not for PA HP-UX.
6612 case $host_cpu in
6613 hppa*64*|ia64*)
6614 # +Z the default
6615 ;;
6616 *)
6617 lt_prog_compiler_pic='+Z'
6618 ;;
6619 esac
6620 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6621 lt_prog_compiler_static='${wl}-a ${wl}archive'
6622 ;;
6623
6624 irix5* | irix6* | nonstopux*)
6625 lt_prog_compiler_wl='-Wl,'
6626 # PIC (with -KPIC) is the default.
6627 lt_prog_compiler_static='-non_shared'
6628 ;;
6629
6630 newsos6)
6631 lt_prog_compiler_pic='-KPIC'
6632 lt_prog_compiler_static='-Bstatic'
6633 ;;
6634
6635 linux* | k*bsd*-gnu)
6636 case $cc_basename in
6637 icc* | ecc*)
6638 lt_prog_compiler_wl='-Wl,'
6639 lt_prog_compiler_pic='-KPIC'
6640 lt_prog_compiler_static='-static'
6641 ;;
6642 pgcc* | pgf77* | pgf90* | pgf95*)
6643 # Portland Group compilers (*not* the Pentium gcc compiler,
6644 # which looks to be a dead project)
6645 lt_prog_compiler_wl='-Wl,'
6646 lt_prog_compiler_pic='-fpic'
6647 lt_prog_compiler_static='-Bstatic'
6648 ;;
6649 ccc*)
6650 lt_prog_compiler_wl='-Wl,'
6651 # All Alpha code is PIC.
6652 lt_prog_compiler_static='-non_shared'
6653 ;;
6654 *)
6655 case `$CC -V 2>&1 | sed 5q` in
6656 *Sun\ C*)
6657 # Sun C 5.9
6658 lt_prog_compiler_pic='-KPIC'
6659 lt_prog_compiler_static='-Bstatic'
6660 lt_prog_compiler_wl='-Wl,'
6661 ;;
6662 *Sun\ F*)
6663 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6664 lt_prog_compiler_pic='-KPIC'
6665 lt_prog_compiler_static='-Bstatic'
6666 lt_prog_compiler_wl=''
6667 ;;
6668 esac
6669 ;;
6670 esac
6671 ;;
6672
6673 osf3* | osf4* | osf5*)
6674 lt_prog_compiler_wl='-Wl,'
6675 # All OSF/1 code is PIC.
6676 lt_prog_compiler_static='-non_shared'
6677 ;;
6678
6679 rdos*)
6680 lt_prog_compiler_static='-non_shared'
6681 ;;
6682
6683 solaris*)
6684 lt_prog_compiler_pic='-KPIC'
6685 lt_prog_compiler_static='-Bstatic'
6686 case $cc_basename in
6687 f77* | f90* | f95*)
6688 lt_prog_compiler_wl='-Qoption ld ';;
6689 *)
6690 lt_prog_compiler_wl='-Wl,';;
6691 esac
6692 ;;
6693
6694 sunos4*)
6695 lt_prog_compiler_wl='-Qoption ld '
6696 lt_prog_compiler_pic='-PIC'
6697 lt_prog_compiler_static='-Bstatic'
6698 ;;
6699
6700 sysv4 | sysv4.2uw2* | sysv4.3*)
6701 lt_prog_compiler_wl='-Wl,'
6702 lt_prog_compiler_pic='-KPIC'
6703 lt_prog_compiler_static='-Bstatic'
6704 ;;
6705
6706 sysv4*MP*)
6707 if test -d /usr/nec ;then
6708 lt_prog_compiler_pic='-Kconform_pic'
6709 lt_prog_compiler_static='-Bstatic'
6710 fi
6711 ;;
6712
6713 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6714 lt_prog_compiler_wl='-Wl,'
6715 lt_prog_compiler_pic='-KPIC'
6716 lt_prog_compiler_static='-Bstatic'
6717 ;;
6718
6719 unicos*)
6720 lt_prog_compiler_wl='-Wl,'
6721 lt_prog_compiler_can_build_shared=no
6722 ;;
6723
6724 uts4*)
6725 lt_prog_compiler_pic='-pic'
6726 lt_prog_compiler_static='-Bstatic'
6727 ;;
6728
6729 *)
6730 lt_prog_compiler_can_build_shared=no
6731 ;;
6732 esac
6733 fi
6734
6735{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6736echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6737
6738#
6739# Check to make sure the PIC flag actually works.
6740#
6741if test -n "$lt_prog_compiler_pic"; then
6742
6743{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6744echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6745if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6747else
6748 lt_cv_prog_compiler_pic_works=no
6749 ac_outfile=conftest.$ac_objext
6750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6751 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6752 # Insert the option either (1) after the last *FLAGS variable, or
6753 # (2) before a word containing "conftest.", or (3) at the end.
6754 # Note that $ac_compile itself does not contain backslashes and begins
6755 # with a dollar sign (not a hyphen), so the echo should work correctly.
6756 # The option is referenced via a variable to avoid confusing sed.
6757 lt_compile=`echo "$ac_compile" | $SED \
6758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6760 -e 's:$: $lt_compiler_flag:'`
6761 (eval echo "\"\$as_me:6761: $lt_compile\"" >&5)
6762 (eval "$lt_compile" 2>conftest.err)
6763 ac_status=$?
6764 cat conftest.err >&5
6765 echo "$as_me:6765: \$? = $ac_status" >&5
6766 if (exit $ac_status) && test -s "$ac_outfile"; then
6767 # The compiler can only warn and ignore the option if not recognized
6768 # So say no if there are warnings other than the usual output.
6769 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6771 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6772 lt_cv_prog_compiler_pic_works=yes
6773 fi
6774 fi
6775 $rm conftest*
6776
6777fi
6778{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
6779echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
6780
6781if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
6782 case $lt_prog_compiler_pic in
6783 "" | " "*) ;;
6784 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6785 esac
6786else
6787 lt_prog_compiler_pic=
6788 lt_prog_compiler_can_build_shared=no
6789fi
6790
6791fi
6792case $host_os in
6793 # For platforms which do not support PIC, -DPIC is meaningless:
6794 *djgpp*)
6795 lt_prog_compiler_pic=
6796 ;;
6797 *)
6798 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6799 ;;
6800esac
6801
6802#
6803# Check to make sure the static flag actually works.
6804#
6805wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6806{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6807echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
6808if test "${lt_cv_prog_compiler_static_works+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6810else
6811 lt_cv_prog_compiler_static_works=no
6812 save_LDFLAGS="$LDFLAGS"
6813 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6814 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6815 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6816 # The linker can only warn and ignore the option if not recognized
6817 # So say no if there are warnings
6818 if test -s conftest.err; then
6819 # Append any errors to the config.log.
6820 cat conftest.err 1>&5
6821 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6823 if diff conftest.exp conftest.er2 >/dev/null; then
6824 lt_cv_prog_compiler_static_works=yes
6825 fi
6826 else
6827 lt_cv_prog_compiler_static_works=yes
6828 fi
6829 fi
6830 $rm -r conftest*
6831 LDFLAGS="$save_LDFLAGS"
6832
6833fi
6834{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
6835echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
6836
6837if test x"$lt_cv_prog_compiler_static_works" = xyes; then
6838 :
6839else
6840 lt_prog_compiler_static=
6841fi
6842
6843
6844{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6845echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6846if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6848else
6849 lt_cv_prog_compiler_c_o=no
6850 $rm -r conftest 2>/dev/null
6851 mkdir conftest
6852 cd conftest
6853 mkdir out
6854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6855
6856 lt_compiler_flag="-o out/conftest2.$ac_objext"
6857 # Insert the option either (1) after the last *FLAGS variable, or
6858 # (2) before a word containing "conftest.", or (3) at the end.
6859 # Note that $ac_compile itself does not contain backslashes and begins
6860 # with a dollar sign (not a hyphen), so the echo should work correctly.
6861 lt_compile=`echo "$ac_compile" | $SED \
6862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6864 -e 's:$: $lt_compiler_flag:'`
6865 (eval echo "\"\$as_me:6865: $lt_compile\"" >&5)
6866 (eval "$lt_compile" 2>out/conftest.err)
6867 ac_status=$?
6868 cat out/conftest.err >&5
6869 echo "$as_me:6869: \$? = $ac_status" >&5
6870 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6871 then
6872 # The compiler can only warn and ignore the option if not recognized
6873 # So say no if there are warnings
6874 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6875 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6876 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6877 lt_cv_prog_compiler_c_o=yes
6878 fi
6879 fi
6880 chmod u+w . 2>&5
6881 $rm conftest*
6882 # SGI C++ compiler will create directory out/ii_files/ for
6883 # template instantiation
6884 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6885 $rm out/* && rmdir out
6886 cd ..
6887 rmdir conftest
6888 $rm conftest*
6889
6890fi
6891{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6892echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6893
6894
6895hard_links="nottested"
6896if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6897 # do not overwrite the value of need_locks provided by the user
6898 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6899echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6900 hard_links=yes
6901 $rm conftest*
6902 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6903 touch conftest.a
6904 ln conftest.a conftest.b 2>&5 || hard_links=no
6905 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6906 { echo "$as_me:$LINENO: result: $hard_links" >&5
6907echo "${ECHO_T}$hard_links" >&6; }
6908 if test "$hard_links" = no; then
6909 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6910echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6911 need_locks=warn
6912 fi
6913else
6914 need_locks=no
6915fi
6916
6917{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6918echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6919
6920 runpath_var=
6921 allow_undefined_flag=
6922 enable_shared_with_static_runtimes=no
6923 archive_cmds=
6924 archive_expsym_cmds=
6925 old_archive_From_new_cmds=
6926 old_archive_from_expsyms_cmds=
6927 export_dynamic_flag_spec=
6928 whole_archive_flag_spec=
6929 thread_safe_flag_spec=
6930 hardcode_libdir_flag_spec=
6931 hardcode_libdir_flag_spec_ld=
6932 hardcode_libdir_separator=
6933 hardcode_direct=no
6934 hardcode_minus_L=no
6935 hardcode_shlibpath_var=unsupported
6936 link_all_deplibs=unknown
6937 hardcode_automatic=no
6938 module_cmds=
6939 module_expsym_cmds=
6940 always_export_symbols=no
6941 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6942 # include_expsyms should be a list of space-separated symbols to be *always*
6943 # included in the symbol list
6944 include_expsyms=
6945 # exclude_expsyms can be an extended regexp of symbols to exclude
6946 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6947 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6948 # as well as any symbol that contains `d'.
6949 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
6950 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6951 # platforms (ab)use it in PIC code, but their linkers get confused if
6952 # the symbol is explicitly referenced. Since portable code cannot
6953 # rely on this symbol name, it's probably fine to never include it in
6954 # preloaded symbol tables.
6955 # Exclude shared library initialization/finalization symbols.
6956 extract_expsyms_cmds=
6957 # Just being paranoid about ensuring that cc_basename is set.
6958 for cc_temp in $compiler""; do
6959 case $cc_temp in
6960 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6961 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6962 \-*) ;;
6963 *) break;;
6964 esac
6965done
6966cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6967
6968 case $host_os in
6969 cygwin* | mingw* | pw32*)
6970 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6971 # When not using gcc, we currently assume that we are using
6972 # Microsoft Visual C++.
6973 if test "$GCC" != yes; then
6974 with_gnu_ld=no
6975 fi
6976 ;;
6977 interix*)
6978 # we just hope/assume this is gcc and not c89 (= MSVC++)
6979 with_gnu_ld=yes
6980 ;;
6981 openbsd*)
6982 with_gnu_ld=no
6983 ;;
6984 esac
6985
6986 ld_shlibs=yes
6987 if test "$with_gnu_ld" = yes; then
6988 # If archive_cmds runs LD, not CC, wlarc should be empty
6989 wlarc='${wl}'
6990
6991 # Set some defaults for GNU ld with shared library support. These
6992 # are reset later if shared libraries are not supported. Putting them
6993 # here allows them to be overridden if necessary.
6994 runpath_var=LD_RUN_PATH
6995 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6996 export_dynamic_flag_spec='${wl}--export-dynamic'
6997 # ancient GNU ld didn't support --whole-archive et. al.
6998 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6999 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7000 else
7001 whole_archive_flag_spec=
7002 fi
7003 supports_anon_versioning=no
7004 case `$LD -v 2>/dev/null` in
7005 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7006 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7007 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7008 *\ 2.11.*) ;; # other 2.11 versions
7009 *) supports_anon_versioning=yes ;;
7010 esac
7011
7012 # See if GNU ld supports shared libraries.
7013 case $host_os in
7014 aix[3-9]*)
7015 # On AIX/PPC, the GNU linker is very broken
7016 if test "$host_cpu" != ia64; then
7017 ld_shlibs=no
7018 cat <<EOF 1>&2
7019
7020*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7021*** to be unable to reliably create shared libraries on AIX.
7022*** Therefore, libtool is disabling shared libraries support. If you
7023*** really care for shared libraries, you may want to modify your PATH
7024*** so that a non-GNU linker is found, and then restart.
7025
7026EOF
7027 fi
7028 ;;
7029
7030 amigaos*)
7031 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)'
7032 hardcode_libdir_flag_spec='-L$libdir'
7033 hardcode_minus_L=yes
7034
7035 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7036 # that the semantics of dynamic libraries on AmigaOS, at least up
7037 # to version 4, is to share data among multiple programs linked
7038 # with the same dynamic library. Since this doesn't match the
7039 # behavior of shared libraries on other platforms, we can't use
7040 # them.
7041 ld_shlibs=no
7042 ;;
7043
7044 beos*)
7045 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7046 allow_undefined_flag=unsupported
7047 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7048 # support --undefined. This deserves some investigation. FIXME
7049 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7050 else
7051 ld_shlibs=no
7052 fi
7053 ;;
7054
7055 cygwin* | mingw* | pw32*)
7056 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7057 # as there is no search path for DLLs.
7058 hardcode_libdir_flag_spec='-L$libdir'
7059 allow_undefined_flag=unsupported
7060 always_export_symbols=no
7061 enable_shared_with_static_runtimes=yes
7062 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7063
7064 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7066 # If the export-symbols file already is a .def file (1st line
7067 # is EXPORTS), use it as is; otherwise, prepend...
7068 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7069 cp $export_symbols $output_objdir/$soname.def;
7070 else
7071 echo EXPORTS > $output_objdir/$soname.def;
7072 cat $export_symbols >> $output_objdir/$soname.def;
7073 fi~
7074 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7075 else
7076 ld_shlibs=no
7077 fi
7078 ;;
7079
7080 interix[3-9]*)
7081 hardcode_direct=no
7082 hardcode_shlibpath_var=no
7083 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7084 export_dynamic_flag_spec='${wl}-E'
7085 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7086 # Instead, shared libraries are loaded at an image base (0x10000000 by
7087 # default) and relocated if they conflict, which is a slow very memory
7088 # consuming and fragmenting process. To avoid this, we pick a random,
7089 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7090 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7091 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7092 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'
7093 ;;
7094
7095 gnu* | linux* | k*bsd*-gnu)
7096 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7097 tmp_addflag=
7098 case $cc_basename,$host_cpu in
7099 pgcc*) # Portland Group C compiler
7100 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'
7101 tmp_addflag=' $pic_flag'
7102 ;;
7103 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7104 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'
7105 tmp_addflag=' $pic_flag -Mnomain' ;;
7106 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7107 tmp_addflag=' -i_dynamic' ;;
7108 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7109 tmp_addflag=' -i_dynamic -nofor_main' ;;
7110 ifc* | ifort*) # Intel Fortran compiler
7111 tmp_addflag=' -nofor_main' ;;
7112 esac
7113 case `$CC -V 2>&1 | sed 5q` in
7114 *Sun\ C*) # Sun C 5.9
7115 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'
7116 tmp_sharedflag='-G' ;;
7117 *Sun\ F*) # Sun Fortran 8.3
7118 tmp_sharedflag='-G' ;;
7119 *)
7120 tmp_sharedflag='-shared' ;;
7121 esac
7122 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7123
7124 if test $supports_anon_versioning = yes; then
7125 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7126 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7127 $echo "local: *; };" >> $output_objdir/$libname.ver~
7128 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7129 fi
7130 link_all_deplibs=no
7131 else
7132 ld_shlibs=no
7133 fi
7134 ;;
7135
7136 netbsd* | netbsdelf*-gnu)
7137 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7138 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7139 wlarc=
7140 else
7141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7142 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7143 fi
7144 ;;
7145
7146 solaris*)
7147 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7148 ld_shlibs=no
7149 cat <<EOF 1>&2
7150
7151*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7152*** create shared libraries on Solaris systems. Therefore, libtool
7153*** is disabling shared libraries support. We urge you to upgrade GNU
7154*** binutils to release 2.9.1 or newer. Another option is to modify
7155*** your PATH or compiler configuration so that the native linker is
7156*** used, and then restart.
7157
7158EOF
7159 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7161 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7162 else
7163 ld_shlibs=no
7164 fi
7165 ;;
7166
7167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7168 case `$LD -v 2>&1` in
7169 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7170 ld_shlibs=no
7171 cat <<_LT_EOF 1>&2
7172
7173*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7174*** reliably create shared libraries on SCO systems. Therefore, libtool
7175*** is disabling shared libraries support. We urge you to upgrade GNU
7176*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7177*** your PATH or compiler configuration so that the native linker is
7178*** used, and then restart.
7179
7180_LT_EOF
7181 ;;
7182 *)
7183 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7184 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7186 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7187 else
7188 ld_shlibs=no
7189 fi
7190 ;;
7191 esac
7192 ;;
7193
7194 sunos4*)
7195 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7196 wlarc=
7197 hardcode_direct=yes
7198 hardcode_shlibpath_var=no
7199 ;;
7200
7201 *)
7202 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7205 else
7206 ld_shlibs=no
7207 fi
7208 ;;
7209 esac
7210
7211 if test "$ld_shlibs" = no; then
7212 runpath_var=
7213 hardcode_libdir_flag_spec=
7214 export_dynamic_flag_spec=
7215 whole_archive_flag_spec=
7216 fi
7217 else
7218 # PORTME fill in a description of your system's linker (not GNU ld)
7219 case $host_os in
7220 aix3*)
7221 allow_undefined_flag=unsupported
7222 always_export_symbols=yes
7223 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'
7224 # Note: this linker hardcodes the directories in LIBPATH if there
7225 # are no directories specified by -L.
7226 hardcode_minus_L=yes
7227 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7228 # Neither direct hardcoding nor static linking is supported with a
7229 # broken collect2.
7230 hardcode_direct=unsupported
7231 fi
7232 ;;
7233
7234 aix[4-9]*)
7235 if test "$host_cpu" = ia64; then
7236 # On IA64, the linker does run time linking by default, so we don't
7237 # have to do anything special.
7238 aix_use_runtimelinking=no
7239 exp_sym_flag='-Bexport'
7240 no_entry_flag=""
7241 else
7242 # If we're using GNU nm, then we don't want the "-C" option.
7243 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7244 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7245 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'
7246 else
7247 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'
7248 fi
7249 aix_use_runtimelinking=no
7250
7251 # Test if we are trying to use run time linking or normal
7252 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7253 # need to do runtime linking.
7254 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7255 for ld_flag in $LDFLAGS; do
7256 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7257 aix_use_runtimelinking=yes
7258 break
7259 fi
7260 done
7261 ;;
7262 esac
7263
7264 exp_sym_flag='-bexport'
7265 no_entry_flag='-bnoentry'
7266 fi
7267
7268 # When large executables or shared objects are built, AIX ld can
7269 # have problems creating the table of contents. If linking a library
7270 # or program results in "error TOC overflow" add -mminimal-toc to
7271 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7272 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7273
7274 archive_cmds=''
7275 hardcode_direct=yes
7276 hardcode_libdir_separator=':'
7277 link_all_deplibs=yes
7278
7279 if test "$GCC" = yes; then
7280 case $host_os in aix4.[012]|aix4.[012].*)
7281 # We only want to do this on AIX 4.2 and lower, the check
7282 # below for broken collect2 doesn't work under 4.3+
7283 collect2name=`${CC} -print-prog-name=collect2`
7284 if test -f "$collect2name" && \
7285 strings "$collect2name" | grep resolve_lib_name >/dev/null
7286 then
7287 # We have reworked collect2
7288 :
7289 else
7290 # We have old collect2
7291 hardcode_direct=unsupported
7292 # It fails to find uninstalled libraries when the uninstalled
7293 # path is not listed in the libpath. Setting hardcode_minus_L
7294 # to unsupported forces relinking
7295 hardcode_minus_L=yes
7296 hardcode_libdir_flag_spec='-L$libdir'
7297 hardcode_libdir_separator=
7298 fi
7299 ;;
7300 esac
7301 shared_flag='-shared'
7302 if test "$aix_use_runtimelinking" = yes; then
7303 shared_flag="$shared_flag "'${wl}-G'
7304 fi
7305 else
7306 # not using gcc
7307 if test "$host_cpu" = ia64; then
7308 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7309 # chokes on -Wl,-G. The following line is correct:
7310 shared_flag='-G'
7311 else
7312 if test "$aix_use_runtimelinking" = yes; then
7313 shared_flag='${wl}-G'
7314 else
7315 shared_flag='${wl}-bM:SRE'
7316 fi
7317 fi
7318 fi
7319
7320 # It seems that -bexpall does not export symbols beginning with
7321 # underscore (_), so it is better to generate a list of symbols to export.
7322 always_export_symbols=yes
7323 if test "$aix_use_runtimelinking" = yes; then
7324 # Warning - without using the other runtime loading flags (-brtl),
7325 # -berok will link without error, but may produce a broken library.
7326 allow_undefined_flag='-berok'
7327 # Determine the default libpath from the value encoded in an empty executable.
7328 cat >conftest.$ac_ext <<_ACEOF
7329/* confdefs.h. */
7330_ACEOF
7331cat confdefs.h >>conftest.$ac_ext
7332cat >>conftest.$ac_ext <<_ACEOF
7333/* end confdefs.h. */
7334
7335int
7336main ()
7337{
7338
7339 ;
7340 return 0;
7341}
7342_ACEOF
7343rm -f conftest.$ac_objext conftest$ac_exeext
7344if { (ac_try="$ac_link"
7345case "(($ac_try" in
7346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7347 *) ac_try_echo=$ac_try;;
7348esac
7349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7350 (eval "$ac_link") 2>conftest.er1
7351 ac_status=$?
7352 grep -v '^ *+' conftest.er1 >conftest.err
7353 rm -f conftest.er1
7354 cat conftest.err >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } && {
7357 test -z "$ac_c_werror_flag" ||
7358 test ! -s conftest.err
7359 } && test -s conftest$ac_exeext &&
7360 $as_test_x conftest$ac_exeext; then
7361
7362lt_aix_libpath_sed='
7363 /Import File Strings/,/^$/ {
7364 /^0/ {
7365 s/^0 *\(.*\)$/\1/
7366 p
7367 }
7368 }'
7369aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7370# Check for a 64-bit object if we didn't find anything.
7371if test -z "$aix_libpath"; then
7372 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7373fi
7374else
7375 echo "$as_me: failed program was:" >&5
7376sed 's/^/| /' conftest.$ac_ext >&5
7377
7378
7379fi
7380
7381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7382 conftest$ac_exeext conftest.$ac_ext
7383if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7384
7385 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7386 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7387 else
7388 if test "$host_cpu" = ia64; then
7389 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7390 allow_undefined_flag="-z nodefs"
7391 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"
7392 else
7393 # Determine the default libpath from the value encoded in an empty executable.
7394 cat >conftest.$ac_ext <<_ACEOF
7395/* confdefs.h. */
7396_ACEOF
7397cat confdefs.h >>conftest.$ac_ext
7398cat >>conftest.$ac_ext <<_ACEOF
7399/* end confdefs.h. */
7400
7401int
7402main ()
7403{
7404
7405 ;
7406 return 0;
7407}
7408_ACEOF
7409rm -f conftest.$ac_objext conftest$ac_exeext
7410if { (ac_try="$ac_link"
7411case "(($ac_try" in
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7414esac
7415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_link") 2>conftest.er1
7417 ac_status=$?
7418 grep -v '^ *+' conftest.er1 >conftest.err
7419 rm -f conftest.er1
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && {
7423 test -z "$ac_c_werror_flag" ||
7424 test ! -s conftest.err
7425 } && test -s conftest$ac_exeext &&
7426 $as_test_x conftest$ac_exeext; then
7427
7428lt_aix_libpath_sed='
7429 /Import File Strings/,/^$/ {
7430 /^0/ {
7431 s/^0 *\(.*\)$/\1/
7432 p
7433 }
7434 }'
7435aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7436# Check for a 64-bit object if we didn't find anything.
7437if test -z "$aix_libpath"; then
7438 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7439fi
7440else
7441 echo "$as_me: failed program was:" >&5
7442sed 's/^/| /' conftest.$ac_ext >&5
7443
7444
7445fi
7446
7447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7448 conftest$ac_exeext conftest.$ac_ext
7449if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7450
7451 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7452 # Warning - without using the other run time loading flags,
7453 # -berok will link without error, but may produce a broken library.
7454 no_undefined_flag=' ${wl}-bernotok'
7455 allow_undefined_flag=' ${wl}-berok'
7456 # Exported symbols can be pulled into shared objects from archives
7457 whole_archive_flag_spec='$convenience'
7458 archive_cmds_need_lc=yes
7459 # This is similar to how AIX traditionally builds its shared libraries.
7460 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'
7461 fi
7462 fi
7463 ;;
7464
7465 amigaos*)
7466 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)'
7467 hardcode_libdir_flag_spec='-L$libdir'
7468 hardcode_minus_L=yes
7469 # see comment about different semantics on the GNU ld section
7470 ld_shlibs=no
7471 ;;
7472
7473 bsdi[45]*)
7474 export_dynamic_flag_spec=-rdynamic
7475 ;;
7476
7477 cygwin* | mingw* | pw32*)
7478 # When not using gcc, we currently assume that we are using
7479 # Microsoft Visual C++.
7480 # hardcode_libdir_flag_spec is actually meaningless, as there is
7481 # no search path for DLLs.
7482 hardcode_libdir_flag_spec=' '
7483 allow_undefined_flag=unsupported
7484 # Tell ltmain to make .lib files, not .a files.
7485 libext=lib
7486 # Tell ltmain to make .dll files, not .so files.
7487 shrext_cmds=".dll"
7488 # FIXME: Setting linknames here is a bad hack.
7489 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7490 # The linker will automatically build a .lib file if we build a DLL.
7491 old_archive_From_new_cmds='true'
7492 # FIXME: Should let the user specify the lib program.
7493 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7494 fix_srcfile_path='`cygpath -w "$srcfile"`'
7495 enable_shared_with_static_runtimes=yes
7496 ;;
7497
7498 darwin* | rhapsody*)
7499 case $host_os in
7500 rhapsody* | darwin1.[012])
7501 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7502 ;;
7503 *) # Darwin 1.3 on
7504 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7505 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7506 else
7507 case ${MACOSX_DEPLOYMENT_TARGET} in
7508 10.[012])
7509 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7510 ;;
7511 10.*)
7512 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7513 ;;
7514 esac
7515 fi
7516 ;;
7517 esac
7518 archive_cmds_need_lc=no
7519 hardcode_direct=no
7520 hardcode_automatic=yes
7521 hardcode_shlibpath_var=unsupported
7522 whole_archive_flag_spec=''
7523 link_all_deplibs=yes
7524 if test "$GCC" = yes ; then
7525 output_verbose_link_cmd='echo'
7526 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7527 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7528 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}"
7529 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}"
7530 else
7531 case $cc_basename in
7532 xlc*)
7533 output_verbose_link_cmd='echo'
7534 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7535 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7536 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7537 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7538 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7539 ;;
7540 *)
7541 ld_shlibs=no
7542 ;;
7543 esac
7544 fi
7545 ;;
7546
7547 dgux*)
7548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7549 hardcode_libdir_flag_spec='-L$libdir'
7550 hardcode_shlibpath_var=no
7551 ;;
7552
7553 freebsd1*)
7554 ld_shlibs=no
7555 ;;
7556
7557 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7558 # support. Future versions do this automatically, but an explicit c++rt0.o
7559 # does not break anything, and helps significantly (at the cost of a little
7560 # extra space).
7561 freebsd2.2*)
7562 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7563 hardcode_libdir_flag_spec='-R$libdir'
7564 hardcode_direct=yes
7565 hardcode_shlibpath_var=no
7566 ;;
7567
7568 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7569 freebsd2*)
7570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7571 hardcode_direct=yes
7572 hardcode_minus_L=yes
7573 hardcode_shlibpath_var=no
7574 ;;
7575
7576 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7577 freebsd* | dragonfly*)
7578 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7579 hardcode_libdir_flag_spec='-R$libdir'
7580 hardcode_direct=yes
7581 hardcode_shlibpath_var=no
7582 ;;
7583
7584 hpux9*)
7585 if test "$GCC" = yes; then
7586 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'
7587 else
7588 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'
7589 fi
7590 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7591 hardcode_libdir_separator=:
7592 hardcode_direct=yes
7593
7594 # hardcode_minus_L: Not really in the search PATH,
7595 # but as the default location of the library.
7596 hardcode_minus_L=yes
7597 export_dynamic_flag_spec='${wl}-E'
7598 ;;
7599
7600 hpux10*)
7601 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7602 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7603 else
7604 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7605 fi
7606 if test "$with_gnu_ld" = no; then
7607 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7608 hardcode_libdir_separator=:
7609
7610 hardcode_direct=yes
7611 export_dynamic_flag_spec='${wl}-E'
7612
7613 # hardcode_minus_L: Not really in the search PATH,
7614 # but as the default location of the library.
7615 hardcode_minus_L=yes
7616 fi
7617 ;;
7618
7619 hpux11*)
7620 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7621 case $host_cpu in
7622 hppa*64*)
7623 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7624 ;;
7625 ia64*)
7626 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7627 ;;
7628 *)
7629 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7630 ;;
7631 esac
7632 else
7633 case $host_cpu in
7634 hppa*64*)
7635 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7636 ;;
7637 ia64*)
7638 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7639 ;;
7640 *)
7641 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7642 ;;
7643 esac
7644 fi
7645 if test "$with_gnu_ld" = no; then
7646 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7647 hardcode_libdir_separator=:
7648
7649 case $host_cpu in
7650 hppa*64*|ia64*)
7651 hardcode_libdir_flag_spec_ld='+b $libdir'
7652 hardcode_direct=no
7653 hardcode_shlibpath_var=no
7654 ;;
7655 *)
7656 hardcode_direct=yes
7657 export_dynamic_flag_spec='${wl}-E'
7658
7659 # hardcode_minus_L: Not really in the search PATH,
7660 # but as the default location of the library.
7661 hardcode_minus_L=yes
7662 ;;
7663 esac
7664 fi
7665 ;;
7666
7667 irix5* | irix6* | nonstopux*)
7668 if test "$GCC" = yes; then
7669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7670 else
7671 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7672 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7673 fi
7674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7675 hardcode_libdir_separator=:
7676 link_all_deplibs=yes
7677 ;;
7678
7679 netbsd* | netbsdelf*-gnu)
7680 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7682 else
7683 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7684 fi
7685 hardcode_libdir_flag_spec='-R$libdir'
7686 hardcode_direct=yes
7687 hardcode_shlibpath_var=no
7688 ;;
7689
7690 newsos6)
7691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7692 hardcode_direct=yes
7693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7694 hardcode_libdir_separator=:
7695 hardcode_shlibpath_var=no
7696 ;;
7697
7698 openbsd*)
7699 if test -f /usr/libexec/ld.so; then
7700 hardcode_direct=yes
7701 hardcode_shlibpath_var=no
7702 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7703 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7704 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7705 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7706 export_dynamic_flag_spec='${wl}-E'
7707 else
7708 case $host_os in
7709 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7710 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7711 hardcode_libdir_flag_spec='-R$libdir'
7712 ;;
7713 *)
7714 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7715 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7716 ;;
7717 esac
7718 fi
7719 else
7720 ld_shlibs=no
7721 fi
7722 ;;
7723
7724 os2*)
7725 hardcode_libdir_flag_spec='-L$libdir'
7726 hardcode_minus_L=yes
7727 allow_undefined_flag=unsupported
7728 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'
7729 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7730 ;;
7731
7732 osf3*)
7733 if test "$GCC" = yes; then
7734 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7735 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7736 else
7737 allow_undefined_flag=' -expect_unresolved \*'
7738 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7739 fi
7740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7741 hardcode_libdir_separator=:
7742 ;;
7743
7744 osf4* | osf5*) # as osf3* with the addition of -msym flag
7745 if test "$GCC" = yes; then
7746 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7747 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7748 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7749 else
7750 allow_undefined_flag=' -expect_unresolved \*'
7751 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7752 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7753 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7754
7755 # Both c and cxx compiler support -rpath directly
7756 hardcode_libdir_flag_spec='-rpath $libdir'
7757 fi
7758 hardcode_libdir_separator=:
7759 ;;
7760
7761 solaris*)
7762 no_undefined_flag=' -z text'
7763 if test "$GCC" = yes; then
7764 wlarc='${wl}'
7765 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7766 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7767 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7768 else
7769 wlarc=''
7770 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7771 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7772 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7773 fi
7774 hardcode_libdir_flag_spec='-R$libdir'
7775 hardcode_shlibpath_var=no
7776 case $host_os in
7777 solaris2.[0-5] | solaris2.[0-5].*) ;;
7778 *)
7779 # The compiler driver will combine and reorder linker options,
7780 # but understands `-z linker_flag'. GCC discards it without `$wl',
7781 # but is careful enough not to reorder.
7782 # Supported since Solaris 2.6 (maybe 2.5.1?)
7783 if test "$GCC" = yes; then
7784 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7785 else
7786 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7787 fi
7788 ;;
7789 esac
7790 link_all_deplibs=yes
7791 ;;
7792
7793 sunos4*)
7794 if test "x$host_vendor" = xsequent; then
7795 # Use $CC to link under sequent, because it throws in some extra .o
7796 # files that make .init and .fini sections work.
7797 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7798 else
7799 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7800 fi
7801 hardcode_libdir_flag_spec='-L$libdir'
7802 hardcode_direct=yes
7803 hardcode_minus_L=yes
7804 hardcode_shlibpath_var=no
7805 ;;
7806
7807 sysv4)
7808 case $host_vendor in
7809 sni)
7810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7811 hardcode_direct=yes # is this really true???
7812 ;;
7813 siemens)
7814 ## LD is ld it makes a PLAMLIB
7815 ## CC just makes a GrossModule.
7816 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7817 reload_cmds='$CC -r -o $output$reload_objs'
7818 hardcode_direct=no
7819 ;;
7820 motorola)
7821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7822 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7823 ;;
7824 esac
7825 runpath_var='LD_RUN_PATH'
7826 hardcode_shlibpath_var=no
7827 ;;
7828
7829 sysv4.3*)
7830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7831 hardcode_shlibpath_var=no
7832 export_dynamic_flag_spec='-Bexport'
7833 ;;
7834
7835 sysv4*MP*)
7836 if test -d /usr/nec; then
7837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7838 hardcode_shlibpath_var=no
7839 runpath_var=LD_RUN_PATH
7840 hardcode_runpath_var=yes
7841 ld_shlibs=yes
7842 fi
7843 ;;
7844
7845 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7846 no_undefined_flag='${wl}-z,text'
7847 archive_cmds_need_lc=no
7848 hardcode_shlibpath_var=no
7849 runpath_var='LD_RUN_PATH'
7850
7851 if test "$GCC" = yes; then
7852 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7853 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7854 else
7855 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7856 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7857 fi
7858 ;;
7859
7860 sysv5* | sco3.2v5* | sco5v6*)
7861 # Note: We can NOT use -z defs as we might desire, because we do not
7862 # link with -lc, and that would cause any symbols used from libc to
7863 # always be unresolved, which means just about no library would
7864 # ever link correctly. If we're not using GNU ld we use -z text
7865 # though, which does catch some bad symbols but isn't as heavy-handed
7866 # as -z defs.
7867 no_undefined_flag='${wl}-z,text'
7868 allow_undefined_flag='${wl}-z,nodefs'
7869 archive_cmds_need_lc=no
7870 hardcode_shlibpath_var=no
7871 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7872 hardcode_libdir_separator=':'
7873 link_all_deplibs=yes
7874 export_dynamic_flag_spec='${wl}-Bexport'
7875 runpath_var='LD_RUN_PATH'
7876
7877 if test "$GCC" = yes; then
7878 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7879 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7880 else
7881 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7882 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7883 fi
7884 ;;
7885
7886 uts4*)
7887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7888 hardcode_libdir_flag_spec='-L$libdir'
7889 hardcode_shlibpath_var=no
7890 ;;
7891
7892 *)
7893 ld_shlibs=no
7894 ;;
7895 esac
7896 fi
7897
7898{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7899echo "${ECHO_T}$ld_shlibs" >&6; }
7900test "$ld_shlibs" = no && can_build_shared=no
7901
7902#
7903# Do we need to explicitly link libc?
7904#
7905case "x$archive_cmds_need_lc" in
7906x|xyes)
7907 # Assume -lc should be added
7908 archive_cmds_need_lc=yes
7909
7910 if test "$enable_shared" = yes && test "$GCC" = yes; then
7911 case $archive_cmds in
7912 *'~'*)
7913 # FIXME: we may have to deal with multi-command sequences.
7914 ;;
7915 '$CC '*)
7916 # Test whether the compiler implicitly links with -lc since on some
7917 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7918 # to ld, don't add -lc before -lgcc.
7919 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7920echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7921 $rm conftest*
7922 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7923
7924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7925 (eval $ac_compile) 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } 2>conftest.err; then
7929 soname=conftest
7930 lib=conftest
7931 libobjs=conftest.$ac_objext
7932 deplibs=
7933 wl=$lt_prog_compiler_wl
7934 pic_flag=$lt_prog_compiler_pic
7935 compiler_flags=-v
7936 linker_flags=-v
7937 verstring=
7938 output_objdir=.
7939 libname=conftest
7940 lt_save_allow_undefined_flag=$allow_undefined_flag
7941 allow_undefined_flag=
7942 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7943 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7944 ac_status=$?
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }
7947 then
7948 archive_cmds_need_lc=no
7949 else
7950 archive_cmds_need_lc=yes
7951 fi
7952 allow_undefined_flag=$lt_save_allow_undefined_flag
7953 else
7954 cat conftest.err 1>&5
7955 fi
7956 $rm conftest*
7957 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7958echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7959 ;;
7960 esac
7961 fi
7962 ;;
7963esac
7964
7965{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7966echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7967library_names_spec=
7968libname_spec='lib$name'
7969soname_spec=
7970shrext_cmds=".so"
7971postinstall_cmds=
7972postuninstall_cmds=
7973finish_cmds=
7974finish_eval=
7975shlibpath_var=
7976shlibpath_overrides_runpath=unknown
7977version_type=none
7978dynamic_linker="$host_os ld.so"
7979sys_lib_dlsearch_path_spec="/lib /usr/lib"
7980
7981if test "$GCC" = yes; then
7982 case $host_os in
7983 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7984 *) lt_awk_arg="/^libraries:/" ;;
7985 esac
7986 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7987 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
7988 # if the path contains ";" then we assume it to be the separator
7989 # otherwise default to the standard path separator (i.e. ":") - it is
7990 # assumed that no part of a normal pathname contains ";" but that should
7991 # okay in the real world where ";" in dirpaths is itself problematic.
7992 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7993 else
7994 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7995 fi
7996 # Ok, now we have the path, separated by spaces, we can step through it
7997 # and add multilib dir if necessary.
7998 lt_tmp_lt_search_path_spec=
7999 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8000 for lt_sys_path in $lt_search_path_spec; do
8001 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8002 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8003 else
8004 test -d "$lt_sys_path" && \
8005 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8006 fi
8007 done
8008 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8009BEGIN {RS=" "; FS="/|\n";} {
8010 lt_foo="";
8011 lt_count=0;
8012 for (lt_i = NF; lt_i > 0; lt_i--) {
8013 if ($lt_i != "" && $lt_i != ".") {
8014 if ($lt_i == "..") {
8015 lt_count++;
8016 } else {
8017 if (lt_count == 0) {
8018 lt_foo="/" $lt_i lt_foo;
8019 } else {
8020 lt_count--;
8021 }
8022 }
8023 }
8024 }
8025 if (lt_foo != "") { lt_freq[lt_foo]++; }
8026 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8027}'`
8028 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8029else
8030 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8031fi
8032need_lib_prefix=unknown
8033hardcode_into_libs=no
8034
8035# when you set need_version to no, make sure it does not cause -set_version
8036# flags to be left without arguments
8037need_version=unknown
8038
8039case $host_os in
8040aix3*)
8041 version_type=linux
8042 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8043 shlibpath_var=LIBPATH
8044
8045 # AIX 3 has no versioning support, so we append a major version to the name.
8046 soname_spec='${libname}${release}${shared_ext}$major'
8047 ;;
8048
8049aix[4-9]*)
8050 version_type=linux
8051 need_lib_prefix=no
8052 need_version=no
8053 hardcode_into_libs=yes
8054 if test "$host_cpu" = ia64; then
8055 # AIX 5 supports IA64
8056 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8057 shlibpath_var=LD_LIBRARY_PATH
8058 else
8059 # With GCC up to 2.95.x, collect2 would create an import file
8060 # for dependence libraries. The import file would start with
8061 # the line `#! .'. This would cause the generated library to
8062 # depend on `.', always an invalid library. This was fixed in
8063 # development snapshots of GCC prior to 3.0.
8064 case $host_os in
8065 aix4 | aix4.[01] | aix4.[01].*)
8066 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8067 echo ' yes '
8068 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8069 :
8070 else
8071 can_build_shared=no
8072 fi
8073 ;;
8074 esac
8075 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8076 # soname into executable. Probably we can add versioning support to
8077 # collect2, so additional links can be useful in future.
8078 if test "$aix_use_runtimelinking" = yes; then
8079 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8080 # instead of lib<name>.a to let people know that these are not
8081 # typical AIX shared libraries.
8082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8083 else
8084 # We preserve .a as extension for shared libraries through AIX4.2
8085 # and later when we are not doing run time linking.
8086 library_names_spec='${libname}${release}.a $libname.a'
8087 soname_spec='${libname}${release}${shared_ext}$major'
8088 fi
8089 shlibpath_var=LIBPATH
8090 fi
8091 ;;
8092
8093amigaos*)
8094 library_names_spec='$libname.ixlibrary $libname.a'
8095 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8096 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'
8097 ;;
8098
8099beos*)
8100 library_names_spec='${libname}${shared_ext}'
8101 dynamic_linker="$host_os ld.so"
8102 shlibpath_var=LIBRARY_PATH
8103 ;;
8104
8105bsdi[45]*)
8106 version_type=linux
8107 need_version=no
8108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8109 soname_spec='${libname}${release}${shared_ext}$major'
8110 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8111 shlibpath_var=LD_LIBRARY_PATH
8112 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8113 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8114 # the default ld.so.conf also contains /usr/contrib/lib and
8115 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8116 # libtool to hard-code these into programs
8117 ;;
8118
8119cygwin* | mingw* | pw32*)
8120 version_type=windows
8121 shrext_cmds=".dll"
8122 need_version=no
8123 need_lib_prefix=no
8124
8125 case $GCC,$host_os in
8126 yes,cygwin* | yes,mingw* | yes,pw32*)
8127 library_names_spec='$libname.dll.a'
8128 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8129 postinstall_cmds='base_file=`basename \${file}`~
8130 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8131 dldir=$destdir/`dirname \$dlpath`~
8132 test -d \$dldir || mkdir -p \$dldir~
8133 $install_prog $dir/$dlname \$dldir/$dlname~
8134 chmod a+x \$dldir/$dlname'
8135 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8136 dlpath=$dir/\$dldll~
8137 $rm \$dlpath'
8138 shlibpath_overrides_runpath=yes
8139
8140 case $host_os in
8141 cygwin*)
8142 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8143 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8144 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8145 ;;
8146 mingw*)
8147 # MinGW DLLs use traditional 'lib' prefix
8148 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8149 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8150 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8151 # It is most probably a Windows format PATH printed by
8152 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8153 # path with ; separators, and with drive letters. We can handle the
8154 # drive letters (cygwin fileutils understands them), so leave them,
8155 # especially as we might pass files found there to a mingw objdump,
8156 # which wouldn't understand a cygwinified path. Ahh.
8157 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8158 else
8159 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8160 fi
8161 ;;
8162 pw32*)
8163 # pw32 DLLs use 'pw' prefix rather than 'lib'
8164 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8165 ;;
8166 esac
8167 ;;
8168
8169 *)
8170 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8171 ;;
8172 esac
8173 dynamic_linker='Win32 ld.exe'
8174 # FIXME: first we should search . and the directory the executable is in
8175 shlibpath_var=PATH
8176 ;;
8177
8178darwin* | rhapsody*)
8179 dynamic_linker="$host_os dyld"
8180 version_type=darwin
8181 need_lib_prefix=no
8182 need_version=no
8183 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8184 soname_spec='${libname}${release}${major}$shared_ext'
8185 shlibpath_overrides_runpath=yes
8186 shlibpath_var=DYLD_LIBRARY_PATH
8187 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8188
8189 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8190 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8191 ;;
8192
8193dgux*)
8194 version_type=linux
8195 need_lib_prefix=no
8196 need_version=no
8197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8198 soname_spec='${libname}${release}${shared_ext}$major'
8199 shlibpath_var=LD_LIBRARY_PATH
8200 ;;
8201
8202freebsd1*)
8203 dynamic_linker=no
8204 ;;
8205
8206freebsd* | dragonfly*)
8207 # DragonFly does not have aout. When/if they implement a new
8208 # versioning mechanism, adjust this.
8209 if test -x /usr/bin/objformat; then
8210 objformat=`/usr/bin/objformat`
8211 else
8212 case $host_os in
8213 freebsd[123]*) objformat=aout ;;
8214 *) objformat=elf ;;
8215 esac
8216 fi
8217 version_type=freebsd-$objformat
8218 case $version_type in
8219 freebsd-elf*)
8220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8221 need_version=no
8222 need_lib_prefix=no
8223 ;;
8224 freebsd-*)
8225 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8226 need_version=yes
8227 ;;
8228 esac
8229 shlibpath_var=LD_LIBRARY_PATH
8230 case $host_os in
8231 freebsd2*)
8232 shlibpath_overrides_runpath=yes
8233 ;;
8234 freebsd3.[01]* | freebsdelf3.[01]*)
8235 shlibpath_overrides_runpath=yes
8236 hardcode_into_libs=yes
8237 ;;
8238 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8239 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8240 shlibpath_overrides_runpath=no
8241 hardcode_into_libs=yes
8242 ;;
8243 *) # from 4.6 on, and DragonFly
8244 shlibpath_overrides_runpath=yes
8245 hardcode_into_libs=yes
8246 ;;
8247 esac
8248 ;;
8249
8250gnu*)
8251 version_type=linux
8252 need_lib_prefix=no
8253 need_version=no
8254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8255 soname_spec='${libname}${release}${shared_ext}$major'
8256 shlibpath_var=LD_LIBRARY_PATH
8257 hardcode_into_libs=yes
8258 ;;
8259
8260hpux9* | hpux10* | hpux11*)
8261 # Give a soname corresponding to the major version so that dld.sl refuses to
8262 # link against other versions.
8263 version_type=sunos
8264 need_lib_prefix=no
8265 need_version=no
8266 case $host_cpu in
8267 ia64*)
8268 shrext_cmds='.so'
8269 hardcode_into_libs=yes
8270 dynamic_linker="$host_os dld.so"
8271 shlibpath_var=LD_LIBRARY_PATH
8272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8274 soname_spec='${libname}${release}${shared_ext}$major'
8275 if test "X$HPUX_IA64_MODE" = X32; then
8276 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8277 else
8278 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8279 fi
8280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8281 ;;
8282 hppa*64*)
8283 shrext_cmds='.sl'
8284 hardcode_into_libs=yes
8285 dynamic_linker="$host_os dld.sl"
8286 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8289 soname_spec='${libname}${release}${shared_ext}$major'
8290 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8292 ;;
8293 *)
8294 shrext_cmds='.sl'
8295 dynamic_linker="$host_os dld.sl"
8296 shlibpath_var=SHLIB_PATH
8297 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8299 soname_spec='${libname}${release}${shared_ext}$major'
8300 ;;
8301 esac
8302 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8303 postinstall_cmds='chmod 555 $lib'
8304 ;;
8305
8306interix[3-9]*)
8307 version_type=linux
8308 need_lib_prefix=no
8309 need_version=no
8310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8311 soname_spec='${libname}${release}${shared_ext}$major'
8312 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8313 shlibpath_var=LD_LIBRARY_PATH
8314 shlibpath_overrides_runpath=no
8315 hardcode_into_libs=yes
8316 ;;
8317
8318irix5* | irix6* | nonstopux*)
8319 case $host_os in
8320 nonstopux*) version_type=nonstopux ;;
8321 *)
8322 if test "$lt_cv_prog_gnu_ld" = yes; then
8323 version_type=linux
8324 else
8325 version_type=irix
8326 fi ;;
8327 esac
8328 need_lib_prefix=no
8329 need_version=no
8330 soname_spec='${libname}${release}${shared_ext}$major'
8331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8332 case $host_os in
8333 irix5* | nonstopux*)
8334 libsuff= shlibsuff=
8335 ;;
8336 *)
8337 case $LD in # libtool.m4 will add one of these switches to LD
8338 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8339 libsuff= shlibsuff= libmagic=32-bit;;
8340 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8341 libsuff=32 shlibsuff=N32 libmagic=N32;;
8342 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8343 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8344 *) libsuff= shlibsuff= libmagic=never-match;;
8345 esac
8346 ;;
8347 esac
8348 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8349 shlibpath_overrides_runpath=no
8350 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8351 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8352 hardcode_into_libs=yes
8353 ;;
8354
8355# No shared lib support for Linux oldld, aout, or coff.
8356linux*oldld* | linux*aout* | linux*coff*)
8357 dynamic_linker=no
8358 ;;
8359
8360# This must be Linux ELF.
8361linux* | k*bsd*-gnu)
8362 version_type=linux
8363 need_lib_prefix=no
8364 need_version=no
8365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8366 soname_spec='${libname}${release}${shared_ext}$major'
8367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8368 shlibpath_var=LD_LIBRARY_PATH
8369 shlibpath_overrides_runpath=no
8370 # This implies no fast_install, which is unacceptable.
8371 # Some rework will be needed to allow for fast_install
8372 # before this can be enabled.
8373 hardcode_into_libs=yes
8374
8375 # Append ld.so.conf contents to the search path
8376 if test -f /etc/ld.so.conf; then
8377 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' ' '`
8378 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8379 fi
8380
8381 # We used to test for /lib/ld.so.1 and disable shared libraries on
8382 # powerpc, because MkLinux only supported shared libraries with the
8383 # GNU dynamic linker. Since this was broken with cross compilers,
8384 # most powerpc-linux boxes support dynamic linking these days and
8385 # people can always --disable-shared, the test was removed, and we
8386 # assume the GNU/Linux dynamic linker is in use.
8387 dynamic_linker='GNU/Linux ld.so'
8388 ;;
8389
8390netbsdelf*-gnu)
8391 version_type=linux
8392 need_lib_prefix=no
8393 need_version=no
8394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8395 soname_spec='${libname}${release}${shared_ext}$major'
8396 shlibpath_var=LD_LIBRARY_PATH
8397 shlibpath_overrides_runpath=no
8398 hardcode_into_libs=yes
8399 dynamic_linker='NetBSD ld.elf_so'
8400 ;;
8401
8402netbsd*)
8403 version_type=sunos
8404 need_lib_prefix=no
8405 need_version=no
8406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8409 dynamic_linker='NetBSD (a.out) ld.so'
8410 else
8411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8412 soname_spec='${libname}${release}${shared_ext}$major'
8413 dynamic_linker='NetBSD ld.elf_so'
8414 fi
8415 shlibpath_var=LD_LIBRARY_PATH
8416 shlibpath_overrides_runpath=yes
8417 hardcode_into_libs=yes
8418 ;;
8419
8420newsos6)
8421 version_type=linux
8422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8423 shlibpath_var=LD_LIBRARY_PATH
8424 shlibpath_overrides_runpath=yes
8425 ;;
8426
8427nto-qnx*)
8428 version_type=linux
8429 need_lib_prefix=no
8430 need_version=no
8431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8432 soname_spec='${libname}${release}${shared_ext}$major'
8433 shlibpath_var=LD_LIBRARY_PATH
8434 shlibpath_overrides_runpath=yes
8435 ;;
8436
8437openbsd*)
8438 version_type=sunos
8439 sys_lib_dlsearch_path_spec="/usr/lib"
8440 need_lib_prefix=no
8441 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8442 case $host_os in
8443 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8444 *) need_version=no ;;
8445 esac
8446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8448 shlibpath_var=LD_LIBRARY_PATH
8449 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8450 case $host_os in
8451 openbsd2.[89] | openbsd2.[89].*)
8452 shlibpath_overrides_runpath=no
8453 ;;
8454 *)
8455 shlibpath_overrides_runpath=yes
8456 ;;
8457 esac
8458 else
8459 shlibpath_overrides_runpath=yes
8460 fi
8461 ;;
8462
8463os2*)
8464 libname_spec='$name'
8465 shrext_cmds=".dll"
8466 need_lib_prefix=no
8467 library_names_spec='$libname${shared_ext} $libname.a'
8468 dynamic_linker='OS/2 ld.exe'
8469 shlibpath_var=LIBPATH
8470 ;;
8471
8472osf3* | osf4* | osf5*)
8473 version_type=osf
8474 need_lib_prefix=no
8475 need_version=no
8476 soname_spec='${libname}${release}${shared_ext}$major'
8477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8478 shlibpath_var=LD_LIBRARY_PATH
8479 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8480 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8481 ;;
8482
8483rdos*)
8484 dynamic_linker=no
8485 ;;
8486
8487solaris*)
8488 version_type=linux
8489 need_lib_prefix=no
8490 need_version=no
8491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8492 soname_spec='${libname}${release}${shared_ext}$major'
8493 shlibpath_var=LD_LIBRARY_PATH
8494 shlibpath_overrides_runpath=yes
8495 hardcode_into_libs=yes
8496 # ldd complains unless libraries are executable
8497 postinstall_cmds='chmod +x $lib'
8498 ;;
8499
8500sunos4*)
8501 version_type=sunos
8502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8503 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8504 shlibpath_var=LD_LIBRARY_PATH
8505 shlibpath_overrides_runpath=yes
8506 if test "$with_gnu_ld" = yes; then
8507 need_lib_prefix=no
8508 fi
8509 need_version=yes
8510 ;;
8511
8512sysv4 | sysv4.3*)
8513 version_type=linux
8514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8515 soname_spec='${libname}${release}${shared_ext}$major'
8516 shlibpath_var=LD_LIBRARY_PATH
8517 case $host_vendor in
8518 sni)
8519 shlibpath_overrides_runpath=no
8520 need_lib_prefix=no
8521 export_dynamic_flag_spec='${wl}-Blargedynsym'
8522 runpath_var=LD_RUN_PATH
8523 ;;
8524 siemens)
8525 need_lib_prefix=no
8526 ;;
8527 motorola)
8528 need_lib_prefix=no
8529 need_version=no
8530 shlibpath_overrides_runpath=no
8531 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8532 ;;
8533 esac
8534 ;;
8535
8536sysv4*MP*)
8537 if test -d /usr/nec ;then
8538 version_type=linux
8539 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8540 soname_spec='$libname${shared_ext}.$major'
8541 shlibpath_var=LD_LIBRARY_PATH
8542 fi
8543 ;;
8544
8545sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8546 version_type=freebsd-elf
8547 need_lib_prefix=no
8548 need_version=no
8549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8550 soname_spec='${libname}${release}${shared_ext}$major'
8551 shlibpath_var=LD_LIBRARY_PATH
8552 hardcode_into_libs=yes
8553 if test "$with_gnu_ld" = yes; then
8554 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8555 shlibpath_overrides_runpath=no
8556 else
8557 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8558 shlibpath_overrides_runpath=yes
8559 case $host_os in
8560 sco3.2v5*)
8561 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8562 ;;
8563 esac
8564 fi
8565 sys_lib_dlsearch_path_spec='/usr/lib'
8566 ;;
8567
8568uts4*)
8569 version_type=linux
8570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8571 soname_spec='${libname}${release}${shared_ext}$major'
8572 shlibpath_var=LD_LIBRARY_PATH
8573 ;;
8574
8575*)
8576 dynamic_linker=no
8577 ;;
8578esac
8579{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8580echo "${ECHO_T}$dynamic_linker" >&6; }
8581test "$dynamic_linker" = no && can_build_shared=no
8582
8583if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585else
8586 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
8587fi
8588
8589sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
8590if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8592else
8593 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
8594fi
8595
8596sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
8597
8598variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8599if test "$GCC" = yes; then
8600 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8601fi
8602
8603{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8604echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8605hardcode_action=
8606if test -n "$hardcode_libdir_flag_spec" || \
8607 test -n "$runpath_var" || \
8608 test "X$hardcode_automatic" = "Xyes" ; then
8609
8610 # We can hardcode non-existant directories.
8611 if test "$hardcode_direct" != no &&
8612 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8613 # have to relink, otherwise we might link with an installed library
8614 # when we should be linking with a yet-to-be-installed one
8615 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8616 test "$hardcode_minus_L" != no; then
8617 # Linking always hardcodes the temporary library directory.
8618 hardcode_action=relink
8619 else
8620 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8621 hardcode_action=immediate
8622 fi
8623else
8624 # We cannot hardcode anything, or else we can only hardcode existing
8625 # directories.
8626 hardcode_action=unsupported
8627fi
8628{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8629echo "${ECHO_T}$hardcode_action" >&6; }
8630
8631if test "$hardcode_action" = relink; then
8632 # Fast installation is not supported
8633 enable_fast_install=no
8634elif test "$shlibpath_overrides_runpath" = yes ||
8635 test "$enable_shared" = no; then
8636 # Fast installation is not necessary
8637 enable_fast_install=needless
8638fi
8639
8640striplib=
8641old_striplib=
8642{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8643echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8644if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8645 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8646 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8647 { echo "$as_me:$LINENO: result: yes" >&5
8648echo "${ECHO_T}yes" >&6; }
8649else
8650# FIXME - insert some real tests, host_os isn't really good enough
8651 case $host_os in
8652 darwin*)
8653 if test -n "$STRIP" ; then
8654 striplib="$STRIP -x"
8655 old_striplib="$STRIP -S"
8656 { echo "$as_me:$LINENO: result: yes" >&5
8657echo "${ECHO_T}yes" >&6; }
8658 else
8659 { echo "$as_me:$LINENO: result: no" >&5
8660echo "${ECHO_T}no" >&6; }
8661fi
8662 ;;
8663 *)
8664 { echo "$as_me:$LINENO: result: no" >&5
8665echo "${ECHO_T}no" >&6; }
8666 ;;
8667 esac
8668fi
8669
8670if test "x$enable_dlopen" != xyes; then
8671 enable_dlopen=unknown
8672 enable_dlopen_self=unknown
8673 enable_dlopen_self_static=unknown
8674else
8675 lt_cv_dlopen=no
8676 lt_cv_dlopen_libs=
8677
8678 case $host_os in
8679 beos*)
8680 lt_cv_dlopen="load_add_on"
8681 lt_cv_dlopen_libs=
8682 lt_cv_dlopen_self=yes
8683 ;;
8684
8685 mingw* | pw32*)
8686 lt_cv_dlopen="LoadLibrary"
8687 lt_cv_dlopen_libs=
8688 ;;
8689
8690 cygwin*)
8691 lt_cv_dlopen="dlopen"
8692 lt_cv_dlopen_libs=
8693 ;;
8694
8695 darwin*)
8696 # if libdl is installed we need to link against it
8697 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8698echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8699if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8701else
8702 ac_check_lib_save_LIBS=$LIBS
8703LIBS="-ldl $LIBS"
8704cat >conftest.$ac_ext <<_ACEOF
8705/* confdefs.h. */
8706_ACEOF
8707cat confdefs.h >>conftest.$ac_ext
8708cat >>conftest.$ac_ext <<_ACEOF
8709/* end confdefs.h. */
8710
8711/* Override any GCC internal prototype to avoid an error.
8712 Use char because int might match the return type of a GCC
8713 builtin and then its argument prototype would still apply. */
8714#ifdef __cplusplus
8715extern "C"
8716#endif
8717char dlopen ();
8718int
8719main ()
8720{
8721return dlopen ();
8722 ;
8723 return 0;
8724}
8725_ACEOF
8726rm -f conftest.$ac_objext conftest$ac_exeext
8727if { (ac_try="$ac_link"
8728case "(($ac_try" in
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8731esac
8732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_link") 2>conftest.er1
8734 ac_status=$?
8735 grep -v '^ *+' conftest.er1 >conftest.err
8736 rm -f conftest.er1
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } && {
8740 test -z "$ac_c_werror_flag" ||
8741 test ! -s conftest.err
8742 } && test -s conftest$ac_exeext &&
8743 $as_test_x conftest$ac_exeext; then
8744 ac_cv_lib_dl_dlopen=yes
8745else
8746 echo "$as_me: failed program was:" >&5
8747sed 's/^/| /' conftest.$ac_ext >&5
8748
8749 ac_cv_lib_dl_dlopen=no
8750fi
8751
8752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8753 conftest$ac_exeext conftest.$ac_ext
8754LIBS=$ac_check_lib_save_LIBS
8755fi
8756{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8757echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8758if test $ac_cv_lib_dl_dlopen = yes; then
8759 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8760else
8761
8762 lt_cv_dlopen="dyld"
8763 lt_cv_dlopen_libs=
8764 lt_cv_dlopen_self=yes
8765
8766fi
8767
8768 ;;
8769
8770 *)
8771 { echo "$as_me:$LINENO: checking for shl_load" >&5
8772echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8773if test "${ac_cv_func_shl_load+set}" = set; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8775else
8776 cat >conftest.$ac_ext <<_ACEOF
8777/* confdefs.h. */
8778_ACEOF
8779cat confdefs.h >>conftest.$ac_ext
8780cat >>conftest.$ac_ext <<_ACEOF
8781/* end confdefs.h. */
8782/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8784#define shl_load innocuous_shl_load
8785
8786/* System header to define __stub macros and hopefully few prototypes,
8787 which can conflict with char shl_load (); below.
8788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8789 <limits.h> exists even on freestanding compilers. */
8790
8791#ifdef __STDC__
8792# include <limits.h>
8793#else
8794# include <assert.h>
8795#endif
8796
8797#undef shl_load
8798
8799/* Override any GCC internal prototype to avoid an error.
8800 Use char because int might match the return type of a GCC
8801 builtin and then its argument prototype would still apply. */
8802#ifdef __cplusplus
8803extern "C"
8804#endif
8805char shl_load ();
8806/* The GNU C library defines this for functions which it implements
8807 to always fail with ENOSYS. Some functions are actually named
8808 something starting with __ and the normal name is an alias. */
8809#if defined __stub_shl_load || defined __stub___shl_load
8810choke me
8811#endif
8812
8813int
8814main ()
8815{
8816return shl_load ();
8817 ;
8818 return 0;
8819}
8820_ACEOF
8821rm -f conftest.$ac_objext conftest$ac_exeext
8822if { (ac_try="$ac_link"
8823case "(($ac_try" in
8824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825 *) ac_try_echo=$ac_try;;
8826esac
8827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828 (eval "$ac_link") 2>conftest.er1
8829 ac_status=$?
8830 grep -v '^ *+' conftest.er1 >conftest.err
8831 rm -f conftest.er1
8832 cat conftest.err >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } && {
8835 test -z "$ac_c_werror_flag" ||
8836 test ! -s conftest.err
8837 } && test -s conftest$ac_exeext &&
8838 $as_test_x conftest$ac_exeext; then
8839 ac_cv_func_shl_load=yes
8840else
8841 echo "$as_me: failed program was:" >&5
8842sed 's/^/| /' conftest.$ac_ext >&5
8843
8844 ac_cv_func_shl_load=no
8845fi
8846
8847rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8848 conftest$ac_exeext conftest.$ac_ext
8849fi
8850{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8851echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8852if test $ac_cv_func_shl_load = yes; then
8853 lt_cv_dlopen="shl_load"
8854else
8855 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8856echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8857if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8859else
8860 ac_check_lib_save_LIBS=$LIBS
8861LIBS="-ldld $LIBS"
8862cat >conftest.$ac_ext <<_ACEOF
8863/* confdefs.h. */
8864_ACEOF
8865cat confdefs.h >>conftest.$ac_ext
8866cat >>conftest.$ac_ext <<_ACEOF
8867/* end confdefs.h. */
8868
8869/* Override any GCC internal prototype to avoid an error.
8870 Use char because int might match the return type of a GCC
8871 builtin and then its argument prototype would still apply. */
8872#ifdef __cplusplus
8873extern "C"
8874#endif
8875char shl_load ();
8876int
8877main ()
8878{
8879return shl_load ();
8880 ;
8881 return 0;
8882}
8883_ACEOF
8884rm -f conftest.$ac_objext conftest$ac_exeext
8885if { (ac_try="$ac_link"
8886case "(($ac_try" in
8887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888 *) ac_try_echo=$ac_try;;
8889esac
8890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891 (eval "$ac_link") 2>conftest.er1
8892 ac_status=$?
8893 grep -v '^ *+' conftest.er1 >conftest.err
8894 rm -f conftest.er1
8895 cat conftest.err >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest$ac_exeext &&
8901 $as_test_x conftest$ac_exeext; then
8902 ac_cv_lib_dld_shl_load=yes
8903else
8904 echo "$as_me: failed program was:" >&5
8905sed 's/^/| /' conftest.$ac_ext >&5
8906
8907 ac_cv_lib_dld_shl_load=no
8908fi
8909
8910rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8911 conftest$ac_exeext conftest.$ac_ext
8912LIBS=$ac_check_lib_save_LIBS
8913fi
8914{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8915echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8916if test $ac_cv_lib_dld_shl_load = yes; then
8917 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
8918else
8919 { echo "$as_me:$LINENO: checking for dlopen" >&5
8920echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8921if test "${ac_cv_func_dlopen+set}" = set; then
8922 echo $ECHO_N "(cached) $ECHO_C" >&6
8923else
8924 cat >conftest.$ac_ext <<_ACEOF
8925/* confdefs.h. */
8926_ACEOF
8927cat confdefs.h >>conftest.$ac_ext
8928cat >>conftest.$ac_ext <<_ACEOF
8929/* end confdefs.h. */
8930/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8932#define dlopen innocuous_dlopen
8933
8934/* System header to define __stub macros and hopefully few prototypes,
8935 which can conflict with char dlopen (); below.
8936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8937 <limits.h> exists even on freestanding compilers. */
8938
8939#ifdef __STDC__
8940# include <limits.h>
8941#else
8942# include <assert.h>
8943#endif
8944
8945#undef dlopen
8946
8947/* Override any GCC internal prototype to avoid an error.
8948 Use char because int might match the return type of a GCC
8949 builtin and then its argument prototype would still apply. */
8950#ifdef __cplusplus
8951extern "C"
8952#endif
8953char dlopen ();
8954/* The GNU C library defines this for functions which it implements
8955 to always fail with ENOSYS. Some functions are actually named
8956 something starting with __ and the normal name is an alias. */
8957#if defined __stub_dlopen || defined __stub___dlopen
8958choke me
8959#endif
8960
8961int
8962main ()
8963{
8964return dlopen ();
8965 ;
8966 return 0;
8967}
8968_ACEOF
8969rm -f conftest.$ac_objext conftest$ac_exeext
8970if { (ac_try="$ac_link"
8971case "(($ac_try" in
8972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8974esac
8975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_link") 2>conftest.er1
8977 ac_status=$?
8978 grep -v '^ *+' conftest.er1 >conftest.err
8979 rm -f conftest.er1
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } && {
8983 test -z "$ac_c_werror_flag" ||
8984 test ! -s conftest.err
8985 } && test -s conftest$ac_exeext &&
8986 $as_test_x conftest$ac_exeext; then
8987 ac_cv_func_dlopen=yes
8988else
8989 echo "$as_me: failed program was:" >&5
8990sed 's/^/| /' conftest.$ac_ext >&5
8991
8992 ac_cv_func_dlopen=no
8993fi
8994
8995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8996 conftest$ac_exeext conftest.$ac_ext
8997fi
8998{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8999echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9000if test $ac_cv_func_dlopen = yes; then
9001 lt_cv_dlopen="dlopen"
9002else
9003 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9004echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9005if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9007else
9008 ac_check_lib_save_LIBS=$LIBS
9009LIBS="-ldl $LIBS"
9010cat >conftest.$ac_ext <<_ACEOF
9011/* confdefs.h. */
9012_ACEOF
9013cat confdefs.h >>conftest.$ac_ext
9014cat >>conftest.$ac_ext <<_ACEOF
9015/* end confdefs.h. */
9016
9017/* Override any GCC internal prototype to avoid an error.
9018 Use char because int might match the return type of a GCC
9019 builtin and then its argument prototype would still apply. */
9020#ifdef __cplusplus
9021extern "C"
9022#endif
9023char dlopen ();
9024int
9025main ()
9026{
9027return dlopen ();
9028 ;
9029 return 0;
9030}
9031_ACEOF
9032rm -f conftest.$ac_objext conftest$ac_exeext
9033if { (ac_try="$ac_link"
9034case "(($ac_try" in
9035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036 *) ac_try_echo=$ac_try;;
9037esac
9038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9039 (eval "$ac_link") 2>conftest.er1
9040 ac_status=$?
9041 grep -v '^ *+' conftest.er1 >conftest.err
9042 rm -f conftest.er1
9043 cat conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } && {
9046 test -z "$ac_c_werror_flag" ||
9047 test ! -s conftest.err
9048 } && test -s conftest$ac_exeext &&
9049 $as_test_x conftest$ac_exeext; then
9050 ac_cv_lib_dl_dlopen=yes
9051else
9052 echo "$as_me: failed program was:" >&5
9053sed 's/^/| /' conftest.$ac_ext >&5
9054
9055 ac_cv_lib_dl_dlopen=no
9056fi
9057
9058rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9059 conftest$ac_exeext conftest.$ac_ext
9060LIBS=$ac_check_lib_save_LIBS
9061fi
9062{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9063echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9064if test $ac_cv_lib_dl_dlopen = yes; then
9065 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9066else
9067 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9068echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9069if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9071else
9072 ac_check_lib_save_LIBS=$LIBS
9073LIBS="-lsvld $LIBS"
9074cat >conftest.$ac_ext <<_ACEOF
9075/* confdefs.h. */
9076_ACEOF
9077cat confdefs.h >>conftest.$ac_ext
9078cat >>conftest.$ac_ext <<_ACEOF
9079/* end confdefs.h. */
9080
9081/* Override any GCC internal prototype to avoid an error.
9082 Use char because int might match the return type of a GCC
9083 builtin and then its argument prototype would still apply. */
9084#ifdef __cplusplus
9085extern "C"
9086#endif
9087char dlopen ();
9088int
9089main ()
9090{
9091return dlopen ();
9092 ;
9093 return 0;
9094}
9095_ACEOF
9096rm -f conftest.$ac_objext conftest$ac_exeext
9097if { (ac_try="$ac_link"
9098case "(($ac_try" in
9099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9100 *) ac_try_echo=$ac_try;;
9101esac
9102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9103 (eval "$ac_link") 2>conftest.er1
9104 ac_status=$?
9105 grep -v '^ *+' conftest.er1 >conftest.err
9106 rm -f conftest.er1
9107 cat conftest.err >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); } && {
9110 test -z "$ac_c_werror_flag" ||
9111 test ! -s conftest.err
9112 } && test -s conftest$ac_exeext &&
9113 $as_test_x conftest$ac_exeext; then
9114 ac_cv_lib_svld_dlopen=yes
9115else
9116 echo "$as_me: failed program was:" >&5
9117sed 's/^/| /' conftest.$ac_ext >&5
9118
9119 ac_cv_lib_svld_dlopen=no
9120fi
9121
9122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9123 conftest$ac_exeext conftest.$ac_ext
9124LIBS=$ac_check_lib_save_LIBS
9125fi
9126{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9127echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9128if test $ac_cv_lib_svld_dlopen = yes; then
9129 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9130else
9131 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9132echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9133if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9135else
9136 ac_check_lib_save_LIBS=$LIBS
9137LIBS="-ldld $LIBS"
9138cat >conftest.$ac_ext <<_ACEOF
9139/* confdefs.h. */
9140_ACEOF
9141cat confdefs.h >>conftest.$ac_ext
9142cat >>conftest.$ac_ext <<_ACEOF
9143/* end confdefs.h. */
9144
9145/* Override any GCC internal prototype to avoid an error.
9146 Use char because int might match the return type of a GCC
9147 builtin and then its argument prototype would still apply. */
9148#ifdef __cplusplus
9149extern "C"
9150#endif
9151char dld_link ();
9152int
9153main ()
9154{
9155return dld_link ();
9156 ;
9157 return 0;
9158}
9159_ACEOF
9160rm -f conftest.$ac_objext conftest$ac_exeext
9161if { (ac_try="$ac_link"
9162case "(($ac_try" in
9163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9164 *) ac_try_echo=$ac_try;;
9165esac
9166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9167 (eval "$ac_link") 2>conftest.er1
9168 ac_status=$?
9169 grep -v '^ *+' conftest.er1 >conftest.err
9170 rm -f conftest.er1
9171 cat conftest.err >&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); } && {
9174 test -z "$ac_c_werror_flag" ||
9175 test ! -s conftest.err
9176 } && test -s conftest$ac_exeext &&
9177 $as_test_x conftest$ac_exeext; then
9178 ac_cv_lib_dld_dld_link=yes
9179else
9180 echo "$as_me: failed program was:" >&5
9181sed 's/^/| /' conftest.$ac_ext >&5
9182
9183 ac_cv_lib_dld_dld_link=no
9184fi
9185
9186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9187 conftest$ac_exeext conftest.$ac_ext
9188LIBS=$ac_check_lib_save_LIBS
9189fi
9190{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9191echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9192if test $ac_cv_lib_dld_dld_link = yes; then
9193 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9194fi
9195
9196
9197fi
9198
9199
9200fi
9201
9202
9203fi
9204
9205
9206fi
9207
9208
9209fi
9210
9211 ;;
9212 esac
9213
9214 if test "x$lt_cv_dlopen" != xno; then
9215 enable_dlopen=yes
9216 else
9217 enable_dlopen=no
9218 fi
9219
9220 case $lt_cv_dlopen in
9221 dlopen)
9222 save_CPPFLAGS="$CPPFLAGS"
9223 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9224
9225 save_LDFLAGS="$LDFLAGS"
9226 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9227
9228 save_LIBS="$LIBS"
9229 LIBS="$lt_cv_dlopen_libs $LIBS"
9230
9231 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9232echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9233if test "${lt_cv_dlopen_self+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9235else
9236 if test "$cross_compiling" = yes; then :
9237 lt_cv_dlopen_self=cross
9238else
9239 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9240 lt_status=$lt_dlunknown
9241 cat > conftest.$ac_ext <<EOF
9242#line 9242 "configure"
9243#include "confdefs.h"
9244
9245#if HAVE_DLFCN_H
9246#include <dlfcn.h>
9247#endif
9248
9249#include <stdio.h>
9250
9251#ifdef RTLD_GLOBAL
9252# define LT_DLGLOBAL RTLD_GLOBAL
9253#else
9254# ifdef DL_GLOBAL
9255# define LT_DLGLOBAL DL_GLOBAL
9256# else
9257# define LT_DLGLOBAL 0
9258# endif
9259#endif
9260
9261/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9262 find out it does not work in some platform. */
9263#ifndef LT_DLLAZY_OR_NOW
9264# ifdef RTLD_LAZY
9265# define LT_DLLAZY_OR_NOW RTLD_LAZY
9266# else
9267# ifdef DL_LAZY
9268# define LT_DLLAZY_OR_NOW DL_LAZY
9269# else
9270# ifdef RTLD_NOW
9271# define LT_DLLAZY_OR_NOW RTLD_NOW
9272# else
9273# ifdef DL_NOW
9274# define LT_DLLAZY_OR_NOW DL_NOW
9275# else
9276# define LT_DLLAZY_OR_NOW 0
9277# endif
9278# endif
9279# endif
9280# endif
9281#endif
9282
9283#ifdef __cplusplus
9284extern "C" void exit (int);
9285#endif
9286
9287void fnord() { int i=42;}
9288int main ()
9289{
9290 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9291 int status = $lt_dlunknown;
9292
9293 if (self)
9294 {
9295 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9296 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9297 /* dlclose (self); */
9298 }
9299 else
9300 puts (dlerror ());
9301
9302 exit (status);
9303}
9304EOF
9305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9306 (eval $ac_link) 2>&5
9307 ac_status=$?
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9310 (./conftest; exit; ) >&5 2>/dev/null
9311 lt_status=$?
9312 case x$lt_status in
9313 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9314 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9315 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9316 esac
9317 else :
9318 # compilation failed
9319 lt_cv_dlopen_self=no
9320 fi
9321fi
9322rm -fr conftest*
9323
9324
9325fi
9326{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9327echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9328
9329 if test "x$lt_cv_dlopen_self" = xyes; then
9330 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9331 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9332echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9333if test "${lt_cv_dlopen_self_static+set}" = set; then
9334 echo $ECHO_N "(cached) $ECHO_C" >&6
9335else
9336 if test "$cross_compiling" = yes; then :
9337 lt_cv_dlopen_self_static=cross
9338else
9339 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9340 lt_status=$lt_dlunknown
9341 cat > conftest.$ac_ext <<EOF
9342#line 9342 "configure"
9343#include "confdefs.h"
9344
9345#if HAVE_DLFCN_H
9346#include <dlfcn.h>
9347#endif
9348
9349#include <stdio.h>
9350
9351#ifdef RTLD_GLOBAL
9352# define LT_DLGLOBAL RTLD_GLOBAL
9353#else
9354# ifdef DL_GLOBAL
9355# define LT_DLGLOBAL DL_GLOBAL
9356# else
9357# define LT_DLGLOBAL 0
9358# endif
9359#endif
9360
9361/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9362 find out it does not work in some platform. */
9363#ifndef LT_DLLAZY_OR_NOW
9364# ifdef RTLD_LAZY
9365# define LT_DLLAZY_OR_NOW RTLD_LAZY
9366# else
9367# ifdef DL_LAZY
9368# define LT_DLLAZY_OR_NOW DL_LAZY
9369# else
9370# ifdef RTLD_NOW
9371# define LT_DLLAZY_OR_NOW RTLD_NOW
9372# else
9373# ifdef DL_NOW
9374# define LT_DLLAZY_OR_NOW DL_NOW
9375# else
9376# define LT_DLLAZY_OR_NOW 0
9377# endif
9378# endif
9379# endif
9380# endif
9381#endif
9382
9383#ifdef __cplusplus
9384extern "C" void exit (int);
9385#endif
9386
9387void fnord() { int i=42;}
9388int main ()
9389{
9390 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9391 int status = $lt_dlunknown;
9392
9393 if (self)
9394 {
9395 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9396 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9397 /* dlclose (self); */
9398 }
9399 else
9400 puts (dlerror ());
9401
9402 exit (status);
9403}
9404EOF
9405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9406 (eval $ac_link) 2>&5
9407 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9410 (./conftest; exit; ) >&5 2>/dev/null
9411 lt_status=$?
9412 case x$lt_status in
9413 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9414 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9415 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9416 esac
9417 else :
9418 # compilation failed
9419 lt_cv_dlopen_self_static=no
9420 fi
9421fi
9422rm -fr conftest*
9423
9424
9425fi
9426{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9427echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9428 fi
9429
9430 CPPFLAGS="$save_CPPFLAGS"
9431 LDFLAGS="$save_LDFLAGS"
9432 LIBS="$save_LIBS"
9433 ;;
9434 esac
9435
9436 case $lt_cv_dlopen_self in
9437 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9438 *) enable_dlopen_self=unknown ;;
9439 esac
9440
9441 case $lt_cv_dlopen_self_static in
9442 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9443 *) enable_dlopen_self_static=unknown ;;
9444 esac
9445fi
9446
9447
9448# Report which library types will actually be built
9449{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9450echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9451{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9452echo "${ECHO_T}$can_build_shared" >&6; }
9453
9454{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9455echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9456test "$can_build_shared" = "no" && enable_shared=no
9457
9458# On AIX, shared libraries and static libraries use the same namespace, and
9459# are all built from PIC.
9460case $host_os in
9461aix3*)
9462 test "$enable_shared" = yes && enable_static=no
9463 if test -n "$RANLIB"; then
9464 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9465 postinstall_cmds='$RANLIB $lib'
9466 fi
9467 ;;
9468
9469aix[4-9]*)
9470 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9471 test "$enable_shared" = yes && enable_static=no
9472 fi
9473 ;;
9474esac
9475{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9476echo "${ECHO_T}$enable_shared" >&6; }
9477
9478{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9479echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9480# Make sure either enable_shared or enable_static is yes.
9481test "$enable_shared" = yes || enable_static=yes
9482{ echo "$as_me:$LINENO: result: $enable_static" >&5
9483echo "${ECHO_T}$enable_static" >&6; }
9484
9485# The else clause should only fire when bootstrapping the
9486# libtool distribution, otherwise you forgot to ship ltmain.sh
9487# with your package, and you will get complaints that there are
9488# no rules to generate ltmain.sh.
9489if test -f "$ltmain"; then
9490 # See if we are running on zsh, and set the options which allow our commands through
9491 # without removal of \ escapes.
9492 if test -n "${ZSH_VERSION+set}" ; then
9493 setopt NO_GLOB_SUBST
9494 fi
9495 # Now quote all the things that may contain metacharacters while being
9496 # careful not to overquote the AC_SUBSTed values. We take copies of the
9497 # variables and quote the copies for generation of the libtool script.
9498 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9499 SED SHELL STRIP \
9500 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9501 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9502 deplibs_check_method reload_flag reload_cmds need_locks \
9503 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9504 lt_cv_sys_global_symbol_to_c_name_address \
9505 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9506 old_postinstall_cmds old_postuninstall_cmds \
9507 compiler \
9508 CC \
9509 LD \
9510 lt_prog_compiler_wl \
9511 lt_prog_compiler_pic \
9512 lt_prog_compiler_static \
9513 lt_prog_compiler_no_builtin_flag \
9514 export_dynamic_flag_spec \
9515 thread_safe_flag_spec \
9516 whole_archive_flag_spec \
9517 enable_shared_with_static_runtimes \
9518 old_archive_cmds \
9519 old_archive_from_new_cmds \
9520 predep_objects \
9521 postdep_objects \
9522 predeps \
9523 postdeps \
9524 compiler_lib_search_path \
9525 compiler_lib_search_dirs \
9526 archive_cmds \
9527 archive_expsym_cmds \
9528 postinstall_cmds \
9529 postuninstall_cmds \
9530 old_archive_from_expsyms_cmds \
9531 allow_undefined_flag \
9532 no_undefined_flag \
9533 export_symbols_cmds \
9534 hardcode_libdir_flag_spec \
9535 hardcode_libdir_flag_spec_ld \
9536 hardcode_libdir_separator \
9537 hardcode_automatic \
9538 module_cmds \
9539 module_expsym_cmds \
9540 lt_cv_prog_compiler_c_o \
9541 fix_srcfile_path \
9542 exclude_expsyms \
9543 include_expsyms; do
9544
9545 case $var in
9546 old_archive_cmds | \
9547 old_archive_from_new_cmds | \
9548 archive_cmds | \
9549 archive_expsym_cmds | \
9550 module_cmds | \
9551 module_expsym_cmds | \
9552 old_archive_from_expsyms_cmds | \
9553 export_symbols_cmds | \
9554 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9555 postinstall_cmds | postuninstall_cmds | \
9556 old_postinstall_cmds | old_postuninstall_cmds | \
9557 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9558 # Double-quote double-evaled strings.
9559 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9560 ;;
9561 *)
9562 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9563 ;;
9564 esac
9565 done
9566
9567 case $lt_echo in
9568 *'\$0 --fallback-echo"')
9569 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9570 ;;
9571 esac
9572
9573cfgfile="${ofile}T"
9574 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9575 $rm -f "$cfgfile"
9576 { echo "$as_me:$LINENO: creating $ofile" >&5
9577echo "$as_me: creating $ofile" >&6;}
9578
9579 cat <<__EOF__ >> "$cfgfile"
9580#! $SHELL
9581
9582# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9583# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9584# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9585#
9586# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
9587# Free Software Foundation, Inc.
9588#
9589# This file is part of GNU Libtool:
9590# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9591#
9592# This program is free software; you can redistribute it and/or modify
9593# it under the terms of the GNU General Public License as published by
9594# the Free Software Foundation; either version 2 of the License, or
9595# (at your option) any later version.
9596#
9597# This program is distributed in the hope that it will be useful, but
9598# WITHOUT ANY WARRANTY; without even the implied warranty of
9599# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9600# General Public License for more details.
9601#
9602# You should have received a copy of the GNU General Public License
9603# along with this program; if not, write to the Free Software
9604# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9605#
9606# As a special exception to the GNU General Public License, if you
9607# distribute this file as part of a program that contains a
9608# configuration script generated by Autoconf, you may include it under
9609# the same distribution terms that you use for the rest of that program.
9610
9611# A sed program that does not truncate output.
9612SED=$lt_SED
9613
9614# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9615Xsed="$SED -e 1s/^X//"
9616
9617# The HP-UX ksh and POSIX shell print the target directory to stdout
9618# if CDPATH is set.
9619(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9620
9621# The names of the tagged configurations supported by this script.
9622available_tags=
9623
9624# ### BEGIN LIBTOOL CONFIG
9625
9626# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9627
9628# Shell to use when invoking shell scripts.
9629SHELL=$lt_SHELL
9630
9631# Whether or not to build shared libraries.
9632build_libtool_libs=$enable_shared
9633
9634# Whether or not to build static libraries.
9635build_old_libs=$enable_static
9636
9637# Whether or not to add -lc for building shared libraries.
9638build_libtool_need_lc=$archive_cmds_need_lc
9639
9640# Whether or not to disallow shared libs when runtime libs are static
9641allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9642
9643# Whether or not to optimize for fast installation.
9644fast_install=$enable_fast_install
9645
9646# The host system.
9647host_alias=$host_alias
9648host=$host
9649host_os=$host_os
9650
9651# The build system.
9652build_alias=$build_alias
9653build=$build
9654build_os=$build_os
9655
9656# An echo program that does not interpret backslashes.
9657echo=$lt_echo
9658
9659# The archiver.
9660AR=$lt_AR
9661AR_FLAGS=$lt_AR_FLAGS
9662
9663# A C compiler.
9664LTCC=$lt_LTCC
9665
9666# LTCC compiler flags.
9667LTCFLAGS=$lt_LTCFLAGS
9668
9669# A language-specific compiler.
9670CC=$lt_compiler
9671
9672# Is the compiler the GNU C compiler?
9673with_gcc=$GCC
9674
9675# An ERE matcher.
9676EGREP=$lt_EGREP
9677
9678# The linker used to build libraries.
9679LD=$lt_LD
9680
9681# Whether we need hard or soft links.
9682LN_S=$lt_LN_S
9683
9684# A BSD-compatible nm program.
9685NM=$lt_NM
9686
9687# A symbol stripping program
9688STRIP=$lt_STRIP
9689
9690# Used to examine libraries when file_magic_cmd begins "file"
9691MAGIC_CMD=$MAGIC_CMD
9692
9693# Used on cygwin: DLL creation program.
9694DLLTOOL="$DLLTOOL"
9695
9696# Used on cygwin: object dumper.
9697OBJDUMP="$OBJDUMP"
9698
9699# Used on cygwin: assembler.
9700AS="$AS"
9701
9702# The name of the directory that contains temporary libtool files.
9703objdir=$objdir
9704
9705# How to create reloadable object files.
9706reload_flag=$lt_reload_flag
9707reload_cmds=$lt_reload_cmds
9708
9709# How to pass a linker flag through the compiler.
9710wl=$lt_lt_prog_compiler_wl
9711
9712# Object file suffix (normally "o").
9713objext="$ac_objext"
9714
9715# Old archive suffix (normally "a").
9716libext="$libext"
9717
9718# Shared library suffix (normally ".so").
9719shrext_cmds='$shrext_cmds'
9720
9721# Executable file suffix (normally "").
9722exeext="$exeext"
9723
9724# Additional compiler flags for building library objects.
9725pic_flag=$lt_lt_prog_compiler_pic
9726pic_mode=$pic_mode
9727
9728# What is the maximum length of a command?
9729max_cmd_len=$lt_cv_sys_max_cmd_len
9730
9731# Does compiler simultaneously support -c and -o options?
9732compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9733
9734# Must we lock files when doing compilation?
9735need_locks=$lt_need_locks
9736
9737# Do we need the lib prefix for modules?
9738need_lib_prefix=$need_lib_prefix
9739
9740# Do we need a version for libraries?
9741need_version=$need_version
9742
9743# Whether dlopen is supported.
9744dlopen_support=$enable_dlopen
9745
9746# Whether dlopen of programs is supported.
9747dlopen_self=$enable_dlopen_self
9748
9749# Whether dlopen of statically linked programs is supported.
9750dlopen_self_static=$enable_dlopen_self_static
9751
9752# Compiler flag to prevent dynamic linking.
9753link_static_flag=$lt_lt_prog_compiler_static
9754
9755# Compiler flag to turn off builtin functions.
9756no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9757
9758# Compiler flag to allow reflexive dlopens.
9759export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9760
9761# Compiler flag to generate shared objects directly from archives.
9762whole_archive_flag_spec=$lt_whole_archive_flag_spec
9763
9764# Compiler flag to generate thread-safe objects.
9765thread_safe_flag_spec=$lt_thread_safe_flag_spec
9766
9767# Library versioning type.
9768version_type=$version_type
9769
9770# Format of library name prefix.
9771libname_spec=$lt_libname_spec
9772
9773# List of archive names. First name is the real one, the rest are links.
9774# The last name is the one that the linker finds with -lNAME.
9775library_names_spec=$lt_library_names_spec
9776
9777# The coded name of the library, if different from the real name.
9778soname_spec=$lt_soname_spec
9779
9780# Commands used to build and install an old-style archive.
9781RANLIB=$lt_RANLIB
9782old_archive_cmds=$lt_old_archive_cmds
9783old_postinstall_cmds=$lt_old_postinstall_cmds
9784old_postuninstall_cmds=$lt_old_postuninstall_cmds
9785
9786# Create an old-style archive from a shared archive.
9787old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9788
9789# Create a temporary old-style archive to link instead of a shared archive.
9790old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9791
9792# Commands used to build and install a shared archive.
9793archive_cmds=$lt_archive_cmds
9794archive_expsym_cmds=$lt_archive_expsym_cmds
9795postinstall_cmds=$lt_postinstall_cmds
9796postuninstall_cmds=$lt_postuninstall_cmds
9797
9798# Commands used to build a loadable module (assumed same as above if empty)
9799module_cmds=$lt_module_cmds
9800module_expsym_cmds=$lt_module_expsym_cmds
9801
9802# Commands to strip libraries.
9803old_striplib=$lt_old_striplib
9804striplib=$lt_striplib
9805
9806# Dependencies to place before the objects being linked to create a
9807# shared library.
9808predep_objects=$lt_predep_objects
9809
9810# Dependencies to place after the objects being linked to create a
9811# shared library.
9812postdep_objects=$lt_postdep_objects
9813
9814# Dependencies to place before the objects being linked to create a
9815# shared library.
9816predeps=$lt_predeps
9817
9818# Dependencies to place after the objects being linked to create a
9819# shared library.
9820postdeps=$lt_postdeps
9821
9822# The directories searched by this compiler when creating a shared
9823# library
9824compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
9825
9826# The library search path used internally by the compiler when linking
9827# a shared library.
9828compiler_lib_search_path=$lt_compiler_lib_search_path
9829
9830# Method to check whether dependent libraries are shared objects.
9831deplibs_check_method=$lt_deplibs_check_method
9832
9833# Command to use when deplibs_check_method == file_magic.
9834file_magic_cmd=$lt_file_magic_cmd
9835
9836# Flag that allows shared libraries with undefined symbols to be built.
9837allow_undefined_flag=$lt_allow_undefined_flag
9838
9839# Flag that forces no undefined symbols.
9840no_undefined_flag=$lt_no_undefined_flag
9841
9842# Commands used to finish a libtool library installation in a directory.
9843finish_cmds=$lt_finish_cmds
9844
9845# Same as above, but a single script fragment to be evaled but not shown.
9846finish_eval=$lt_finish_eval
9847
9848# Take the output of nm and produce a listing of raw symbols and C names.
9849global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9850
9851# Transform the output of nm in a proper C declaration
9852global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9853
9854# Transform the output of nm in a C name address pair
9855global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9856
9857# This is the shared library runtime path variable.
9858runpath_var=$runpath_var
9859
9860# This is the shared library path variable.
9861shlibpath_var=$shlibpath_var
9862
9863# Is shlibpath searched before the hard-coded library search path?
9864shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9865
9866# How to hardcode a shared library path into an executable.
9867hardcode_action=$hardcode_action
9868
9869# Whether we should hardcode library paths into libraries.
9870hardcode_into_libs=$hardcode_into_libs
9871
9872# Flag to hardcode \$libdir into a binary during linking.
9873# This must work even if \$libdir does not exist.
9874hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9875
9876# If ld is used when linking, flag to hardcode \$libdir into
9877# a binary during linking. This must work even if \$libdir does
9878# not exist.
9879hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9880
9881# Whether we need a single -rpath flag with a separated argument.
9882hardcode_libdir_separator=$lt_hardcode_libdir_separator
9883
9884# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9885# resulting binary.
9886hardcode_direct=$hardcode_direct
9887
9888# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9889# resulting binary.
9890hardcode_minus_L=$hardcode_minus_L
9891
9892# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9893# the resulting binary.
9894hardcode_shlibpath_var=$hardcode_shlibpath_var
9895
9896# Set to yes if building a shared library automatically hardcodes DIR into the library
9897# and all subsequent libraries and executables linked against it.
9898hardcode_automatic=$hardcode_automatic
9899
9900# Variables whose values should be saved in libtool wrapper scripts and
9901# restored at relink time.
9902variables_saved_for_relink="$variables_saved_for_relink"
9903
9904# Whether libtool must link a program against all its dependency libraries.
9905link_all_deplibs=$link_all_deplibs
9906
9907# Compile-time system search path for libraries
9908sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9909
9910# Run-time system search path for libraries
9911sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9912
9913# Fix the shell variable \$srcfile for the compiler.
9914fix_srcfile_path=$lt_fix_srcfile_path
9915
9916# Set to yes if exported symbols are required.
9917always_export_symbols=$always_export_symbols
9918
9919# The commands to list exported symbols.
9920export_symbols_cmds=$lt_export_symbols_cmds
9921
9922# The commands to extract the exported symbol list from a shared archive.
9923extract_expsyms_cmds=$lt_extract_expsyms_cmds
9924
9925# Symbols that should not be listed in the preloaded symbols.
9926exclude_expsyms=$lt_exclude_expsyms
9927
9928# Symbols that must always be exported.
9929include_expsyms=$lt_include_expsyms
9930
9931# ### END LIBTOOL CONFIG
9932
9933__EOF__
9934
9935
9936 case $host_os in
9937 aix3*)
9938 cat <<\EOF >> "$cfgfile"
9939
9940# AIX sometimes has problems with the GCC collect2 program. For some
9941# reason, if we set the COLLECT_NAMES environment variable, the problems
9942# vanish in a puff of smoke.
9943if test "X${COLLECT_NAMES+set}" != Xset; then
9944 COLLECT_NAMES=
9945 export COLLECT_NAMES
9946fi
9947EOF
9948 ;;
9949 esac
9950
9951 # We use sed instead of cat because bash on DJGPP gets confused if
9952 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9953 # text mode, it properly converts lines to CR/LF. This bash problem
9954 # is reportedly fixed, but why not run on old versions too?
9955 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9956
9957 mv -f "$cfgfile" "$ofile" || \
9958 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9959 chmod +x "$ofile"
9960
9961else
9962 # If there is no Makefile yet, we rely on a make rule to execute
9963 # `config.status --recheck' to rerun these tests and create the
9964 # libtool script then.
9965 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9966 if test -f "$ltmain_in"; then
9967 test -f Makefile && make "$ltmain"
9968 fi
9969fi
9970
9971
9972ac_ext=c
9973ac_cpp='$CPP $CPPFLAGS'
9974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9976ac_compiler_gnu=$ac_cv_c_compiler_gnu
9977
9978CC="$lt_save_CC"
9979
9980
9981# Check whether --with-tags was given.
9982if test "${with_tags+set}" = set; then
9983 withval=$with_tags; tagnames="$withval"
9984fi
9985
9986
9987if test -f "$ltmain" && test -n "$tagnames"; then
9988 if test ! -f "${ofile}"; then
9989 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9990echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9991 fi
9992
9993 if test -z "$LTCC"; then
9994 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9995 if test -z "$LTCC"; then
9996 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9997echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9998 else
9999 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10000echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10001 fi
10002 fi
10003 if test -z "$LTCFLAGS"; then
10004 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10005 fi
10006
10007 # Extract list of available tagged configurations in $ofile.
10008 # Note that this assumes the entire list is on one line.
10009 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10010
10011 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10012 for tagname in $tagnames; do
10013 IFS="$lt_save_ifs"
10014 # Check whether tagname contains only valid characters
10015 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10016 "") ;;
10017 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10018echo "$as_me: error: invalid tag name: $tagname" >&2;}
10019 { (exit 1); exit 1; }; }
10020 ;;
10021 esac
10022
10023 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10024 then
10025 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10026echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10027 { (exit 1); exit 1; }; }
10028 fi
10029
10030 # Update the list of available tags.
10031 if test -n "$tagname"; then
10032 echo appending configuration tag \"$tagname\" to $ofile
10033
10034 case $tagname in
10035 CXX)
10036 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10037 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10038 (test "X$CXX" != "Xg++"))) ; then
10039 :
10040 else
10041 tagname=""
10042 fi
10043 ;;
10044
10045 F77)
10046 if test -n "$F77" && test "X$F77" != "Xno"; then
10047 :
10048 else
10049 tagname=""
10050 fi
10051 ;;
10052
10053 GCJ)
10054 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
10055
10056
10057# Source file extension for Java test sources.
10058ac_ext=java
10059
10060# Object file extension for compiled Java test sources.
10061objext=o
10062objext_GCJ=$objext
10063
10064# Code to be used in simple compile tests
10065lt_simple_compile_test_code="class foo {}"
10066
10067# Code to be used in simple link tests
10068lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
10069
10070# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10071
10072# If no C compiler was specified, use CC.
10073LTCC=${LTCC-"$CC"}
10074
10075# If no C compiler flags were specified, use CFLAGS.
10076LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10077
10078# Allow CC to be a program name with arguments.
10079compiler=$CC
10080
10081
10082# save warnings/boilerplate of simple test code
10083ac_outfile=conftest.$ac_objext
10084echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10085eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10086_lt_compiler_boilerplate=`cat conftest.err`
10087$rm conftest*
10088
10089ac_outfile=conftest.$ac_objext
10090echo "$lt_simple_link_test_code" >conftest.$ac_ext
10091eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10092_lt_linker_boilerplate=`cat conftest.err`
10093$rm -r conftest*
10094
10095
10096# Allow CC to be a program name with arguments.
10097lt_save_CC="$CC"
10098CC=${GCJ-"gcj"}
10099compiler=$CC
10100compiler_GCJ=$CC
10101for cc_temp in $compiler""; do
10102 case $cc_temp in
10103 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10104 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10105 \-*) ;;
10106 *) break;;
10107 esac
10108done
10109cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10110
10111
10112# GCJ did not exist at the time GCC didn't implicitly link libc in.
10113archive_cmds_need_lc_GCJ=no
10114
10115old_archive_cmds_GCJ=$old_archive_cmds
10116
10117
10118lt_prog_compiler_no_builtin_flag_GCJ=
10119
10120if test "$GCC" = yes; then
10121 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
10122
10123
10124{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10125echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
10126if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10128else
10129 lt_cv_prog_compiler_rtti_exceptions=no
10130 ac_outfile=conftest.$ac_objext
10131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10132 lt_compiler_flag="-fno-rtti -fno-exceptions"
10133 # Insert the option either (1) after the last *FLAGS variable, or
10134 # (2) before a word containing "conftest.", or (3) at the end.
10135 # Note that $ac_compile itself does not contain backslashes and begins
10136 # with a dollar sign (not a hyphen), so the echo should work correctly.
10137 # The option is referenced via a variable to avoid confusing sed.
10138 lt_compile=`echo "$ac_compile" | $SED \
10139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10141 -e 's:$: $lt_compiler_flag:'`
10142 (eval echo "\"\$as_me:10142: $lt_compile\"" >&5)
10143 (eval "$lt_compile" 2>conftest.err)
10144 ac_status=$?
10145 cat conftest.err >&5
10146 echo "$as_me:10146: \$? = $ac_status" >&5
10147 if (exit $ac_status) && test -s "$ac_outfile"; then
10148 # The compiler can only warn and ignore the option if not recognized
10149 # So say no if there are warnings other than the usual output.
10150 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10151 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10152 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10153 lt_cv_prog_compiler_rtti_exceptions=yes
10154 fi
10155 fi
10156 $rm conftest*
10157
10158fi
10159{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10160echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10161
10162if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10163 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
10164else
10165 :
10166fi
10167
10168fi
10169
10170lt_prog_compiler_wl_GCJ=
10171lt_prog_compiler_pic_GCJ=
10172lt_prog_compiler_static_GCJ=
10173
10174{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10175echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
10176
10177 if test "$GCC" = yes; then
10178 lt_prog_compiler_wl_GCJ='-Wl,'
10179 lt_prog_compiler_static_GCJ='-static'
10180
10181 case $host_os in
10182 aix*)
10183 # All AIX code is PIC.
10184 if test "$host_cpu" = ia64; then
10185 # AIX 5 now supports IA64 processor
10186 lt_prog_compiler_static_GCJ='-Bstatic'
10187 fi
10188 ;;
10189
10190 amigaos*)
10191 # FIXME: we need at least 68020 code to build shared libraries, but
10192 # adding the `-m68020' flag to GCC prevents building anything better,
10193 # like `-m68040'.
10194 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
10195 ;;
10196
10197 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10198 # PIC is the default for these OSes.
10199 ;;
10200
10201 mingw* | cygwin* | pw32* | os2*)
10202 # This hack is so that the source file can tell whether it is being
10203 # built for inclusion in a dll (and should export symbols for example).
10204 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10205 # (--disable-auto-import) libraries
10206
10207 ;;
10208
10209 darwin* | rhapsody*)
10210 # PIC is the default on this platform
10211 # Common symbols not allowed in MH_DYLIB files
10212 lt_prog_compiler_pic_GCJ='-fno-common'
10213 ;;
10214
10215 interix[3-9]*)
10216 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10217 # Instead, we relocate shared libraries at runtime.
10218 ;;
10219
10220 msdosdjgpp*)
10221 # Just because we use GCC doesn't mean we suddenly get shared libraries
10222 # on systems that don't support them.
10223 lt_prog_compiler_can_build_shared_GCJ=no
10224 enable_shared=no
10225 ;;
10226
10227 sysv4*MP*)
10228 if test -d /usr/nec; then
10229 lt_prog_compiler_pic_GCJ=-Kconform_pic
10230 fi
10231 ;;
10232
10233 hpux*)
10234 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10235 # not for PA HP-UX.
10236 case $host_cpu in
10237 hppa*64*|ia64*)
10238 # +Z the default
10239 ;;
10240 *)
10241 lt_prog_compiler_pic_GCJ='-fPIC'
10242 ;;
10243 esac
10244 ;;
10245
10246 *)
10247 lt_prog_compiler_pic_GCJ='-fPIC'
10248 ;;
10249 esac
10250 else
10251 # PORTME Check for flag to pass linker flags through the system compiler.
10252 case $host_os in
10253 aix*)
10254 lt_prog_compiler_wl_GCJ='-Wl,'
10255 if test "$host_cpu" = ia64; then
10256 # AIX 5 now supports IA64 processor
10257 lt_prog_compiler_static_GCJ='-Bstatic'
10258 else
10259 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
10260 fi
10261 ;;
10262 darwin*)
10263 # PIC is the default on this platform
10264 # Common symbols not allowed in MH_DYLIB files
10265 case $cc_basename in
10266 xlc*)
10267 lt_prog_compiler_pic_GCJ='-qnocommon'
10268 lt_prog_compiler_wl_GCJ='-Wl,'
10269 ;;
10270 esac
10271 ;;
10272
10273 mingw* | cygwin* | pw32* | os2*)
10274 # This hack is so that the source file can tell whether it is being
10275 # built for inclusion in a dll (and should export symbols for example).
10276
10277 ;;
10278
10279 hpux9* | hpux10* | hpux11*)
10280 lt_prog_compiler_wl_GCJ='-Wl,'
10281 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10282 # not for PA HP-UX.
10283 case $host_cpu in
10284 hppa*64*|ia64*)
10285 # +Z the default
10286 ;;
10287 *)
10288 lt_prog_compiler_pic_GCJ='+Z'
10289 ;;
10290 esac
10291 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10292 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
10293 ;;
10294
10295 irix5* | irix6* | nonstopux*)
10296 lt_prog_compiler_wl_GCJ='-Wl,'
10297 # PIC (with -KPIC) is the default.
10298 lt_prog_compiler_static_GCJ='-non_shared'
10299 ;;
10300
10301 newsos6)
10302 lt_prog_compiler_pic_GCJ='-KPIC'
10303 lt_prog_compiler_static_GCJ='-Bstatic'
10304 ;;
10305
10306 linux* | k*bsd*-gnu)
10307 case $cc_basename in
10308 icc* | ecc*)
10309 lt_prog_compiler_wl_GCJ='-Wl,'
10310 lt_prog_compiler_pic_GCJ='-KPIC'
10311 lt_prog_compiler_static_GCJ='-static'
10312 ;;
10313 pgcc* | pgf77* | pgf90* | pgf95*)
10314 # Portland Group compilers (*not* the Pentium gcc compiler,
10315 # which looks to be a dead project)
10316 lt_prog_compiler_wl_GCJ='-Wl,'
10317 lt_prog_compiler_pic_GCJ='-fpic'
10318 lt_prog_compiler_static_GCJ='-Bstatic'
10319 ;;
10320 ccc*)
10321 lt_prog_compiler_wl_GCJ='-Wl,'
10322 # All Alpha code is PIC.
10323 lt_prog_compiler_static_GCJ='-non_shared'
10324 ;;
10325 *)
10326 case `$CC -V 2>&1 | sed 5q` in
10327 *Sun\ C*)
10328 # Sun C 5.9
10329 lt_prog_compiler_pic_GCJ='-KPIC'
10330 lt_prog_compiler_static_GCJ='-Bstatic'
10331 lt_prog_compiler_wl_GCJ='-Wl,'
10332 ;;
10333 *Sun\ F*)
10334 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10335 lt_prog_compiler_pic_GCJ='-KPIC'
10336 lt_prog_compiler_static_GCJ='-Bstatic'
10337 lt_prog_compiler_wl_GCJ=''
10338 ;;
10339 esac
10340 ;;
10341 esac
10342 ;;
10343
10344 osf3* | osf4* | osf5*)
10345 lt_prog_compiler_wl_GCJ='-Wl,'
10346 # All OSF/1 code is PIC.
10347 lt_prog_compiler_static_GCJ='-non_shared'
10348 ;;
10349
10350 rdos*)
10351 lt_prog_compiler_static_GCJ='-non_shared'
10352 ;;
10353
10354 solaris*)
10355 lt_prog_compiler_pic_GCJ='-KPIC'
10356 lt_prog_compiler_static_GCJ='-Bstatic'
10357 case $cc_basename in
10358 f77* | f90* | f95*)
10359 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
10360 *)
10361 lt_prog_compiler_wl_GCJ='-Wl,';;
10362 esac
10363 ;;
10364
10365 sunos4*)
10366 lt_prog_compiler_wl_GCJ='-Qoption ld '
10367 lt_prog_compiler_pic_GCJ='-PIC'
10368 lt_prog_compiler_static_GCJ='-Bstatic'
10369 ;;
10370
10371 sysv4 | sysv4.2uw2* | sysv4.3*)
10372 lt_prog_compiler_wl_GCJ='-Wl,'
10373 lt_prog_compiler_pic_GCJ='-KPIC'
10374 lt_prog_compiler_static_GCJ='-Bstatic'
10375 ;;
10376
10377 sysv4*MP*)
10378 if test -d /usr/nec ;then
10379 lt_prog_compiler_pic_GCJ='-Kconform_pic'
10380 lt_prog_compiler_static_GCJ='-Bstatic'
10381 fi
10382 ;;
10383
10384 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10385 lt_prog_compiler_wl_GCJ='-Wl,'
10386 lt_prog_compiler_pic_GCJ='-KPIC'
10387 lt_prog_compiler_static_GCJ='-Bstatic'
10388 ;;
10389
10390 unicos*)
10391 lt_prog_compiler_wl_GCJ='-Wl,'
10392 lt_prog_compiler_can_build_shared_GCJ=no
10393 ;;
10394
10395 uts4*)
10396 lt_prog_compiler_pic_GCJ='-pic'
10397 lt_prog_compiler_static_GCJ='-Bstatic'
10398 ;;
10399
10400 *)
10401 lt_prog_compiler_can_build_shared_GCJ=no
10402 ;;
10403 esac
10404 fi
10405
10406{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
10407echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
10408
10409#
10410# Check to make sure the PIC flag actually works.
10411#
10412if test -n "$lt_prog_compiler_pic_GCJ"; then
10413
10414{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
10415echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
10416if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10418else
10419 lt_cv_prog_compiler_pic_works_GCJ=no
10420 ac_outfile=conftest.$ac_objext
10421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10422 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
10423 # Insert the option either (1) after the last *FLAGS variable, or
10424 # (2) before a word containing "conftest.", or (3) at the end.
10425 # Note that $ac_compile itself does not contain backslashes and begins
10426 # with a dollar sign (not a hyphen), so the echo should work correctly.
10427 # The option is referenced via a variable to avoid confusing sed.
10428 lt_compile=`echo "$ac_compile" | $SED \
10429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10431 -e 's:$: $lt_compiler_flag:'`
10432 (eval echo "\"\$as_me:10432: $lt_compile\"" >&5)
10433 (eval "$lt_compile" 2>conftest.err)
10434 ac_status=$?
10435 cat conftest.err >&5
10436 echo "$as_me:10436: \$? = $ac_status" >&5
10437 if (exit $ac_status) && test -s "$ac_outfile"; then
10438 # The compiler can only warn and ignore the option if not recognized
10439 # So say no if there are warnings other than the usual output.
10440 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10443 lt_cv_prog_compiler_pic_works_GCJ=yes
10444 fi
10445 fi
10446 $rm conftest*
10447
10448fi
10449{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
10450echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
10451
10452if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
10453 case $lt_prog_compiler_pic_GCJ in
10454 "" | " "*) ;;
10455 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
10456 esac
10457else
10458 lt_prog_compiler_pic_GCJ=
10459 lt_prog_compiler_can_build_shared_GCJ=no
10460fi
10461
10462fi
10463case $host_os in
10464 # For platforms which do not support PIC, -DPIC is meaningless:
10465 *djgpp*)
10466 lt_prog_compiler_pic_GCJ=
10467 ;;
10468 *)
10469 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
10470 ;;
10471esac
10472
10473#
10474# Check to make sure the static flag actually works.
10475#
10476wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
10477{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10478echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
10479if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10481else
10482 lt_cv_prog_compiler_static_works_GCJ=no
10483 save_LDFLAGS="$LDFLAGS"
10484 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10485 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10487 # The linker can only warn and ignore the option if not recognized
10488 # So say no if there are warnings
10489 if test -s conftest.err; then
10490 # Append any errors to the config.log.
10491 cat conftest.err 1>&5
10492 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10494 if diff conftest.exp conftest.er2 >/dev/null; then
10495 lt_cv_prog_compiler_static_works_GCJ=yes
10496 fi
10497 else
10498 lt_cv_prog_compiler_static_works_GCJ=yes
10499 fi
10500 fi
10501 $rm -r conftest*
10502 LDFLAGS="$save_LDFLAGS"
10503
10504fi
10505{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
10506echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
10507
10508if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
10509 :
10510else
10511 lt_prog_compiler_static_GCJ=
10512fi
10513
10514
10515{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10516echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
10517if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10519else
10520 lt_cv_prog_compiler_c_o_GCJ=no
10521 $rm -r conftest 2>/dev/null
10522 mkdir conftest
10523 cd conftest
10524 mkdir out
10525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10526
10527 lt_compiler_flag="-o out/conftest2.$ac_objext"
10528 # Insert the option either (1) after the last *FLAGS variable, or
10529 # (2) before a word containing "conftest.", or (3) at the end.
10530 # Note that $ac_compile itself does not contain backslashes and begins
10531 # with a dollar sign (not a hyphen), so the echo should work correctly.
10532 lt_compile=`echo "$ac_compile" | $SED \
10533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10535 -e 's:$: $lt_compiler_flag:'`
10536 (eval echo "\"\$as_me:10536: $lt_compile\"" >&5)
10537 (eval "$lt_compile" 2>out/conftest.err)
10538 ac_status=$?
10539 cat out/conftest.err >&5
10540 echo "$as_me:10540: \$? = $ac_status" >&5
10541 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10542 then
10543 # The compiler can only warn and ignore the option if not recognized
10544 # So say no if there are warnings
10545 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10546 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10547 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10548 lt_cv_prog_compiler_c_o_GCJ=yes
10549 fi
10550 fi
10551 chmod u+w . 2>&5
10552 $rm conftest*
10553 # SGI C++ compiler will create directory out/ii_files/ for
10554 # template instantiation
10555 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10556 $rm out/* && rmdir out
10557 cd ..
10558 rmdir conftest
10559 $rm conftest*
10560
10561fi
10562{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
10563echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
10564
10565
10566hard_links="nottested"
10567if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
10568 # do not overwrite the value of need_locks provided by the user
10569 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10570echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
10571 hard_links=yes
10572 $rm conftest*
10573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10574 touch conftest.a
10575 ln conftest.a conftest.b 2>&5 || hard_links=no
10576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10577 { echo "$as_me:$LINENO: result: $hard_links" >&5
10578echo "${ECHO_T}$hard_links" >&6; }
10579 if test "$hard_links" = no; then
10580 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10581echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10582 need_locks=warn
10583 fi
10584else
10585 need_locks=no
10586fi
10587
10588{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10589echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10590
10591 runpath_var=
10592 allow_undefined_flag_GCJ=
10593 enable_shared_with_static_runtimes_GCJ=no
10594 archive_cmds_GCJ=
10595 archive_expsym_cmds_GCJ=
10596 old_archive_From_new_cmds_GCJ=
10597 old_archive_from_expsyms_cmds_GCJ=
10598 export_dynamic_flag_spec_GCJ=
10599 whole_archive_flag_spec_GCJ=
10600 thread_safe_flag_spec_GCJ=
10601 hardcode_libdir_flag_spec_GCJ=
10602 hardcode_libdir_flag_spec_ld_GCJ=
10603 hardcode_libdir_separator_GCJ=
10604 hardcode_direct_GCJ=no
10605 hardcode_minus_L_GCJ=no
10606 hardcode_shlibpath_var_GCJ=unsupported
10607 link_all_deplibs_GCJ=unknown
10608 hardcode_automatic_GCJ=no
10609 module_cmds_GCJ=
10610 module_expsym_cmds_GCJ=
10611 always_export_symbols_GCJ=no
10612 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10613 # include_expsyms should be a list of space-separated symbols to be *always*
10614 # included in the symbol list
10615 include_expsyms_GCJ=
10616 # exclude_expsyms can be an extended regexp of symbols to exclude
10617 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10618 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10619 # as well as any symbol that contains `d'.
10620 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10621 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10622 # platforms (ab)use it in PIC code, but their linkers get confused if
10623 # the symbol is explicitly referenced. Since portable code cannot
10624 # rely on this symbol name, it's probably fine to never include it in
10625 # preloaded symbol tables.
10626 # Exclude shared library initialization/finalization symbols.
10627 extract_expsyms_cmds=
10628 # Just being paranoid about ensuring that cc_basename is set.
10629 for cc_temp in $compiler""; do
10630 case $cc_temp in
10631 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10632 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10633 \-*) ;;
10634 *) break;;
10635 esac
10636done
10637cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10638
10639 case $host_os in
10640 cygwin* | mingw* | pw32*)
10641 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10642 # When not using gcc, we currently assume that we are using
10643 # Microsoft Visual C++.
10644 if test "$GCC" != yes; then
10645 with_gnu_ld=no
10646 fi
10647 ;;
10648 interix*)
10649 # we just hope/assume this is gcc and not c89 (= MSVC++)
10650 with_gnu_ld=yes
10651 ;;
10652 openbsd*)
10653 with_gnu_ld=no
10654 ;;
10655 esac
10656
10657 ld_shlibs_GCJ=yes
10658 if test "$with_gnu_ld" = yes; then
10659 # If archive_cmds runs LD, not CC, wlarc should be empty
10660 wlarc='${wl}'
10661
10662 # Set some defaults for GNU ld with shared library support. These
10663 # are reset later if shared libraries are not supported. Putting them
10664 # here allows them to be overridden if necessary.
10665 runpath_var=LD_RUN_PATH
10666 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
10667 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
10668 # ancient GNU ld didn't support --whole-archive et. al.
10669 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10670 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10671 else
10672 whole_archive_flag_spec_GCJ=
10673 fi
10674 supports_anon_versioning=no
10675 case `$LD -v 2>/dev/null` in
10676 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10677 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10678 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10679 *\ 2.11.*) ;; # other 2.11 versions
10680 *) supports_anon_versioning=yes ;;
10681 esac
10682
10683 # See if GNU ld supports shared libraries.
10684 case $host_os in
10685 aix[3-9]*)
10686 # On AIX/PPC, the GNU linker is very broken
10687 if test "$host_cpu" != ia64; then
10688 ld_shlibs_GCJ=no
10689 cat <<EOF 1>&2
10690
10691*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10692*** to be unable to reliably create shared libraries on AIX.
10693*** Therefore, libtool is disabling shared libraries support. If you
10694*** really care for shared libraries, you may want to modify your PATH
10695*** so that a non-GNU linker is found, and then restart.
10696
10697EOF
10698 fi
10699 ;;
10700
10701 amigaos*)
10702 archive_cmds_GCJ='$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)'
10703 hardcode_libdir_flag_spec_GCJ='-L$libdir'
10704 hardcode_minus_L_GCJ=yes
10705
10706 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10707 # that the semantics of dynamic libraries on AmigaOS, at least up
10708 # to version 4, is to share data among multiple programs linked
10709 # with the same dynamic library. Since this doesn't match the
10710 # behavior of shared libraries on other platforms, we can't use
10711 # them.
10712 ld_shlibs_GCJ=no
10713 ;;
10714
10715 beos*)
10716 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10717 allow_undefined_flag_GCJ=unsupported
10718 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10719 # support --undefined. This deserves some investigation. FIXME
10720 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10721 else
10722 ld_shlibs_GCJ=no
10723 fi
10724 ;;
10725
10726 cygwin* | mingw* | pw32*)
10727 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
10728 # as there is no search path for DLLs.
10729 hardcode_libdir_flag_spec_GCJ='-L$libdir'
10730 allow_undefined_flag_GCJ=unsupported
10731 always_export_symbols_GCJ=no
10732 enable_shared_with_static_runtimes_GCJ=yes
10733 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10734
10735 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10736 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10737 # If the export-symbols file already is a .def file (1st line
10738 # is EXPORTS), use it as is; otherwise, prepend...
10739 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10740 cp $export_symbols $output_objdir/$soname.def;
10741 else
10742 echo EXPORTS > $output_objdir/$soname.def;
10743 cat $export_symbols >> $output_objdir/$soname.def;
10744 fi~
10745 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10746 else
10747 ld_shlibs_GCJ=no
10748 fi
10749 ;;
10750
10751 interix[3-9]*)
10752 hardcode_direct_GCJ=no
10753 hardcode_shlibpath_var_GCJ=no
10754 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
10755 export_dynamic_flag_spec_GCJ='${wl}-E'
10756 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10757 # Instead, shared libraries are loaded at an image base (0x10000000 by
10758 # default) and relocated if they conflict, which is a slow very memory
10759 # consuming and fragmenting process. To avoid this, we pick a random,
10760 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10761 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10762 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10763 archive_expsym_cmds_GCJ='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'
10764 ;;
10765
10766 gnu* | linux* | k*bsd*-gnu)
10767 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10768 tmp_addflag=
10769 case $cc_basename,$host_cpu in
10770 pgcc*) # Portland Group C compiler
10771 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10772 tmp_addflag=' $pic_flag'
10773 ;;
10774 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10775 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10776 tmp_addflag=' $pic_flag -Mnomain' ;;
10777 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10778 tmp_addflag=' -i_dynamic' ;;
10779 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10780 tmp_addflag=' -i_dynamic -nofor_main' ;;
10781 ifc* | ifort*) # Intel Fortran compiler
10782 tmp_addflag=' -nofor_main' ;;
10783 esac
10784 case `$CC -V 2>&1 | sed 5q` in
10785 *Sun\ C*) # Sun C 5.9
10786 whole_archive_flag_spec_GCJ='${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'
10787 tmp_sharedflag='-G' ;;
10788 *Sun\ F*) # Sun Fortran 8.3
10789 tmp_sharedflag='-G' ;;
10790 *)
10791 tmp_sharedflag='-shared' ;;
10792 esac
10793 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10794
10795 if test $supports_anon_versioning = yes; then
10796 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
10797 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10798 $echo "local: *; };" >> $output_objdir/$libname.ver~
10799 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10800 fi
10801 link_all_deplibs_GCJ=no
10802 else
10803 ld_shlibs_GCJ=no
10804 fi
10805 ;;
10806
10807 netbsd* | netbsdelf*-gnu)
10808 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10809 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10810 wlarc=
10811 else
10812 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10813 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10814 fi
10815 ;;
10816
10817 solaris*)
10818 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10819 ld_shlibs_GCJ=no
10820 cat <<EOF 1>&2
10821
10822*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10823*** create shared libraries on Solaris systems. Therefore, libtool
10824*** is disabling shared libraries support. We urge you to upgrade GNU
10825*** binutils to release 2.9.1 or newer. Another option is to modify
10826*** your PATH or compiler configuration so that the native linker is
10827*** used, and then restart.
10828
10829EOF
10830 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10831 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10832 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10833 else
10834 ld_shlibs_GCJ=no
10835 fi
10836 ;;
10837
10838 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10839 case `$LD -v 2>&1` in
10840 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10841 ld_shlibs_GCJ=no
10842 cat <<_LT_EOF 1>&2
10843
10844*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10845*** reliably create shared libraries on SCO systems. Therefore, libtool
10846*** is disabling shared libraries support. We urge you to upgrade GNU
10847*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10848*** your PATH or compiler configuration so that the native linker is
10849*** used, and then restart.
10850
10851_LT_EOF
10852 ;;
10853 *)
10854 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10855 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10856 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10857 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10858 else
10859 ld_shlibs_GCJ=no
10860 fi
10861 ;;
10862 esac
10863 ;;
10864
10865 sunos4*)
10866 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10867 wlarc=
10868 hardcode_direct_GCJ=yes
10869 hardcode_shlibpath_var_GCJ=no
10870 ;;
10871
10872 *)
10873 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10874 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10875 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10876 else
10877 ld_shlibs_GCJ=no
10878 fi
10879 ;;
10880 esac
10881
10882 if test "$ld_shlibs_GCJ" = no; then
10883 runpath_var=
10884 hardcode_libdir_flag_spec_GCJ=
10885 export_dynamic_flag_spec_GCJ=
10886 whole_archive_flag_spec_GCJ=
10887 fi
10888 else
10889 # PORTME fill in a description of your system's linker (not GNU ld)
10890 case $host_os in
10891 aix3*)
10892 allow_undefined_flag_GCJ=unsupported
10893 always_export_symbols_GCJ=yes
10894 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10895 # Note: this linker hardcodes the directories in LIBPATH if there
10896 # are no directories specified by -L.
10897 hardcode_minus_L_GCJ=yes
10898 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10899 # Neither direct hardcoding nor static linking is supported with a
10900 # broken collect2.
10901 hardcode_direct_GCJ=unsupported
10902 fi
10903 ;;
10904
10905 aix[4-9]*)
10906 if test "$host_cpu" = ia64; then
10907 # On IA64, the linker does run time linking by default, so we don't
10908 # have to do anything special.
10909 aix_use_runtimelinking=no
10910 exp_sym_flag='-Bexport'
10911 no_entry_flag=""
10912 else
10913 # If we're using GNU nm, then we don't want the "-C" option.
10914 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10915 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10916 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10917 else
10918 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10919 fi
10920 aix_use_runtimelinking=no
10921
10922 # Test if we are trying to use run time linking or normal
10923 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10924 # need to do runtime linking.
10925 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10926 for ld_flag in $LDFLAGS; do
10927 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10928 aix_use_runtimelinking=yes
10929 break
10930 fi
10931 done
10932 ;;
10933 esac
10934
10935 exp_sym_flag='-bexport'
10936 no_entry_flag='-bnoentry'
10937 fi
10938
10939 # When large executables or shared objects are built, AIX ld can
10940 # have problems creating the table of contents. If linking a library
10941 # or program results in "error TOC overflow" add -mminimal-toc to
10942 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10943 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10944
10945 archive_cmds_GCJ=''
10946 hardcode_direct_GCJ=yes
10947 hardcode_libdir_separator_GCJ=':'
10948 link_all_deplibs_GCJ=yes
10949
10950 if test "$GCC" = yes; then
10951 case $host_os in aix4.[012]|aix4.[012].*)
10952 # We only want to do this on AIX 4.2 and lower, the check
10953 # below for broken collect2 doesn't work under 4.3+
10954 collect2name=`${CC} -print-prog-name=collect2`
10955 if test -f "$collect2name" && \
10956 strings "$collect2name" | grep resolve_lib_name >/dev/null
10957 then
10958 # We have reworked collect2
10959 :
10960 else
10961 # We have old collect2
10962 hardcode_direct_GCJ=unsupported
10963 # It fails to find uninstalled libraries when the uninstalled
10964 # path is not listed in the libpath. Setting hardcode_minus_L
10965 # to unsupported forces relinking
10966 hardcode_minus_L_GCJ=yes
10967 hardcode_libdir_flag_spec_GCJ='-L$libdir'
10968 hardcode_libdir_separator_GCJ=
10969 fi
10970 ;;
10971 esac
10972 shared_flag='-shared'
10973 if test "$aix_use_runtimelinking" = yes; then
10974 shared_flag="$shared_flag "'${wl}-G'
10975 fi
10976 else
10977 # not using gcc
10978 if test "$host_cpu" = ia64; then
10979 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10980 # chokes on -Wl,-G. The following line is correct:
10981 shared_flag='-G'
10982 else
10983 if test "$aix_use_runtimelinking" = yes; then
10984 shared_flag='${wl}-G'
10985 else
10986 shared_flag='${wl}-bM:SRE'
10987 fi
10988 fi
10989 fi
10990
10991 # It seems that -bexpall does not export symbols beginning with
10992 # underscore (_), so it is better to generate a list of symbols to export.
10993 always_export_symbols_GCJ=yes
10994 if test "$aix_use_runtimelinking" = yes; then
10995 # Warning - without using the other runtime loading flags (-brtl),
10996 # -berok will link without error, but may produce a broken library.
10997 allow_undefined_flag_GCJ='-berok'
10998 # Determine the default libpath from the value encoded in an empty executable.
10999 cat >conftest.$ac_ext <<_ACEOF
11000/* confdefs.h. */
11001_ACEOF
11002cat confdefs.h >>conftest.$ac_ext
11003cat >>conftest.$ac_ext <<_ACEOF
11004/* end confdefs.h. */
11005
11006int
11007main ()
11008{
11009
11010 ;
11011 return 0;
11012}
11013_ACEOF
11014rm -f conftest.$ac_objext conftest$ac_exeext
11015if { (ac_try="$ac_link"
11016case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11019esac
11020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_link") 2>conftest.er1
11022 ac_status=$?
11023 grep -v '^ *+' conftest.er1 >conftest.err
11024 rm -f conftest.er1
11025 cat conftest.err >&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } && {
11028 test -z "$ac_c_werror_flag" ||
11029 test ! -s conftest.err
11030 } && test -s conftest$ac_exeext &&
11031 $as_test_x conftest$ac_exeext; then
11032
11033lt_aix_libpath_sed='
11034 /Import File Strings/,/^$/ {
11035 /^0/ {
11036 s/^0 *\(.*\)$/\1/
11037 p
11038 }
11039 }'
11040aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11041# Check for a 64-bit object if we didn't find anything.
11042if test -z "$aix_libpath"; then
11043 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11044fi
11045else
11046 echo "$as_me: failed program was:" >&5
11047sed 's/^/| /' conftest.$ac_ext >&5
11048
11049
11050fi
11051
11052rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11053 conftest$ac_exeext conftest.$ac_ext
11054if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11055
11056 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
11057 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11058 else
11059 if test "$host_cpu" = ia64; then
11060 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
11061 allow_undefined_flag_GCJ="-z nodefs"
11062 archive_expsym_cmds_GCJ="\$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"
11063 else
11064 # Determine the default libpath from the value encoded in an empty executable.
11065 cat >conftest.$ac_ext <<_ACEOF
11066/* confdefs.h. */
11067_ACEOF
11068cat confdefs.h >>conftest.$ac_ext
11069cat >>conftest.$ac_ext <<_ACEOF
11070/* end confdefs.h. */
11071
11072int
11073main ()
11074{
11075
11076 ;
11077 return 0;
11078}
11079_ACEOF
11080rm -f conftest.$ac_objext conftest$ac_exeext
11081if { (ac_try="$ac_link"
11082case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11085esac
11086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_link") 2>conftest.er1
11088 ac_status=$?
11089 grep -v '^ *+' conftest.er1 >conftest.err
11090 rm -f conftest.er1
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } && {
11094 test -z "$ac_c_werror_flag" ||
11095 test ! -s conftest.err
11096 } && test -s conftest$ac_exeext &&
11097 $as_test_x conftest$ac_exeext; then
11098
11099lt_aix_libpath_sed='
11100 /Import File Strings/,/^$/ {
11101 /^0/ {
11102 s/^0 *\(.*\)$/\1/
11103 p
11104 }
11105 }'
11106aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11107# Check for a 64-bit object if we didn't find anything.
11108if test -z "$aix_libpath"; then
11109 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11110fi
11111else
11112 echo "$as_me: failed program was:" >&5
11113sed 's/^/| /' conftest.$ac_ext >&5
11114
11115
11116fi
11117
11118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11119 conftest$ac_exeext conftest.$ac_ext
11120if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11121
11122 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
11123 # Warning - without using the other run time loading flags,
11124 # -berok will link without error, but may produce a broken library.
11125 no_undefined_flag_GCJ=' ${wl}-bernotok'
11126 allow_undefined_flag_GCJ=' ${wl}-berok'
11127 # Exported symbols can be pulled into shared objects from archives
11128 whole_archive_flag_spec_GCJ='$convenience'
11129 archive_cmds_need_lc_GCJ=yes
11130 # This is similar to how AIX traditionally builds its shared libraries.
11131 archive_expsym_cmds_GCJ="\$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'
11132 fi
11133 fi
11134 ;;
11135
11136 amigaos*)
11137 archive_cmds_GCJ='$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)'
11138 hardcode_libdir_flag_spec_GCJ='-L$libdir'
11139 hardcode_minus_L_GCJ=yes
11140 # see comment about different semantics on the GNU ld section
11141 ld_shlibs_GCJ=no
11142 ;;
11143
11144 bsdi[45]*)
11145 export_dynamic_flag_spec_GCJ=-rdynamic
11146 ;;
11147
11148 cygwin* | mingw* | pw32*)
11149 # When not using gcc, we currently assume that we are using
11150 # Microsoft Visual C++.
11151 # hardcode_libdir_flag_spec is actually meaningless, as there is
11152 # no search path for DLLs.
11153 hardcode_libdir_flag_spec_GCJ=' '
11154 allow_undefined_flag_GCJ=unsupported
11155 # Tell ltmain to make .lib files, not .a files.
11156 libext=lib
11157 # Tell ltmain to make .dll files, not .so files.
11158 shrext_cmds=".dll"
11159 # FIXME: Setting linknames here is a bad hack.
11160 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11161 # The linker will automatically build a .lib file if we build a DLL.
11162 old_archive_From_new_cmds_GCJ='true'
11163 # FIXME: Should let the user specify the lib program.
11164 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
11165 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
11166 enable_shared_with_static_runtimes_GCJ=yes
11167 ;;
11168
11169 darwin* | rhapsody*)
11170 case $host_os in
11171 rhapsody* | darwin1.[012])
11172 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
11173 ;;
11174 *) # Darwin 1.3 on
11175 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11176 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11177 else
11178 case ${MACOSX_DEPLOYMENT_TARGET} in
11179 10.[012])
11180 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11181 ;;
11182 10.*)
11183 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
11184 ;;
11185 esac
11186 fi
11187 ;;
11188 esac
11189 archive_cmds_need_lc_GCJ=no
11190 hardcode_direct_GCJ=no
11191 hardcode_automatic_GCJ=yes
11192 hardcode_shlibpath_var_GCJ=unsupported
11193 whole_archive_flag_spec_GCJ=''
11194 link_all_deplibs_GCJ=yes
11195 if test "$GCC" = yes ; then
11196 output_verbose_link_cmd='echo'
11197 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11198 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11199 archive_expsym_cmds_GCJ="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}"
11200 module_expsym_cmds_GCJ="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}"
11201 else
11202 case $cc_basename in
11203 xlc*)
11204 output_verbose_link_cmd='echo'
11205 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11206 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11207 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11208 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11209 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11210 ;;
11211 *)
11212 ld_shlibs_GCJ=no
11213 ;;
11214 esac
11215 fi
11216 ;;
11217
11218 dgux*)
11219 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11220 hardcode_libdir_flag_spec_GCJ='-L$libdir'
11221 hardcode_shlibpath_var_GCJ=no
11222 ;;
11223
11224 freebsd1*)
11225 ld_shlibs_GCJ=no
11226 ;;
11227
11228 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11229 # support. Future versions do this automatically, but an explicit c++rt0.o
11230 # does not break anything, and helps significantly (at the cost of a little
11231 # extra space).
11232 freebsd2.2*)
11233 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11234 hardcode_libdir_flag_spec_GCJ='-R$libdir'
11235 hardcode_direct_GCJ=yes
11236 hardcode_shlibpath_var_GCJ=no
11237 ;;
11238
11239 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11240 freebsd2*)
11241 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11242 hardcode_direct_GCJ=yes
11243 hardcode_minus_L_GCJ=yes
11244 hardcode_shlibpath_var_GCJ=no
11245 ;;
11246
11247 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11248 freebsd* | dragonfly*)
11249 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11250 hardcode_libdir_flag_spec_GCJ='-R$libdir'
11251 hardcode_direct_GCJ=yes
11252 hardcode_shlibpath_var_GCJ=no
11253 ;;
11254
11255 hpux9*)
11256 if test "$GCC" = yes; then
11257 archive_cmds_GCJ='$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'
11258 else
11259 archive_cmds_GCJ='$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'
11260 fi
11261 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
11262 hardcode_libdir_separator_GCJ=:
11263 hardcode_direct_GCJ=yes
11264
11265 # hardcode_minus_L: Not really in the search PATH,
11266 # but as the default location of the library.
11267 hardcode_minus_L_GCJ=yes
11268 export_dynamic_flag_spec_GCJ='${wl}-E'
11269 ;;
11270
11271 hpux10*)
11272 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11273 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11274 else
11275 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11276 fi
11277 if test "$with_gnu_ld" = no; then
11278 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
11279 hardcode_libdir_separator_GCJ=:
11280
11281 hardcode_direct_GCJ=yes
11282 export_dynamic_flag_spec_GCJ='${wl}-E'
11283
11284 # hardcode_minus_L: Not really in the search PATH,
11285 # but as the default location of the library.
11286 hardcode_minus_L_GCJ=yes
11287 fi
11288 ;;
11289
11290 hpux11*)
11291 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11292 case $host_cpu in
11293 hppa*64*)
11294 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11295 ;;
11296 ia64*)
11297 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11298 ;;
11299 *)
11300 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11301 ;;
11302 esac
11303 else
11304 case $host_cpu in
11305 hppa*64*)
11306 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11307 ;;
11308 ia64*)
11309 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11310 ;;
11311 *)
11312 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11313 ;;
11314 esac
11315 fi
11316 if test "$with_gnu_ld" = no; then
11317 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
11318 hardcode_libdir_separator_GCJ=:
11319
11320 case $host_cpu in
11321 hppa*64*|ia64*)
11322 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
11323 hardcode_direct_GCJ=no
11324 hardcode_shlibpath_var_GCJ=no
11325 ;;
11326 *)
11327 hardcode_direct_GCJ=yes
11328 export_dynamic_flag_spec_GCJ='${wl}-E'
11329
11330 # hardcode_minus_L: Not really in the search PATH,
11331 # but as the default location of the library.
11332 hardcode_minus_L_GCJ=yes
11333 ;;
11334 esac
11335 fi
11336 ;;
11337
11338 irix5* | irix6* | nonstopux*)
11339 if test "$GCC" = yes; then
11340 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11341 else
11342 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11343 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
11344 fi
11345 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
11346 hardcode_libdir_separator_GCJ=:
11347 link_all_deplibs_GCJ=yes
11348 ;;
11349
11350 netbsd* | netbsdelf*-gnu)
11351 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11352 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11353 else
11354 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11355 fi
11356 hardcode_libdir_flag_spec_GCJ='-R$libdir'
11357 hardcode_direct_GCJ=yes
11358 hardcode_shlibpath_var_GCJ=no
11359 ;;
11360
11361 newsos6)
11362 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11363 hardcode_direct_GCJ=yes
11364 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
11365 hardcode_libdir_separator_GCJ=:
11366 hardcode_shlibpath_var_GCJ=no
11367 ;;
11368
11369 openbsd*)
11370 if test -f /usr/libexec/ld.so; then
11371 hardcode_direct_GCJ=yes
11372 hardcode_shlibpath_var_GCJ=no
11373 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11374 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11375 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11376 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
11377 export_dynamic_flag_spec_GCJ='${wl}-E'
11378 else
11379 case $host_os in
11380 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11381 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11382 hardcode_libdir_flag_spec_GCJ='-R$libdir'
11383 ;;
11384 *)
11385 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11386 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
11387 ;;
11388 esac
11389 fi
11390 else
11391 ld_shlibs_GCJ=no
11392 fi
11393 ;;
11394
11395 os2*)
11396 hardcode_libdir_flag_spec_GCJ='-L$libdir'
11397 hardcode_minus_L_GCJ=yes
11398 allow_undefined_flag_GCJ=unsupported
11399 archive_cmds_GCJ='$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'
11400 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11401 ;;
11402
11403 osf3*)
11404 if test "$GCC" = yes; then
11405 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
11406 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11407 else
11408 allow_undefined_flag_GCJ=' -expect_unresolved \*'
11409 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11410 fi
11411 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
11412 hardcode_libdir_separator_GCJ=:
11413 ;;
11414
11415 osf4* | osf5*) # as osf3* with the addition of -msym flag
11416 if test "$GCC" = yes; then
11417 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
11418 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11419 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
11420 else
11421 allow_undefined_flag_GCJ=' -expect_unresolved \*'
11422 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11423 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11424 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
11425
11426 # Both c and cxx compiler support -rpath directly
11427 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
11428 fi
11429 hardcode_libdir_separator_GCJ=:
11430 ;;
11431
11432 solaris*)
11433 no_undefined_flag_GCJ=' -z text'
11434 if test "$GCC" = yes; then
11435 wlarc='${wl}'
11436 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11437 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11438 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11439 else
11440 wlarc=''
11441 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11442 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11443 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11444 fi
11445 hardcode_libdir_flag_spec_GCJ='-R$libdir'
11446 hardcode_shlibpath_var_GCJ=no
11447 case $host_os in
11448 solaris2.[0-5] | solaris2.[0-5].*) ;;
11449 *)
11450 # The compiler driver will combine and reorder linker options,
11451 # but understands `-z linker_flag'. GCC discards it without `$wl',
11452 # but is careful enough not to reorder.
11453 # Supported since Solaris 2.6 (maybe 2.5.1?)
11454 if test "$GCC" = yes; then
11455 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11456 else
11457 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
11458 fi
11459 ;;
11460 esac
11461 link_all_deplibs_GCJ=yes
11462 ;;
11463
11464 sunos4*)
11465 if test "x$host_vendor" = xsequent; then
11466 # Use $CC to link under sequent, because it throws in some extra .o
11467 # files that make .init and .fini sections work.
11468 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11469 else
11470 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11471 fi
11472 hardcode_libdir_flag_spec_GCJ='-L$libdir'
11473 hardcode_direct_GCJ=yes
11474 hardcode_minus_L_GCJ=yes
11475 hardcode_shlibpath_var_GCJ=no
11476 ;;
11477
11478 sysv4)
11479 case $host_vendor in
11480 sni)
11481 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11482 hardcode_direct_GCJ=yes # is this really true???
11483 ;;
11484 siemens)
11485 ## LD is ld it makes a PLAMLIB
11486 ## CC just makes a GrossModule.
11487 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11488 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
11489 hardcode_direct_GCJ=no
11490 ;;
11491 motorola)
11492 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11493 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
11494 ;;
11495 esac
11496 runpath_var='LD_RUN_PATH'
11497 hardcode_shlibpath_var_GCJ=no
11498 ;;
11499
11500 sysv4.3*)
11501 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11502 hardcode_shlibpath_var_GCJ=no
11503 export_dynamic_flag_spec_GCJ='-Bexport'
11504 ;;
11505
11506 sysv4*MP*)
11507 if test -d /usr/nec; then
11508 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11509 hardcode_shlibpath_var_GCJ=no
11510 runpath_var=LD_RUN_PATH
11511 hardcode_runpath_var=yes
11512 ld_shlibs_GCJ=yes
11513 fi
11514 ;;
11515
11516 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11517 no_undefined_flag_GCJ='${wl}-z,text'
11518 archive_cmds_need_lc_GCJ=no
11519 hardcode_shlibpath_var_GCJ=no
11520 runpath_var='LD_RUN_PATH'
11521
11522 if test "$GCC" = yes; then
11523 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11524 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11525 else
11526 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11527 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11528 fi
11529 ;;
11530
11531 sysv5* | sco3.2v5* | sco5v6*)
11532 # Note: We can NOT use -z defs as we might desire, because we do not
11533 # link with -lc, and that would cause any symbols used from libc to
11534 # always be unresolved, which means just about no library would
11535 # ever link correctly. If we're not using GNU ld we use -z text
11536 # though, which does catch some bad symbols but isn't as heavy-handed
11537 # as -z defs.
11538 no_undefined_flag_GCJ='${wl}-z,text'
11539 allow_undefined_flag_GCJ='${wl}-z,nodefs'
11540 archive_cmds_need_lc_GCJ=no
11541 hardcode_shlibpath_var_GCJ=no
11542 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11543 hardcode_libdir_separator_GCJ=':'
11544 link_all_deplibs_GCJ=yes
11545 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
11546 runpath_var='LD_RUN_PATH'
11547
11548 if test "$GCC" = yes; then
11549 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11550 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11551 else
11552 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11553 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11554 fi
11555 ;;
11556
11557 uts4*)
11558 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11559 hardcode_libdir_flag_spec_GCJ='-L$libdir'
11560 hardcode_shlibpath_var_GCJ=no
11561 ;;
11562
11563 *)
11564 ld_shlibs_GCJ=no
11565 ;;
11566 esac
11567 fi
11568
11569{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
11570echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
11571test "$ld_shlibs_GCJ" = no && can_build_shared=no
11572
11573#
11574# Do we need to explicitly link libc?
11575#
11576case "x$archive_cmds_need_lc_GCJ" in
11577x|xyes)
11578 # Assume -lc should be added
11579 archive_cmds_need_lc_GCJ=yes
11580
11581 if test "$enable_shared" = yes && test "$GCC" = yes; then
11582 case $archive_cmds_GCJ in
11583 *'~'*)
11584 # FIXME: we may have to deal with multi-command sequences.
11585 ;;
11586 '$CC '*)
11587 # Test whether the compiler implicitly links with -lc since on some
11588 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11589 # to ld, don't add -lc before -lgcc.
11590 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11591echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11592 $rm conftest*
11593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11594
11595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11596 (eval $ac_compile) 2>&5
11597 ac_status=$?
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } 2>conftest.err; then
11600 soname=conftest
11601 lib=conftest
11602 libobjs=conftest.$ac_objext
11603 deplibs=
11604 wl=$lt_prog_compiler_wl_GCJ
11605 pic_flag=$lt_prog_compiler_pic_GCJ
11606 compiler_flags=-v
11607 linker_flags=-v
11608 verstring=
11609 output_objdir=.
11610 libname=conftest
11611 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
11612 allow_undefined_flag_GCJ=
11613 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11614 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }
11618 then
11619 archive_cmds_need_lc_GCJ=no
11620 else
11621 archive_cmds_need_lc_GCJ=yes
11622 fi
11623 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
11624 else
11625 cat conftest.err 1>&5
11626 fi
11627 $rm conftest*
11628 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
11629echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
11630 ;;
11631 esac
11632 fi
11633 ;;
11634esac
11635
11636{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11637echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11638library_names_spec=
11639libname_spec='lib$name'
11640soname_spec=
11641shrext_cmds=".so"
11642postinstall_cmds=
11643postuninstall_cmds=
11644finish_cmds=
11645finish_eval=
11646shlibpath_var=
11647shlibpath_overrides_runpath=unknown
11648version_type=none
11649dynamic_linker="$host_os ld.so"
11650sys_lib_dlsearch_path_spec="/lib /usr/lib"
11651
11652need_lib_prefix=unknown
11653hardcode_into_libs=no
11654
11655# when you set need_version to no, make sure it does not cause -set_version
11656# flags to be left without arguments
11657need_version=unknown
11658
11659case $host_os in
11660aix3*)
11661 version_type=linux
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11663 shlibpath_var=LIBPATH
11664
11665 # AIX 3 has no versioning support, so we append a major version to the name.
11666 soname_spec='${libname}${release}${shared_ext}$major'
11667 ;;
11668
11669aix[4-9]*)
11670 version_type=linux
11671 need_lib_prefix=no
11672 need_version=no
11673 hardcode_into_libs=yes
11674 if test "$host_cpu" = ia64; then
11675 # AIX 5 supports IA64
11676 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11677 shlibpath_var=LD_LIBRARY_PATH
11678 else
11679 # With GCC up to 2.95.x, collect2 would create an import file
11680 # for dependence libraries. The import file would start with
11681 # the line `#! .'. This would cause the generated library to
11682 # depend on `.', always an invalid library. This was fixed in
11683 # development snapshots of GCC prior to 3.0.
11684 case $host_os in
11685 aix4 | aix4.[01] | aix4.[01].*)
11686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11687 echo ' yes '
11688 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11689 :
11690 else
11691 can_build_shared=no
11692 fi
11693 ;;
11694 esac
11695 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11696 # soname into executable. Probably we can add versioning support to
11697 # collect2, so additional links can be useful in future.
11698 if test "$aix_use_runtimelinking" = yes; then
11699 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11700 # instead of lib<name>.a to let people know that these are not
11701 # typical AIX shared libraries.
11702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11703 else
11704 # We preserve .a as extension for shared libraries through AIX4.2
11705 # and later when we are not doing run time linking.
11706 library_names_spec='${libname}${release}.a $libname.a'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 fi
11709 shlibpath_var=LIBPATH
11710 fi
11711 ;;
11712
11713amigaos*)
11714 library_names_spec='$libname.ixlibrary $libname.a'
11715 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11716 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'
11717 ;;
11718
11719beos*)
11720 library_names_spec='${libname}${shared_ext}'
11721 dynamic_linker="$host_os ld.so"
11722 shlibpath_var=LIBRARY_PATH
11723 ;;
11724
11725bsdi[45]*)
11726 version_type=linux
11727 need_version=no
11728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11729 soname_spec='${libname}${release}${shared_ext}$major'
11730 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11731 shlibpath_var=LD_LIBRARY_PATH
11732 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11733 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11734 # the default ld.so.conf also contains /usr/contrib/lib and
11735 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11736 # libtool to hard-code these into programs
11737 ;;
11738
11739cygwin* | mingw* | pw32*)
11740 version_type=windows
11741 shrext_cmds=".dll"
11742 need_version=no
11743 need_lib_prefix=no
11744
11745 case $GCC,$host_os in
11746 yes,cygwin* | yes,mingw* | yes,pw32*)
11747 library_names_spec='$libname.dll.a'
11748 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11749 postinstall_cmds='base_file=`basename \${file}`~
11750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11751 dldir=$destdir/`dirname \$dlpath`~
11752 test -d \$dldir || mkdir -p \$dldir~
11753 $install_prog $dir/$dlname \$dldir/$dlname~
11754 chmod a+x \$dldir/$dlname'
11755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11756 dlpath=$dir/\$dldll~
11757 $rm \$dlpath'
11758 shlibpath_overrides_runpath=yes
11759
11760 case $host_os in
11761 cygwin*)
11762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11765 ;;
11766 mingw*)
11767 # MinGW DLLs use traditional 'lib' prefix
11768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11771 # It is most probably a Windows format PATH printed by
11772 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11773 # path with ; separators, and with drive letters. We can handle the
11774 # drive letters (cygwin fileutils understands them), so leave them,
11775 # especially as we might pass files found there to a mingw objdump,
11776 # which wouldn't understand a cygwinified path. Ahh.
11777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11778 else
11779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11780 fi
11781 ;;
11782 pw32*)
11783 # pw32 DLLs use 'pw' prefix rather than 'lib'
11784 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11785 ;;
11786 esac
11787 ;;
11788
11789 *)
11790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11791 ;;
11792 esac
11793 dynamic_linker='Win32 ld.exe'
11794 # FIXME: first we should search . and the directory the executable is in
11795 shlibpath_var=PATH
11796 ;;
11797
11798darwin* | rhapsody*)
11799 dynamic_linker="$host_os dyld"
11800 version_type=darwin
11801 need_lib_prefix=no
11802 need_version=no
11803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11804 soname_spec='${libname}${release}${major}$shared_ext'
11805 shlibpath_overrides_runpath=yes
11806 shlibpath_var=DYLD_LIBRARY_PATH
11807 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11808
11809 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11810 ;;
11811
11812dgux*)
11813 version_type=linux
11814 need_lib_prefix=no
11815 need_version=no
11816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11817 soname_spec='${libname}${release}${shared_ext}$major'
11818 shlibpath_var=LD_LIBRARY_PATH
11819 ;;
11820
11821freebsd1*)
11822 dynamic_linker=no
11823 ;;
11824
11825freebsd* | dragonfly*)
11826 # DragonFly does not have aout. When/if they implement a new
11827 # versioning mechanism, adjust this.
11828 if test -x /usr/bin/objformat; then
11829 objformat=`/usr/bin/objformat`
11830 else
11831 case $host_os in
11832 freebsd[123]*) objformat=aout ;;
11833 *) objformat=elf ;;
11834 esac
11835 fi
11836 version_type=freebsd-$objformat
11837 case $version_type in
11838 freebsd-elf*)
11839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11840 need_version=no
11841 need_lib_prefix=no
11842 ;;
11843 freebsd-*)
11844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11845 need_version=yes
11846 ;;
11847 esac
11848 shlibpath_var=LD_LIBRARY_PATH
11849 case $host_os in
11850 freebsd2*)
11851 shlibpath_overrides_runpath=yes
11852 ;;
11853 freebsd3.[01]* | freebsdelf3.[01]*)
11854 shlibpath_overrides_runpath=yes
11855 hardcode_into_libs=yes
11856 ;;
11857 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11858 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11859 shlibpath_overrides_runpath=no
11860 hardcode_into_libs=yes
11861 ;;
11862 *) # from 4.6 on, and DragonFly
11863 shlibpath_overrides_runpath=yes
11864 hardcode_into_libs=yes
11865 ;;
11866 esac
11867 ;;
11868
11869gnu*)
11870 version_type=linux
11871 need_lib_prefix=no
11872 need_version=no
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11874 soname_spec='${libname}${release}${shared_ext}$major'
11875 shlibpath_var=LD_LIBRARY_PATH
11876 hardcode_into_libs=yes
11877 ;;
11878
11879hpux9* | hpux10* | hpux11*)
11880 # Give a soname corresponding to the major version so that dld.sl refuses to
11881 # link against other versions.
11882 version_type=sunos
11883 need_lib_prefix=no
11884 need_version=no
11885 case $host_cpu in
11886 ia64*)
11887 shrext_cmds='.so'
11888 hardcode_into_libs=yes
11889 dynamic_linker="$host_os dld.so"
11890 shlibpath_var=LD_LIBRARY_PATH
11891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11893 soname_spec='${libname}${release}${shared_ext}$major'
11894 if test "X$HPUX_IA64_MODE" = X32; then
11895 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11896 else
11897 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11898 fi
11899 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11900 ;;
11901 hppa*64*)
11902 shrext_cmds='.sl'
11903 hardcode_into_libs=yes
11904 dynamic_linker="$host_os dld.sl"
11905 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908 soname_spec='${libname}${release}${shared_ext}$major'
11909 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11911 ;;
11912 *)
11913 shrext_cmds='.sl'
11914 dynamic_linker="$host_os dld.sl"
11915 shlibpath_var=SHLIB_PATH
11916 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11918 soname_spec='${libname}${release}${shared_ext}$major'
11919 ;;
11920 esac
11921 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11922 postinstall_cmds='chmod 555 $lib'
11923 ;;
11924
11925interix[3-9]*)
11926 version_type=linux
11927 need_lib_prefix=no
11928 need_version=no
11929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11930 soname_spec='${libname}${release}${shared_ext}$major'
11931 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11932 shlibpath_var=LD_LIBRARY_PATH
11933 shlibpath_overrides_runpath=no
11934 hardcode_into_libs=yes
11935 ;;
11936
11937irix5* | irix6* | nonstopux*)
11938 case $host_os in
11939 nonstopux*) version_type=nonstopux ;;
11940 *)
11941 if test "$lt_cv_prog_gnu_ld" = yes; then
11942 version_type=linux
11943 else
11944 version_type=irix
11945 fi ;;
11946 esac
11947 need_lib_prefix=no
11948 need_version=no
11949 soname_spec='${libname}${release}${shared_ext}$major'
11950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11951 case $host_os in
11952 irix5* | nonstopux*)
11953 libsuff= shlibsuff=
11954 ;;
11955 *)
11956 case $LD in # libtool.m4 will add one of these switches to LD
11957 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11958 libsuff= shlibsuff= libmagic=32-bit;;
11959 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11960 libsuff=32 shlibsuff=N32 libmagic=N32;;
11961 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11962 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11963 *) libsuff= shlibsuff= libmagic=never-match;;
11964 esac
11965 ;;
11966 esac
11967 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11968 shlibpath_overrides_runpath=no
11969 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11970 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11971 hardcode_into_libs=yes
11972 ;;
11973
11974# No shared lib support for Linux oldld, aout, or coff.
11975linux*oldld* | linux*aout* | linux*coff*)
11976 dynamic_linker=no
11977 ;;
11978
11979# This must be Linux ELF.
11980linux* | k*bsd*-gnu)
11981 version_type=linux
11982 need_lib_prefix=no
11983 need_version=no
11984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11985 soname_spec='${libname}${release}${shared_ext}$major'
11986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11987 shlibpath_var=LD_LIBRARY_PATH
11988 shlibpath_overrides_runpath=no
11989 # This implies no fast_install, which is unacceptable.
11990 # Some rework will be needed to allow for fast_install
11991 # before this can be enabled.
11992 hardcode_into_libs=yes
11993
11994 # Append ld.so.conf contents to the search path
11995 if test -f /etc/ld.so.conf; then
11996 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' ' '`
11997 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11998 fi
11999
12000 # We used to test for /lib/ld.so.1 and disable shared libraries on
12001 # powerpc, because MkLinux only supported shared libraries with the
12002 # GNU dynamic linker. Since this was broken with cross compilers,
12003 # most powerpc-linux boxes support dynamic linking these days and
12004 # people can always --disable-shared, the test was removed, and we
12005 # assume the GNU/Linux dynamic linker is in use.
12006 dynamic_linker='GNU/Linux ld.so'
12007 ;;
12008
12009netbsdelf*-gnu)
12010 version_type=linux
12011 need_lib_prefix=no
12012 need_version=no
12013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12014 soname_spec='${libname}${release}${shared_ext}$major'
12015 shlibpath_var=LD_LIBRARY_PATH
12016 shlibpath_overrides_runpath=no
12017 hardcode_into_libs=yes
12018 dynamic_linker='NetBSD ld.elf_so'
12019 ;;
12020
12021netbsd*)
12022 version_type=sunos
12023 need_lib_prefix=no
12024 need_version=no
12025 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12028 dynamic_linker='NetBSD (a.out) ld.so'
12029 else
12030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12031 soname_spec='${libname}${release}${shared_ext}$major'
12032 dynamic_linker='NetBSD ld.elf_so'
12033 fi
12034 shlibpath_var=LD_LIBRARY_PATH
12035 shlibpath_overrides_runpath=yes
12036 hardcode_into_libs=yes
12037 ;;
12038
12039newsos6)
12040 version_type=linux
12041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12042 shlibpath_var=LD_LIBRARY_PATH
12043 shlibpath_overrides_runpath=yes
12044 ;;
12045
12046nto-qnx*)
12047 version_type=linux
12048 need_lib_prefix=no
12049 need_version=no
12050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12051 soname_spec='${libname}${release}${shared_ext}$major'
12052 shlibpath_var=LD_LIBRARY_PATH
12053 shlibpath_overrides_runpath=yes
12054 ;;
12055
12056openbsd*)
12057 version_type=sunos
12058 sys_lib_dlsearch_path_spec="/usr/lib"
12059 need_lib_prefix=no
12060 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12061 case $host_os in
12062 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12063 *) need_version=no ;;
12064 esac
12065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12067 shlibpath_var=LD_LIBRARY_PATH
12068 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12069 case $host_os in
12070 openbsd2.[89] | openbsd2.[89].*)
12071 shlibpath_overrides_runpath=no
12072 ;;
12073 *)
12074 shlibpath_overrides_runpath=yes
12075 ;;
12076 esac
12077 else
12078 shlibpath_overrides_runpath=yes
12079 fi
12080 ;;
12081
12082os2*)
12083 libname_spec='$name'
12084 shrext_cmds=".dll"
12085 need_lib_prefix=no
12086 library_names_spec='$libname${shared_ext} $libname.a'
12087 dynamic_linker='OS/2 ld.exe'
12088 shlibpath_var=LIBPATH
12089 ;;
12090
12091osf3* | osf4* | osf5*)
12092 version_type=osf
12093 need_lib_prefix=no
12094 need_version=no
12095 soname_spec='${libname}${release}${shared_ext}$major'
12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097 shlibpath_var=LD_LIBRARY_PATH
12098 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12099 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12100 ;;
12101
12102rdos*)
12103 dynamic_linker=no
12104 ;;
12105
12106solaris*)
12107 version_type=linux
12108 need_lib_prefix=no
12109 need_version=no
12110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12111 soname_spec='${libname}${release}${shared_ext}$major'
12112 shlibpath_var=LD_LIBRARY_PATH
12113 shlibpath_overrides_runpath=yes
12114 hardcode_into_libs=yes
12115 # ldd complains unless libraries are executable
12116 postinstall_cmds='chmod +x $lib'
12117 ;;
12118
12119sunos4*)
12120 version_type=sunos
12121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12122 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12123 shlibpath_var=LD_LIBRARY_PATH
12124 shlibpath_overrides_runpath=yes
12125 if test "$with_gnu_ld" = yes; then
12126 need_lib_prefix=no
12127 fi
12128 need_version=yes
12129 ;;
12130
12131sysv4 | sysv4.3*)
12132 version_type=linux
12133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12134 soname_spec='${libname}${release}${shared_ext}$major'
12135 shlibpath_var=LD_LIBRARY_PATH
12136 case $host_vendor in
12137 sni)
12138 shlibpath_overrides_runpath=no
12139 need_lib_prefix=no
12140 export_dynamic_flag_spec='${wl}-Blargedynsym'
12141 runpath_var=LD_RUN_PATH
12142 ;;
12143 siemens)
12144 need_lib_prefix=no
12145 ;;
12146 motorola)
12147 need_lib_prefix=no
12148 need_version=no
12149 shlibpath_overrides_runpath=no
12150 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12151 ;;
12152 esac
12153 ;;
12154
12155sysv4*MP*)
12156 if test -d /usr/nec ;then
12157 version_type=linux
12158 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12159 soname_spec='$libname${shared_ext}.$major'
12160 shlibpath_var=LD_LIBRARY_PATH
12161 fi
12162 ;;
12163
12164sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12165 version_type=freebsd-elf
12166 need_lib_prefix=no
12167 need_version=no
12168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12169 soname_spec='${libname}${release}${shared_ext}$major'
12170 shlibpath_var=LD_LIBRARY_PATH
12171 hardcode_into_libs=yes
12172 if test "$with_gnu_ld" = yes; then
12173 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12174 shlibpath_overrides_runpath=no
12175 else
12176 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12177 shlibpath_overrides_runpath=yes
12178 case $host_os in
12179 sco3.2v5*)
12180 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12181 ;;
12182 esac
12183 fi
12184 sys_lib_dlsearch_path_spec='/usr/lib'
12185 ;;
12186
12187uts4*)
12188 version_type=linux
12189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12190 soname_spec='${libname}${release}${shared_ext}$major'
12191 shlibpath_var=LD_LIBRARY_PATH
12192 ;;
12193
12194*)
12195 dynamic_linker=no
12196 ;;
12197esac
12198{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12199echo "${ECHO_T}$dynamic_linker" >&6; }
12200test "$dynamic_linker" = no && can_build_shared=no
12201
12202if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12204else
12205 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12206fi
12207
12208sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12209if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12211else
12212 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12213fi
12214
12215sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12216
12217variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12218if test "$GCC" = yes; then
12219 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12220fi
12221
12222{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12223echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12224hardcode_action_GCJ=
12225if test -n "$hardcode_libdir_flag_spec_GCJ" || \
12226 test -n "$runpath_var_GCJ" || \
12227 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
12228
12229 # We can hardcode non-existant directories.
12230 if test "$hardcode_direct_GCJ" != no &&
12231 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12232 # have to relink, otherwise we might link with an installed library
12233 # when we should be linking with a yet-to-be-installed one
12234 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
12235 test "$hardcode_minus_L_GCJ" != no; then
12236 # Linking always hardcodes the temporary library directory.
12237 hardcode_action_GCJ=relink
12238 else
12239 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12240 hardcode_action_GCJ=immediate
12241 fi
12242else
12243 # We cannot hardcode anything, or else we can only hardcode existing
12244 # directories.
12245 hardcode_action_GCJ=unsupported
12246fi
12247{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
12248echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
12249
12250if test "$hardcode_action_GCJ" = relink; then
12251 # Fast installation is not supported
12252 enable_fast_install=no
12253elif test "$shlibpath_overrides_runpath" = yes ||
12254 test "$enable_shared" = no; then
12255 # Fast installation is not necessary
12256 enable_fast_install=needless
12257fi
12258
12259
12260# The else clause should only fire when bootstrapping the
12261# libtool distribution, otherwise you forgot to ship ltmain.sh
12262# with your package, and you will get complaints that there are
12263# no rules to generate ltmain.sh.
12264if test -f "$ltmain"; then
12265 # See if we are running on zsh, and set the options which allow our commands through
12266 # without removal of \ escapes.
12267 if test -n "${ZSH_VERSION+set}" ; then
12268 setopt NO_GLOB_SUBST
12269 fi
12270 # Now quote all the things that may contain metacharacters while being
12271 # careful not to overquote the AC_SUBSTed values. We take copies of the
12272 # variables and quote the copies for generation of the libtool script.
12273 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12274 SED SHELL STRIP \
12275 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12276 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12277 deplibs_check_method reload_flag reload_cmds need_locks \
12278 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12279 lt_cv_sys_global_symbol_to_c_name_address \
12280 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12281 old_postinstall_cmds old_postuninstall_cmds \
12282 compiler_GCJ \
12283 CC_GCJ \
12284 LD_GCJ \
12285 lt_prog_compiler_wl_GCJ \
12286 lt_prog_compiler_pic_GCJ \
12287 lt_prog_compiler_static_GCJ \
12288 lt_prog_compiler_no_builtin_flag_GCJ \
12289 export_dynamic_flag_spec_GCJ \
12290 thread_safe_flag_spec_GCJ \
12291 whole_archive_flag_spec_GCJ \
12292 enable_shared_with_static_runtimes_GCJ \
12293 old_archive_cmds_GCJ \
12294 old_archive_from_new_cmds_GCJ \
12295 predep_objects_GCJ \
12296 postdep_objects_GCJ \
12297 predeps_GCJ \
12298 postdeps_GCJ \
12299 compiler_lib_search_path_GCJ \
12300 compiler_lib_search_dirs_GCJ \
12301 archive_cmds_GCJ \
12302 archive_expsym_cmds_GCJ \
12303 postinstall_cmds_GCJ \
12304 postuninstall_cmds_GCJ \
12305 old_archive_from_expsyms_cmds_GCJ \
12306 allow_undefined_flag_GCJ \
12307 no_undefined_flag_GCJ \
12308 export_symbols_cmds_GCJ \
12309 hardcode_libdir_flag_spec_GCJ \
12310 hardcode_libdir_flag_spec_ld_GCJ \
12311 hardcode_libdir_separator_GCJ \
12312 hardcode_automatic_GCJ \
12313 module_cmds_GCJ \
12314 module_expsym_cmds_GCJ \
12315 lt_cv_prog_compiler_c_o_GCJ \
12316 fix_srcfile_path_GCJ \
12317 exclude_expsyms_GCJ \
12318 include_expsyms_GCJ; do
12319
12320 case $var in
12321 old_archive_cmds_GCJ | \
12322 old_archive_from_new_cmds_GCJ | \
12323 archive_cmds_GCJ | \
12324 archive_expsym_cmds_GCJ | \
12325 module_cmds_GCJ | \
12326 module_expsym_cmds_GCJ | \
12327 old_archive_from_expsyms_cmds_GCJ | \
12328 export_symbols_cmds_GCJ | \
12329 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12330 postinstall_cmds | postuninstall_cmds | \
12331 old_postinstall_cmds | old_postuninstall_cmds | \
12332 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12333 # Double-quote double-evaled strings.
12334 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12335 ;;
12336 *)
12337 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12338 ;;
12339 esac
12340 done
12341
12342 case $lt_echo in
12343 *'\$0 --fallback-echo"')
12344 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12345 ;;
12346 esac
12347
12348cfgfile="$ofile"
12349
12350 cat <<__EOF__ >> "$cfgfile"
12351# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12352
12353# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12354
12355# Shell to use when invoking shell scripts.
12356SHELL=$lt_SHELL
12357
12358# Whether or not to build shared libraries.
12359build_libtool_libs=$enable_shared
12360
12361# Whether or not to build static libraries.
12362build_old_libs=$enable_static
12363
12364# Whether or not to add -lc for building shared libraries.
12365build_libtool_need_lc=$archive_cmds_need_lc_GCJ
12366
12367# Whether or not to disallow shared libs when runtime libs are static
12368allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
12369
12370# Whether or not to optimize for fast installation.
12371fast_install=$enable_fast_install
12372
12373# The host system.
12374host_alias=$host_alias
12375host=$host
12376host_os=$host_os
12377
12378# The build system.
12379build_alias=$build_alias
12380build=$build
12381build_os=$build_os
12382
12383# An echo program that does not interpret backslashes.
12384echo=$lt_echo
12385
12386# The archiver.
12387AR=$lt_AR
12388AR_FLAGS=$lt_AR_FLAGS
12389
12390# A C compiler.
12391LTCC=$lt_LTCC
12392
12393# LTCC compiler flags.
12394LTCFLAGS=$lt_LTCFLAGS
12395
12396# A language-specific compiler.
12397CC=$lt_compiler_GCJ
12398
12399# Is the compiler the GNU C compiler?
12400with_gcc=$GCC_GCJ
12401
12402# An ERE matcher.
12403EGREP=$lt_EGREP
12404
12405# The linker used to build libraries.
12406LD=$lt_LD_GCJ
12407
12408# Whether we need hard or soft links.
12409LN_S=$lt_LN_S
12410
12411# A BSD-compatible nm program.
12412NM=$lt_NM
12413
12414# A symbol stripping program
12415STRIP=$lt_STRIP
12416
12417# Used to examine libraries when file_magic_cmd begins "file"
12418MAGIC_CMD=$MAGIC_CMD
12419
12420# Used on cygwin: DLL creation program.
12421DLLTOOL="$DLLTOOL"
12422
12423# Used on cygwin: object dumper.
12424OBJDUMP="$OBJDUMP"
12425
12426# Used on cygwin: assembler.
12427AS="$AS"
12428
12429# The name of the directory that contains temporary libtool files.
12430objdir=$objdir
12431
12432# How to create reloadable object files.
12433reload_flag=$lt_reload_flag
12434reload_cmds=$lt_reload_cmds
12435
12436# How to pass a linker flag through the compiler.
12437wl=$lt_lt_prog_compiler_wl_GCJ
12438
12439# Object file suffix (normally "o").
12440objext="$ac_objext"
12441
12442# Old archive suffix (normally "a").
12443libext="$libext"
12444
12445# Shared library suffix (normally ".so").
12446shrext_cmds='$shrext_cmds'
12447
12448# Executable file suffix (normally "").
12449exeext="$exeext"
12450
12451# Additional compiler flags for building library objects.
12452pic_flag=$lt_lt_prog_compiler_pic_GCJ
12453pic_mode=$pic_mode
12454
12455# What is the maximum length of a command?
12456max_cmd_len=$lt_cv_sys_max_cmd_len
12457
12458# Does compiler simultaneously support -c and -o options?
12459compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
12460
12461# Must we lock files when doing compilation?
12462need_locks=$lt_need_locks
12463
12464# Do we need the lib prefix for modules?
12465need_lib_prefix=$need_lib_prefix
12466
12467# Do we need a version for libraries?
12468need_version=$need_version
12469
12470# Whether dlopen is supported.
12471dlopen_support=$enable_dlopen
12472
12473# Whether dlopen of programs is supported.
12474dlopen_self=$enable_dlopen_self
12475
12476# Whether dlopen of statically linked programs is supported.
12477dlopen_self_static=$enable_dlopen_self_static
12478
12479# Compiler flag to prevent dynamic linking.
12480link_static_flag=$lt_lt_prog_compiler_static_GCJ
12481
12482# Compiler flag to turn off builtin functions.
12483no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
12484
12485# Compiler flag to allow reflexive dlopens.
12486export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
12487
12488# Compiler flag to generate shared objects directly from archives.
12489whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
12490
12491# Compiler flag to generate thread-safe objects.
12492thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
12493
12494# Library versioning type.
12495version_type=$version_type
12496
12497# Format of library name prefix.
12498libname_spec=$lt_libname_spec
12499
12500# List of archive names. First name is the real one, the rest are links.
12501# The last name is the one that the linker finds with -lNAME.
12502library_names_spec=$lt_library_names_spec
12503
12504# The coded name of the library, if different from the real name.
12505soname_spec=$lt_soname_spec
12506
12507# Commands used to build and install an old-style archive.
12508RANLIB=$lt_RANLIB
12509old_archive_cmds=$lt_old_archive_cmds_GCJ
12510old_postinstall_cmds=$lt_old_postinstall_cmds
12511old_postuninstall_cmds=$lt_old_postuninstall_cmds
12512
12513# Create an old-style archive from a shared archive.
12514old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
12515
12516# Create a temporary old-style archive to link instead of a shared archive.
12517old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
12518
12519# Commands used to build and install a shared archive.
12520archive_cmds=$lt_archive_cmds_GCJ
12521archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
12522postinstall_cmds=$lt_postinstall_cmds
12523postuninstall_cmds=$lt_postuninstall_cmds
12524
12525# Commands used to build a loadable module (assumed same as above if empty)
12526module_cmds=$lt_module_cmds_GCJ
12527module_expsym_cmds=$lt_module_expsym_cmds_GCJ
12528
12529# Commands to strip libraries.
12530old_striplib=$lt_old_striplib
12531striplib=$lt_striplib
12532
12533# Dependencies to place before the objects being linked to create a
12534# shared library.
12535predep_objects=$lt_predep_objects_GCJ
12536
12537# Dependencies to place after the objects being linked to create a
12538# shared library.
12539postdep_objects=$lt_postdep_objects_GCJ
12540
12541# Dependencies to place before the objects being linked to create a
12542# shared library.
12543predeps=$lt_predeps_GCJ
12544
12545# Dependencies to place after the objects being linked to create a
12546# shared library.
12547postdeps=$lt_postdeps_GCJ
12548
12549# The directories searched by this compiler when creating a shared
12550# library
12551compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
12552
12553# The library search path used internally by the compiler when linking
12554# a shared library.
12555compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
12556
12557# Method to check whether dependent libraries are shared objects.
12558deplibs_check_method=$lt_deplibs_check_method
12559
12560# Command to use when deplibs_check_method == file_magic.
12561file_magic_cmd=$lt_file_magic_cmd
12562
12563# Flag that allows shared libraries with undefined symbols to be built.
12564allow_undefined_flag=$lt_allow_undefined_flag_GCJ
12565
12566# Flag that forces no undefined symbols.
12567no_undefined_flag=$lt_no_undefined_flag_GCJ
12568
12569# Commands used to finish a libtool library installation in a directory.
12570finish_cmds=$lt_finish_cmds
12571
12572# Same as above, but a single script fragment to be evaled but not shown.
12573finish_eval=$lt_finish_eval
12574
12575# Take the output of nm and produce a listing of raw symbols and C names.
12576global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12577
12578# Transform the output of nm in a proper C declaration
12579global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12580
12581# Transform the output of nm in a C name address pair
12582global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12583
12584# This is the shared library runtime path variable.
12585runpath_var=$runpath_var
12586
12587# This is the shared library path variable.
12588shlibpath_var=$shlibpath_var
12589
12590# Is shlibpath searched before the hard-coded library search path?
12591shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12592
12593# How to hardcode a shared library path into an executable.
12594hardcode_action=$hardcode_action_GCJ
12595
12596# Whether we should hardcode library paths into libraries.
12597hardcode_into_libs=$hardcode_into_libs
12598
12599# Flag to hardcode \$libdir into a binary during linking.
12600# This must work even if \$libdir does not exist.
12601hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
12602
12603# If ld is used when linking, flag to hardcode \$libdir into
12604# a binary during linking. This must work even if \$libdir does
12605# not exist.
12606hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
12607
12608# Whether we need a single -rpath flag with a separated argument.
12609hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
12610
12611# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12612# resulting binary.
12613hardcode_direct=$hardcode_direct_GCJ
12614
12615# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12616# resulting binary.
12617hardcode_minus_L=$hardcode_minus_L_GCJ
12618
12619# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12620# the resulting binary.
12621hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
12622
12623# Set to yes if building a shared library automatically hardcodes DIR into the library
12624# and all subsequent libraries and executables linked against it.
12625hardcode_automatic=$hardcode_automatic_GCJ
12626
12627# Variables whose values should be saved in libtool wrapper scripts and
12628# restored at relink time.
12629variables_saved_for_relink="$variables_saved_for_relink"
12630
12631# Whether libtool must link a program against all its dependency libraries.
12632link_all_deplibs=$link_all_deplibs_GCJ
12633
12634# Compile-time system search path for libraries
12635sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12636
12637# Run-time system search path for libraries
12638sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12639
12640# Fix the shell variable \$srcfile for the compiler.
12641fix_srcfile_path=$lt_fix_srcfile_path
12642
12643# Set to yes if exported symbols are required.
12644always_export_symbols=$always_export_symbols_GCJ
12645
12646# The commands to list exported symbols.
12647export_symbols_cmds=$lt_export_symbols_cmds_GCJ
12648
12649# The commands to extract the exported symbol list from a shared archive.
12650extract_expsyms_cmds=$lt_extract_expsyms_cmds
12651
12652# Symbols that should not be listed in the preloaded symbols.
12653exclude_expsyms=$lt_exclude_expsyms_GCJ
12654
12655# Symbols that must always be exported.
12656include_expsyms=$lt_include_expsyms_GCJ
12657
12658# ### END LIBTOOL TAG CONFIG: $tagname
12659
12660__EOF__
12661
12662
12663else
12664 # If there is no Makefile yet, we rely on a make rule to execute
12665 # `config.status --recheck' to rerun these tests and create the
12666 # libtool script then.
12667 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12668 if test -f "$ltmain_in"; then
12669 test -f Makefile && make "$ltmain"
12670 fi
12671fi
12672
12673
12674ac_ext=c
12675ac_cpp='$CPP $CPPFLAGS'
12676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12678ac_compiler_gnu=$ac_cv_c_compiler_gnu
12679
12680CC="$lt_save_CC"
12681
12682 else
12683 tagname=""
12684 fi
12685 ;;
12686
12687 RC)
12688
12689
12690# Source file extension for RC test sources.
12691ac_ext=rc
12692
12693# Object file extension for compiled RC test sources.
12694objext=o
12695objext_RC=$objext
12696
12697# Code to be used in simple compile tests
12698lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12699
12700# Code to be used in simple link tests
12701lt_simple_link_test_code="$lt_simple_compile_test_code"
12702
12703# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12704
12705# If no C compiler was specified, use CC.
12706LTCC=${LTCC-"$CC"}
12707
12708# If no C compiler flags were specified, use CFLAGS.
12709LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12710
12711# Allow CC to be a program name with arguments.
12712compiler=$CC
12713
12714
12715# save warnings/boilerplate of simple test code
12716ac_outfile=conftest.$ac_objext
12717echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12718eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12719_lt_compiler_boilerplate=`cat conftest.err`
12720$rm conftest*
12721
12722ac_outfile=conftest.$ac_objext
12723echo "$lt_simple_link_test_code" >conftest.$ac_ext
12724eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12725_lt_linker_boilerplate=`cat conftest.err`
12726$rm -r conftest*
12727
12728
12729# Allow CC to be a program name with arguments.
12730lt_save_CC="$CC"
12731CC=${RC-"windres"}
12732compiler=$CC
12733compiler_RC=$CC
12734for cc_temp in $compiler""; do
12735 case $cc_temp in
12736 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12737 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12738 \-*) ;;
12739 *) break;;
12740 esac
12741done
12742cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12743
12744lt_cv_prog_compiler_c_o_RC=yes
12745
12746# The else clause should only fire when bootstrapping the
12747# libtool distribution, otherwise you forgot to ship ltmain.sh
12748# with your package, and you will get complaints that there are
12749# no rules to generate ltmain.sh.
12750if test -f "$ltmain"; then
12751 # See if we are running on zsh, and set the options which allow our commands through
12752 # without removal of \ escapes.
12753 if test -n "${ZSH_VERSION+set}" ; then
12754 setopt NO_GLOB_SUBST
12755 fi
12756 # Now quote all the things that may contain metacharacters while being
12757 # careful not to overquote the AC_SUBSTed values. We take copies of the
12758 # variables and quote the copies for generation of the libtool script.
12759 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12760 SED SHELL STRIP \
12761 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12762 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12763 deplibs_check_method reload_flag reload_cmds need_locks \
12764 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12765 lt_cv_sys_global_symbol_to_c_name_address \
12766 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12767 old_postinstall_cmds old_postuninstall_cmds \
12768 compiler_RC \
12769 CC_RC \
12770 LD_RC \
12771 lt_prog_compiler_wl_RC \
12772 lt_prog_compiler_pic_RC \
12773 lt_prog_compiler_static_RC \
12774 lt_prog_compiler_no_builtin_flag_RC \
12775 export_dynamic_flag_spec_RC \
12776 thread_safe_flag_spec_RC \
12777 whole_archive_flag_spec_RC \
12778 enable_shared_with_static_runtimes_RC \
12779 old_archive_cmds_RC \
12780 old_archive_from_new_cmds_RC \
12781 predep_objects_RC \
12782 postdep_objects_RC \
12783 predeps_RC \
12784 postdeps_RC \
12785 compiler_lib_search_path_RC \
12786 compiler_lib_search_dirs_RC \
12787 archive_cmds_RC \
12788 archive_expsym_cmds_RC \
12789 postinstall_cmds_RC \
12790 postuninstall_cmds_RC \
12791 old_archive_from_expsyms_cmds_RC \
12792 allow_undefined_flag_RC \
12793 no_undefined_flag_RC \
12794 export_symbols_cmds_RC \
12795 hardcode_libdir_flag_spec_RC \
12796 hardcode_libdir_flag_spec_ld_RC \
12797 hardcode_libdir_separator_RC \
12798 hardcode_automatic_RC \
12799 module_cmds_RC \
12800 module_expsym_cmds_RC \
12801 lt_cv_prog_compiler_c_o_RC \
12802 fix_srcfile_path_RC \
12803 exclude_expsyms_RC \
12804 include_expsyms_RC; do
12805
12806 case $var in
12807 old_archive_cmds_RC | \
12808 old_archive_from_new_cmds_RC | \
12809 archive_cmds_RC | \
12810 archive_expsym_cmds_RC | \
12811 module_cmds_RC | \
12812 module_expsym_cmds_RC | \
12813 old_archive_from_expsyms_cmds_RC | \
12814 export_symbols_cmds_RC | \
12815 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12816 postinstall_cmds | postuninstall_cmds | \
12817 old_postinstall_cmds | old_postuninstall_cmds | \
12818 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12819 # Double-quote double-evaled strings.
12820 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12821 ;;
12822 *)
12823 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12824 ;;
12825 esac
12826 done
12827
12828 case $lt_echo in
12829 *'\$0 --fallback-echo"')
12830 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12831 ;;
12832 esac
12833
12834cfgfile="$ofile"
12835
12836 cat <<__EOF__ >> "$cfgfile"
12837# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12838
12839# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12840
12841# Shell to use when invoking shell scripts.
12842SHELL=$lt_SHELL
12843
12844# Whether or not to build shared libraries.
12845build_libtool_libs=$enable_shared
12846
12847# Whether or not to build static libraries.
12848build_old_libs=$enable_static
12849
12850# Whether or not to add -lc for building shared libraries.
12851build_libtool_need_lc=$archive_cmds_need_lc_RC
12852
12853# Whether or not to disallow shared libs when runtime libs are static
12854allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12855
12856# Whether or not to optimize for fast installation.
12857fast_install=$enable_fast_install
12858
12859# The host system.
12860host_alias=$host_alias
12861host=$host
12862host_os=$host_os
12863
12864# The build system.
12865build_alias=$build_alias
12866build=$build
12867build_os=$build_os
12868
12869# An echo program that does not interpret backslashes.
12870echo=$lt_echo
12871
12872# The archiver.
12873AR=$lt_AR
12874AR_FLAGS=$lt_AR_FLAGS
12875
12876# A C compiler.
12877LTCC=$lt_LTCC
12878
12879# LTCC compiler flags.
12880LTCFLAGS=$lt_LTCFLAGS
12881
12882# A language-specific compiler.
12883CC=$lt_compiler_RC
12884
12885# Is the compiler the GNU C compiler?
12886with_gcc=$GCC_RC
12887
12888# An ERE matcher.
12889EGREP=$lt_EGREP
12890
12891# The linker used to build libraries.
12892LD=$lt_LD_RC
12893
12894# Whether we need hard or soft links.
12895LN_S=$lt_LN_S
12896
12897# A BSD-compatible nm program.
12898NM=$lt_NM
12899
12900# A symbol stripping program
12901STRIP=$lt_STRIP
12902
12903# Used to examine libraries when file_magic_cmd begins "file"
12904MAGIC_CMD=$MAGIC_CMD
12905
12906# Used on cygwin: DLL creation program.
12907DLLTOOL="$DLLTOOL"
12908
12909# Used on cygwin: object dumper.
12910OBJDUMP="$OBJDUMP"
12911
12912# Used on cygwin: assembler.
12913AS="$AS"
12914
12915# The name of the directory that contains temporary libtool files.
12916objdir=$objdir
12917
12918# How to create reloadable object files.
12919reload_flag=$lt_reload_flag
12920reload_cmds=$lt_reload_cmds
12921
12922# How to pass a linker flag through the compiler.
12923wl=$lt_lt_prog_compiler_wl_RC
12924
12925# Object file suffix (normally "o").
12926objext="$ac_objext"
12927
12928# Old archive suffix (normally "a").
12929libext="$libext"
12930
12931# Shared library suffix (normally ".so").
12932shrext_cmds='$shrext_cmds'
12933
12934# Executable file suffix (normally "").
12935exeext="$exeext"
12936
12937# Additional compiler flags for building library objects.
12938pic_flag=$lt_lt_prog_compiler_pic_RC
12939pic_mode=$pic_mode
12940
12941# What is the maximum length of a command?
12942max_cmd_len=$lt_cv_sys_max_cmd_len
12943
12944# Does compiler simultaneously support -c and -o options?
12945compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12946
12947# Must we lock files when doing compilation?
12948need_locks=$lt_need_locks
12949
12950# Do we need the lib prefix for modules?
12951need_lib_prefix=$need_lib_prefix
12952
12953# Do we need a version for libraries?
12954need_version=$need_version
12955
12956# Whether dlopen is supported.
12957dlopen_support=$enable_dlopen
12958
12959# Whether dlopen of programs is supported.
12960dlopen_self=$enable_dlopen_self
12961
12962# Whether dlopen of statically linked programs is supported.
12963dlopen_self_static=$enable_dlopen_self_static
12964
12965# Compiler flag to prevent dynamic linking.
12966link_static_flag=$lt_lt_prog_compiler_static_RC
12967
12968# Compiler flag to turn off builtin functions.
12969no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12970
12971# Compiler flag to allow reflexive dlopens.
12972export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12973
12974# Compiler flag to generate shared objects directly from archives.
12975whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12976
12977# Compiler flag to generate thread-safe objects.
12978thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12979
12980# Library versioning type.
12981version_type=$version_type
12982
12983# Format of library name prefix.
12984libname_spec=$lt_libname_spec
12985
12986# List of archive names. First name is the real one, the rest are links.
12987# The last name is the one that the linker finds with -lNAME.
12988library_names_spec=$lt_library_names_spec
12989
12990# The coded name of the library, if different from the real name.
12991soname_spec=$lt_soname_spec
12992
12993# Commands used to build and install an old-style archive.
12994RANLIB=$lt_RANLIB
12995old_archive_cmds=$lt_old_archive_cmds_RC
12996old_postinstall_cmds=$lt_old_postinstall_cmds
12997old_postuninstall_cmds=$lt_old_postuninstall_cmds
12998
12999# Create an old-style archive from a shared archive.
13000old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
13001
13002# Create a temporary old-style archive to link instead of a shared archive.
13003old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
13004
13005# Commands used to build and install a shared archive.
13006archive_cmds=$lt_archive_cmds_RC
13007archive_expsym_cmds=$lt_archive_expsym_cmds_RC
13008postinstall_cmds=$lt_postinstall_cmds
13009postuninstall_cmds=$lt_postuninstall_cmds
13010
13011# Commands used to build a loadable module (assumed same as above if empty)
13012module_cmds=$lt_module_cmds_RC
13013module_expsym_cmds=$lt_module_expsym_cmds_RC
13014
13015# Commands to strip libraries.
13016old_striplib=$lt_old_striplib
13017striplib=$lt_striplib
13018
13019# Dependencies to place before the objects being linked to create a
13020# shared library.
13021predep_objects=$lt_predep_objects_RC
13022
13023# Dependencies to place after the objects being linked to create a
13024# shared library.
13025postdep_objects=$lt_postdep_objects_RC
13026
13027# Dependencies to place before the objects being linked to create a
13028# shared library.
13029predeps=$lt_predeps_RC
13030
13031# Dependencies to place after the objects being linked to create a
13032# shared library.
13033postdeps=$lt_postdeps_RC
13034
13035# The directories searched by this compiler when creating a shared
13036# library
13037compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
13038
13039# The library search path used internally by the compiler when linking
13040# a shared library.
13041compiler_lib_search_path=$lt_compiler_lib_search_path_RC
13042
13043# Method to check whether dependent libraries are shared objects.
13044deplibs_check_method=$lt_deplibs_check_method
13045
13046# Command to use when deplibs_check_method == file_magic.
13047file_magic_cmd=$lt_file_magic_cmd
13048
13049# Flag that allows shared libraries with undefined symbols to be built.
13050allow_undefined_flag=$lt_allow_undefined_flag_RC
13051
13052# Flag that forces no undefined symbols.
13053no_undefined_flag=$lt_no_undefined_flag_RC
13054
13055# Commands used to finish a libtool library installation in a directory.
13056finish_cmds=$lt_finish_cmds
13057
13058# Same as above, but a single script fragment to be evaled but not shown.
13059finish_eval=$lt_finish_eval
13060
13061# Take the output of nm and produce a listing of raw symbols and C names.
13062global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13063
13064# Transform the output of nm in a proper C declaration
13065global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13066
13067# Transform the output of nm in a C name address pair
13068global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13069
13070# This is the shared library runtime path variable.
13071runpath_var=$runpath_var
13072
13073# This is the shared library path variable.
13074shlibpath_var=$shlibpath_var
13075
13076# Is shlibpath searched before the hard-coded library search path?
13077shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13078
13079# How to hardcode a shared library path into an executable.
13080hardcode_action=$hardcode_action_RC
13081
13082# Whether we should hardcode library paths into libraries.
13083hardcode_into_libs=$hardcode_into_libs
13084
13085# Flag to hardcode \$libdir into a binary during linking.
13086# This must work even if \$libdir does not exist.
13087hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
13088
13089# If ld is used when linking, flag to hardcode \$libdir into
13090# a binary during linking. This must work even if \$libdir does
13091# not exist.
13092hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
13093
13094# Whether we need a single -rpath flag with a separated argument.
13095hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
13096
13097# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13098# resulting binary.
13099hardcode_direct=$hardcode_direct_RC
13100
13101# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13102# resulting binary.
13103hardcode_minus_L=$hardcode_minus_L_RC
13104
13105# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13106# the resulting binary.
13107hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
13108
13109# Set to yes if building a shared library automatically hardcodes DIR into the library
13110# and all subsequent libraries and executables linked against it.
13111hardcode_automatic=$hardcode_automatic_RC
13112
13113# Variables whose values should be saved in libtool wrapper scripts and
13114# restored at relink time.
13115variables_saved_for_relink="$variables_saved_for_relink"
13116
13117# Whether libtool must link a program against all its dependency libraries.
13118link_all_deplibs=$link_all_deplibs_RC
13119
13120# Compile-time system search path for libraries
13121sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13122
13123# Run-time system search path for libraries
13124sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13125
13126# Fix the shell variable \$srcfile for the compiler.
13127fix_srcfile_path=$lt_fix_srcfile_path
13128
13129# Set to yes if exported symbols are required.
13130always_export_symbols=$always_export_symbols_RC
13131
13132# The commands to list exported symbols.
13133export_symbols_cmds=$lt_export_symbols_cmds_RC
13134
13135# The commands to extract the exported symbol list from a shared archive.
13136extract_expsyms_cmds=$lt_extract_expsyms_cmds
13137
13138# Symbols that should not be listed in the preloaded symbols.
13139exclude_expsyms=$lt_exclude_expsyms_RC
13140
13141# Symbols that must always be exported.
13142include_expsyms=$lt_include_expsyms_RC
13143
13144# ### END LIBTOOL TAG CONFIG: $tagname
13145
13146__EOF__
13147
13148
13149else
13150 # If there is no Makefile yet, we rely on a make rule to execute
13151 # `config.status --recheck' to rerun these tests and create the
13152 # libtool script then.
13153 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13154 if test -f "$ltmain_in"; then
13155 test -f Makefile && make "$ltmain"
13156 fi
13157fi
13158
13159
13160ac_ext=c
13161ac_cpp='$CPP $CPPFLAGS'
13162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13164ac_compiler_gnu=$ac_cv_c_compiler_gnu
13165
13166CC="$lt_save_CC"
13167
13168 ;;
13169
13170 *)
13171 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
13172echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
13173 { (exit 1); exit 1; }; }
13174 ;;
13175 esac
13176
13177 # Append the new tag name to the list of available tags.
13178 if test -n "$tagname" ; then
13179 available_tags="$available_tags $tagname"
13180 fi
13181 fi
13182 done
13183 IFS="$lt_save_ifs"
13184
13185 # Now substitute the updated list of available tags.
13186 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
13187 mv "${ofile}T" "$ofile"
13188 chmod +x "$ofile"
13189 else
13190 rm -f "${ofile}T"
13191 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
13192echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
13193 { (exit 1); exit 1; }; }
13194 fi
13195fi
13196
13197
13198
13199# This can be used to rebuild libtool when needed
13200LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
13201
13202# Always use our own libtool.
13203LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13204
13205# Prevent multiple expansion
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215for ac_prog in gawk mawk nawk awk
13216do
13217 # Extract the first word of "$ac_prog", so it can be a program name with args.
13218set dummy $ac_prog; ac_word=$2
13219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13221if test "${ac_cv_prog_AWK+set}" = set; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13223else
13224 if test -n "$AWK"; then
13225 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13226else
13227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228for as_dir in $PATH
13229do
13230 IFS=$as_save_IFS
13231 test -z "$as_dir" && as_dir=.
13232 for ac_exec_ext in '' $ac_executable_extensions; do
13233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13234 ac_cv_prog_AWK="$ac_prog"
13235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13236 break 2
13237 fi
13238done
13239done
13240IFS=$as_save_IFS
13241
13242fi
13243fi
13244AWK=$ac_cv_prog_AWK
13245if test -n "$AWK"; then
13246 { echo "$as_me:$LINENO: result: $AWK" >&5
13247echo "${ECHO_T}$AWK" >&6; }
13248else
13249 { echo "$as_me:$LINENO: result: no" >&5
13250echo "${ECHO_T}no" >&6; }
13251fi
13252
13253
13254 test -n "$AWK" && break
13255done
13256
13257
13258# Check whether --enable-kernel_compile was given.
13259if test "${enable_kernel_compile+set}" = set; then
13260 enableval=$enable_kernel_compile; KERNEL_COMPILE=no
13261else
13262 KERNEL_COMPILE=yes
13263fi
13264
13265
13266
13267
13268if test "$KERNEL_COMPILE" = "yes"; then
13269 BUILD_KERNEL_COMPILE_TRUE=
13270 BUILD_KERNEL_COMPILE_FALSE='#'
13271else
13272 BUILD_KERNEL_COMPILE_TRUE='#'
13273 BUILD_KERNEL_COMPILE_FALSE=
13274fi
13275
13276
13277{ echo "$as_me:$LINENO: checking whether to compile kernel modules" >&5
13278echo $ECHO_N "checking whether to compile kernel modules... $ECHO_C" >&6; }
13279if test "$KERNEL_COMPILE" = "yes" ; then
13280 { echo "$as_me:$LINENO: result: \"yes\"" >&5
13281echo "${ECHO_T}\"yes\"" >&6; }
13282else
13283 { echo "$as_me:$LINENO: result: \"no\"" >&5
13284echo "${ECHO_T}\"no\"" >&6; }
13285fi
13286
13287if test "$KERNEL_COMPILE" = "yes" ; then
13288
13289{ echo "$as_me:$LINENO: checking for directory with kernel source" >&5
13290echo $ECHO_N "checking for directory with kernel source... $ECHO_C" >&6; }
13291if test "$KERNEL_COMPILE" = "no" ; then
13292 DEFAULT_KERNEL_DIR=""
13293elif test -d "/lib/modules/`uname -r`/source" -o -L "/lib/modules/`uname -r`/source"; then
13294 DEFAULT_KERNEL_DIR="/lib/modules/`uname -r`/source"
13295 DEFAULT_KERNEL_BUILD="/lib/modules/`uname -r`/build"
13296elif test -d "/lib/modules/`uname -r`/build" -o -L "/lib/modules/`uname -r`/build"; then
13297 DEFAULT_KERNEL_DIR="/lib/modules/`uname -r`/build"
13298else
13299 DEFAULT_KERNEL_DIR="/usr/src/linux"
13300fi
13301
13302# Check whether --with-kernel was given.
13303if test "${with_kernel+set}" = set; then
13304 withval=$with_kernel; kerneldir="$withval"
13305else
13306 kerneldir="$DEFAULT_KERNEL_DIR"
13307
13308fi
13309
13310cat >>confdefs.h <<_ACEOF
13311#define CONFIG_HPI_KERNELDIR "$kerneldir"
13312_ACEOF
13313
13314CONFIG_HPI_KERNELDIR="$kerneldir"
13315
13316{ echo "$as_me:$LINENO: result: $kerneldir" >&5
13317echo "${ECHO_T}$kerneldir" >&6; }
13318
13319{ echo "$as_me:$LINENO: checking for directory with kernel build" >&5
13320echo $ECHO_N "checking for directory with kernel build... $ECHO_C" >&6; }
13321
13322# Check whether --with-build was given.
13323if test "${with_build+set}" = set; then
13324 withval=$with_build; kernelbuild="$withval"
13325else
13326 kernelbuild="$DEFAULT_KERNEL_BUILD"
13327
13328fi
13329
13330CONFIG_HPI_KERNELBUILD="$kernelbuild"
13331{ echo "$as_me:$LINENO: result: $kernelbuild" >&5
13332echo "${ECHO_T}$kernelbuild" >&6; }
13333
13334
13335
13336{ echo "$as_me:$LINENO: checking for kernel version" >&5
13337echo $ECHO_N "checking for kernel version... $ECHO_C" >&6; }
13338if test "$KERNEL_COMPILE" = "yes" -a ! -r $CONFIG_HPI_KERNELDIR/include/linux/version.h; then
13339 if test -n "$kernelbuild" -a ! -f $kernelbuild/include/linux/version.h; then
13340 cat << EOF
13341The file $CONFIG_HPI_KERNELDIR/include/linux/version.h does not exist.
13342Please, install the package with full kernel sources for your distribution
13343or use --with-kernel=dir option to specify another directory with kernel
13344sources (default is $DEFAULT_KERNEL_DIR).
13345EOF
13346 exit 1
13347 fi
13348fi
13349KERNEL_INC="-I$CONFIG_HPI_KERNELDIR/include"
13350MAKE_ADDS=""
13351if test -n "$kernelbuild"; then
13352 kpath=""
13353 if test -d "$kernelbuild/include"; then
13354 kpath="-I$kernelbuild/include"
13355 fi
13356 if test -d "$kernelbuild/include2"; then
13357 kpath="$kpath -I$kernelbuild/include2"
13358 fi
13359 KERNEL_INC="$kpath $KERNEL_INC"
13360 MAKE_ADDS="O=$kernelbuild"
13361fi
13362
13363
13364
13365HACK_KERNEL_INC=""
13366ac_save_CFLAGS="$CFLAGS"
13367CFLAGS="$CFLAGS $KERNEL_INC $HACK_KERNEL_INC"
13368if test -n "$kernelbuild" -a -f $kernelbuild/include/linux/version.h; then
13369 KERNDIR=$kernelbuild
13370else
13371 KERNDIR=$CONFIG_HPI_KERNELDIR
13372fi
13373if test -f $KERNDIR/include/linux/utsrelease.h; then
13374 KERNVERSIONFILE=$KERNDIR/include/linux/utsrelease.h
13375else
13376 KERNVERSIONFILE=$KERNDIR/include/linux/version.h
13377fi
13378if test "${kaversion+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13380else
13381 if test "$cross_compiling" = yes; then
13382 kaversion=""
13383else
13384 cat >conftest.$ac_ext <<_ACEOF
13385/* confdefs.h. */
13386_ACEOF
13387cat confdefs.h >>conftest.$ac_ext
13388cat >>conftest.$ac_ext <<_ACEOF
13389/* end confdefs.h. */
13390
13391#include <stdio.h>
13392#include <ctype.h>
13393#include "$KERNVERSIONFILE"
13394int main()
13395{
13396 FILE *f;
13397 char kversion[128];
13398 char kpatchlevel[128];
13399 char ksublevel[128];
13400 char kextra[128];
13401 char *ptr, *dptr;
13402#ifdef UTS_RELEASE
13403 f=fopen("./conftestdata","w");
13404 if (f) {
13405 for (ptr = UTS_RELEASE, dptr = kversion; *ptr != '\0' && isdigit(*ptr); ptr++, dptr++)
13406 *dptr = *ptr;
13407 *dptr = '\0';
13408 if (*ptr == '.')
13409 ptr++;
13410 for (dptr = kpatchlevel; *ptr != '\0' && isdigit(*ptr); ptr++, dptr++)
13411 *dptr = *ptr;
13412 *dptr = '\0';
13413 if (*ptr == '.')
13414 ptr++;
13415 for (dptr = ksublevel; *ptr != '\0' && isdigit(*ptr); ptr++, dptr++)
13416 *dptr = *ptr;
13417 *dptr = '\0';
13418 for (dptr = kextra; *ptr != '\0'; ptr++, dptr++)
13419 *dptr = *ptr;
13420 *dptr = '\0';
13421 fprintf(f,"%s:%s:%s:%s\n",kversion,kpatchlevel,ksublevel,kextra);
13422 fclose(f);
13423 }
13424 exit(0);
13425#else
13426 exit(1);
13427#endif
13428}
13429_ACEOF
13430rm -f conftest$ac_exeext
13431if { (ac_try="$ac_link"
13432case "(($ac_try" in
13433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434 *) ac_try_echo=$ac_try;;
13435esac
13436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13437 (eval "$ac_link") 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13441 { (case "(($ac_try" in
13442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443 *) ac_try_echo=$ac_try;;
13444esac
13445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446 (eval "$ac_try") 2>&5
13447 ac_status=$?
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; }; then
13450 kaversion=`cat conftestdata`
13451else
13452 echo "$as_me: program exited with status $ac_status" >&5
13453echo "$as_me: failed program was:" >&5
13454sed 's/^/| /' conftest.$ac_ext >&5
13455
13456( exit $ac_status )
13457kaversion=""
13458fi
13459rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13460fi
13461
13462
13463fi
13464
13465CFLAGS="$ac_save_CFLAGS"
13466kversion=`echo $kaversion | cut -d : -f 1`
13467kpatchlevel=`echo $kaversion | cut -d : -f 2`
13468ksublevel=`echo $kaversion | cut -d : -f 3`
13469kextraversion=`echo $kaversion | cut -d : -f 4`
13470kversion=`expr $kversion + 0`
13471kpatchlevel=`expr $kpatchlevel + 0`
13472ksublevel=`expr $ksublevel + 0`
13473if test "$KERNEL_COMPILE" = "yes" ; then
13474 if test -z "$kversion" || test -z "$kpatchlevel" || test -z "$ksublevel"; then
13475 echo "failed (probably missing $CONFIG_HPI_KERNELDIR/include/linux/version.h)"
13476 exit 1
13477 fi
13478fi
13479kaversion="$kversion.$kpatchlevel.$ksublevel$kextraversion"
13480
13481
13482
13483
13484
13485{ echo "$as_me:$LINENO: result: $kaversion" >&5
13486echo "${ECHO_T}$kaversion" >&6; }
13487
13488{ echo "$as_me:$LINENO: checking for GCC version" >&5
13489echo $ECHO_N "checking for GCC version... $ECHO_C" >&6; }
13490ac_save_CFLAGS="$CFLAGS"
13491CFLAGS="$CFLAGS $KERNEL_INC $HACK_KERNEL_INC"
13492if test -n "$kernelbuild" -a -f $kernelbuild/include/linux/compile.h; then
13493 KERNDIR=$kernelbuild
13494else
13495 KERNDIR=$CONFIG_HPI_KERNELDIR
13496fi
13497if test "${kernel_gcc+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13499else
13500 if test "$cross_compiling" = yes; then
13501 kernel_compiler=""
13502else
13503 cat >conftest.$ac_ext <<_ACEOF
13504/* confdefs.h. */
13505_ACEOF
13506cat confdefs.h >>conftest.$ac_ext
13507cat >>conftest.$ac_ext <<_ACEOF
13508/* end confdefs.h. */
13509
13510#include <stdio.h>
13511#include <ctype.h>
13512#include <string.h>
13513#include "$KERNDIR/include/linux/compile.h"
13514int main()
13515{
13516 FILE *f;
13517 char compiler[128];
13518 char *ptr, *dptr;
13519#ifdef LINUX_COMPILER
13520 f=fopen("./conftestdata","w");
13521 if (f) {
13522 for (ptr = LINUX_COMPILER, dptr = compiler; *ptr != '\0' && *ptr != ' ' && *ptr != '\t'; ptr++, dptr++)
13523 *dptr = *ptr;
13524 if (*ptr != '\0' && (*ptr == ' ' || *ptr == '\t'))
13525 ptr++;
13526 if (!strncmp(ptr, "version", 7))
13527 ptr += 7;
13528 if (*ptr != '\0' && (*ptr == ' ' || *ptr == '\t'))
13529 ptr++;
13530 *dptr++ = ' ';
13531 for (; *ptr != '\0' && *ptr != '\n'; ptr++, dptr++)
13532 *dptr = *ptr;
13533 *dptr = '\t';
13534 *dptr = '\0';
13535 if (!strcmp(compiler, " "))
13536 compiler[0] = '\0';
13537 fprintf(f,"%s\n",compiler);
13538 fclose(f);
13539 }
13540 exit(0);
13541#else
13542 exit(1);
13543#endif
13544}
13545_ACEOF
13546rm -f conftest$ac_exeext
13547if { (ac_try="$ac_link"
13548case "(($ac_try" in
13549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13550 *) ac_try_echo=$ac_try;;
13551esac
13552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13553 (eval "$ac_link") 2>&5
13554 ac_status=$?
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13557 { (case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13560esac
13561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_try") 2>&5
13563 ac_status=$?
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; }; then
13566 kernel_compiler=`cat conftestdata`
13567else
13568 echo "$as_me: program exited with status $ac_status" >&5
13569echo "$as_me: failed program was:" >&5
13570sed 's/^/| /' conftest.$ac_ext >&5
13571
13572( exit $ac_status )
13573kernel_compiler=""
13574fi
13575rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13576fi
13577
13578
13579fi
13580
13581CFLAGS="$ac_save_CFLAGS"
13582my_compiler=`$CROSS_COMPILE$CC --version | head -n 1`
13583
13584
13585
13586
13587 typevar=kernel_compiler_type
13588 versionvar=kernel_compiler_version
13589 ac_compiler_type=""
13590 ac_compiler_version=""
13591 for i in $kernel_compiler; do
13592 case $i in
13593 gcc-[0-9]*|*-gcc-[0-9]*)
13594 if test -z "$ac_compiler_type"; then
13595 ac_compiler_type=gcc
13596 fi
13597 if test -z "$ac_compiler_version"; then
13598 ac_compiler_version=`echo $i | sed -e 's/^.*gcc-\(0-9.\+\).*$/\1/'`
13599 fi
13600 ;;
13601 *gcc*|*GCC*)
13602 if test -z "$ac_compiler_type"; then
13603 ac_compiler_type=gcc
13604 fi
13605 ;;
13606 egcs-*)
13607 ac_compiler_type=egcs
13608 if test -z "$ac_compiler_version"; then
13609 ac_compiler_version=`echo $i | sed -e 's/egcs-\(.\+\)$/\1/'`
13610 fi
13611 ;;
13612 *cc*)
13613 if test -z "$ac_compiler_type"; then
13614 ac_compiler_type=cc
13615 fi
13616 ;;
13617 [0-9].[0-9]*)
13618 if test -z "$ac_compiler_version"; then
13619 ac_compiler_version="$i"
13620 fi
13621 ;;
13622 esac
13623 done
13624 eval $typevar="$ac_compiler_type"
13625 eval $versionvar="$ac_compiler_version"
13626
13627
13628 typevar=my_compiler_type
13629 versionvar=my_compiler_version
13630 ac_compiler_type=""
13631 ac_compiler_version=""
13632 for i in $my_compiler; do
13633 case $i in
13634 gcc-[0-9]*|*-gcc-[0-9]*)
13635 if test -z "$ac_compiler_type"; then
13636 ac_compiler_type=gcc
13637 fi
13638 if test -z "$ac_compiler_version"; then
13639 ac_compiler_version=`echo $i | sed -e 's/^.*gcc-\(0-9.\+\).*$/\1/'`
13640 fi
13641 ;;
13642 *gcc*|*GCC*)
13643 if test -z "$ac_compiler_type"; then
13644 ac_compiler_type=gcc
13645 fi
13646 ;;
13647 egcs-*)
13648 ac_compiler_type=egcs
13649 if test -z "$ac_compiler_version"; then
13650 ac_compiler_version=`echo $i | sed -e 's/egcs-\(.\+\)$/\1/'`
13651 fi
13652 ;;
13653 *cc*)
13654 if test -z "$ac_compiler_type"; then
13655 ac_compiler_type=cc
13656 fi
13657 ;;
13658 [0-9].[0-9]*)
13659 if test -z "$ac_compiler_version"; then
13660 ac_compiler_version="$i"
13661 fi
13662 ;;
13663 esac
13664 done
13665 eval $typevar="$ac_compiler_type"
13666 eval $versionvar="$ac_compiler_version"
13667
13668if test -z "$my_compiler_type"; then
13669 my_compiler_type="gcc"
13670fi
13671{ echo "$as_me:$LINENO: result: Kernel compiler: $kernel_compiler Used compiler: $my_compiler" >&5
13672echo "${ECHO_T}Kernel compiler: $kernel_compiler Used compiler: $my_compiler" >&6; };
13673if test -z "$kernel_compiler"; then
13674 echo
13675 echo "*** NO PREDEFINED KERNEL COMPILER IS DETECTED"
13676 echo "*** Assuming the same compiler is used with the current system compiler."
13677 echo
13678 echo "*** Please make sure that the same compiler version was used for building kernel."
13679 echo
13680else
13681if test "$my_compiler_type" != "$kernel_compiler_type"; then
13682 echo "Fatal error: Compiler type does not match"
13683 echo "Decoded kernel compiler: type=$kernel_compiler_type version=$kernel_compiler_version"
13684 echo "Decoded used compiler: type=$my_compiler_type version=$my_compiler_version"
13685 echo "Please, send ./configure output to <alsa-devel@alsa-project.org>"
13686 exit 1
13687fi
13688if test "$my_compiler_type" = "gcc" ; then
13689 kernel_major=`echo $kernel_compiler_version | cut -d '.' -f 1`
13690 my_major=`echo $my_compiler_version | cut -d '.' -f 1`
13691 if test $kernel_major -eq 2 -a $my_major -eq 3 ; then
13692 echo "Fatal error: Kernel is compiled with GCC 2.x and you are trying to use GCC 3.x."
13693 echo " These two version of GCC are incompatible for binary code."
13694 exit 1
13695 fi
13696 if test $kernel_major -eq 3 -a $my_major -eq 2 ; then
13697 echo "Fatal error: Kernel is compiled with GCC 3.x and you are trying to use GCC 2.x."
13698 echo " These two version of GCC are incompatible for binary code."
13699 exit 1
13700 fi
13701fi
13702fi
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715if test "$kversion.$kpatchlevel" = "2.6"; then
13716 NEW_KBUILD=y
13717
13718fi
13719
13720
13721
13722 boolvar="CONFIG_MODVERSIONS"
13723 boolvar1="CONFIG_MODVERSIONS_MODULE"
13724 { echo "$as_me:$LINENO: checking for kernel module symbol versions" >&5
13725echo $ECHO_N "checking for kernel module symbol versions... $ECHO_C" >&6; }
13726 ac_save_CFLAGS="$CFLAGS"
13727 CFLAGS="$CFLAGS $KERNEL_INC $HACK_KERNEL_INC"
13728 if test -n "$kernelbuild" -a -f "$kernelbuild/include/linux/autoconf.h"; then
13729 KERNDIR=$kernelbuild
13730 else
13731 KERNDIR=$CONFIG_HPI_KERNELDIR
13732 fi
13733 boolchk=""
13734 if test "$cross_compiling" = yes; then
13735 { echo "$as_me:$LINENO: result: \"unknown\"" >&5
13736echo "${ECHO_T}\"unknown\"" >&6; };boolchk=""
13737
13738else
13739 cat >conftest.$ac_ext <<_ACEOF
13740/* confdefs.h. */
13741_ACEOF
13742cat confdefs.h >>conftest.$ac_ext
13743cat >>conftest.$ac_ext <<_ACEOF
13744/* end confdefs.h. */
13745
13746#include "$KERNDIR/include/linux/autoconf.h"
13747int main( void ) {
13748#if !defined($boolvar) && !defined($boolvar1)
13749 exit(1);
13750#else
13751 exit(0);
13752#endif
13753}
13754
13755_ACEOF
13756rm -f conftest$ac_exeext
13757if { (ac_try="$ac_link"
13758case "(($ac_try" in
13759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760 *) ac_try_echo=$ac_try;;
13761esac
13762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13763 (eval "$ac_link") 2>&5
13764 ac_status=$?
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13767 { (case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13770esac
13771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_try") 2>&5
13773 ac_status=$?
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }; then
13776 { echo "$as_me:$LINENO: result: \"yes\"" >&5
13777echo "${ECHO_T}\"yes\"" >&6; };boolchk="y"
13778else
13779 echo "$as_me: program exited with status $ac_status" >&5
13780echo "$as_me: failed program was:" >&5
13781sed 's/^/| /' conftest.$ac_ext >&5
13782
13783( exit $ac_status )
13784{ echo "$as_me:$LINENO: result: \"no\"" >&5
13785echo "${ECHO_T}\"no\"" >&6; };boolchk=""
13786fi
13787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13788fi
13789
13790
13791 CFLAGS="$ac_save_CFLAGS"
13792 eval $boolvar="$boolchk"
13793
13794
13795
13796if test "$CONFIG_MODVERSIONS" = "y"; then
13797 MODVERSIONS=-DMODVERSIONS
13798
13799fi
13800
13801
13802 boolvar="CONFIG_SMP"
13803 boolvar1="CONFIG_SMP_MODULE"
13804 { echo "$as_me:$LINENO: checking for SMP" >&5
13805echo $ECHO_N "checking for SMP... $ECHO_C" >&6; }
13806 ac_save_CFLAGS="$CFLAGS"
13807 CFLAGS="$CFLAGS $KERNEL_INC $HACK_KERNEL_INC"
13808 if test -n "$kernelbuild" -a -f "$kernelbuild/include/linux/autoconf.h"; then
13809 KERNDIR=$kernelbuild
13810 else
13811 KERNDIR=$CONFIG_HPI_KERNELDIR
13812 fi
13813 boolchk=""
13814 if test "$cross_compiling" = yes; then
13815 { echo "$as_me:$LINENO: result: \"unknown\"" >&5
13816echo "${ECHO_T}\"unknown\"" >&6; };boolchk=""
13817
13818else
13819 cat >conftest.$ac_ext <<_ACEOF
13820/* confdefs.h. */
13821_ACEOF
13822cat confdefs.h >>conftest.$ac_ext
13823cat >>conftest.$ac_ext <<_ACEOF
13824/* end confdefs.h. */
13825
13826#include "$KERNDIR/include/linux/autoconf.h"
13827int main( void ) {
13828#if !defined($boolvar) && !defined($boolvar1)
13829 exit(1);
13830#else
13831 exit(0);
13832#endif
13833}
13834
13835_ACEOF
13836rm -f conftest$ac_exeext
13837if { (ac_try="$ac_link"
13838case "(($ac_try" in
13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 *) ac_try_echo=$ac_try;;
13841esac
13842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 (eval "$ac_link") 2>&5
13844 ac_status=$?
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13847 { (case "(($ac_try" in
13848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13849 *) ac_try_echo=$ac_try;;
13850esac
13851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13852 (eval "$ac_try") 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
13856 { echo "$as_me:$LINENO: result: \"yes\"" >&5
13857echo "${ECHO_T}\"yes\"" >&6; };boolchk="y"
13858else
13859 echo "$as_me: program exited with status $ac_status" >&5
13860echo "$as_me: failed program was:" >&5
13861sed 's/^/| /' conftest.$ac_ext >&5
13862
13863( exit $ac_status )
13864{ echo "$as_me:$LINENO: result: \"no\"" >&5
13865echo "${ECHO_T}\"no\"" >&6; };boolchk=""
13866fi
13867rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13868fi
13869
13870
13871 CFLAGS="$ac_save_CFLAGS"
13872 eval $boolvar="$boolchk"
13873
13874
13875
13876if test "$CONFIG_SMP" = "y"; then
13877# c_opts="$c_opts -D__SMP__ -DCONFIG_SMP"
13878 SMP="-D__SMP__ -DCONFIG_SMP"
13879
13880fi
13881
13882
13883 boolvar="CONFIG_FW_LOADER"
13884 boolvar1="CONFIG_FW_LOADER_MODULE"
13885 { echo "$as_me:$LINENO: checking for hotplug firmware loader" >&5
13886echo $ECHO_N "checking for hotplug firmware loader... $ECHO_C" >&6; }
13887 ac_save_CFLAGS="$CFLAGS"
13888 CFLAGS="$CFLAGS $KERNEL_INC $HACK_KERNEL_INC"
13889 if test -n "$kernelbuild" -a -f "$kernelbuild/include/linux/autoconf.h"; then
13890 KERNDIR=$kernelbuild
13891 else
13892 KERNDIR=$CONFIG_HPI_KERNELDIR
13893 fi
13894 boolchk=""
13895 if test "$cross_compiling" = yes; then
13896 { echo "$as_me:$LINENO: result: \"unknown\"" >&5
13897echo "${ECHO_T}\"unknown\"" >&6; };boolchk=""
13898
13899else
13900 cat >conftest.$ac_ext <<_ACEOF
13901/* confdefs.h. */
13902_ACEOF
13903cat confdefs.h >>conftest.$ac_ext
13904cat >>conftest.$ac_ext <<_ACEOF
13905/* end confdefs.h. */
13906
13907#include "$KERNDIR/include/linux/autoconf.h"
13908int main( void ) {
13909#if !defined($boolvar) && !defined($boolvar1)
13910 exit(1);
13911#else
13912 exit(0);
13913#endif
13914}
13915
13916_ACEOF
13917rm -f conftest$ac_exeext
13918if { (ac_try="$ac_link"
13919case "(($ac_try" in
13920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13921 *) ac_try_echo=$ac_try;;
13922esac
13923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13924 (eval "$ac_link") 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13928 { (case "(($ac_try" in
13929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930 *) ac_try_echo=$ac_try;;
13931esac
13932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933 (eval "$ac_try") 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; }; then
13937 { echo "$as_me:$LINENO: result: \"yes\"" >&5
13938echo "${ECHO_T}\"yes\"" >&6; };boolchk="y"
13939else
13940 echo "$as_me: program exited with status $ac_status" >&5
13941echo "$as_me: failed program was:" >&5
13942sed 's/^/| /' conftest.$ac_ext >&5
13943
13944( exit $ac_status )
13945{ echo "$as_me:$LINENO: result: \"no\"" >&5
13946echo "${ECHO_T}\"no\"" >&6; };boolchk=""
13947fi
13948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13949fi
13950
13951
13952 CFLAGS="$ac_save_CFLAGS"
13953 eval $boolvar="$boolchk"
13954
13955
13956 boolvar="CONFIG_FW_LOADER_MODULE"
13957 boolvar1="CONFIG_FW_LOADER_MODULE_MODULE"
13958 { echo "$as_me:$LINENO: checking for hotplug firmware loader module" >&5
13959echo $ECHO_N "checking for hotplug firmware loader module... $ECHO_C" >&6; }
13960 ac_save_CFLAGS="$CFLAGS"
13961 CFLAGS="$CFLAGS $KERNEL_INC $HACK_KERNEL_INC"
13962 if test -n "$kernelbuild" -a -f "$kernelbuild/include/linux/autoconf.h"; then
13963 KERNDIR=$kernelbuild
13964 else
13965 KERNDIR=$CONFIG_HPI_KERNELDIR
13966 fi
13967 boolchk=""
13968 if test "$cross_compiling" = yes; then
13969 { echo "$as_me:$LINENO: result: \"unknown\"" >&5
13970echo "${ECHO_T}\"unknown\"" >&6; };boolchk=""
13971
13972else
13973 cat >conftest.$ac_ext <<_ACEOF
13974/* confdefs.h. */
13975_ACEOF
13976cat confdefs.h >>conftest.$ac_ext
13977cat >>conftest.$ac_ext <<_ACEOF
13978/* end confdefs.h. */
13979
13980#include "$KERNDIR/include/linux/autoconf.h"
13981int main( void ) {
13982#if !defined($boolvar) && !defined($boolvar1)
13983 exit(1);
13984#else
13985 exit(0);
13986#endif
13987}
13988
13989_ACEOF
13990rm -f conftest$ac_exeext
13991if { (ac_try="$ac_link"
13992case "(($ac_try" in
13993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994 *) ac_try_echo=$ac_try;;
13995esac
13996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13997 (eval "$ac_link") 2>&5
13998 ac_status=$?
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14001 { (case "(($ac_try" in
14002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14003 *) ac_try_echo=$ac_try;;
14004esac
14005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14006 (eval "$ac_try") 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; }; then
14010 { echo "$as_me:$LINENO: result: \"yes\"" >&5
14011echo "${ECHO_T}\"yes\"" >&6; };boolchk="y"
14012else
14013 echo "$as_me: program exited with status $ac_status" >&5
14014echo "$as_me: failed program was:" >&5
14015sed 's/^/| /' conftest.$ac_ext >&5
14016
14017( exit $ac_status )
14018{ echo "$as_me:$LINENO: result: \"no\"" >&5
14019echo "${ECHO_T}\"no\"" >&6; };boolchk=""
14020fi
14021rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14022fi
14023
14024
14025 CFLAGS="$ac_save_CFLAGS"
14026 eval $boolvar="$boolchk"
14027
14028
14029if test "$CONFIG_FW_LOADER" = "y" -o "$CONFIG_FW_LOADER_MODULE" = "y" ; then
14030 echo "Using firmware_class Firmware loader for dsp code"
14031else
14032 echo "Fatal error: kernel firmware_class module required"
14033 exit 1
14034fi
14035
14036fi
14037
14038# where to put the firmware. If none of these is right, can specify where --with-firmware
14039if test -d /lib/firmware ; then
14040 FIRMWAREDIR="/lib/firmware/asihpi"
14041elif test -d /lib/hotplug/firmware ; then
14042 FIRMWAREDIR="/lib/hotplug/firmware/asihpi"
14043elif test -d /usr/lib/hotplug/firmware ; then
14044 FIRMWAREDIR="/usr/lib/hotplug/firmware/asihpi"
14045else
14046 FIRMWAREDIR="/lib/firmware/asihpi"
14047fi
14048
14049{ echo "$as_me:$LINENO: checking for directory to install firmware to" >&5
14050echo $ECHO_N "checking for directory to install firmware to... $ECHO_C" >&6; }
14051
14052# Check whether --with-firmware was given.
14053if test "${with_firmware+set}" = set; then
14054 withval=$with_firmware; FIRMWAREDIR="$withval/asihpi"
14055else
14056 FIRMWAREDIR="$FIRMWAREDIR"
14057
14058fi
14059
14060{ echo "$as_me:$LINENO: result: $FIRMWAREDIR" >&5
14061echo "${ECHO_T}$FIRMWAREDIR" >&6; }
14062DSPBINPATH="$FIRMWAREDIR"
14063
14064
14065#
14066# ALSA Compatibility Mode Switch
14067#
14068# Check whether --enable-alsa was given.
14069if test "${enable_alsa+set}" = set; then
14070 enableval=$enable_alsa; ALSA=no
14071fi
14072
14073
14074if test -z $ALSA ; then
14075 SPINLOCK=-DUSE_SPINLOCK=1
14076
14077 echo "Will build using ALSA compatibility mode"
14078else
14079 SPINLOCK=-DUSE_SPINLOCK=0
14080
14081 { echo "$as_me:$LINENO: WARNING: ALSA compatibility disabled - it is not safe to use this driver with asihpi ALSA driver" >&5
14082echo "$as_me: WARNING: ALSA compatibility disabled - it is not safe to use this driver with asihpi ALSA driver" >&2;}
14083fi
14084
14085#
14086# Build Tests Switch
14087#
14088# Check whether --enable-tests was given.
14089if test "${enable_tests+set}" = set; then
14090 enableval=$enable_tests; TESTS=no
14091fi
14092
14093
14094
14095if test -z $TESTS; then
14096 BUILD_TESTS_TRUE=
14097 BUILD_TESTS_FALSE='#'
14098else
14099 BUILD_TESTS_TRUE='#'
14100 BUILD_TESTS_FALSE=
14101fi
14102
14103if test -z $TESTS ; then
14104 echo "Will build adapter test utilities"
14105fi
14106
14107#
14108# KERNEL VERSION >= 2.6.0?
14109#
14110if test $kversion -ge 2 && test $kpatchlevel -ge 6 ; then
14111 KV="yes"
14112else
14113 KV="no"
14114fi
14115
14116
14117
14118if test $KV == "yes"; then
14119 KERNEL_26_TRUE=
14120 KERNEL_26_FALSE='#'
14121else
14122 KERNEL_26_TRUE='#'
14123 KERNEL_26_FALSE=
14124fi
14125
14126
14127if test $KV == "yes" ; then
14128 RPM_MODULE_PATH="extra"
14129
14130 RPM_MODULE_NAME="asihpi.ko"
14131
14132else
14133 RPM_MODULE_PATH="kernel/drivers/sound"
14134
14135 RPM_MODULE_NAME="asihpi.o"
14136
14137fi
14138
14139
14140
14141
14142{ echo "$as_me:$LINENO: checking target architecture" >&5
14143echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
14144ar_gcc_arch=`$CC -dumpmachine | $AWK -F- "{ print \\$1 }"`
14145ar_gcc_distro=`$CC -dumpmachine | $AWK -F- "{ print \\$2 }"`
14146{ echo "$as_me:$LINENO: result: \"distro:$ar_gcc_distro arch:$ar_gcc_arch\"" >&5
14147echo "${ECHO_T}\"distro:$ar_gcc_distro arch:$ar_gcc_arch\"" >&6; }
14148
14149VENDOR=$ar_gcc_distro
14150
14151ARCH=$ar_gcc_arch
14152
14153if test "$ar_gcc_arch" = "x86_64" ; then
14154 HPI_64BIT="-DHPI_64BIT"
14155
14156 LIB_PATH=lib64
14157
14158else
14159
14160 LIB_PATH=lib
14161
14162fi
14163
14164#
14165# Configure RPM Build
14166#
14167# Extract the first word of "rpmbuild", so it can be a program name with args.
14168set dummy rpmbuild; ac_word=$2
14169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14171if test "${ac_cv_prog_RPMBUILD_FOUND+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14173else
14174 if test -n "$RPMBUILD_FOUND"; then
14175 ac_cv_prog_RPMBUILD_FOUND="$RPMBUILD_FOUND" # Let the user override the test.
14176else
14177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178for as_dir in $PATH
14179do
14180 IFS=$as_save_IFS
14181 test -z "$as_dir" && as_dir=.
14182 for ac_exec_ext in '' $ac_executable_extensions; do
14183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14184 ac_cv_prog_RPMBUILD_FOUND="yes"
14185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14186 break 2
14187 fi
14188done
14189done
14190IFS=$as_save_IFS
14191
14192fi
14193fi
14194RPMBUILD_FOUND=$ac_cv_prog_RPMBUILD_FOUND
14195if test -n "$RPMBUILD_FOUND"; then
14196 { echo "$as_me:$LINENO: result: $RPMBUILD_FOUND" >&5
14197echo "${ECHO_T}$RPMBUILD_FOUND" >&6; }
14198else
14199 { echo "$as_me:$LINENO: result: no" >&5
14200echo "${ECHO_T}no" >&6; }
14201fi
14202
14203
14204if test -z $RPMBUILD_FOUND ; then
14205 RPMBUILD=rpm
14206
14207else
14208 RPMBUILD=rpmbuild
14209
14210fi
14211
14212KERNEL_VERSION=$kaversion
14213
14214
14215if test -d /usr/src/redhat ; then
14216 RPM_ROOT=/usr/src/redhat
14217
14218elif test -d /usr/src/packages ; then
14219 RPM_ROOT=/usr/src/packages
14220
14221elif test -d /usr/src/RPM ; then
14222 RPM_ROOT=/usr/src/RPM
14223
14224else
14225 { echo "$as_me:$LINENO: WARNING: Couldn't determine RPM_ROOT - make rpm probably won't work" >&5
14226echo "$as_me: WARNING: Couldn't determine RPM_ROOT - make rpm probably won't work" >&2;}
14227fi
14228
14229
14230# Check whether --with-pcap was given.
14231if test "${with_pcap+set}" = set; then
14232 withval=$with_pcap; USE_PCAP=${withval}
14233else
14234 USE_PCAP="yes"
14235fi
14236
14237
14238if test "${USE_PCAP}" = "yes" ; then
14239 { echo "$as_me:$LINENO: checking whether pcap_sendpacket is declared" >&5
14240echo $ECHO_N "checking whether pcap_sendpacket is declared... $ECHO_C" >&6; }
14241if test "${ac_cv_have_decl_pcap_sendpacket+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14243else
14244 cat >conftest.$ac_ext <<_ACEOF
14245/* confdefs.h. */
14246_ACEOF
14247cat confdefs.h >>conftest.$ac_ext
14248cat >>conftest.$ac_ext <<_ACEOF
14249/* end confdefs.h. */
14250#include <pcap.h>
14251
14252int
14253main ()
14254{
14255#ifndef pcap_sendpacket
14256 (void) pcap_sendpacket;
14257#endif
14258
14259 ;
14260 return 0;
14261}
14262_ACEOF
14263rm -f conftest.$ac_objext
14264if { (ac_try="$ac_compile"
14265case "(($ac_try" in
14266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267 *) ac_try_echo=$ac_try;;
14268esac
14269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14270 (eval "$ac_compile") 2>conftest.er1
14271 ac_status=$?
14272 grep -v '^ *+' conftest.er1 >conftest.err
14273 rm -f conftest.er1
14274 cat conftest.err >&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); } && {
14277 test -z "$ac_c_werror_flag" ||
14278 test ! -s conftest.err
14279 } && test -s conftest.$ac_objext; then
14280 ac_cv_have_decl_pcap_sendpacket=yes
14281else
14282 echo "$as_me: failed program was:" >&5
14283sed 's/^/| /' conftest.$ac_ext >&5
14284
14285 ac_cv_have_decl_pcap_sendpacket=no
14286fi
14287
14288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14289fi
14290{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_pcap_sendpacket" >&5
14291echo "${ECHO_T}$ac_cv_have_decl_pcap_sendpacket" >&6; }
14292if test $ac_cv_have_decl_pcap_sendpacket = yes; then
14293
14294cat >>confdefs.h <<_ACEOF
14295#define HAVE_DECL_PCAP_SENDPACKET 1
14296_ACEOF
14297
14298PCAP_H="1"
14299else
14300 cat >>confdefs.h <<_ACEOF
14301#define HAVE_DECL_PCAP_SENDPACKET 0
14302_ACEOF
14303
14304PCAP_H="0" ; { echo "$as_me:$LINENO: WARNING: Need libpcap-dev with pcap_sendpacket to build fwupdate2416" >&5
14305echo "$as_me: WARNING: Need libpcap-dev with pcap_sendpacket to build fwupdate2416" >&2;}
14306fi
14307
14308
14309else
14310 PCAP_H="0"
14311 { echo "$as_me:$LINENO: result: building without Pcap " >&5
14312echo "${ECHO_T}building without Pcap " >&6; }
14313fi
14314
14315
14316
14317if test "$PCAP_H" = "1"; then
14318 HAVE_PCAP_TRUE=
14319 HAVE_PCAP_FALSE='#'
14320else
14321 HAVE_PCAP_TRUE='#'
14322 HAVE_PCAP_FALSE=
14323fi
14324
14325
14326ac_config_files="$ac_config_files Makefile hpklinux.spec slack-desc make_slack drv/Makefile.auto drv/Makefile v4l/Makefile.auto v4l/Makefile lib/Makefile test/Makefile firmware/Makefile alsa/Makefile"
14327
14328cat >confcache <<\_ACEOF
14329# This file is a shell script that caches the results of configure
14330# tests run on this system so they can be shared between configure
14331# scripts and configure runs, see configure's option --config-cache.
14332# It is not useful on other systems. If it contains results you don't
14333# want to keep, you may remove or edit it.
14334#
14335# config.status only pays attention to the cache file if you give it
14336# the --recheck option to rerun configure.
14337#
14338# `ac_cv_env_foo' variables (set or unset) will be overridden when
14339# loading this file, other *unset* `ac_cv_foo' will be assigned the
14340# following values.
14341
14342_ACEOF
14343
14344# The following way of writing the cache mishandles newlines in values,
14345# but we know of no workaround that is simple, portable, and efficient.
14346# So, we kill variables containing newlines.
14347# Ultrix sh set writes to stderr and can't be redirected directly,
14348# and sets the high bit in the cache file unless we assign to the vars.
14349(
14350 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14351 eval ac_val=\$$ac_var
14352 case $ac_val in #(
14353 *${as_nl}*)
14354 case $ac_var in #(
14355 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14356echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14357 esac
14358 case $ac_var in #(
14359 _ | IFS | as_nl) ;; #(
14360 *) $as_unset $ac_var ;;
14361 esac ;;
14362 esac
14363 done
14364
14365 (set) 2>&1 |
14366 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14367 *${as_nl}ac_space=\ *)
14368 # `set' does not quote correctly, so add quotes (double-quote
14369 # substitution turns \\\\ into \\, and sed turns \\ into \).
14370 sed -n \
14371 "s/'/'\\\\''/g;
14372 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14373 ;; #(
14374 *)
14375 # `set' quotes correctly as required by POSIX, so do not add quotes.
14376 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14377 ;;
14378 esac |
14379 sort
14380) |
14381 sed '
14382 /^ac_cv_env_/b end
14383 t clear
14384 :clear
14385 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14386 t end
14387 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14388 :end' >>confcache
14389if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14390 if test -w "$cache_file"; then
14391 test "x$cache_file" != "x/dev/null" &&
14392 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14393echo "$as_me: updating cache $cache_file" >&6;}
14394 cat confcache >$cache_file
14395 else
14396 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14397echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14398 fi
14399fi
14400rm -f confcache
14401
14402test "x$prefix" = xNONE && prefix=$ac_default_prefix
14403# Let make expand exec_prefix.
14404test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14405
14406# Transform confdefs.h into DEFS.
14407# Protect against shell expansion while executing Makefile rules.
14408# Protect against Makefile macro expansion.
14409#
14410# If the first sed substitution is executed (which looks for macros that
14411# take arguments), then branch to the quote section. Otherwise,
14412# look for a macro that doesn't take arguments.
14413ac_script='
14414t clear
14415:clear
14416s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14417t quote
14418s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14419t quote
14420b any
14421:quote
14422s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14423s/\[/\\&/g
14424s/\]/\\&/g
14425s/\$/$$/g
14426H
14427:any
14428${
14429 g
14430 s/^\n//
14431 s/\n/ /g
14432 p
14433}
14434'
14435DEFS=`sed -n "$ac_script" confdefs.h`
14436
14437
14438ac_libobjs=
14439ac_ltlibobjs=
14440for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14441 # 1. Remove the extension, and $U if already installed.
14442 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14443 ac_i=`echo "$ac_i" | sed "$ac_script"`
14444 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14445 # will be set to the directory where LIBOBJS objects are built.
14446 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14447 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14448done
14449LIBOBJS=$ac_libobjs
14450
14451LTLIBOBJS=$ac_ltlibobjs
14452
14453
14454if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14455 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14456Usually this means the macro was only invoked conditionally." >&5
14457echo "$as_me: error: conditional \"AMDEP\" was never defined.
14458Usually this means the macro was only invoked conditionally." >&2;}
14459 { (exit 1); exit 1; }; }
14460fi
14461if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14462 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14463Usually this means the macro was only invoked conditionally." >&5
14464echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14465Usually this means the macro was only invoked conditionally." >&2;}
14466 { (exit 1); exit 1; }; }
14467fi
14468if test -z "${BUILD_KERNEL_COMPILE_TRUE}" && test -z "${BUILD_KERNEL_COMPILE_FALSE}"; then
14469 { { echo "$as_me:$LINENO: error: conditional \"BUILD_KERNEL_COMPILE\" was never defined.
14470Usually this means the macro was only invoked conditionally." >&5
14471echo "$as_me: error: conditional \"BUILD_KERNEL_COMPILE\" was never defined.
14472Usually this means the macro was only invoked conditionally." >&2;}
14473 { (exit 1); exit 1; }; }
14474fi
14475if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then
14476 { { echo "$as_me:$LINENO: error: conditional \"BUILD_TESTS\" was never defined.
14477Usually this means the macro was only invoked conditionally." >&5
14478echo "$as_me: error: conditional \"BUILD_TESTS\" was never defined.
14479Usually this means the macro was only invoked conditionally." >&2;}
14480 { (exit 1); exit 1; }; }
14481fi
14482if test -z "${KERNEL_26_TRUE}" && test -z "${KERNEL_26_FALSE}"; then
14483 { { echo "$as_me:$LINENO: error: conditional \"KERNEL_26\" was never defined.
14484Usually this means the macro was only invoked conditionally." >&5
14485echo "$as_me: error: conditional \"KERNEL_26\" was never defined.
14486Usually this means the macro was only invoked conditionally." >&2;}
14487 { (exit 1); exit 1; }; }
14488fi
14489if test -z "${HAVE_PCAP_TRUE}" && test -z "${HAVE_PCAP_FALSE}"; then
14490 { { echo "$as_me:$LINENO: error: conditional \"HAVE_PCAP\" was never defined.
14491Usually this means the macro was only invoked conditionally." >&5
14492echo "$as_me: error: conditional \"HAVE_PCAP\" was never defined.
14493Usually this means the macro was only invoked conditionally." >&2;}
14494 { (exit 1); exit 1; }; }
14495fi
14496
14497: ${CONFIG_STATUS=./config.status}
14498ac_clean_files_save=$ac_clean_files
14499ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14500{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14501echo "$as_me: creating $CONFIG_STATUS" >&6;}
14502cat >$CONFIG_STATUS <<_ACEOF
14503#! $SHELL
14504# Generated by $as_me.
14505# Run this file to recreate the current configuration.
14506# Compiler output produced by configure, useful for debugging
14507# configure, is in config.log if it exists.
14508
14509debug=false
14510ac_cs_recheck=false
14511ac_cs_silent=false
14512SHELL=\${CONFIG_SHELL-$SHELL}
14513_ACEOF
14514
14515cat >>$CONFIG_STATUS <<\_ACEOF
14516## --------------------- ##
14517## M4sh Initialization. ##
14518## --------------------- ##
14519
14520# Be more Bourne compatible
14521DUALCASE=1; export DUALCASE # for MKS sh
14522if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14523 emulate sh
14524 NULLCMD=:
14525 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14526 # is contrary to our usage. Disable this feature.
14527 alias -g '${1+"$@"}'='"$@"'
14528 setopt NO_GLOB_SUBST
14529else
14530 case `(set -o) 2>/dev/null` in
14531 *posix*) set -o posix ;;
14532esac
14533
14534fi
14535
14536
14537
14538
14539# PATH needs CR
14540# Avoid depending upon Character Ranges.
14541as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14542as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14543as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14544as_cr_digits='0123456789'
14545as_cr_alnum=$as_cr_Letters$as_cr_digits
14546
14547# The user is always right.
14548if test "${PATH_SEPARATOR+set}" != set; then
14549 echo "#! /bin/sh" >conf$$.sh
14550 echo "exit 0" >>conf$$.sh
14551 chmod +x conf$$.sh
14552 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14553 PATH_SEPARATOR=';'
14554 else
14555 PATH_SEPARATOR=:
14556 fi
14557 rm -f conf$$.sh
14558fi
14559
14560# Support unset when possible.
14561if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14562 as_unset=unset
14563else
14564 as_unset=false
14565fi
14566
14567
14568# IFS
14569# We need space, tab and new line, in precisely that order. Quoting is
14570# there to prevent editors from complaining about space-tab.
14571# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14572# splitting by setting IFS to empty value.)
14573as_nl='
14574'
14575IFS=" "" $as_nl"
14576
14577# Find who we are. Look in the path if we contain no directory separator.
14578case $0 in
14579 *[\\/]* ) as_myself=$0 ;;
14580 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14581for as_dir in $PATH
14582do
14583 IFS=$as_save_IFS
14584 test -z "$as_dir" && as_dir=.
14585 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14586done
14587IFS=$as_save_IFS
14588
14589 ;;
14590esac
14591# We did not find ourselves, most probably we were run as `sh COMMAND'
14592# in which case we are not to be found in the path.
14593if test "x$as_myself" = x; then
14594 as_myself=$0
14595fi
14596if test ! -f "$as_myself"; then
14597 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14598 { (exit 1); exit 1; }
14599fi
14600
14601# Work around bugs in pre-3.0 UWIN ksh.
14602for as_var in ENV MAIL MAILPATH
14603do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14604done
14605PS1='$ '
14606PS2='> '
14607PS4='+ '
14608
14609# NLS nuisances.
14610for as_var in \
14611 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14612 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14613 LC_TELEPHONE LC_TIME
14614do
14615 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14616 eval $as_var=C; export $as_var
14617 else
14618 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14619 fi
14620done
14621
14622# Required to use basename.
14623if expr a : '\(a\)' >/dev/null 2>&1 &&
14624 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14625 as_expr=expr
14626else
14627 as_expr=false
14628fi
14629
14630if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14631 as_basename=basename
14632else
14633 as_basename=false
14634fi
14635
14636
14637# Name of the executable.
14638as_me=`$as_basename -- "$0" ||
14639$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14640 X"$0" : 'X\(//\)$' \| \
14641 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14642echo X/"$0" |
14643 sed '/^.*\/\([^/][^/]*\)\/*$/{
14644 s//\1/
14645 q
14646 }
14647 /^X\/\(\/\/\)$/{
14648 s//\1/
14649 q
14650 }
14651 /^X\/\(\/\).*/{
14652 s//\1/
14653 q
14654 }
14655 s/.*/./; q'`
14656
14657# CDPATH.
14658$as_unset CDPATH
14659
14660
14661
14662 as_lineno_1=$LINENO
14663 as_lineno_2=$LINENO
14664 test "x$as_lineno_1" != "x$as_lineno_2" &&
14665 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14666
14667 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14668 # uniformly replaced by the line number. The first 'sed' inserts a
14669 # line-number line after each line using $LINENO; the second 'sed'
14670 # does the real work. The second script uses 'N' to pair each
14671 # line-number line with the line containing $LINENO, and appends
14672 # trailing '-' during substitution so that $LINENO is not a special
14673 # case at line end.
14674 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14675 # scripts with optimization help from Paolo Bonzini. Blame Lee
14676 # E. McMahon (1931-1989) for sed's syntax. :-)
14677 sed -n '
14678 p
14679 /[$]LINENO/=
14680 ' <$as_myself |
14681 sed '
14682 s/[$]LINENO.*/&-/
14683 t lineno
14684 b
14685 :lineno
14686 N
14687 :loop
14688 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14689 t loop
14690 s/-\n.*//
14691 ' >$as_me.lineno &&
14692 chmod +x "$as_me.lineno" ||
14693 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14694 { (exit 1); exit 1; }; }
14695
14696 # Don't try to exec as it changes $[0], causing all sort of problems
14697 # (the dirname of $[0] is not the place where we might find the
14698 # original and so on. Autoconf is especially sensitive to this).
14699 . "./$as_me.lineno"
14700 # Exit status is that of the last command.
14701 exit
14702}
14703
14704
14705if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14706 as_dirname=dirname
14707else
14708 as_dirname=false
14709fi
14710
14711ECHO_C= ECHO_N= ECHO_T=
14712case `echo -n x` in
14713-n*)
14714 case `echo 'x\c'` in
14715 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14716 *) ECHO_C='\c';;
14717 esac;;
14718*)
14719 ECHO_N='-n';;
14720esac
14721
14722if expr a : '\(a\)' >/dev/null 2>&1 &&
14723 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14724 as_expr=expr
14725else
14726 as_expr=false
14727fi
14728
14729rm -f conf$$ conf$$.exe conf$$.file
14730if test -d conf$$.dir; then
14731 rm -f conf$$.dir/conf$$.file
14732else
14733 rm -f conf$$.dir
14734 mkdir conf$$.dir
14735fi
14736echo >conf$$.file
14737if ln -s conf$$.file conf$$ 2>/dev/null; then
14738 as_ln_s='ln -s'
14739 # ... but there are two gotchas:
14740 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14741 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14742 # In both cases, we have to default to `cp -p'.
14743 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14744 as_ln_s='cp -p'
14745elif ln conf$$.file conf$$ 2>/dev/null; then
14746 as_ln_s=ln
14747else
14748 as_ln_s='cp -p'
14749fi
14750rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14751rmdir conf$$.dir 2>/dev/null
14752
14753if mkdir -p . 2>/dev/null; then
14754 as_mkdir_p=:
14755else
14756 test -d ./-p && rmdir ./-p
14757 as_mkdir_p=false
14758fi
14759
14760if test -x / >/dev/null 2>&1; then
14761 as_test_x='test -x'
14762else
14763 if ls -dL / >/dev/null 2>&1; then
14764 as_ls_L_option=L
14765 else
14766 as_ls_L_option=
14767 fi
14768 as_test_x='
14769 eval sh -c '\''
14770 if test -d "$1"; then
14771 test -d "$1/.";
14772 else
14773 case $1 in
14774 -*)set "./$1";;
14775 esac;
14776 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14777 ???[sx]*):;;*)false;;esac;fi
14778 '\'' sh
14779 '
14780fi
14781as_executable_p=$as_test_x
14782
14783# Sed expression to map a string onto a valid CPP name.
14784as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14785
14786# Sed expression to map a string onto a valid variable name.
14787as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14788
14789
14790exec 6>&1
14791
14792# Save the log message, to keep $[0] and so on meaningful, and to
14793# report actual input values of CONFIG_FILES etc. instead of their
14794# values after options handling.
14795ac_log="
14796This file was extended by hpklinux $as_me 3.08.06, which was
14797generated by GNU Autoconf 2.61. Invocation command line was
14798
14799 CONFIG_FILES = $CONFIG_FILES
14800 CONFIG_HEADERS = $CONFIG_HEADERS
14801 CONFIG_LINKS = $CONFIG_LINKS
14802 CONFIG_COMMANDS = $CONFIG_COMMANDS
14803 $ $0 $@
14804
14805on `(hostname || uname -n) 2>/dev/null | sed 1q`
14806"
14807
14808_ACEOF
14809
14810cat >>$CONFIG_STATUS <<_ACEOF
14811# Files that config.status was made for.
14812config_files="$ac_config_files"
14813config_commands="$ac_config_commands"
14814
14815_ACEOF
14816
14817cat >>$CONFIG_STATUS <<\_ACEOF
14818ac_cs_usage="\
14819\`$as_me' instantiates files from templates according to the
14820current configuration.
14821
14822Usage: $0 [OPTIONS] [FILE]...
14823
14824 -h, --help print this help, then exit
14825 -V, --version print version number and configuration settings, then exit
14826 -q, --quiet do not print progress messages
14827 -d, --debug don't remove temporary files
14828 --recheck update $as_me by reconfiguring in the same conditions
14829 --file=FILE[:TEMPLATE]
14830 instantiate the configuration file FILE
14831
14832Configuration files:
14833$config_files
14834
14835Configuration commands:
14836$config_commands
14837
14838Report bugs to <bug-autoconf@gnu.org>."
14839
14840_ACEOF
14841cat >>$CONFIG_STATUS <<_ACEOF
14842ac_cs_version="\\
14843hpklinux config.status 3.08.06
14844configured by $0, generated by GNU Autoconf 2.61,
14845 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14846
14847Copyright (C) 2006 Free Software Foundation, Inc.
14848This config.status script is free software; the Free Software Foundation
14849gives unlimited permission to copy, distribute and modify it."
14850
14851ac_pwd='$ac_pwd'
14852srcdir='$srcdir'
14853INSTALL='$INSTALL'
14854_ACEOF
14855
14856cat >>$CONFIG_STATUS <<\_ACEOF
14857# If no file are specified by the user, then we need to provide default
14858# value. By we need to know if files were specified by the user.
14859ac_need_defaults=:
14860while test $# != 0
14861do
14862 case $1 in
14863 --*=*)
14864 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14865 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14866 ac_shift=:
14867 ;;
14868 *)
14869 ac_option=$1
14870 ac_optarg=$2
14871 ac_shift=shift
14872 ;;
14873 esac
14874
14875 case $ac_option in
14876 # Handling of the options.
14877 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14878 ac_cs_recheck=: ;;
14879 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14880 echo "$ac_cs_version"; exit ;;
14881 --debug | --debu | --deb | --de | --d | -d )
14882 debug=: ;;
14883 --file | --fil | --fi | --f )
14884 $ac_shift
14885 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14886 ac_need_defaults=false;;
14887 --he | --h | --help | --hel | -h )
14888 echo "$ac_cs_usage"; exit ;;
14889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14890 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14891 ac_cs_silent=: ;;
14892
14893 # This is an error.
14894 -*) { echo "$as_me: error: unrecognized option: $1
14895Try \`$0 --help' for more information." >&2
14896 { (exit 1); exit 1; }; } ;;
14897
14898 *) ac_config_targets="$ac_config_targets $1"
14899 ac_need_defaults=false ;;
14900
14901 esac
14902 shift
14903done
14904
14905ac_configure_extra_args=
14906
14907if $ac_cs_silent; then
14908 exec 6>/dev/null
14909 ac_configure_extra_args="$ac_configure_extra_args --silent"
14910fi
14911
14912_ACEOF
14913cat >>$CONFIG_STATUS <<_ACEOF
14914if \$ac_cs_recheck; then
14915 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14916 CONFIG_SHELL=$SHELL
14917 export CONFIG_SHELL
14918 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14919fi
14920
14921_ACEOF
14922cat >>$CONFIG_STATUS <<\_ACEOF
14923exec 5>>config.log
14924{
14925 echo
14926 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14927## Running $as_me. ##
14928_ASBOX
14929 echo "$ac_log"
14930} >&5
14931
14932_ACEOF
14933cat >>$CONFIG_STATUS <<_ACEOF
14934#
14935# INIT-COMMANDS
14936#
14937AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14938
14939_ACEOF
14940
14941cat >>$CONFIG_STATUS <<\_ACEOF
14942
14943# Handling of arguments.
14944for ac_config_target in $ac_config_targets
14945do
14946 case $ac_config_target in
14947 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14948 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14949 "hpklinux.spec") CONFIG_FILES="$CONFIG_FILES hpklinux.spec" ;;
14950 "slack-desc") CONFIG_FILES="$CONFIG_FILES slack-desc" ;;
14951 "make_slack") CONFIG_FILES="$CONFIG_FILES make_slack" ;;
14952 "drv/Makefile.auto") CONFIG_FILES="$CONFIG_FILES drv/Makefile.auto" ;;
14953 "drv/Makefile") CONFIG_FILES="$CONFIG_FILES drv/Makefile" ;;
14954 "v4l/Makefile.auto") CONFIG_FILES="$CONFIG_FILES v4l/Makefile.auto" ;;
14955 "v4l/Makefile") CONFIG_FILES="$CONFIG_FILES v4l/Makefile" ;;
14956 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14957 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14958 "firmware/Makefile") CONFIG_FILES="$CONFIG_FILES firmware/Makefile" ;;
14959 "alsa/Makefile") CONFIG_FILES="$CONFIG_FILES alsa/Makefile" ;;
14960
14961 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14962echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14963 { (exit 1); exit 1; }; };;
14964 esac
14965done
14966
14967
14968# If the user did not use the arguments to specify the items to instantiate,
14969# then the envvar interface is used. Set only those that are not.
14970# We use the long form for the default assignment because of an extremely
14971# bizarre bug on SunOS 4.1.3.
14972if $ac_need_defaults; then
14973 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14974 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14975fi
14976
14977# Have a temporary directory for convenience. Make it in the build tree
14978# simply because there is no reason against having it here, and in addition,
14979# creating and moving files from /tmp can sometimes cause problems.
14980# Hook for its removal unless debugging.
14981# Note that there is a small window in which the directory will not be cleaned:
14982# after its creation but before its name has been assigned to `$tmp'.
14983$debug ||
14984{
14985 tmp=
14986 trap 'exit_status=$?
14987 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14988' 0
14989 trap '{ (exit 1); exit 1; }' 1 2 13 15
14990}
14991# Create a (secure) tmp directory for tmp files.
14992
14993{
14994 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14995 test -n "$tmp" && test -d "$tmp"
14996} ||
14997{
14998 tmp=./conf$$-$RANDOM
14999 (umask 077 && mkdir "$tmp")
15000} ||
15001{
15002 echo "$me: cannot create a temporary directory in ." >&2
15003 { (exit 1); exit 1; }
15004}
15005
15006#
15007# Set up the sed scripts for CONFIG_FILES section.
15008#
15009
15010# No need to generate the scripts if there are no CONFIG_FILES.
15011# This happens for instance when ./config.status config.h
15012if test -n "$CONFIG_FILES"; then
15013
15014_ACEOF
15015
15016
15017
15018ac_delim='%!_!# '
15019for ac_last_try in false false false false false :; do
15020 cat >conf$$subs.sed <<_ACEOF
15021SHELL!$SHELL$ac_delim
15022PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15023PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15024PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15025PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15026PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15027PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15028exec_prefix!$exec_prefix$ac_delim
15029prefix!$prefix$ac_delim
15030program_transform_name!$program_transform_name$ac_delim
15031bindir!$bindir$ac_delim
15032sbindir!$sbindir$ac_delim
15033libexecdir!$libexecdir$ac_delim
15034datarootdir!$datarootdir$ac_delim
15035datadir!$datadir$ac_delim
15036sysconfdir!$sysconfdir$ac_delim
15037sharedstatedir!$sharedstatedir$ac_delim
15038localstatedir!$localstatedir$ac_delim
15039includedir!$includedir$ac_delim
15040oldincludedir!$oldincludedir$ac_delim
15041docdir!$docdir$ac_delim
15042infodir!$infodir$ac_delim
15043htmldir!$htmldir$ac_delim
15044dvidir!$dvidir$ac_delim
15045pdfdir!$pdfdir$ac_delim
15046psdir!$psdir$ac_delim
15047libdir!$libdir$ac_delim
15048localedir!$localedir$ac_delim
15049mandir!$mandir$ac_delim
15050DEFS!$DEFS$ac_delim
15051ECHO_C!$ECHO_C$ac_delim
15052ECHO_N!$ECHO_N$ac_delim
15053ECHO_T!$ECHO_T$ac_delim
15054LIBS!$LIBS$ac_delim
15055build_alias!$build_alias$ac_delim
15056host_alias!$host_alias$ac_delim
15057target_alias!$target_alias$ac_delim
15058INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15059INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15060INSTALL_DATA!$INSTALL_DATA$ac_delim
15061CYGPATH_W!$CYGPATH_W$ac_delim
15062PACKAGE!$PACKAGE$ac_delim
15063VERSION!$VERSION$ac_delim
15064ACLOCAL!$ACLOCAL$ac_delim
15065AUTOCONF!$AUTOCONF$ac_delim
15066AUTOMAKE!$AUTOMAKE$ac_delim
15067AUTOHEADER!$AUTOHEADER$ac_delim
15068MAKEINFO!$MAKEINFO$ac_delim
15069install_sh!$install_sh$ac_delim
15070STRIP!$STRIP$ac_delim
15071INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
15072mkdir_p!$mkdir_p$ac_delim
15073AWK!$AWK$ac_delim
15074SET_MAKE!$SET_MAKE$ac_delim
15075am__leading_dot!$am__leading_dot$ac_delim
15076AMTAR!$AMTAR$ac_delim
15077am__tar!$am__tar$ac_delim
15078am__untar!$am__untar$ac_delim
15079RPM_RELEASE!$RPM_RELEASE$ac_delim
15080INTERFACE_CURRENT!$INTERFACE_CURRENT$ac_delim
15081INTERFACE_REVISION!$INTERFACE_REVISION$ac_delim
15082INTERFACE_AGE!$INTERFACE_AGE$ac_delim
15083INTERFACE_MAJOR!$INTERFACE_MAJOR$ac_delim
15084INTERFACE_MINOR!$INTERFACE_MINOR$ac_delim
15085INTERFACE_POINT!$INTERFACE_POINT$ac_delim
15086LOCAL_PREFIX!$LOCAL_PREFIX$ac_delim
15087CC!$CC$ac_delim
15088CFLAGS!$CFLAGS$ac_delim
15089LDFLAGS!$LDFLAGS$ac_delim
15090CPPFLAGS!$CPPFLAGS$ac_delim
15091ac_ct_CC!$ac_ct_CC$ac_delim
15092EXEEXT!$EXEEXT$ac_delim
15093OBJEXT!$OBJEXT$ac_delim
15094DEPDIR!$DEPDIR$ac_delim
15095am__include!$am__include$ac_delim
15096am__quote!$am__quote$ac_delim
15097AMDEP_TRUE!$AMDEP_TRUE$ac_delim
15098AMDEP_FALSE!$AMDEP_FALSE$ac_delim
15099AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
15100CCDEPMODE!$CCDEPMODE$ac_delim
15101am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
15102am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
15103build!$build$ac_delim
15104build_cpu!$build_cpu$ac_delim
15105build_vendor!$build_vendor$ac_delim
15106build_os!$build_os$ac_delim
15107host!$host$ac_delim
15108host_cpu!$host_cpu$ac_delim
15109host_vendor!$host_vendor$ac_delim
15110host_os!$host_os$ac_delim
15111SED!$SED$ac_delim
15112GREP!$GREP$ac_delim
15113EGREP!$EGREP$ac_delim
15114LN_S!$LN_S$ac_delim
15115ECHO!$ECHO$ac_delim
15116AR!$AR$ac_delim
15117RANLIB!$RANLIB$ac_delim
15118_ACEOF
15119
15120 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
15121 break
15122 elif $ac_last_try; then
15123 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15124echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15125 { (exit 1); exit 1; }; }
15126 else
15127 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15128 fi
15129done
15130
15131ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15132if test -n "$ac_eof"; then
15133 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15134 ac_eof=`expr $ac_eof + 1`
15135fi
15136
15137cat >>$CONFIG_STATUS <<_ACEOF
15138cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15139/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15140_ACEOF
15141sed '
15142s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15143s/^/s,@/; s/!/@,|#_!!_#|/
15144:n
15145t n
15146s/'"$ac_delim"'$/,g/; t
15147s/$/\\/; p
15148N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15149' >>$CONFIG_STATUS <conf$$subs.sed
15150rm -f conf$$subs.sed
15151cat >>$CONFIG_STATUS <<_ACEOF
15152CEOF$ac_eof
15153_ACEOF
15154
15155
15156ac_delim='%!_!# '
15157for ac_last_try in false false false false false :; do
15158 cat >conf$$subs.sed <<_ACEOF
15159DSYMUTIL!$DSYMUTIL$ac_delim
15160NMEDIT!$NMEDIT$ac_delim
15161CPP!$CPP$ac_delim
15162LIBTOOL!$LIBTOOL$ac_delim
15163BUILD_KERNEL_COMPILE_TRUE!$BUILD_KERNEL_COMPILE_TRUE$ac_delim
15164BUILD_KERNEL_COMPILE_FALSE!$BUILD_KERNEL_COMPILE_FALSE$ac_delim
15165CONFIG_HPI_KERNELDIR!$CONFIG_HPI_KERNELDIR$ac_delim
15166MAKE_ADDS!$MAKE_ADDS$ac_delim
15167kaversion!$kaversion$ac_delim
15168kversion!$kversion$ac_delim
15169kpatchlevel!$kpatchlevel$ac_delim
15170ksublevel!$ksublevel$ac_delim
15171kextraversion!$kextraversion$ac_delim
15172NEW_KBUILD!$NEW_KBUILD$ac_delim
15173MODVERSIONS!$MODVERSIONS$ac_delim
15174SMP!$SMP$ac_delim
15175DSPBINPATH!$DSPBINPATH$ac_delim
15176SPINLOCK!$SPINLOCK$ac_delim
15177BUILD_TESTS_TRUE!$BUILD_TESTS_TRUE$ac_delim
15178BUILD_TESTS_FALSE!$BUILD_TESTS_FALSE$ac_delim
15179KERNEL_26_TRUE!$KERNEL_26_TRUE$ac_delim
15180KERNEL_26_FALSE!$KERNEL_26_FALSE$ac_delim
15181RPM_MODULE_PATH!$RPM_MODULE_PATH$ac_delim
15182RPM_MODULE_NAME!$RPM_MODULE_NAME$ac_delim
15183VENDOR!$VENDOR$ac_delim
15184ARCH!$ARCH$ac_delim
15185HPI_64BIT!$HPI_64BIT$ac_delim
15186LIB_PATH!$LIB_PATH$ac_delim
15187RPMBUILD_FOUND!$RPMBUILD_FOUND$ac_delim
15188RPMBUILD!$RPMBUILD$ac_delim
15189KERNEL_VERSION!$KERNEL_VERSION$ac_delim
15190RPM_ROOT!$RPM_ROOT$ac_delim
15191HAVE_PCAP_TRUE!$HAVE_PCAP_TRUE$ac_delim
15192HAVE_PCAP_FALSE!$HAVE_PCAP_FALSE$ac_delim
15193LIBOBJS!$LIBOBJS$ac_delim
15194LTLIBOBJS!$LTLIBOBJS$ac_delim
15195_ACEOF
15196
15197 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 36; then
15198 break
15199 elif $ac_last_try; then
15200 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15201echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15202 { (exit 1); exit 1; }; }
15203 else
15204 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15205 fi
15206done
15207
15208ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15209if test -n "$ac_eof"; then
15210 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15211 ac_eof=`expr $ac_eof + 1`
15212fi
15213
15214cat >>$CONFIG_STATUS <<_ACEOF
15215cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15216/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15217_ACEOF
15218sed '
15219s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15220s/^/s,@/; s/!/@,|#_!!_#|/
15221:n
15222t n
15223s/'"$ac_delim"'$/,g/; t
15224s/$/\\/; p
15225N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15226' >>$CONFIG_STATUS <conf$$subs.sed
15227rm -f conf$$subs.sed
15228cat >>$CONFIG_STATUS <<_ACEOF
15229:end
15230s/|#_!!_#|//g
15231CEOF$ac_eof
15232_ACEOF
15233
15234
15235# VPATH may cause trouble with some makes, so we remove $(srcdir),
15236# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15237# trailing colons and then remove the whole line if VPATH becomes empty
15238# (actually we leave an empty line to preserve line numbers).
15239if test "x$srcdir" = x.; then
15240 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15241s/:*\$(srcdir):*/:/
15242s/:*\${srcdir}:*/:/
15243s/:*@srcdir@:*/:/
15244s/^\([^=]*=[ ]*\):*/\1/
15245s/:*$//
15246s/^[^=]*=[ ]*$//
15247}'
15248fi
15249
15250cat >>$CONFIG_STATUS <<\_ACEOF
15251fi # test -n "$CONFIG_FILES"
15252
15253
15254for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
15255do
15256 case $ac_tag in
15257 :[FHLC]) ac_mode=$ac_tag; continue;;
15258 esac
15259 case $ac_mode$ac_tag in
15260 :[FHL]*:*);;
15261 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15262echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15263 { (exit 1); exit 1; }; };;
15264 :[FH]-) ac_tag=-:-;;
15265 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15266 esac
15267 ac_save_IFS=$IFS
15268 IFS=:
15269 set x $ac_tag
15270 IFS=$ac_save_IFS
15271 shift
15272 ac_file=$1
15273 shift
15274
15275 case $ac_mode in
15276 :L) ac_source=$1;;
15277 :[FH])
15278 ac_file_inputs=
15279 for ac_f
15280 do
15281 case $ac_f in
15282 -) ac_f="$tmp/stdin";;
15283 *) # Look for the file first in the build tree, then in the source tree
15284 # (if the path is not absolute). The absolute path cannot be DOS-style,
15285 # because $ac_f cannot contain `:'.
15286 test -f "$ac_f" ||
15287 case $ac_f in
15288 [\\/$]*) false;;
15289 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15290 esac ||
15291 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15292echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15293 { (exit 1); exit 1; }; };;
15294 esac
15295 ac_file_inputs="$ac_file_inputs $ac_f"
15296 done
15297
15298 # Let's still pretend it is `configure' which instantiates (i.e., don't
15299 # use $as_me), people would be surprised to read:
15300 # /* config.h. Generated by config.status. */
15301 configure_input="Generated from "`IFS=:
15302 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15303 if test x"$ac_file" != x-; then
15304 configure_input="$ac_file. $configure_input"
15305 { echo "$as_me:$LINENO: creating $ac_file" >&5
15306echo "$as_me: creating $ac_file" >&6;}
15307 fi
15308
15309 case $ac_tag in
15310 *:-:* | *:-) cat >"$tmp/stdin";;
15311 esac
15312 ;;
15313 esac
15314
15315 ac_dir=`$as_dirname -- "$ac_file" ||
15316$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15317 X"$ac_file" : 'X\(//\)[^/]' \| \
15318 X"$ac_file" : 'X\(//\)$' \| \
15319 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15320echo X"$ac_file" |
15321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15322 s//\1/
15323 q
15324 }
15325 /^X\(\/\/\)[^/].*/{
15326 s//\1/
15327 q
15328 }
15329 /^X\(\/\/\)$/{
15330 s//\1/
15331 q
15332 }
15333 /^X\(\/\).*/{
15334 s//\1/
15335 q
15336 }
15337 s/.*/./; q'`
15338 { as_dir="$ac_dir"
15339 case $as_dir in #(
15340 -*) as_dir=./$as_dir;;
15341 esac
15342 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15343 as_dirs=
15344 while :; do
15345 case $as_dir in #(
15346 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15347 *) as_qdir=$as_dir;;
15348 esac
15349 as_dirs="'$as_qdir' $as_dirs"
15350 as_dir=`$as_dirname -- "$as_dir" ||
15351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15352 X"$as_dir" : 'X\(//\)[^/]' \| \
15353 X"$as_dir" : 'X\(//\)$' \| \
15354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15355echo X"$as_dir" |
15356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15357 s//\1/
15358 q
15359 }
15360 /^X\(\/\/\)[^/].*/{
15361 s//\1/
15362 q
15363 }
15364 /^X\(\/\/\)$/{
15365 s//\1/
15366 q
15367 }
15368 /^X\(\/\).*/{
15369 s//\1/
15370 q
15371 }
15372 s/.*/./; q'`
15373 test -d "$as_dir" && break
15374 done
15375 test -z "$as_dirs" || eval "mkdir $as_dirs"
15376 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15377echo "$as_me: error: cannot create directory $as_dir" >&2;}
15378 { (exit 1); exit 1; }; }; }
15379 ac_builddir=.
15380
15381case "$ac_dir" in
15382.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15383*)
15384 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15385 # A ".." for each directory in $ac_dir_suffix.
15386 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15387 case $ac_top_builddir_sub in
15388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15390 esac ;;
15391esac
15392ac_abs_top_builddir=$ac_pwd
15393ac_abs_builddir=$ac_pwd$ac_dir_suffix
15394# for backward compatibility:
15395ac_top_builddir=$ac_top_build_prefix
15396
15397case $srcdir in
15398 .) # We are building in place.
15399 ac_srcdir=.
15400 ac_top_srcdir=$ac_top_builddir_sub
15401 ac_abs_top_srcdir=$ac_pwd ;;
15402 [\\/]* | ?:[\\/]* ) # Absolute name.
15403 ac_srcdir=$srcdir$ac_dir_suffix;
15404 ac_top_srcdir=$srcdir
15405 ac_abs_top_srcdir=$srcdir ;;
15406 *) # Relative name.
15407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15408 ac_top_srcdir=$ac_top_build_prefix$srcdir
15409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15410esac
15411ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15412
15413
15414 case $ac_mode in
15415 :F)
15416 #
15417 # CONFIG_FILE
15418 #
15419
15420 case $INSTALL in
15421 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15422 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15423 esac
15424_ACEOF
15425
15426cat >>$CONFIG_STATUS <<\_ACEOF
15427# If the template does not know about datarootdir, expand it.
15428# FIXME: This hack should be removed a few years after 2.60.
15429ac_datarootdir_hack=; ac_datarootdir_seen=
15430
15431case `sed -n '/datarootdir/ {
15432 p
15433 q
15434}
15435/@datadir@/p
15436/@docdir@/p
15437/@infodir@/p
15438/@localedir@/p
15439/@mandir@/p
15440' $ac_file_inputs` in
15441*datarootdir*) ac_datarootdir_seen=yes;;
15442*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15443 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15444echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15445_ACEOF
15446cat >>$CONFIG_STATUS <<_ACEOF
15447 ac_datarootdir_hack='
15448 s&@datadir@&$datadir&g
15449 s&@docdir@&$docdir&g
15450 s&@infodir@&$infodir&g
15451 s&@localedir@&$localedir&g
15452 s&@mandir@&$mandir&g
15453 s&\\\${datarootdir}&$datarootdir&g' ;;
15454esac
15455_ACEOF
15456
15457# Neutralize VPATH when `$srcdir' = `.'.
15458# Shell code in configure.ac might set extrasub.
15459# FIXME: do we really want to maintain this feature?
15460cat >>$CONFIG_STATUS <<_ACEOF
15461 sed "$ac_vpsub
15462$extrasub
15463_ACEOF
15464cat >>$CONFIG_STATUS <<\_ACEOF
15465:t
15466/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15467s&@configure_input@&$configure_input&;t t
15468s&@top_builddir@&$ac_top_builddir_sub&;t t
15469s&@srcdir@&$ac_srcdir&;t t
15470s&@abs_srcdir@&$ac_abs_srcdir&;t t
15471s&@top_srcdir@&$ac_top_srcdir&;t t
15472s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15473s&@builddir@&$ac_builddir&;t t
15474s&@abs_builddir@&$ac_abs_builddir&;t t
15475s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15476s&@INSTALL@&$ac_INSTALL&;t t
15477$ac_datarootdir_hack
15478" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
15479
15480test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15481 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15482 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15483 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15484which seems to be undefined. Please make sure it is defined." >&5
15485echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15486which seems to be undefined. Please make sure it is defined." >&2;}
15487
15488 rm -f "$tmp/stdin"
15489 case $ac_file in
15490 -) cat "$tmp/out"; rm -f "$tmp/out";;
15491 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15492 esac
15493 ;;
15494
15495
15496 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15497echo "$as_me: executing $ac_file commands" >&6;}
15498 ;;
15499 esac
15500
15501
15502 case $ac_file$ac_mode in
15503 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15504 # Strip MF so we end up with the name of the file.
15505 mf=`echo "$mf" | sed -e 's/:.*$//'`
15506 # Check whether this is an Automake generated Makefile or not.
15507 # We used to match only the files named `Makefile.in', but
15508 # some people rename them; so instead we look at the file content.
15509 # Grep'ing the first line is not enough: some people post-process
15510 # each Makefile.in and add a new line on top of each file to say so.
15511 # So let's grep whole file.
15512 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15513 dirpart=`$as_dirname -- "$mf" ||
15514$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15515 X"$mf" : 'X\(//\)[^/]' \| \
15516 X"$mf" : 'X\(//\)$' \| \
15517 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15518echo X"$mf" |
15519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15520 s//\1/
15521 q
15522 }
15523 /^X\(\/\/\)[^/].*/{
15524 s//\1/
15525 q
15526 }
15527 /^X\(\/\/\)$/{
15528 s//\1/
15529 q
15530 }
15531 /^X\(\/\).*/{
15532 s//\1/
15533 q
15534 }
15535 s/.*/./; q'`
15536 else
15537 continue
15538 fi
15539 # Extract the definition of DEPDIR, am__include, and am__quote
15540 # from the Makefile without running `make'.
15541 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15542 test -z "$DEPDIR" && continue
15543 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15544 test -z "am__include" && continue
15545 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15546 # When using ansi2knr, U may be empty or an underscore; expand it
15547 U=`sed -n 's/^U = //p' < "$mf"`
15548 # Find all dependency output files, they are included files with
15549 # $(DEPDIR) in their names. We invoke sed twice because it is the
15550 # simplest approach to changing $(DEPDIR) to its actual value in the
15551 # expansion.
15552 for file in `sed -n "
15553 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15554 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15555 # Make sure the directory exists.
15556 test -f "$dirpart/$file" && continue
15557 fdir=`$as_dirname -- "$file" ||
15558$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15559 X"$file" : 'X\(//\)[^/]' \| \
15560 X"$file" : 'X\(//\)$' \| \
15561 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15562echo X"$file" |
15563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15564 s//\1/
15565 q
15566 }
15567 /^X\(\/\/\)[^/].*/{
15568 s//\1/
15569 q
15570 }
15571 /^X\(\/\/\)$/{
15572 s//\1/
15573 q
15574 }
15575 /^X\(\/\).*/{
15576 s//\1/
15577 q
15578 }
15579 s/.*/./; q'`
15580 { as_dir=$dirpart/$fdir
15581 case $as_dir in #(
15582 -*) as_dir=./$as_dir;;
15583 esac
15584 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15585 as_dirs=
15586 while :; do
15587 case $as_dir in #(
15588 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15589 *) as_qdir=$as_dir;;
15590 esac
15591 as_dirs="'$as_qdir' $as_dirs"
15592 as_dir=`$as_dirname -- "$as_dir" ||
15593$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15594 X"$as_dir" : 'X\(//\)[^/]' \| \
15595 X"$as_dir" : 'X\(//\)$' \| \
15596 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15597echo X"$as_dir" |
15598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15599 s//\1/
15600 q
15601 }
15602 /^X\(\/\/\)[^/].*/{
15603 s//\1/
15604 q
15605 }
15606 /^X\(\/\/\)$/{
15607 s//\1/
15608 q
15609 }
15610 /^X\(\/\).*/{
15611 s//\1/
15612 q
15613 }
15614 s/.*/./; q'`
15615 test -d "$as_dir" && break
15616 done
15617 test -z "$as_dirs" || eval "mkdir $as_dirs"
15618 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15619echo "$as_me: error: cannot create directory $as_dir" >&2;}
15620 { (exit 1); exit 1; }; }; }
15621 # echo "creating $dirpart/$file"
15622 echo '# dummy' > "$dirpart/$file"
15623 done
15624done
15625 ;;
15626
15627 esac
15628done # for ac_tag
15629
15630
15631{ (exit 0); exit 0; }
15632_ACEOF
15633chmod +x $CONFIG_STATUS
15634ac_clean_files=$ac_clean_files_save
15635
15636
15637# configure is writing to config.log, and then calls config.status.
15638# config.status does its own redirection, appending to config.log.
15639# Unfortunately, on DOS this fails, as config.log is still kept open
15640# by configure, so config.status won't be able to write to it; its
15641# output is simply discarded. So we exec the FD to /dev/null,
15642# effectively closing config.log, so it can be properly (re)opened and
15643# appended to by config.status. When coming back to configure, we
15644# need to make the FD available again.
15645if test "$no_create" != yes; then
15646 ac_cs_success=:
15647 ac_config_status_args=
15648 test "$silent" = yes &&
15649 ac_config_status_args="$ac_config_status_args --quiet"
15650 exec 5>/dev/null
15651 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15652 exec 5>>config.log
15653 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15654 # would make configure fail if this is the last instruction.
15655 $ac_cs_success || { (exit 1); exit 1; }
15656fi