Imported Debian patch 0.60.1-1
[hcoop/debian/courier-authlib.git] / sha1 / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
64ff59ba 3# Generated by GNU Autoconf 2.61 for libsha1 1.21.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
64ff59ba 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 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
64ff59ba 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 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+"$@"}'='"$@"'
64ff59ba 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
d9898ee8 53fi
d9898ee8 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
64ff59ba 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
d9898ee8 96# Work around bugs in pre-3.0 UWIN ksh.
64ff59ba 97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
d9898ee8 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
64ff59ba 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 114 fi
115done
116
117# Required to use basename.
64ff59ba 118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 120 as_expr=expr
121else
122 as_expr=false
123fi
124
64ff59ba 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
64ff59ba 133as_me=`$as_basename -- "$0" ||
d9898ee8 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
64ff59ba 136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 137echo X/"$0" |
64ff59ba 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'`
d9898ee8 151
64ff59ba 152# CDPATH.
153$as_unset CDPATH
d9898ee8 154
d9898ee8 155
64ff59ba 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
d9898ee8 161fi
162
64ff59ba 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}
d9898ee8 179
64ff59ba 180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
d9898ee8 187
64ff59ba 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=
d9898ee8 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=.
64ff59ba 228 case $as_dir in
d9898ee8 229 /*)
64ff59ba 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(
d9898ee8 330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
d9898ee8 332 test "x$as_lineno_1" != "x$as_lineno_2" &&
64ff59ba 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" || {
d9898ee8 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
64ff59ba 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.
d9898ee8 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
64ff59ba 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 |
d9898ee8 444 sed '
64ff59ba 445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
d9898ee8 449 N
64ff59ba 450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 452 t loop
64ff59ba 453 s/-\n.*//
d9898ee8 454 ' >$as_me.lineno &&
64ff59ba 455 chmod +x "$as_me.lineno" ||
d9898ee8 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
64ff59ba 461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
d9898ee8 463 # Exit status is that of the last command.
464 exit
465}
466
467
64ff59ba 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';;
d9898ee8 483esac
484
64ff59ba 485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
64ff59ba 493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
d9898ee8 499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
64ff59ba 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 ||
d9898ee8 507 as_ln_s='cp -p'
d9898ee8 508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
64ff59ba 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
d9898ee8 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
64ff59ba 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
d9898ee8 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
d9898ee8 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
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
64ff59ba 708exec 7<&0 </dev/null 6>&1
709
d9898ee8 710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
d9898ee8 715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
64ff59ba 719ac_clean_files=
d9898ee8 720ac_config_libobj_dir=.
64ff59ba 721LIBOBJS=
d9898ee8 722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
d9898ee8 728# Identity of this package.
729PACKAGE_NAME='libsha1'
730PACKAGE_TARNAME='libsha1'
731PACKAGE_VERSION='1.21'
732PACKAGE_STRING='libsha1 1.21'
733PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735ac_unique_file="hmac.c"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
64ff59ba 739#ifdef HAVE_SYS_TYPES_H
d9898ee8 740# include <sys/types.h>
741#endif
64ff59ba 742#ifdef HAVE_SYS_STAT_H
d9898ee8 743# include <sys/stat.h>
744#endif
64ff59ba 745#ifdef STDC_HEADERS
d9898ee8 746# include <stdlib.h>
747# include <stddef.h>
748#else
64ff59ba 749# ifdef HAVE_STDLIB_H
d9898ee8 750# include <stdlib.h>
751# endif
752#endif
64ff59ba 753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 755# include <memory.h>
756# endif
757# include <string.h>
758#endif
64ff59ba 759#ifdef HAVE_STRINGS_H
d9898ee8 760# include <strings.h>
761#endif
64ff59ba 762#ifdef HAVE_INTTYPES_H
d9898ee8 763# include <inttypes.h>
d9898ee8 764#endif
64ff59ba 765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
d9898ee8 769# include <unistd.h>
770#endif"
771
64ff59ba 772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809INSTALL_PROGRAM
810INSTALL_SCRIPT
811INSTALL_DATA
812am__isrc
813CYGPATH_W
814PACKAGE
815VERSION
816ACLOCAL
817AUTOCONF
818AUTOMAKE
819AUTOHEADER
820MAKEINFO
821install_sh
822STRIP
823INSTALL_STRIP_PROGRAM
824mkdir_p
825AWK
826SET_MAKE
827am__leading_dot
828AMTAR
829am__tar
830am__untar
831HMACC_TRUE
832HMACC_FALSE
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
849LN_S
850build
851build_cpu
852build_vendor
853build_os
854host
855host_cpu
856host_vendor
857host_os
858SED
859GREP
860EGREP
861ECHO
862AR
863RANLIB
864CPP
865CXX
866CXXFLAGS
867ac_ct_CXX
868CXXDEPMODE
869am__fastdepCXX_TRUE
870am__fastdepCXX_FALSE
871CXXCPP
872F77
873FFLAGS
874ac_ct_F77
875LIBTOOL
876LIBOBJS
877LTLIBOBJS'
d9898ee8 878ac_subst_files=''
64ff59ba 879 ac_precious_vars='build_alias
880host_alias
881target_alias
882CC
883CFLAGS
884LDFLAGS
885LIBS
886CPPFLAGS
887CPP
888CXX
889CXXFLAGS
890CCC
891CXXCPP
892F77
893FFLAGS'
894
d9898ee8 895
896# Initialize some variables set by options.
897ac_init_help=
898ac_init_version=false
899# The variables have the same names as the options, with
900# dashes changed to underlines.
901cache_file=/dev/null
902exec_prefix=NONE
903no_create=
904no_recursion=
905prefix=NONE
906program_prefix=NONE
907program_suffix=NONE
908program_transform_name=s,x,x,
909silent=
910site=
911srcdir=
912verbose=
913x_includes=NONE
914x_libraries=NONE
915
916# Installation directory options.
917# These are left unexpanded so users can "make install exec_prefix=/foo"
918# and all the variables that are supposed to be based on exec_prefix
919# by default will actually change.
920# Use braces instead of parens because sh, perl, etc. also accept them.
64ff59ba 921# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 922bindir='${exec_prefix}/bin'
923sbindir='${exec_prefix}/sbin'
924libexecdir='${exec_prefix}/libexec'
64ff59ba 925datarootdir='${prefix}/share'
926datadir='${datarootdir}'
d9898ee8 927sysconfdir='${prefix}/etc'
928sharedstatedir='${prefix}/com'
929localstatedir='${prefix}/var'
d9898ee8 930includedir='${prefix}/include'
931oldincludedir='/usr/include'
64ff59ba 932docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933infodir='${datarootdir}/info'
934htmldir='${docdir}'
935dvidir='${docdir}'
936pdfdir='${docdir}'
937psdir='${docdir}'
938libdir='${exec_prefix}/lib'
939localedir='${datarootdir}/locale'
940mandir='${datarootdir}/man'
d9898ee8 941
942ac_prev=
64ff59ba 943ac_dashdash=
d9898ee8 944for ac_option
945do
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
64ff59ba 948 eval $ac_prev=\$ac_option
d9898ee8 949 ac_prev=
950 continue
951 fi
952
64ff59ba 953 case $ac_option in
954 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *) ac_optarg=yes ;;
956 esac
d9898ee8 957
958 # Accept the important Cygnus configure options, so we can diagnose typos.
959
64ff59ba 960 case $ac_dashdash$ac_option in
961 --)
962 ac_dashdash=yes ;;
d9898ee8 963
964 -bindir | --bindir | --bindi | --bind | --bin | --bi)
965 ac_prev=bindir ;;
966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
967 bindir=$ac_optarg ;;
968
969 -build | --build | --buil | --bui | --bu)
970 ac_prev=build_alias ;;
971 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
972 build_alias=$ac_optarg ;;
973
974 -cache-file | --cache-file | --cache-fil | --cache-fi \
975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
976 ac_prev=cache_file ;;
977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979 cache_file=$ac_optarg ;;
980
981 --config-cache | -C)
982 cache_file=config.cache ;;
983
64ff59ba 984 -datadir | --datadir | --datadi | --datad)
d9898ee8 985 ac_prev=datadir ;;
64ff59ba 986 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 987 datadir=$ac_optarg ;;
988
64ff59ba 989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
990 | --dataroo | --dataro | --datar)
991 ac_prev=datarootdir ;;
992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
994 datarootdir=$ac_optarg ;;
995
d9898ee8 996 -disable-* | --disable-*)
997 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
998 # Reject names that are not valid shell variable names.
64ff59ba 999 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1000 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1001 { (exit 1); exit 1; }; }
64ff59ba 1002 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1003 eval enable_$ac_feature=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
d9898ee8 1014
1015 -enable-* | --enable-*)
1016 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
64ff59ba 1018 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
64ff59ba 1021 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022 eval enable_$ac_feature=\$ac_optarg ;;
d9898ee8 1023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1043
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1048
64ff59ba 1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
d9898ee8 1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1078
64ff59ba 1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
d9898ee8 1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
64ff59ba 1085 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
64ff59ba 1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1089 localstatedir=$ac_optarg ;;
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1152
64ff59ba 1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
d9898ee8 1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
1171 sbindir=$ac_optarg ;;
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
1182 sharedstatedir=$ac_optarg ;;
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1211
1212 -with-* | --with-*)
1213 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
64ff59ba 1215 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1216 { echo "$as_me: error: invalid package name: $ac_package" >&2
1217 { (exit 1); exit 1; }; }
64ff59ba 1218 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1219 eval with_$ac_package=\$ac_optarg ;;
d9898ee8 1220
1221 -without-* | --without-*)
1222 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
64ff59ba 1224 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1225 { echo "$as_me: error: invalid package name: $ac_package" >&2
1226 { (exit 1); exit 1; }; }
64ff59ba 1227 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228 eval with_$ac_package=no ;;
d9898ee8 1229
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
1233
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1240
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1247
1248 -*) { echo "$as_me: error: unrecognized option: $ac_option
1249Try \`$0 --help' for more information." >&2
1250 { (exit 1); exit 1; }; }
1251 ;;
1252
1253 *=*)
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1257 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258 { (exit 1); exit 1; }; }
64ff59ba 1259 eval $ac_envvar=\$ac_optarg
d9898ee8 1260 export $ac_envvar ;;
1261
1262 *)
1263 # FIXME: should be removed in autoconf 3.0.
1264 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1268 ;;
1269
1270 esac
1271done
1272
1273if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 { echo "$as_me: error: missing argument to $ac_option" >&2
1276 { (exit 1); exit 1; }; }
1277fi
1278
64ff59ba 1279# Be sure to have absolute directory names.
1280for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
d9898ee8 1284do
64ff59ba 1285 eval ac_val=\$$ac_var
d9898ee8 1286 case $ac_val in
64ff59ba 1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1289 esac
64ff59ba 1290 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1291 { (exit 1); exit 1; }; }
d9898ee8 1292done
1293
1294# There might be people who depend on the old broken behavior: `$host'
1295# used to hold the argument of --host etc.
1296# FIXME: To remove some day.
1297build=$build_alias
1298host=$host_alias
1299target=$target_alias
1300
1301# FIXME: To remove some day.
1302if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306 If a cross compiler is detected then cross compile mode will be used." >&2
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310fi
1311
1312ac_tool_prefix=
1313test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315test "$silent" = yes && exec 6>/dev/null
1316
1317
64ff59ba 1318ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319ac_ls_di=`ls -di .` &&
1320ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 { echo "$as_me: error: Working directory cannot be determined" >&2
1322 { (exit 1); exit 1; }; }
1323test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 { echo "$as_me: error: pwd does not report name of working directory" >&2
1325 { (exit 1); exit 1; }; }
1326
1327
d9898ee8 1328# Find the source files, if location was not specified.
1329if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
64ff59ba 1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$0" ||
d9898ee8 1333$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$0" : 'X\(//\)[^/]' \| \
1335 X"$0" : 'X\(//\)$' \| \
64ff59ba 1336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 1337echo X"$0" |
64ff59ba 1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\).*/{
1351 s//\1/
1352 q
1353 }
1354 s/.*/./; q'`
d9898ee8 1355 srcdir=$ac_confdir
64ff59ba 1356 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1357 srcdir=..
1358 fi
1359else
1360 ac_srcdir_defaulted=no
1361fi
64ff59ba 1362if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1365 { (exit 1); exit 1; }; }
d9898ee8 1366fi
64ff59ba 1367ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
d9898ee8 1370 { (exit 1); exit 1; }; }
64ff59ba 1371 pwd)`
1372# When building in place, set srcdir=.
1373if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375fi
1376# Remove unnecessary trailing slashes from srcdir.
1377# Double slashes in file names in object file debugging info
1378# mess up M-x gdb in Emacs.
1379case $srcdir in
1380*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381esac
1382for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387done
d9898ee8 1388
1389#
1390# Report the --help message.
1391#
1392if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396\`configure' configures libsha1 1.21 to adapt to many kinds of systems.
1397
1398Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403Defaults for the options are specified in brackets.
1404
1405Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
d9898ee8 1416Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422By default, \`make install' will install all the files in
1423\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425for instance \`--prefix=\$HOME'.
1426
1427For better control, use the options below.
1428
1429Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
d9898ee8 1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
64ff59ba 1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/libsha1]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1449_ACEOF
1450
1451 cat <<\_ACEOF
1452
1453Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461_ACEOF
1462fi
1463
1464if test -n "$ac_init_help"; then
1465 case $ac_init_help in
1466 short | recursive ) echo "Configuration of libsha1 1.21:";;
1467 esac
1468 cat <<\_ACEOF
1469
1470Optional Features:
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --disable-dependency-tracking speeds up one-time build
1474 --enable-dependency-tracking do not reject slow dependency extractors
64ff59ba 1475 --enable-shared[=PKGS] build shared libraries [default=yes]
1476 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1477 --enable-fast-install[=PKGS]
1478 optimize for fast installation [default=yes]
1479 --disable-libtool-lock avoid locking (might break parallel builds)
1480
1481Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1485 --with-pic try to use only PIC/non-PIC objects [default=use
1486 both]
64ff59ba 1487 --with-tags[=TAGS] include additional configurations [automatic]
d9898ee8 1488 --with-int32='type' use 'type' for an unsigned 32 bit integer type
1489 ( default is 'unsigned')
1490
1491Some influential environment variables:
1492 CC C compiler command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495 nonstandard directory <lib dir>
64ff59ba 1496 LIBS libraries to pass to the linker, e.g. -l<library>
1497 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1498 you have headers in a nonstandard directory <include dir>
d9898ee8 1499 CPP C preprocessor
1500 CXX C++ compiler command
1501 CXXFLAGS C++ compiler flags
1502 CXXCPP C++ preprocessor
1503 F77 Fortran 77 compiler command
1504 FFLAGS Fortran 77 compiler flags
1505
1506Use these variables to override the choices made by `configure' or to help
1507it to find libraries and programs with nonstandard names/locations.
1508
1509Report bugs to <courier-users@lists.sourceforge.net>.
1510_ACEOF
64ff59ba 1511ac_status=$?
d9898ee8 1512fi
1513
1514if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
d9898ee8 1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
64ff59ba 1517 test -d "$ac_dir" || continue
d9898ee8 1518 ac_builddir=.
1519
64ff59ba 1520case "$ac_dir" in
1521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522*)
d9898ee8 1523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530esac
1531ac_abs_top_builddir=$ac_pwd
1532ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533# for backward compatibility:
1534ac_top_builddir=$ac_top_build_prefix
d9898ee8 1535
1536case $srcdir in
64ff59ba 1537 .) # We are building in place.
d9898ee8 1538 ac_srcdir=.
64ff59ba 1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1542 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1549esac
64ff59ba 1550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1560 else
1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
64ff59ba 1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1564 done
1565fi
1566
64ff59ba 1567test -n "$ac_init_help" && exit $ac_status
d9898ee8 1568if $ac_init_version; then
1569 cat <<\_ACEOF
1570libsha1 configure 1.21
64ff59ba 1571generated by GNU Autoconf 2.61
d9898ee8 1572
64ff59ba 1573Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15742002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 1575This configure script is free software; the Free Software Foundation
1576gives unlimited permission to copy, distribute and modify it.
1577_ACEOF
64ff59ba 1578 exit
d9898ee8 1579fi
64ff59ba 1580cat >config.log <<_ACEOF
d9898ee8 1581This file contains any messages produced by compilers while
1582running configure, to aid debugging if configure makes a mistake.
1583
1584It was created by libsha1 $as_me 1.21, which was
64ff59ba 1585generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 1586
1587 $ $0 $@
1588
1589_ACEOF
64ff59ba 1590exec 5>>config.log
d9898ee8 1591{
1592cat <<_ASUNAME
1593## --------- ##
1594## Platform. ##
1595## --------- ##
1596
1597hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
1603/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1605
1606/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1607/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1608/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
64ff59ba 1609/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1610/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1611/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1612/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1613
1614_ASUNAME
1615
1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 echo "PATH: $as_dir"
1622done
64ff59ba 1623IFS=$as_save_IFS
d9898ee8 1624
1625} >&5
1626
1627cat >&5 <<_ACEOF
1628
1629
1630## ----------- ##
1631## Core tests. ##
1632## ----------- ##
1633
1634_ACEOF
1635
1636
1637# Keep a trace of the command line.
1638# Strip out --no-create and --no-recursion so they do not pile up.
1639# Strip out --silent because we don't want to record it for future runs.
1640# Also quote any args containing shell meta-characters.
1641# Make two passes to allow for proper duplicate-argument suppression.
1642ac_configure_args=
1643ac_configure_args0=
1644ac_configure_args1=
d9898ee8 1645ac_must_keep_next=false
1646for ac_pass in 1 2
1647do
1648 for ac_arg
1649 do
1650 case $ac_arg in
1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653 | -silent | --silent | --silen | --sile | --sil)
1654 continue ;;
64ff59ba 1655 *\'*)
d9898ee8 1656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657 esac
1658 case $ac_pass in
1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660 2)
1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662 if test $ac_must_keep_next = true; then
1663 ac_must_keep_next=false # Got value, back to normal.
1664 else
1665 case $ac_arg in
1666 *=* | --config-cache | -C | -disable-* | --disable-* \
1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669 | -with-* | --with-* | -without-* | --without-* | --x)
1670 case "$ac_configure_args0 " in
1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672 esac
1673 ;;
1674 -* ) ac_must_keep_next=true ;;
1675 esac
1676 fi
64ff59ba 1677 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1678 ;;
1679 esac
1680 done
1681done
1682$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684
1685# When interrupted or exit'd, cleanup temporary files, and complete
1686# config.log. We remove comments because anyway the quotes in there
1687# would cause problems or look ugly.
64ff59ba 1688# WARNING: Use '\'' to represent an apostrophe within the trap.
1689# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1690trap 'exit_status=$?
1691 # Save into config.log some information that might help in debugging.
1692 {
1693 echo
1694
1695 cat <<\_ASBOX
1696## ---------------- ##
1697## Cache variables. ##
1698## ---------------- ##
1699_ASBOX
1700 echo
1701 # The following way of writing the cache mishandles newlines in values,
64ff59ba 1702(
1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704 eval ac_val=\$$ac_var
1705 case $ac_val in #(
1706 *${as_nl}*)
1707 case $ac_var in #(
1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710 esac
1711 case $ac_var in #(
1712 _ | IFS | as_nl) ;; #(
1713 *) $as_unset $ac_var ;;
1714 esac ;;
1715 esac
1716 done
d9898ee8 1717 (set) 2>&1 |
64ff59ba 1718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
d9898ee8 1720 sed -n \
64ff59ba 1721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 ;; #(
d9898ee8 1724 *)
64ff59ba 1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1726 ;;
64ff59ba 1727 esac |
1728 sort
1729)
d9898ee8 1730 echo
1731
1732 cat <<\_ASBOX
1733## ----------------- ##
1734## Output variables. ##
1735## ----------------- ##
1736_ASBOX
1737 echo
1738 for ac_var in $ac_subst_vars
1739 do
64ff59ba 1740 eval ac_val=\$$ac_var
1741 case $ac_val in
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743 esac
1744 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1745 done | sort
1746 echo
1747
1748 if test -n "$ac_subst_files"; then
1749 cat <<\_ASBOX
64ff59ba 1750## ------------------- ##
1751## File substitutions. ##
1752## ------------------- ##
d9898ee8 1753_ASBOX
1754 echo
1755 for ac_var in $ac_subst_files
1756 do
64ff59ba 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'\''"
d9898ee8 1762 done | sort
1763 echo
1764 fi
1765
1766 if test -s confdefs.h; then
1767 cat <<\_ASBOX
1768## ----------- ##
1769## confdefs.h. ##
1770## ----------- ##
1771_ASBOX
1772 echo
64ff59ba 1773 cat confdefs.h
d9898ee8 1774 echo
1775 fi
1776 test "$ac_signal" != 0 &&
1777 echo "$as_me: caught signal $ac_signal"
1778 echo "$as_me: exit $exit_status"
1779 } >&5
64ff59ba 1780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1782 exit $exit_status
64ff59ba 1783' 0
d9898ee8 1784for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786done
1787ac_signal=0
1788
1789# confdefs.h avoids OS command line length limits that DEFS can exceed.
64ff59ba 1790rm -f -r conftest* confdefs.h
d9898ee8 1791
1792# Predefined preprocessor variables.
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_NAME "$PACKAGE_NAME"
1796_ACEOF
1797
1798
1799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801_ACEOF
1802
1803
1804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_VERSION "$PACKAGE_VERSION"
1806_ACEOF
1807
1808
1809cat >>confdefs.h <<_ACEOF
1810#define PACKAGE_STRING "$PACKAGE_STRING"
1811_ACEOF
1812
1813
1814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816_ACEOF
1817
1818
1819# Let the site file select an alternate cache file if it wants to.
1820# Prefer explicitly selected file to automatically selected ones.
64ff59ba 1821if test -n "$CONFIG_SITE"; then
1822 set x "$CONFIG_SITE"
1823elif test "x$prefix" != xNONE; then
1824 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825else
1826 set x "$ac_default_prefix/share/config.site" \
1827 "$ac_default_prefix/etc/config.site"
d9898ee8 1828fi
64ff59ba 1829shift
1830for ac_site_file
1831do
d9898ee8 1832 if test -r "$ac_site_file"; then
1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834echo "$as_me: loading site script $ac_site_file" >&6;}
1835 sed 's/^/| /' "$ac_site_file" >&5
1836 . "$ac_site_file"
1837 fi
1838done
1839
1840if test -r "$cache_file"; then
1841 # Some versions of bash will fail to source /dev/null (special
1842 # files actually), so we avoid doing that.
1843 if test -f "$cache_file"; then
1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845echo "$as_me: loading cache $cache_file" >&6;}
1846 case $cache_file in
64ff59ba 1847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848 *) . "./$cache_file";;
d9898ee8 1849 esac
1850 fi
1851else
1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853echo "$as_me: creating cache $cache_file" >&6;}
1854 >$cache_file
1855fi
1856
1857# Check that the precious variables saved in the cache have kept the same
1858# value.
1859ac_cache_corrupted=false
64ff59ba 1860for ac_var in $ac_precious_vars; do
d9898ee8 1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
64ff59ba 1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1865 case $ac_old_set,$ac_new_set in
1866 set,)
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1870 ,set)
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1874 ,);;
1875 *)
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1880echo "$as_me: former value: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1882echo "$as_me: current value: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1884 fi;;
1885 esac
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1888 case $ac_new_val in
64ff59ba 1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1890 *) ac_arg=$ac_var=$ac_new_val ;;
1891 esac
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895 esac
1896 fi
1897done
1898if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1904fi
1905
d9898ee8 1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
64ff59ba 1930ac_ext=c
1931ac_cpp='$CPP $CPPFLAGS'
1932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 1935
1936
1937
1938>confdefs.h # Kill PACKAGE_ macros
1939
1940
64ff59ba 1941ac_config_headers="$ac_config_headers config.h"
1942
1943am__api_version='1.10'
d9898ee8 1944
d9898ee8 1945ac_aux_dir=
64ff59ba 1946for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1947 if test -f "$ac_dir/install-sh"; then
d9898ee8 1948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/install-sh -c"
1950 break
64ff59ba 1951 elif test -f "$ac_dir/install.sh"; then
d9898ee8 1952 ac_aux_dir=$ac_dir
1953 ac_install_sh="$ac_aux_dir/install.sh -c"
1954 break
64ff59ba 1955 elif test -f "$ac_dir/shtool"; then
d9898ee8 1956 ac_aux_dir=$ac_dir
1957 ac_install_sh="$ac_aux_dir/shtool install -c"
1958 break
1959 fi
1960done
1961if test -z "$ac_aux_dir"; then
64ff59ba 1962 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1963echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 1964 { (exit 1); exit 1; }; }
1965fi
64ff59ba 1966
1967# These three variables are undocumented and unsupported,
1968# and are intended to be withdrawn in a future Autoconf release.
1969# They can cause serious problems if a builder's source tree is in a directory
1970# whose full name contains unusual characters.
1971ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1972ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1973ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1974
d9898ee8 1975
1976# Find a good install program. We prefer a C program (faster),
1977# so one script is as good as another. But avoid the broken or
1978# incompatible versions:
1979# SysV /etc/install, /usr/sbin/install
1980# SunOS /usr/etc/install
1981# IRIX /sbin/install
1982# AIX /bin/install
1983# AmigaOS /C/install, which installs bootblocks on floppy discs
1984# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1985# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1986# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1987# OS/2's system install, which has a completely different semantic
1988# ./install, which can be erroneously created by make from ./install.sh.
64ff59ba 1989{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1990echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 1991if test -z "$INSTALL"; then
1992if test "${ac_cv_path_install+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1994else
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996for as_dir in $PATH
1997do
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 # Account for people who put trailing slashes in PATH elements.
2001case $as_dir/ in
2002 ./ | .// | /cC/* | \
2003 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2004 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2005 /usr/ucb/* ) ;;
2006 *)
2007 # OSF1 and SCO ODT 3.0 have their own names for install.
2008 # Don't use installbsd from OSF since it installs stuff as root
2009 # by default.
2010 for ac_prog in ginstall scoinst install; do
2011 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2012 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2013 if test $ac_prog = install &&
2014 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # AIX install. It has an incompatible calling convention.
2016 :
2017 elif test $ac_prog = install &&
2018 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2019 # program-specific install script used by HP pwplus--don't use.
2020 :
2021 else
2022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2023 break 3
2024 fi
2025 fi
2026 done
2027 done
2028 ;;
2029esac
2030done
64ff59ba 2031IFS=$as_save_IFS
d9898ee8 2032
2033
2034fi
2035 if test "${ac_cv_path_install+set}" = set; then
2036 INSTALL=$ac_cv_path_install
2037 else
64ff59ba 2038 # As a last resort, use the slow shell script. Don't cache a
2039 # value for INSTALL within a source directory, because that will
d9898ee8 2040 # break other packages using the cache if that directory is
64ff59ba 2041 # removed, or if the value is a relative name.
d9898ee8 2042 INSTALL=$ac_install_sh
2043 fi
2044fi
64ff59ba 2045{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2046echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 2047
2048# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2049# It thinks the first close brace ends the variable substitution.
2050test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2051
2052test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2053
2054test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2055
64ff59ba 2056{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2057echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
d9898ee8 2058# Just in case
2059sleep 1
2060echo timestamp > conftest.file
2061# Do `set' in a subshell so we don't clobber the current shell's
2062# arguments. Must try -L first in case configure is actually a
2063# symlink; some systems play weird games with the mod time of symlinks
2064# (eg FreeBSD returns the mod time of the symlink's containing
2065# directory).
2066if (
2067 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2068 if test "$*" = "X"; then
2069 # -L didn't work.
2070 set X `ls -t $srcdir/configure conftest.file`
2071 fi
2072 rm -f conftest.file
2073 if test "$*" != "X $srcdir/configure conftest.file" \
2074 && test "$*" != "X conftest.file $srcdir/configure"; then
2075
2076 # If neither matched, then we have a broken ls. This can happen
2077 # if, for instance, CONFIG_SHELL is bash and it inherits a
2078 # broken ls alias from the environment. This has actually
2079 # happened. Such a system could not be considered "sane".
2080 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2081alias in your environment" >&5
2082echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2083alias in your environment" >&2;}
2084 { (exit 1); exit 1; }; }
2085 fi
2086
2087 test "$2" = conftest.file
2088 )
2089then
2090 # Ok.
2091 :
2092else
2093 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2094Check your system clock" >&5
2095echo "$as_me: error: newly created file is older than distributed files!
2096Check your system clock" >&2;}
2097 { (exit 1); exit 1; }; }
2098fi
64ff59ba 2099{ echo "$as_me:$LINENO: result: yes" >&5
2100echo "${ECHO_T}yes" >&6; }
d9898ee8 2101test "$program_prefix" != NONE &&
64ff59ba 2102 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2103# Use a double $ so make ignores it.
2104test "$program_suffix" != NONE &&
64ff59ba 2105 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
d9898ee8 2106# Double any \ or $. echo might interpret backslashes.
2107# By default was `s,x,x', remove it if useless.
2108cat <<\_ACEOF >conftest.sed
2109s/[\\$]/&&/g;s/;s,x,x,$//
2110_ACEOF
2111program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
64ff59ba 2112rm -f conftest.sed
d9898ee8 2113
2114# expand $ac_aux_dir to an absolute path
2115am_aux_dir=`cd $ac_aux_dir && pwd`
2116
2117test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2118# Use eval to expand $SHELL
2119if eval "$MISSING --run true"; then
2120 am_missing_run="$MISSING --run "
2121else
2122 am_missing_run=
2123 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2124echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2125fi
2126
64ff59ba 2127{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2128echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2129if test -z "$MKDIR_P"; then
2130 if test "${ac_cv_path_mkdir+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2135do
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
2138 for ac_prog in mkdir gmkdir; do
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2141 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2142 'mkdir (GNU coreutils) '* | \
2143 'mkdir (coreutils) '* | \
2144 'mkdir (fileutils) '4.1*)
2145 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2146 break 3;;
2147 esac
2148 done
2149 done
2150done
2151IFS=$as_save_IFS
2152
2153fi
2154
2155 if test "${ac_cv_path_mkdir+set}" = set; then
2156 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2157 else
64ff59ba 2158 # As a last resort, use the slow shell script. Don't cache a
2159 # value for MKDIR_P within a source directory, because that will
2160 # break other packages using the cache if that directory is
2161 # removed, or if the value is a relative name.
2162 test -d ./--version && rmdir ./--version
2163 MKDIR_P="$ac_install_sh -d"
d9898ee8 2164 fi
2165fi
64ff59ba 2166{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2167echo "${ECHO_T}$MKDIR_P" >&6; }
2168
2169mkdir_p="$MKDIR_P"
2170case $mkdir_p in
2171 [\\/$]* | ?:[\\/]*) ;;
2172 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2173esac
d9898ee8 2174
2175for ac_prog in gawk mawk nawk awk
2176do
2177 # Extract the first word of "$ac_prog", so it can be a program name with args.
2178set dummy $ac_prog; ac_word=$2
64ff59ba 2179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2181if test "${ac_cv_prog_AWK+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183else
2184 if test -n "$AWK"; then
2185 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2186else
2187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188for as_dir in $PATH
2189do
2190 IFS=$as_save_IFS
2191 test -z "$as_dir" && as_dir=.
2192 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2194 ac_cv_prog_AWK="$ac_prog"
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 break 2
2197 fi
2198done
2199done
64ff59ba 2200IFS=$as_save_IFS
d9898ee8 2201
2202fi
2203fi
2204AWK=$ac_cv_prog_AWK
2205if test -n "$AWK"; then
64ff59ba 2206 { echo "$as_me:$LINENO: result: $AWK" >&5
2207echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2208else
64ff59ba 2209 { echo "$as_me:$LINENO: result: no" >&5
2210echo "${ECHO_T}no" >&6; }
d9898ee8 2211fi
2212
64ff59ba 2213
d9898ee8 2214 test -n "$AWK" && break
2215done
2216
64ff59ba 2217{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2218echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2219set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2220if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2222else
2223 cat >conftest.make <<\_ACEOF
64ff59ba 2224SHELL = /bin/sh
d9898ee8 2225all:
64ff59ba 2226 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2227_ACEOF
2228# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
64ff59ba 2229case `${MAKE-make} -f conftest.make 2>/dev/null` in
2230 *@@@%%%=?*=@@@%%%*)
2231 eval ac_cv_prog_make_${ac_make}_set=yes;;
2232 *)
2233 eval ac_cv_prog_make_${ac_make}_set=no;;
2234esac
d9898ee8 2235rm -f conftest.make
2236fi
64ff59ba 2237if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2238 { echo "$as_me:$LINENO: result: yes" >&5
2239echo "${ECHO_T}yes" >&6; }
d9898ee8 2240 SET_MAKE=
2241else
64ff59ba 2242 { echo "$as_me:$LINENO: result: no" >&5
2243echo "${ECHO_T}no" >&6; }
d9898ee8 2244 SET_MAKE="MAKE=${MAKE-make}"
2245fi
2246
2247rm -rf .tst 2>/dev/null
2248mkdir .tst 2>/dev/null
2249if test -d .tst; then
2250 am__leading_dot=.
2251else
2252 am__leading_dot=_
2253fi
2254rmdir .tst 2>/dev/null
2255
64ff59ba 2256if test "`cd $srcdir && pwd`" != "`pwd`"; then
2257 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2258 # is not polluted with repeated "-I."
2259 am__isrc=' -I$(srcdir)'
2260 # test to see if srcdir already configured
2261 if test -f $srcdir/config.status; then
2262 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d9898ee8 2263echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2264 { (exit 1); exit 1; }; }
64ff59ba 2265 fi
d9898ee8 2266fi
2267
2268# test whether we have cygpath
2269if test -z "$CYGPATH_W"; then
2270 if (cygpath --version) >/dev/null 2>/dev/null; then
2271 CYGPATH_W='cygpath -w'
2272 else
2273 CYGPATH_W=echo
2274 fi
2275fi
2276
2277
2278# Define the identity of the package.
2279 PACKAGE='libsha1'
2280 VERSION='1.21'
2281
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
64ff59ba 2299install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
d9898ee8 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
64ff59ba 2309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 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
64ff59ba 2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 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
64ff59ba 2330IFS=$as_save_IFS
d9898ee8 2331
2332fi
2333fi
2334STRIP=$ac_cv_prog_STRIP
2335if test -n "$STRIP"; then
64ff59ba 2336 { echo "$as_me:$LINENO: result: $STRIP" >&5
2337echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 2338else
64ff59ba 2339 { echo "$as_me:$LINENO: result: no" >&5
2340echo "${ECHO_T}no" >&6; }
d9898ee8 2341fi
2342
64ff59ba 2343
d9898ee8 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
64ff59ba 2349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 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
64ff59ba 2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 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
64ff59ba 2370IFS=$as_save_IFS
d9898ee8 2371
d9898ee8 2372fi
2373fi
2374ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2375if test -n "$ac_ct_STRIP"; then
64ff59ba 2376 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2377echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 2378else
64ff59ba 2379 { echo "$as_me:$LINENO: result: no" >&5
2380echo "${ECHO_T}no" >&6; }
d9898ee8 2381fi
2382
64ff59ba 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
d9898ee8 2398else
2399 STRIP="$ac_cv_prog_STRIP"
2400fi
2401
2402fi
64ff59ba 2403INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 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
2417
64ff59ba 2418 if test -d ${srcdir}/../libhmac; then
d9898ee8 2419 HMACC_TRUE=
2420 HMACC_FALSE='#'
2421else
2422 HMACC_TRUE='#'
2423 HMACC_FALSE=
2424fi
2425
2426
2427ac_ext=c
2428ac_cpp='$CPP $CPPFLAGS'
2429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431ac_compiler_gnu=$ac_cv_c_compiler_gnu
2432if test -n "$ac_tool_prefix"; then
2433 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2434set dummy ${ac_tool_prefix}gcc; ac_word=$2
64ff59ba 2435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2437if test "${ac_cv_prog_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2439else
2440 if test -n "$CC"; then
2441 ac_cv_prog_CC="$CC" # Let the user override the test.
2442else
2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444for as_dir in $PATH
2445do
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2450 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 break 2
2453 fi
2454done
2455done
64ff59ba 2456IFS=$as_save_IFS
d9898ee8 2457
2458fi
2459fi
2460CC=$ac_cv_prog_CC
2461if test -n "$CC"; then
64ff59ba 2462 { echo "$as_me:$LINENO: result: $CC" >&5
2463echo "${ECHO_T}$CC" >&6; }
d9898ee8 2464else
64ff59ba 2465 { echo "$as_me:$LINENO: result: no" >&5
2466echo "${ECHO_T}no" >&6; }
d9898ee8 2467fi
2468
64ff59ba 2469
d9898ee8 2470fi
2471if test -z "$ac_cv_prog_CC"; then
2472 ac_ct_CC=$CC
2473 # Extract the first word of "gcc", so it can be a program name with args.
2474set dummy gcc; ac_word=$2
64ff59ba 2475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2477if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479else
2480 if test -n "$ac_ct_CC"; then
2481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2482else
2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484for as_dir in $PATH
2485do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2490 ac_cv_prog_ac_ct_CC="gcc"
2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2493 fi
2494done
2495done
64ff59ba 2496IFS=$as_save_IFS
d9898ee8 2497
2498fi
2499fi
2500ac_ct_CC=$ac_cv_prog_ac_ct_CC
2501if test -n "$ac_ct_CC"; then
64ff59ba 2502 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2503echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2504else
64ff59ba 2505 { echo "$as_me:$LINENO: result: no" >&5
2506echo "${ECHO_T}no" >&6; }
d9898ee8 2507fi
2508
64ff59ba 2509 if test "x$ac_ct_CC" = x; then
2510 CC=""
2511 else
2512 case $cross_compiling:$ac_tool_warned in
2513yes:)
2514{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2515whose name does not start with the host triplet. If you think this
2516configuration is useful to you, please write to autoconf@gnu.org." >&5
2517echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2518whose name does not start with the host triplet. If you think this
2519configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2520ac_tool_warned=yes ;;
2521esac
2522 CC=$ac_ct_CC
2523 fi
d9898ee8 2524else
2525 CC="$ac_cv_prog_CC"
2526fi
2527
2528if test -z "$CC"; then
64ff59ba 2529 if test -n "$ac_tool_prefix"; then
2530 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2531set dummy ${ac_tool_prefix}cc; ac_word=$2
64ff59ba 2532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2534if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536else
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2539else
2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541for as_dir in $PATH
2542do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2547 ac_cv_prog_CC="${ac_tool_prefix}cc"
2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2550 fi
2551done
2552done
64ff59ba 2553IFS=$as_save_IFS
d9898ee8 2554
2555fi
2556fi
2557CC=$ac_cv_prog_CC
2558if test -n "$CC"; then
64ff59ba 2559 { echo "$as_me:$LINENO: result: $CC" >&5
2560echo "${ECHO_T}$CC" >&6; }
d9898ee8 2561else
64ff59ba 2562 { echo "$as_me:$LINENO: result: no" >&5
2563echo "${ECHO_T}no" >&6; }
d9898ee8 2564fi
2565
d9898ee8 2566
64ff59ba 2567 fi
d9898ee8 2568fi
2569if test -z "$CC"; then
2570 # Extract the first word of "cc", so it can be a program name with args.
2571set dummy cc; ac_word=$2
64ff59ba 2572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2574if test "${ac_cv_prog_CC+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2576else
2577 if test -n "$CC"; then
2578 ac_cv_prog_CC="$CC" # Let the user override the test.
2579else
2580 ac_prog_rejected=no
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2589 ac_prog_rejected=yes
2590 continue
2591 fi
2592 ac_cv_prog_CC="cc"
2593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 break 2
2595 fi
2596done
2597done
64ff59ba 2598IFS=$as_save_IFS
d9898ee8 2599
2600if test $ac_prog_rejected = yes; then
2601 # We found a bogon in the path, so make sure we never use it.
2602 set dummy $ac_cv_prog_CC
2603 shift
2604 if test $# != 0; then
2605 # We chose a different compiler from the bogus one.
2606 # However, it has the same basename, so the bogon will be chosen
2607 # first if we set CC to just the basename; use the full file name.
2608 shift
2609 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2610 fi
2611fi
2612fi
2613fi
2614CC=$ac_cv_prog_CC
2615if test -n "$CC"; then
64ff59ba 2616 { echo "$as_me:$LINENO: result: $CC" >&5
2617echo "${ECHO_T}$CC" >&6; }
d9898ee8 2618else
64ff59ba 2619 { echo "$as_me:$LINENO: result: no" >&5
2620echo "${ECHO_T}no" >&6; }
d9898ee8 2621fi
2622
64ff59ba 2623
d9898ee8 2624fi
2625if test -z "$CC"; then
2626 if test -n "$ac_tool_prefix"; then
64ff59ba 2627 for ac_prog in cl.exe
d9898ee8 2628 do
2629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2630set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 2631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2633if test "${ac_cv_prog_CC+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2635else
2636 if test -n "$CC"; then
2637 ac_cv_prog_CC="$CC" # Let the user override the test.
2638else
2639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2646 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 break 2
2649 fi
2650done
2651done
64ff59ba 2652IFS=$as_save_IFS
d9898ee8 2653
2654fi
2655fi
2656CC=$ac_cv_prog_CC
2657if test -n "$CC"; then
64ff59ba 2658 { echo "$as_me:$LINENO: result: $CC" >&5
2659echo "${ECHO_T}$CC" >&6; }
d9898ee8 2660else
64ff59ba 2661 { echo "$as_me:$LINENO: result: no" >&5
2662echo "${ECHO_T}no" >&6; }
d9898ee8 2663fi
2664
64ff59ba 2665
d9898ee8 2666 test -n "$CC" && break
2667 done
2668fi
2669if test -z "$CC"; then
2670 ac_ct_CC=$CC
64ff59ba 2671 for ac_prog in cl.exe
d9898ee8 2672do
2673 # Extract the first word of "$ac_prog", so it can be a program name with args.
2674set dummy $ac_prog; ac_word=$2
64ff59ba 2675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2677if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679else
2680 if test -n "$ac_ct_CC"; then
2681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2690 ac_cv_prog_ac_ct_CC="$ac_prog"
2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2693 fi
2694done
2695done
64ff59ba 2696IFS=$as_save_IFS
d9898ee8 2697
2698fi
2699fi
2700ac_ct_CC=$ac_cv_prog_ac_ct_CC
2701if test -n "$ac_ct_CC"; then
64ff59ba 2702 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2703echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2704else
64ff59ba 2705 { echo "$as_me:$LINENO: result: no" >&5
2706echo "${ECHO_T}no" >&6; }
d9898ee8 2707fi
2708
64ff59ba 2709
d9898ee8 2710 test -n "$ac_ct_CC" && break
2711done
2712
64ff59ba 2713 if test "x$ac_ct_CC" = x; then
2714 CC=""
2715 else
2716 case $cross_compiling:$ac_tool_warned in
2717yes:)
2718{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2719whose name does not start with the host triplet. If you think this
2720configuration is useful to you, please write to autoconf@gnu.org." >&5
2721echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2722whose name does not start with the host triplet. If you think this
2723configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2724ac_tool_warned=yes ;;
2725esac
2726 CC=$ac_ct_CC
2727 fi
d9898ee8 2728fi
2729
2730fi
2731
2732
2733test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2734See \`config.log' for more details." >&5
2735echo "$as_me: error: no acceptable C compiler found in \$PATH
2736See \`config.log' for more details." >&2;}
2737 { (exit 1); exit 1; }; }
2738
2739# Provide some information about the compiler.
64ff59ba 2740echo "$as_me:$LINENO: checking for C compiler version" >&5
d9898ee8 2741ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 2742{ (ac_try="$ac_compiler --version >&5"
2743case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746esac
2747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }
64ff59ba 2752{ (ac_try="$ac_compiler -v >&5"
2753case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2756esac
2757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }
64ff59ba 2762{ (ac_try="$ac_compiler -V >&5"
2763case "(($ac_try" in
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2766esac
2767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }
2772
2773cat >conftest.$ac_ext <<_ACEOF
2774/* confdefs.h. */
2775_ACEOF
2776cat confdefs.h >>conftest.$ac_ext
2777cat >>conftest.$ac_ext <<_ACEOF
2778/* end confdefs.h. */
2779
2780int
2781main ()
2782{
2783
2784 ;
2785 return 0;
2786}
2787_ACEOF
2788ac_clean_files_save=$ac_clean_files
2789ac_clean_files="$ac_clean_files a.out a.exe b.out"
2790# Try to create an executable without -o first, disregard a.out.
2791# It will help us diagnose broken compilers, and finding out an intuition
2792# of exeext.
64ff59ba 2793{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2794echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
d9898ee8 2795ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
64ff59ba 2796#
2797# List of possible output files, starting from the most likely.
2798# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2799# only as a last resort. b.out is created by i960 compilers.
2800ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2801#
2802# The IRIX 6 linker writes into existing files which may not be
2803# executable, retaining their permissions. Remove them first so a
2804# subsequent execution test works.
2805ac_rmfiles=
2806for ac_file in $ac_files
2807do
2808 case $ac_file in
2809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2810 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2811 esac
2812done
2813rm -f $ac_rmfiles
2814
2815if { (ac_try="$ac_link_default"
2816case "(($ac_try" in
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2819esac
2820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821 (eval "$ac_link_default") 2>&5
d9898ee8 2822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; then
64ff59ba 2825 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2826# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2827# in a Makefile. We should not override ac_cv_exeext if it was cached,
2828# so that the user can short-circuit this test for compilers unknown to
2829# Autoconf.
2830for ac_file in $ac_files ''
d9898ee8 2831do
2832 test -f "$ac_file" || continue
2833 case $ac_file in
64ff59ba 2834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
d9898ee8 2835 ;;
2836 [ab].out )
2837 # We found the default executable, but exeext='' is most
2838 # certainly right.
2839 break;;
2840 *.* )
64ff59ba 2841 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2842 then :; else
2843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2844 fi
2845 # We set ac_cv_exeext here because the later test for it is not
2846 # safe: cross compilers may not add the suffix if given an `-o'
2847 # argument, so we may need to know it at that point already.
2848 # Even if this section looks crufty: it has the advantage of
2849 # actually working.
d9898ee8 2850 break;;
2851 * )
2852 break;;
2853 esac
2854done
64ff59ba 2855test "$ac_cv_exeext" = no && ac_cv_exeext=
2856
d9898ee8 2857else
64ff59ba 2858 ac_file=''
2859fi
2860
2861{ echo "$as_me:$LINENO: result: $ac_file" >&5
2862echo "${ECHO_T}$ac_file" >&6; }
2863if test -z "$ac_file"; then
d9898ee8 2864 echo "$as_me: failed program was:" >&5
2865sed 's/^/| /' conftest.$ac_ext >&5
2866
2867{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2868See \`config.log' for more details." >&5
2869echo "$as_me: error: C compiler cannot create executables
2870See \`config.log' for more details." >&2;}
2871 { (exit 77); exit 77; }; }
2872fi
2873
2874ac_exeext=$ac_cv_exeext
d9898ee8 2875
64ff59ba 2876# Check that the compiler produces executables we can run. If not, either
d9898ee8 2877# the compiler is broken, or we cross compile.
64ff59ba 2878{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2879echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
d9898ee8 2880# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2881# If not cross compiling, check that we can run a simple program.
2882if test "$cross_compiling" != yes; then
2883 if { ac_try='./$ac_file'
64ff59ba 2884 { (case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887esac
2888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_try") 2>&5
d9898ee8 2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; }; then
2893 cross_compiling=no
2894 else
2895 if test "$cross_compiling" = maybe; then
2896 cross_compiling=yes
2897 else
2898 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2899If you meant to cross compile, use \`--host'.
2900See \`config.log' for more details." >&5
2901echo "$as_me: error: cannot run C compiled programs.
2902If you meant to cross compile, use \`--host'.
2903See \`config.log' for more details." >&2;}
2904 { (exit 1); exit 1; }; }
2905 fi
2906 fi
2907fi
64ff59ba 2908{ echo "$as_me:$LINENO: result: yes" >&5
2909echo "${ECHO_T}yes" >&6; }
d9898ee8 2910
2911rm -f a.out a.exe conftest$ac_cv_exeext b.out
2912ac_clean_files=$ac_clean_files_save
64ff59ba 2913# Check that the compiler produces executables we can run. If not, either
d9898ee8 2914# the compiler is broken, or we cross compile.
64ff59ba 2915{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2916echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2917{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2918echo "${ECHO_T}$cross_compiling" >&6; }
2919
2920{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2921echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2922if { (ac_try="$ac_link"
2923case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926esac
2927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_link") 2>&5
d9898ee8 2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; then
2932 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2933# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2934# work properly (i.e., refer to `conftest.exe'), while it won't with
2935# `rm'.
2936for ac_file in conftest.exe conftest conftest.*; do
2937 test -f "$ac_file" || continue
2938 case $ac_file in
64ff59ba 2939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
d9898ee8 2940 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 2941 break;;
2942 * ) break;;
2943 esac
2944done
2945else
2946 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2947See \`config.log' for more details." >&5
2948echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2949See \`config.log' for more details." >&2;}
2950 { (exit 1); exit 1; }; }
2951fi
2952
2953rm -f conftest$ac_cv_exeext
64ff59ba 2954{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2955echo "${ECHO_T}$ac_cv_exeext" >&6; }
d9898ee8 2956
2957rm -f conftest.$ac_ext
2958EXEEXT=$ac_cv_exeext
2959ac_exeext=$EXEEXT
64ff59ba 2960{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2961echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
d9898ee8 2962if test "${ac_cv_objext+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2964else
2965 cat >conftest.$ac_ext <<_ACEOF
2966/* confdefs.h. */
2967_ACEOF
2968cat confdefs.h >>conftest.$ac_ext
2969cat >>conftest.$ac_ext <<_ACEOF
2970/* end confdefs.h. */
2971
2972int
2973main ()
2974{
2975
2976 ;
2977 return 0;
2978}
2979_ACEOF
2980rm -f conftest.o conftest.obj
64ff59ba 2981if { (ac_try="$ac_compile"
2982case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985esac
2986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_compile") 2>&5
d9898ee8 2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; then
64ff59ba 2991 for ac_file in conftest.o conftest.obj conftest.*; do
2992 test -f "$ac_file" || continue;
d9898ee8 2993 case $ac_file in
64ff59ba 2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
d9898ee8 2995 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2996 break;;
2997 esac
2998done
2999else
3000 echo "$as_me: failed program was:" >&5
3001sed 's/^/| /' conftest.$ac_ext >&5
3002
3003{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3004See \`config.log' for more details." >&5
3005echo "$as_me: error: cannot compute suffix of object files: cannot compile
3006See \`config.log' for more details." >&2;}
3007 { (exit 1); exit 1; }; }
3008fi
3009
3010rm -f conftest.$ac_cv_objext conftest.$ac_ext
3011fi
64ff59ba 3012{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3013echo "${ECHO_T}$ac_cv_objext" >&6; }
d9898ee8 3014OBJEXT=$ac_cv_objext
3015ac_objext=$OBJEXT
64ff59ba 3016{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3017echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d9898ee8 3018if test "${ac_cv_c_compiler_gnu+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3020else
3021 cat >conftest.$ac_ext <<_ACEOF
3022/* confdefs.h. */
3023_ACEOF
3024cat confdefs.h >>conftest.$ac_ext
3025cat >>conftest.$ac_ext <<_ACEOF
3026/* end confdefs.h. */
3027
3028int
3029main ()
3030{
3031#ifndef __GNUC__
3032 choke me
3033#endif
3034
3035 ;
3036 return 0;
3037}
3038_ACEOF
3039rm -f conftest.$ac_objext
64ff59ba 3040if { (ac_try="$ac_compile"
3041case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044esac
3045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3047 ac_status=$?
3048 grep -v '^ *+' conftest.er1 >conftest.err
3049 rm -f conftest.er1
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3052 (exit $ac_status); } && {
3053 test -z "$ac_c_werror_flag" ||
3054 test ! -s conftest.err
3055 } && test -s conftest.$ac_objext; then
d9898ee8 3056 ac_compiler_gnu=yes
3057else
3058 echo "$as_me: failed program was:" >&5
3059sed 's/^/| /' conftest.$ac_ext >&5
3060
64ff59ba 3061 ac_compiler_gnu=no
d9898ee8 3062fi
64ff59ba 3063
3064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3065ac_cv_c_compiler_gnu=$ac_compiler_gnu
3066
3067fi
64ff59ba 3068{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3069echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d9898ee8 3070GCC=`test $ac_compiler_gnu = yes && echo yes`
3071ac_test_CFLAGS=${CFLAGS+set}
3072ac_save_CFLAGS=$CFLAGS
64ff59ba 3073{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3074echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d9898ee8 3075if test "${ac_cv_prog_cc_g+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077else
64ff59ba 3078 ac_save_c_werror_flag=$ac_c_werror_flag
3079 ac_c_werror_flag=yes
3080 ac_cv_prog_cc_g=no
3081 CFLAGS="-g"
3082 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3083/* confdefs.h. */
3084_ACEOF
3085cat confdefs.h >>conftest.$ac_ext
3086cat >>conftest.$ac_ext <<_ACEOF
3087/* end confdefs.h. */
3088
3089int
3090main ()
3091{
3092
3093 ;
3094 return 0;
3095}
3096_ACEOF
3097rm -f conftest.$ac_objext
64ff59ba 3098if { (ac_try="$ac_compile"
3099case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102esac
3103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3105 ac_status=$?
3106 grep -v '^ *+' conftest.er1 >conftest.err
3107 rm -f conftest.er1
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3110 (exit $ac_status); } && {
3111 test -z "$ac_c_werror_flag" ||
3112 test ! -s conftest.err
3113 } && test -s conftest.$ac_objext; then
3114 ac_cv_prog_cc_g=yes
3115else
3116 echo "$as_me: failed program was:" >&5
3117sed 's/^/| /' conftest.$ac_ext >&5
3118
3119 CFLAGS=""
3120 cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126
3127int
3128main ()
3129{
3130
3131 ;
3132 return 0;
3133}
3134_ACEOF
3135rm -f conftest.$ac_objext
3136if { (ac_try="$ac_compile"
3137case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3143 ac_status=$?
64ff59ba 3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
d9898ee8 3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3148 (exit $ac_status); } && {
3149 test -z "$ac_c_werror_flag" ||
3150 test ! -s conftest.err
3151 } && test -s conftest.$ac_objext; then
3152 :
3153else
3154 echo "$as_me: failed program was:" >&5
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
3157 ac_c_werror_flag=$ac_save_c_werror_flag
3158 CFLAGS="-g"
3159 cat >conftest.$ac_ext <<_ACEOF
3160/* confdefs.h. */
3161_ACEOF
3162cat confdefs.h >>conftest.$ac_ext
3163cat >>conftest.$ac_ext <<_ACEOF
3164/* end confdefs.h. */
3165
3166int
3167main ()
3168{
3169
3170 ;
3171 return 0;
3172}
3173_ACEOF
3174rm -f conftest.$ac_objext
3175if { (ac_try="$ac_compile"
3176case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179esac
3180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3182 ac_status=$?
64ff59ba 3183 grep -v '^ *+' conftest.er1 >conftest.err
3184 rm -f conftest.er1
3185 cat conftest.err >&5
d9898ee8 3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3187 (exit $ac_status); } && {
3188 test -z "$ac_c_werror_flag" ||
3189 test ! -s conftest.err
3190 } && test -s conftest.$ac_objext; then
d9898ee8 3191 ac_cv_prog_cc_g=yes
3192else
3193 echo "$as_me: failed program was:" >&5
3194sed 's/^/| /' conftest.$ac_ext >&5
3195
64ff59ba 3196
3197fi
3198
3199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3200fi
64ff59ba 3201
3202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203fi
3204
3205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3207fi
64ff59ba 3208{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3209echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d9898ee8 3210if test "$ac_test_CFLAGS" = set; then
3211 CFLAGS=$ac_save_CFLAGS
3212elif test $ac_cv_prog_cc_g = yes; then
3213 if test "$GCC" = yes; then
3214 CFLAGS="-g -O2"
3215 else
3216 CFLAGS="-g"
3217 fi
3218else
3219 if test "$GCC" = yes; then
3220 CFLAGS="-O2"
3221 else
3222 CFLAGS=
3223 fi
3224fi
64ff59ba 3225{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3226echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3227if test "${ac_cv_prog_cc_c89+set}" = set; then
d9898ee8 3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229else
64ff59ba 3230 ac_cv_prog_cc_c89=no
d9898ee8 3231ac_save_CC=$CC
3232cat >conftest.$ac_ext <<_ACEOF
3233/* confdefs.h. */
3234_ACEOF
3235cat confdefs.h >>conftest.$ac_ext
3236cat >>conftest.$ac_ext <<_ACEOF
3237/* end confdefs.h. */
3238#include <stdarg.h>
3239#include <stdio.h>
3240#include <sys/types.h>
3241#include <sys/stat.h>
3242/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3243struct buf { int x; };
3244FILE * (*rcsopen) (struct buf *, struct stat *, int);
3245static char *e (p, i)
3246 char **p;
3247 int i;
3248{
3249 return p[i];
3250}
3251static char *f (char * (*g) (char **, int), char **p, ...)
3252{
3253 char *s;
3254 va_list v;
3255 va_start (v,p);
3256 s = g (p, va_arg (v,int));
3257 va_end (v);
3258 return s;
3259}
3260
3261/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3262 function prototypes and stuff, but not '\xHH' hex character constants.
3263 These don't provoke an error unfortunately, instead are silently treated
64ff59ba 3264 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3265 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3266 array size at least. It's necessary to write '\x00'==0 to get something
64ff59ba 3267 that's true only with -std. */
d9898ee8 3268int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3269
64ff59ba 3270/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3271 inside strings and character constants. */
3272#define FOO(x) 'x'
3273int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3274
d9898ee8 3275int test (int i, double x);
3276struct s1 {int (*f) (int a);};
3277struct s2 {int (*f) (double a);};
3278int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3279int argc;
3280char **argv;
3281int
3282main ()
3283{
3284return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3285 ;
3286 return 0;
3287}
3288_ACEOF
64ff59ba 3289for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3290 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3291do
3292 CC="$ac_save_CC $ac_arg"
3293 rm -f conftest.$ac_objext
64ff59ba 3294if { (ac_try="$ac_compile"
3295case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298esac
3299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3301 ac_status=$?
3302 grep -v '^ *+' conftest.er1 >conftest.err
3303 rm -f conftest.er1
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3306 (exit $ac_status); } && {
3307 test -z "$ac_c_werror_flag" ||
3308 test ! -s conftest.err
3309 } && test -s conftest.$ac_objext; then
3310 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3311else
3312 echo "$as_me: failed program was:" >&5
3313sed 's/^/| /' conftest.$ac_ext >&5
3314
64ff59ba 3315
d9898ee8 3316fi
64ff59ba 3317
3318rm -f core conftest.err conftest.$ac_objext
3319 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3320done
64ff59ba 3321rm -f conftest.$ac_ext
d9898ee8 3322CC=$ac_save_CC
3323
3324fi
64ff59ba 3325# AC_CACHE_VAL
3326case "x$ac_cv_prog_cc_c89" in
3327 x)
3328 { echo "$as_me:$LINENO: result: none needed" >&5
3329echo "${ECHO_T}none needed" >&6; } ;;
3330 xno)
3331 { echo "$as_me:$LINENO: result: unsupported" >&5
3332echo "${ECHO_T}unsupported" >&6; } ;;
d9898ee8 3333 *)
64ff59ba 3334 CC="$CC $ac_cv_prog_cc_c89"
3335 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3336echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3337esac
3338
d9898ee8 3339
d9898ee8 3340ac_ext=c
3341ac_cpp='$CPP $CPPFLAGS'
3342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345DEPDIR="${am__leading_dot}deps"
3346
64ff59ba 3347ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3348
3349
3350am_make=${MAKE-make}
3351cat > confinc << 'END'
3352am__doit:
3353 @echo done
3354.PHONY: am__doit
3355END
3356# If we don't find an include directive, just comment out the code.
64ff59ba 3357{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3358echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
d9898ee8 3359am__include="#"
3360am__quote=
3361_am_result=none
3362# First try GNU make style include.
3363echo "include confinc" > confmf
3364# We grep out `Entering directory' and `Leaving directory'
3365# messages which can occur if `w' ends up in MAKEFLAGS.
3366# In particular we don't look at `^make:' because GNU make might
3367# be invoked under some other name (usually "gmake"), in which
3368# case it prints its new name instead of `make'.
3369if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3370 am__include=include
3371 am__quote=
3372 _am_result=GNU
3373fi
3374# Now try BSD make style include.
3375if test "$am__include" = "#"; then
3376 echo '.include "confinc"' > confmf
3377 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3378 am__include=.include
3379 am__quote="\""
3380 _am_result=BSD
3381 fi
3382fi
3383
3384
64ff59ba 3385{ echo "$as_me:$LINENO: result: $_am_result" >&5
3386echo "${ECHO_T}$_am_result" >&6; }
d9898ee8 3387rm -f confinc confmf
3388
64ff59ba 3389# Check whether --enable-dependency-tracking was given.
d9898ee8 3390if test "${enable_dependency_tracking+set}" = set; then
64ff59ba 3391 enableval=$enable_dependency_tracking;
3392fi
d9898ee8 3393
d9898ee8 3394if test "x$enable_dependency_tracking" != xno; then
3395 am_depcomp="$ac_aux_dir/depcomp"
3396 AMDEPBACKSLASH='\'
3397fi
64ff59ba 3398 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3399 AMDEP_TRUE=
3400 AMDEP_FALSE='#'
3401else
3402 AMDEP_TRUE='#'
3403 AMDEP_FALSE=
3404fi
3405
3406
3407
d9898ee8 3408depcc="$CC" am_compiler_list=
3409
64ff59ba 3410{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3411echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 3412if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3416 # We make a subdir and do the tests there. Otherwise we can end up
3417 # making bogus files that we don't know about and never remove. For
3418 # instance it was reported that on HP-UX the gcc test will end up
3419 # making a dummy file named `D' -- because `-MD' means `put the output
3420 # in D'.
3421 mkdir conftest.dir
3422 # Copy depcomp to subdir because otherwise we won't find it if we're
3423 # using a relative directory.
3424 cp "$am_depcomp" conftest.dir
3425 cd conftest.dir
3426 # We will build objects and dependencies in a subdirectory because
3427 # it helps to detect inapplicable dependency modes. For instance
3428 # both Tru64's cc and ICC support -MD to output dependencies as a
3429 # side effect of compilation, but ICC will put the dependencies in
3430 # the current directory while Tru64 will put them in the object
3431 # directory.
3432 mkdir sub
3433
3434 am_cv_CC_dependencies_compiler_type=none
3435 if test "$am_compiler_list" = ""; then
3436 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3437 fi
3438 for depmode in $am_compiler_list; do
3439 # Setup a source with many dependencies, because some compilers
3440 # like to wrap large dependency lists on column 80 (with \), and
3441 # we should not choose a depcomp mode which is confused by this.
3442 #
3443 # We need to recreate these files for each test, as the compiler may
3444 # overwrite some of them when testing with obscure command lines.
3445 # This happens at least with the AIX C compiler.
3446 : > sub/conftest.c
3447 for i in 1 2 3 4 5 6; do
3448 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3449 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3450 # Solaris 8's {/usr,}/bin/sh.
3451 touch sub/conftst$i.h
3452 done
3453 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3454
3455 case $depmode in
3456 nosideeffect)
3457 # after this tag, mechanisms are not by side-effect, so they'll
3458 # only be used when explicitly requested
3459 if test "x$enable_dependency_tracking" = xyes; then
3460 continue
3461 else
3462 break
3463 fi
3464 ;;
3465 none) break ;;
3466 esac
3467 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3468 # mode. It turns out that the SunPro C++ compiler does not properly
3469 # handle `-M -o', and we need to detect this.
3470 if depmode=$depmode \
3471 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3472 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3473 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3474 >/dev/null 2>conftest.err &&
64ff59ba 3475 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3476 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3477 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3478 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3479 # icc doesn't choke on unknown options, it will just issue warnings
3480 # or remarks (even with -Werror). So we grep stderr for any message
3481 # that says an option was ignored or not supported.
3482 # When given -MP, icc 7.0 and 7.1 complain thusly:
3483 # icc: Command line warning: ignoring option '-M'; no argument required
3484 # The diagnosis changed in icc 8.0:
3485 # icc: Command line remark: option '-MP' not supported
3486 if (grep 'ignoring option' conftest.err ||
3487 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3488 am_cv_CC_dependencies_compiler_type=$depmode
3489 break
3490 fi
3491 fi
3492 done
3493
3494 cd ..
3495 rm -rf conftest.dir
3496else
3497 am_cv_CC_dependencies_compiler_type=none
3498fi
3499
3500fi
64ff59ba 3501{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3502echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3503CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3504
64ff59ba 3505 if
d9898ee8 3506 test "x$enable_dependency_tracking" != xno \
3507 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3508 am__fastdepCC_TRUE=
3509 am__fastdepCC_FALSE='#'
3510else
3511 am__fastdepCC_TRUE='#'
3512 am__fastdepCC_FALSE=
3513fi
3514
3515
3516# Find a good install program. We prefer a C program (faster),
3517# so one script is as good as another. But avoid the broken or
3518# incompatible versions:
3519# SysV /etc/install, /usr/sbin/install
3520# SunOS /usr/etc/install
3521# IRIX /sbin/install
3522# AIX /bin/install
3523# AmigaOS /C/install, which installs bootblocks on floppy discs
3524# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3525# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3526# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3527# OS/2's system install, which has a completely different semantic
3528# ./install, which can be erroneously created by make from ./install.sh.
64ff59ba 3529{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3530echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 3531if test -z "$INSTALL"; then
3532if test "${ac_cv_path_install+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3534else
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536for as_dir in $PATH
3537do
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 # Account for people who put trailing slashes in PATH elements.
3541case $as_dir/ in
3542 ./ | .// | /cC/* | \
3543 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3544 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3545 /usr/ucb/* ) ;;
3546 *)
3547 # OSF1 and SCO ODT 3.0 have their own names for install.
3548 # Don't use installbsd from OSF since it installs stuff as root
3549 # by default.
3550 for ac_prog in ginstall scoinst install; do
3551 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 3552 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 3553 if test $ac_prog = install &&
3554 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3555 # AIX install. It has an incompatible calling convention.
3556 :
3557 elif test $ac_prog = install &&
3558 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3559 # program-specific install script used by HP pwplus--don't use.
3560 :
3561 else
3562 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3563 break 3
3564 fi
3565 fi
3566 done
3567 done
3568 ;;
3569esac
3570done
64ff59ba 3571IFS=$as_save_IFS
d9898ee8 3572
3573
3574fi
3575 if test "${ac_cv_path_install+set}" = set; then
3576 INSTALL=$ac_cv_path_install
3577 else
64ff59ba 3578 # As a last resort, use the slow shell script. Don't cache a
3579 # value for INSTALL within a source directory, because that will
d9898ee8 3580 # break other packages using the cache if that directory is
64ff59ba 3581 # removed, or if the value is a relative name.
d9898ee8 3582 INSTALL=$ac_install_sh
3583 fi
3584fi
64ff59ba 3585{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3586echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 3587
3588# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3589# It thinks the first close brace ends the variable substitution.
3590test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3591
3592test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3593
3594test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3595
64ff59ba 3596{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3597echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d9898ee8 3598LN_S=$as_ln_s
3599if test "$LN_S" = "ln -s"; then
64ff59ba 3600 { echo "$as_me:$LINENO: result: yes" >&5
3601echo "${ECHO_T}yes" >&6; }
d9898ee8 3602else
64ff59ba 3603 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3604echo "${ECHO_T}no, using $LN_S" >&6; }
d9898ee8 3605fi
3606
64ff59ba 3607# Check whether --enable-shared was given.
d9898ee8 3608if test "${enable_shared+set}" = set; then
64ff59ba 3609 enableval=$enable_shared; p=${PACKAGE-default}
d9898ee8 3610 case $enableval in
3611 yes) enable_shared=yes ;;
3612 no) enable_shared=no ;;
3613 *)
3614 enable_shared=no
3615 # Look at the argument we got. We use all the common list separators.
3616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3617 for pkg in $enableval; do
3618 IFS="$lt_save_ifs"
3619 if test "X$pkg" = "X$p"; then
3620 enable_shared=yes
3621 fi
3622 done
3623 IFS="$lt_save_ifs"
3624 ;;
3625 esac
3626else
3627 enable_shared=yes
64ff59ba 3628fi
d9898ee8 3629
64ff59ba 3630
3631# Check whether --enable-static was given.
d9898ee8 3632if test "${enable_static+set}" = set; then
64ff59ba 3633 enableval=$enable_static; p=${PACKAGE-default}
d9898ee8 3634 case $enableval in
3635 yes) enable_static=yes ;;
3636 no) enable_static=no ;;
3637 *)
3638 enable_static=no
3639 # Look at the argument we got. We use all the common list separators.
3640 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3641 for pkg in $enableval; do
3642 IFS="$lt_save_ifs"
3643 if test "X$pkg" = "X$p"; then
3644 enable_static=yes
3645 fi
3646 done
3647 IFS="$lt_save_ifs"
3648 ;;
3649 esac
3650else
3651 enable_static=yes
64ff59ba 3652fi
d9898ee8 3653
64ff59ba 3654
3655# Check whether --enable-fast-install was given.
d9898ee8 3656if test "${enable_fast_install+set}" = set; then
64ff59ba 3657 enableval=$enable_fast_install; p=${PACKAGE-default}
d9898ee8 3658 case $enableval in
3659 yes) enable_fast_install=yes ;;
3660 no) enable_fast_install=no ;;
3661 *)
3662 enable_fast_install=no
3663 # Look at the argument we got. We use all the common list separators.
3664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3665 for pkg in $enableval; do
3666 IFS="$lt_save_ifs"
3667 if test "X$pkg" = "X$p"; then
3668 enable_fast_install=yes
3669 fi
3670 done
3671 IFS="$lt_save_ifs"
3672 ;;
3673 esac
3674else
3675 enable_fast_install=yes
64ff59ba 3676fi
3677
d9898ee8 3678
3679# Make sure we can run config.sub.
64ff59ba 3680$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3681 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3682echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 3683 { (exit 1); exit 1; }; }
3684
64ff59ba 3685{ echo "$as_me:$LINENO: checking build system type" >&5
3686echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
d9898ee8 3687if test "${ac_cv_build+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689else
64ff59ba 3690 ac_build_alias=$build_alias
3691test "x$ac_build_alias" = x &&
3692 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3693test "x$ac_build_alias" = x &&
d9898ee8 3694 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3695echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3696 { (exit 1); exit 1; }; }
64ff59ba 3697ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3698 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3699echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 3700 { (exit 1); exit 1; }; }
3701
3702fi
64ff59ba 3703{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3704echo "${ECHO_T}$ac_cv_build" >&6; }
3705case $ac_cv_build in
3706*-*-*) ;;
3707*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3708echo "$as_me: error: invalid value of canonical build" >&2;}
3709 { (exit 1); exit 1; }; };;
3710esac
d9898ee8 3711build=$ac_cv_build
64ff59ba 3712ac_save_IFS=$IFS; IFS='-'
3713set x $ac_cv_build
3714shift
3715build_cpu=$1
3716build_vendor=$2
3717shift; shift
3718# Remember, the first character of IFS is used to create $*,
3719# except with old shells:
3720build_os=$*
3721IFS=$ac_save_IFS
3722case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3723
3724
3725{ echo "$as_me:$LINENO: checking host system type" >&5
3726echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
d9898ee8 3727if test "${ac_cv_host+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729else
64ff59ba 3730 if test "x$host_alias" = x; then
3731 ac_cv_host=$ac_cv_build
3732else
3733 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3734 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3735echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 3736 { (exit 1); exit 1; }; }
64ff59ba 3737fi
d9898ee8 3738
3739fi
64ff59ba 3740{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3741echo "${ECHO_T}$ac_cv_host" >&6; }
3742case $ac_cv_host in
3743*-*-*) ;;
3744*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3745echo "$as_me: error: invalid value of canonical host" >&2;}
3746 { (exit 1); exit 1; }; };;
3747esac
d9898ee8 3748host=$ac_cv_host
64ff59ba 3749ac_save_IFS=$IFS; IFS='-'
3750set x $ac_cv_host
3751shift
3752host_cpu=$1
3753host_vendor=$2
3754shift; shift
3755# Remember, the first character of IFS is used to create $*,
3756# except with old shells:
3757host_os=$*
3758IFS=$ac_save_IFS
3759case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3760
3761
3762{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3763echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
d9898ee8 3764if test "${lt_cv_path_SED+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767 # Loop through the user's path and test for sed and gsed.
3768# Then use that list of sed's as ones to test for truncation.
3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770for as_dir in $PATH
3771do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for lt_ac_prog in sed gsed; do
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3777 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3778 fi
3779 done
3780 done
3781done
3782IFS=$as_save_IFS
3783lt_ac_max=0
3784lt_ac_count=0
3785# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3786# along with /bin/sed that truncates output.
3787for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3788 test ! -f $lt_ac_sed && continue
3789 cat /dev/null > conftest.in
3790 lt_ac_count=0
3791 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3792 # Check for GNU sed and select it if it is found.
3793 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3794 lt_cv_path_SED=$lt_ac_sed
3795 break
3796 fi
3797 while true; do
3798 cat conftest.in conftest.in >conftest.tmp
3799 mv conftest.tmp conftest.in
3800 cp conftest.in conftest.nl
3801 echo >>conftest.nl
3802 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3803 cmp -s conftest.out conftest.nl || break
3804 # 10000 chars as input seems more than enough
3805 test $lt_ac_count -gt 10 && break
3806 lt_ac_count=`expr $lt_ac_count + 1`
3807 if test $lt_ac_count -gt $lt_ac_max; then
3808 lt_ac_max=$lt_ac_count
3809 lt_cv_path_SED=$lt_ac_sed
3810 fi
3811 done
3812done
3813
3814fi
3815
3816SED=$lt_cv_path_SED
3817
64ff59ba 3818{ echo "$as_me:$LINENO: result: $SED" >&5
3819echo "${ECHO_T}$SED" >&6; }
3820
3821{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3822echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3823if test "${ac_cv_path_GREP+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3825else
3826 # Extract the first word of "grep ggrep" to use in msg output
3827if test -z "$GREP"; then
3828set dummy grep ggrep; ac_prog_name=$2
3829if test "${ac_cv_path_GREP+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831else
3832 ac_path_GREP_found=false
3833# Loop through the user's path and test for each of PROGNAME-LIST
3834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3836do
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
3839 for ac_prog in grep ggrep; do
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3842 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3843 # Check for GNU ac_path_GREP and select it if it is found.
3844 # Check for GNU $ac_path_GREP
3845case `"$ac_path_GREP" --version 2>&1` in
3846*GNU*)
3847 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3848*)
3849 ac_count=0
3850 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3851 while :
3852 do
3853 cat "conftest.in" "conftest.in" >"conftest.tmp"
3854 mv "conftest.tmp" "conftest.in"
3855 cp "conftest.in" "conftest.nl"
3856 echo 'GREP' >> "conftest.nl"
3857 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3859 ac_count=`expr $ac_count + 1`
3860 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3861 # Best one so far, save it but keep looking for a better one
3862 ac_cv_path_GREP="$ac_path_GREP"
3863 ac_path_GREP_max=$ac_count
3864 fi
3865 # 10*(2^10) chars as input seems more than enough
3866 test $ac_count -gt 10 && break
3867 done
3868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3869esac
3870
3871
3872 $ac_path_GREP_found && break 3
3873 done
3874done
3875
3876done
3877IFS=$as_save_IFS
3878
3879
3880fi
3881
3882GREP="$ac_cv_path_GREP"
3883if test -z "$GREP"; then
3884 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3885echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3886 { (exit 1); exit 1; }; }
3887fi
3888
3889else
3890 ac_cv_path_GREP=$GREP
3891fi
3892
3893
3894fi
3895{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3896echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3897 GREP="$ac_cv_path_GREP"
3898
d9898ee8 3899
64ff59ba 3900{ echo "$as_me:$LINENO: checking for egrep" >&5
3901echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3902if test "${ac_cv_path_EGREP+set}" = set; then
d9898ee8 3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904else
64ff59ba 3905 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3906 then ac_cv_path_EGREP="$GREP -E"
3907 else
3908 # Extract the first word of "egrep" to use in msg output
3909if test -z "$EGREP"; then
3910set dummy egrep; ac_prog_name=$2
3911if test "${ac_cv_path_EGREP+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913else
3914 ac_path_EGREP_found=false
3915# Loop through the user's path and test for each of PROGNAME-LIST
3916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3918do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_prog in egrep; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3924 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3925 # Check for GNU ac_path_EGREP and select it if it is found.
3926 # Check for GNU $ac_path_EGREP
3927case `"$ac_path_EGREP" --version 2>&1` in
3928*GNU*)
3929 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3930*)
3931 ac_count=0
3932 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3933 while :
3934 do
3935 cat "conftest.in" "conftest.in" >"conftest.tmp"
3936 mv "conftest.tmp" "conftest.in"
3937 cp "conftest.in" "conftest.nl"
3938 echo 'EGREP' >> "conftest.nl"
3939 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3941 ac_count=`expr $ac_count + 1`
3942 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3943 # Best one so far, save it but keep looking for a better one
3944 ac_cv_path_EGREP="$ac_path_EGREP"
3945 ac_path_EGREP_max=$ac_count
d9898ee8 3946 fi
64ff59ba 3947 # 10*(2^10) chars as input seems more than enough
3948 test $ac_count -gt 10 && break
3949 done
3950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3951esac
3952
3953
3954 $ac_path_EGREP_found && break 3
3955 done
3956done
3957
3958done
3959IFS=$as_save_IFS
3960
3961
3962fi
3963
3964EGREP="$ac_cv_path_EGREP"
3965if test -z "$EGREP"; then
3966 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3967echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3968 { (exit 1); exit 1; }; }
d9898ee8 3969fi
d9898ee8 3970
64ff59ba 3971else
3972 ac_cv_path_EGREP=$EGREP
3973fi
3974
3975
3976 fi
3977fi
3978{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3979echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3980 EGREP="$ac_cv_path_EGREP"
d9898ee8 3981
3982
64ff59ba 3983
3984# Check whether --with-gnu-ld was given.
d9898ee8 3985if test "${with_gnu_ld+set}" = set; then
64ff59ba 3986 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 3987else
3988 with_gnu_ld=no
64ff59ba 3989fi
3990
d9898ee8 3991ac_prog=ld
3992if test "$GCC" = yes; then
3993 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 3994 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3995echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 3996 case $host in
3997 *-*-mingw*)
3998 # gcc leaves a trailing carriage return which upsets mingw
3999 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4000 *)
4001 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4002 esac
4003 case $ac_prog in
4004 # Accept absolute paths.
4005 [\\/]* | ?:[\\/]*)
4006 re_direlt='/[^/][^/]*/\.\./'
4007 # Canonicalize the pathname of ld
4008 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4009 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4010 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4011 done
4012 test -z "$LD" && LD="$ac_prog"
4013 ;;
4014 "")
4015 # If it fails, then pretend we aren't using GCC.
4016 ac_prog=ld
4017 ;;
4018 *)
4019 # If it is relative, then search for the first ld in PATH.
4020 with_gnu_ld=unknown
4021 ;;
4022 esac
4023elif test "$with_gnu_ld" = yes; then
64ff59ba 4024 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4025echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 4026else
64ff59ba 4027 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4028echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 4029fi
4030if test "${lt_cv_path_LD+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4032else
4033 if test -z "$LD"; then
4034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4035 for ac_dir in $PATH; do
4036 IFS="$lt_save_ifs"
4037 test -z "$ac_dir" && ac_dir=.
4038 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4039 lt_cv_path_LD="$ac_dir/$ac_prog"
4040 # Check to see if the program is GNU ld. I'd rather use --version,
4041 # but apparently some variants of GNU ld only accept -v.
4042 # Break only if it was the GNU/non-GNU ld that we prefer.
4043 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4044 *GNU* | *'with BFD'*)
4045 test "$with_gnu_ld" != no && break
4046 ;;
4047 *)
4048 test "$with_gnu_ld" != yes && break
4049 ;;
4050 esac
4051 fi
4052 done
4053 IFS="$lt_save_ifs"
4054else
4055 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4056fi
4057fi
4058
4059LD="$lt_cv_path_LD"
4060if test -n "$LD"; then
64ff59ba 4061 { echo "$as_me:$LINENO: result: $LD" >&5
4062echo "${ECHO_T}$LD" >&6; }
d9898ee8 4063else
64ff59ba 4064 { echo "$as_me:$LINENO: result: no" >&5
4065echo "${ECHO_T}no" >&6; }
d9898ee8 4066fi
4067test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4068echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4069 { (exit 1); exit 1; }; }
64ff59ba 4070{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4071echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 4072if test "${lt_cv_prog_gnu_ld+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074else
4075 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4076case `$LD -v 2>&1 </dev/null` in
4077*GNU* | *'with BFD'*)
4078 lt_cv_prog_gnu_ld=yes
4079 ;;
4080*)
4081 lt_cv_prog_gnu_ld=no
4082 ;;
4083esac
4084fi
64ff59ba 4085{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4086echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4087with_gnu_ld=$lt_cv_prog_gnu_ld
4088
4089
64ff59ba 4090{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4091echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d9898ee8 4092if test "${lt_cv_ld_reload_flag+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094else
4095 lt_cv_ld_reload_flag='-r'
4096fi
64ff59ba 4097{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4098echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
d9898ee8 4099reload_flag=$lt_cv_ld_reload_flag
4100case $reload_flag in
4101"" | " "*) ;;
4102*) reload_flag=" $reload_flag" ;;
4103esac
4104reload_cmds='$LD$reload_flag -o $output$reload_objs'
4105case $host_os in
4106 darwin*)
4107 if test "$GCC" = yes; then
4108 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4109 else
4110 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4111 fi
4112 ;;
4113esac
4114
64ff59ba 4115{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4116echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
d9898ee8 4117if test "${lt_cv_path_NM+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119else
4120 if test -n "$NM"; then
4121 # Let the user override the test.
4122 lt_cv_path_NM="$NM"
4123else
4124 lt_nm_to_check="${ac_tool_prefix}nm"
4125 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4126 lt_nm_to_check="$lt_nm_to_check nm"
4127 fi
4128 for lt_tmp_nm in $lt_nm_to_check; do
4129 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4130 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4131 IFS="$lt_save_ifs"
4132 test -z "$ac_dir" && ac_dir=.
4133 tmp_nm="$ac_dir/$lt_tmp_nm"
4134 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4135 # Check to see if the nm accepts a BSD-compat flag.
4136 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4137 # nm: unknown option "B" ignored
4138 # Tru64's nm complains that /dev/null is an invalid object file
4139 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4140 */dev/null* | *'Invalid file or object type'*)
4141 lt_cv_path_NM="$tmp_nm -B"
4142 break
4143 ;;
4144 *)
4145 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4146 */dev/null*)
4147 lt_cv_path_NM="$tmp_nm -p"
4148 break
4149 ;;
4150 *)
4151 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4152 continue # so that we can try to find one that supports BSD flags
4153 ;;
4154 esac
4155 ;;
4156 esac
4157 fi
4158 done
4159 IFS="$lt_save_ifs"
4160 done
4161 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4162fi
4163fi
64ff59ba 4164{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4165echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d9898ee8 4166NM="$lt_cv_path_NM"
4167
64ff59ba 4168{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4169echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
d9898ee8 4170if test "${lt_cv_deplibs_check_method+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172else
4173 lt_cv_file_magic_cmd='$MAGIC_CMD'
4174lt_cv_file_magic_test_file=
4175lt_cv_deplibs_check_method='unknown'
4176# Need to set the preceding variable on all platforms that support
4177# interlibrary dependencies.
4178# 'none' -- dependencies not supported.
4179# `unknown' -- same as none, but documents that we really don't know.
4180# 'pass_all' -- all dependencies passed with no checks.
4181# 'test_compile' -- check by making test program.
4182# 'file_magic [[regex]]' -- check by looking for files in library path
4183# which responds to the $file_magic_cmd with a given extended regex.
4184# If you have `file' or equivalent on your system and you're not sure
4185# whether `pass_all' will *always* work, you probably want this one.
4186
4187case $host_os in
4188aix4* | aix5*)
4189 lt_cv_deplibs_check_method=pass_all
4190 ;;
4191
4192beos*)
4193 lt_cv_deplibs_check_method=pass_all
4194 ;;
4195
4196bsdi[45]*)
4197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4198 lt_cv_file_magic_cmd='/usr/bin/file -L'
4199 lt_cv_file_magic_test_file=/shlib/libc.so
4200 ;;
4201
4202cygwin*)
4203 # func_win32_libid is a shell function defined in ltmain.sh
4204 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4205 lt_cv_file_magic_cmd='func_win32_libid'
4206 ;;
4207
4208mingw* | pw32*)
4209 # Base MSYS/MinGW do not provide the 'file' command needed by
4210 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4211 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4212 lt_cv_file_magic_cmd='$OBJDUMP -f'
4213 ;;
4214
4215darwin* | rhapsody*)
4216 lt_cv_deplibs_check_method=pass_all
4217 ;;
4218
4219freebsd* | kfreebsd*-gnu | dragonfly*)
4220 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4221 case $host_cpu in
4222 i*86 )
4223 # Not sure whether the presence of OpenBSD here was a mistake.
4224 # Let's accept both of them until this is cleared up.
4225 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4226 lt_cv_file_magic_cmd=/usr/bin/file
4227 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4228 ;;
4229 esac
4230 else
4231 lt_cv_deplibs_check_method=pass_all
4232 fi
4233 ;;
4234
4235gnu*)
4236 lt_cv_deplibs_check_method=pass_all
4237 ;;
4238
4239hpux10.20* | hpux11*)
4240 lt_cv_file_magic_cmd=/usr/bin/file
4241 case $host_cpu in
4242 ia64*)
4243 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4244 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4245 ;;
4246 hppa*64*)
4247 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]'
4248 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4249 ;;
4250 *)
4251 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4252 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4253 ;;
4254 esac
4255 ;;
4256
4257interix3*)
4258 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4260 ;;
4261
4262irix5* | irix6* | nonstopux*)
4263 case $LD in
4264 *-32|*"-32 ") libmagic=32-bit;;
4265 *-n32|*"-n32 ") libmagic=N32;;
4266 *-64|*"-64 ") libmagic=64-bit;;
4267 *) libmagic=never-match;;
4268 esac
4269 lt_cv_deplibs_check_method=pass_all
4270 ;;
4271
4272# This must be Linux ELF.
4273linux*)
4274 lt_cv_deplibs_check_method=pass_all
4275 ;;
4276
4277netbsd*)
4278 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4280 else
4281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4282 fi
4283 ;;
4284
4285newos6*)
4286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4287 lt_cv_file_magic_cmd=/usr/bin/file
4288 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4289 ;;
4290
4291nto-qnx*)
4292 lt_cv_deplibs_check_method=unknown
4293 ;;
4294
4295openbsd*)
4296 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4298 else
4299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4300 fi
4301 ;;
4302
4303osf3* | osf4* | osf5*)
4304 lt_cv_deplibs_check_method=pass_all
4305 ;;
4306
4307solaris*)
4308 lt_cv_deplibs_check_method=pass_all
4309 ;;
4310
4311sysv4 | sysv4.3*)
4312 case $host_vendor in
4313 motorola)
4314 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]'
4315 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4316 ;;
4317 ncr)
4318 lt_cv_deplibs_check_method=pass_all
4319 ;;
4320 sequent)
4321 lt_cv_file_magic_cmd='/bin/file'
4322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4323 ;;
4324 sni)
4325 lt_cv_file_magic_cmd='/bin/file'
4326 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4327 lt_cv_file_magic_test_file=/lib/libc.so
4328 ;;
4329 siemens)
4330 lt_cv_deplibs_check_method=pass_all
4331 ;;
4332 pc)
4333 lt_cv_deplibs_check_method=pass_all
4334 ;;
4335 esac
4336 ;;
4337
4338sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4339 lt_cv_deplibs_check_method=pass_all
4340 ;;
4341esac
4342
4343fi
64ff59ba 4344{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4345echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
d9898ee8 4346file_magic_cmd=$lt_cv_file_magic_cmd
4347deplibs_check_method=$lt_cv_deplibs_check_method
4348test -z "$deplibs_check_method" && deplibs_check_method=unknown
4349
4350
4351
4352
4353# If no C compiler was specified, use CC.
4354LTCC=${LTCC-"$CC"}
4355
4356# If no C compiler flags were specified, use CFLAGS.
4357LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4358
4359# Allow CC to be a program name with arguments.
4360compiler=$CC
4361
4362
64ff59ba 4363# Check whether --enable-libtool-lock was given.
d9898ee8 4364if test "${enable_libtool_lock+set}" = set; then
64ff59ba 4365 enableval=$enable_libtool_lock;
4366fi
d9898ee8 4367
d9898ee8 4368test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4369
4370# Some flags need to be propagated to the compiler or linker for good
4371# libtool support.
4372case $host in
4373ia64-*-hpux*)
4374 # Find out which ABI we are using.
4375 echo 'int i;' > conftest.$ac_ext
4376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4377 (eval $ac_compile) 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; then
4381 case `/usr/bin/file conftest.$ac_objext` in
4382 *ELF-32*)
4383 HPUX_IA64_MODE="32"
4384 ;;
4385 *ELF-64*)
4386 HPUX_IA64_MODE="64"
4387 ;;
4388 esac
4389 fi
4390 rm -rf conftest*
4391 ;;
4392*-*-irix6*)
4393 # Find out which ABI we are using.
64ff59ba 4394 echo '#line 4394 "configure"' > conftest.$ac_ext
d9898ee8 4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; then
4400 if test "$lt_cv_prog_gnu_ld" = yes; then
4401 case `/usr/bin/file conftest.$ac_objext` in
4402 *32-bit*)
4403 LD="${LD-ld} -melf32bsmip"
4404 ;;
4405 *N32*)
4406 LD="${LD-ld} -melf32bmipn32"
4407 ;;
4408 *64-bit*)
4409 LD="${LD-ld} -melf64bmip"
4410 ;;
4411 esac
4412 else
4413 case `/usr/bin/file conftest.$ac_objext` in
4414 *32-bit*)
4415 LD="${LD-ld} -32"
4416 ;;
4417 *N32*)
4418 LD="${LD-ld} -n32"
4419 ;;
4420 *64-bit*)
4421 LD="${LD-ld} -64"
4422 ;;
4423 esac
4424 fi
4425 fi
4426 rm -rf conftest*
4427 ;;
4428
4429x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4430 # Find out which ABI we are using.
4431 echo 'int i;' > conftest.$ac_ext
4432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433 (eval $ac_compile) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; then
4437 case `/usr/bin/file conftest.o` in
4438 *32-bit*)
4439 case $host in
4440 x86_64-*linux*)
4441 LD="${LD-ld} -m elf_i386"
4442 ;;
4443 ppc64-*linux*|powerpc64-*linux*)
4444 LD="${LD-ld} -m elf32ppclinux"
4445 ;;
4446 s390x-*linux*)
4447 LD="${LD-ld} -m elf_s390"
4448 ;;
4449 sparc64-*linux*)
4450 LD="${LD-ld} -m elf32_sparc"
4451 ;;
4452 esac
4453 ;;
4454 *64-bit*)
4455 case $host in
4456 x86_64-*linux*)
4457 LD="${LD-ld} -m elf_x86_64"
4458 ;;
4459 ppc*-*linux*|powerpc*-*linux*)
4460 LD="${LD-ld} -m elf64ppc"
4461 ;;
4462 s390*-*linux*)
4463 LD="${LD-ld} -m elf64_s390"
4464 ;;
4465 sparc*-*linux*)
4466 LD="${LD-ld} -m elf64_sparc"
4467 ;;
4468 esac
4469 ;;
4470 esac
4471 fi
4472 rm -rf conftest*
4473 ;;
4474
4475*-*-sco3.2v5*)
4476 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4477 SAVE_CFLAGS="$CFLAGS"
4478 CFLAGS="$CFLAGS -belf"
64ff59ba 4479 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4480echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d9898ee8 4481if test "${lt_cv_cc_needs_belf+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483else
4484 ac_ext=c
4485ac_cpp='$CPP $CPPFLAGS'
4486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4488ac_compiler_gnu=$ac_cv_c_compiler_gnu
4489
4490 cat >conftest.$ac_ext <<_ACEOF
4491/* confdefs.h. */
4492_ACEOF
4493cat confdefs.h >>conftest.$ac_ext
4494cat >>conftest.$ac_ext <<_ACEOF
4495/* end confdefs.h. */
4496
4497int
4498main ()
4499{
4500
4501 ;
4502 return 0;
4503}
4504_ACEOF
4505rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 4506if { (ac_try="$ac_link"
4507case "(($ac_try" in
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4510esac
4511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512 (eval "$ac_link") 2>conftest.er1
d9898ee8 4513 ac_status=$?
4514 grep -v '^ *+' conftest.er1 >conftest.err
4515 rm -f conftest.er1
4516 cat conftest.err >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4518 (exit $ac_status); } && {
4519 test -z "$ac_c_werror_flag" ||
4520 test ! -s conftest.err
4521 } && test -s conftest$ac_exeext &&
4522 $as_test_x conftest$ac_exeext; then
d9898ee8 4523 lt_cv_cc_needs_belf=yes
4524else
4525 echo "$as_me: failed program was:" >&5
4526sed 's/^/| /' conftest.$ac_ext >&5
4527
64ff59ba 4528 lt_cv_cc_needs_belf=no
d9898ee8 4529fi
64ff59ba 4530
4531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 4532 conftest$ac_exeext conftest.$ac_ext
4533 ac_ext=c
4534ac_cpp='$CPP $CPPFLAGS'
4535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538
4539fi
64ff59ba 4540{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4541echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
d9898ee8 4542 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4543 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4544 CFLAGS="$SAVE_CFLAGS"
4545 fi
4546 ;;
4547sparc*-*solaris*)
4548 # Find out which ABI we are using.
4549 echo 'int i;' > conftest.$ac_ext
4550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4551 (eval $ac_compile) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; then
4555 case `/usr/bin/file conftest.o` in
4556 *64-bit*)
4557 case $lt_cv_prog_gnu_ld in
4558 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4559 *) LD="${LD-ld} -64" ;;
4560 esac
4561 ;;
4562 esac
4563 fi
4564 rm -rf conftest*
4565 ;;
4566
4567
4568esac
4569
4570need_locks="$enable_libtool_lock"
4571
4572
4573ac_ext=c
4574ac_cpp='$CPP $CPPFLAGS'
4575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577ac_compiler_gnu=$ac_cv_c_compiler_gnu
64ff59ba 4578{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4579echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d9898ee8 4580# On Suns, sometimes $CPP names a directory.
4581if test -n "$CPP" && test -d "$CPP"; then
4582 CPP=
4583fi
4584if test -z "$CPP"; then
4585 if test "${ac_cv_prog_CPP+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587else
4588 # Double quotes because CPP needs to be expanded
4589 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4590 do
4591 ac_preproc_ok=false
4592for ac_c_preproc_warn_flag in '' yes
4593do
4594 # Use a header file that comes with gcc, so configuring glibc
4595 # with a fresh cross-compiler works.
4596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4597 # <limits.h> exists even on freestanding compilers.
4598 # On the NeXT, cc -E runs the code through the compiler's parser,
4599 # not just through cpp. "Syntax error" is here to catch this case.
4600 cat >conftest.$ac_ext <<_ACEOF
4601/* confdefs.h. */
4602_ACEOF
4603cat confdefs.h >>conftest.$ac_ext
4604cat >>conftest.$ac_ext <<_ACEOF
4605/* end confdefs.h. */
4606#ifdef __STDC__
4607# include <limits.h>
4608#else
4609# include <assert.h>
4610#endif
4611 Syntax error
4612_ACEOF
64ff59ba 4613if { (ac_try="$ac_cpp conftest.$ac_ext"
4614case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4617esac
4618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4620 ac_status=$?
4621 grep -v '^ *+' conftest.er1 >conftest.err
4622 rm -f conftest.er1
4623 cat conftest.err >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4625 (exit $ac_status); } >/dev/null && {
4626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4627 test ! -s conftest.err
4628 }; then
d9898ee8 4629 :
4630else
4631 echo "$as_me: failed program was:" >&5
4632sed 's/^/| /' conftest.$ac_ext >&5
4633
4634 # Broken: fails on valid input.
4635continue
4636fi
64ff59ba 4637
d9898ee8 4638rm -f conftest.err conftest.$ac_ext
4639
64ff59ba 4640 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4641 # can be detected and how.
4642 cat >conftest.$ac_ext <<_ACEOF
4643/* confdefs.h. */
4644_ACEOF
4645cat confdefs.h >>conftest.$ac_ext
4646cat >>conftest.$ac_ext <<_ACEOF
4647/* end confdefs.h. */
4648#include <ac_nonexistent.h>
4649_ACEOF
64ff59ba 4650if { (ac_try="$ac_cpp conftest.$ac_ext"
4651case "(($ac_try" in
4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4654esac
4655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4657 ac_status=$?
4658 grep -v '^ *+' conftest.er1 >conftest.err
4659 rm -f conftest.er1
4660 cat conftest.err >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4662 (exit $ac_status); } >/dev/null && {
4663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4664 test ! -s conftest.err
4665 }; then
d9898ee8 4666 # Broken: success on invalid input.
4667continue
4668else
4669 echo "$as_me: failed program was:" >&5
4670sed 's/^/| /' conftest.$ac_ext >&5
4671
4672 # Passes both tests.
4673ac_preproc_ok=:
4674break
4675fi
64ff59ba 4676
d9898ee8 4677rm -f conftest.err conftest.$ac_ext
4678
4679done
4680# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4681rm -f conftest.err conftest.$ac_ext
4682if $ac_preproc_ok; then
4683 break
4684fi
4685
4686 done
4687 ac_cv_prog_CPP=$CPP
4688
4689fi
4690 CPP=$ac_cv_prog_CPP
4691else
4692 ac_cv_prog_CPP=$CPP
4693fi
64ff59ba 4694{ echo "$as_me:$LINENO: result: $CPP" >&5
4695echo "${ECHO_T}$CPP" >&6; }
d9898ee8 4696ac_preproc_ok=false
4697for ac_c_preproc_warn_flag in '' yes
4698do
4699 # Use a header file that comes with gcc, so configuring glibc
4700 # with a fresh cross-compiler works.
4701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4702 # <limits.h> exists even on freestanding compilers.
4703 # On the NeXT, cc -E runs the code through the compiler's parser,
4704 # not just through cpp. "Syntax error" is here to catch this case.
4705 cat >conftest.$ac_ext <<_ACEOF
4706/* confdefs.h. */
4707_ACEOF
4708cat confdefs.h >>conftest.$ac_ext
4709cat >>conftest.$ac_ext <<_ACEOF
4710/* end confdefs.h. */
4711#ifdef __STDC__
4712# include <limits.h>
4713#else
4714# include <assert.h>
4715#endif
4716 Syntax error
4717_ACEOF
64ff59ba 4718if { (ac_try="$ac_cpp conftest.$ac_ext"
4719case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722esac
4723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4725 ac_status=$?
4726 grep -v '^ *+' conftest.er1 >conftest.err
4727 rm -f conftest.er1
4728 cat conftest.err >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4730 (exit $ac_status); } >/dev/null && {
4731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4732 test ! -s conftest.err
4733 }; then
d9898ee8 4734 :
4735else
4736 echo "$as_me: failed program was:" >&5
4737sed 's/^/| /' conftest.$ac_ext >&5
4738
4739 # Broken: fails on valid input.
4740continue
4741fi
64ff59ba 4742
d9898ee8 4743rm -f conftest.err conftest.$ac_ext
4744
64ff59ba 4745 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4746 # can be detected and how.
4747 cat >conftest.$ac_ext <<_ACEOF
4748/* confdefs.h. */
4749_ACEOF
4750cat confdefs.h >>conftest.$ac_ext
4751cat >>conftest.$ac_ext <<_ACEOF
4752/* end confdefs.h. */
4753#include <ac_nonexistent.h>
4754_ACEOF
64ff59ba 4755if { (ac_try="$ac_cpp conftest.$ac_ext"
4756case "(($ac_try" in
4757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758 *) ac_try_echo=$ac_try;;
4759esac
4760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4762 ac_status=$?
4763 grep -v '^ *+' conftest.er1 >conftest.err
4764 rm -f conftest.er1
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4767 (exit $ac_status); } >/dev/null && {
4768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4769 test ! -s conftest.err
4770 }; then
d9898ee8 4771 # Broken: success on invalid input.
4772continue
4773else
4774 echo "$as_me: failed program was:" >&5
4775sed 's/^/| /' conftest.$ac_ext >&5
4776
4777 # Passes both tests.
4778ac_preproc_ok=:
4779break
4780fi
64ff59ba 4781
d9898ee8 4782rm -f conftest.err conftest.$ac_ext
4783
4784done
4785# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4786rm -f conftest.err conftest.$ac_ext
4787if $ac_preproc_ok; then
4788 :
4789else
4790 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4791See \`config.log' for more details." >&5
4792echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4793See \`config.log' for more details." >&2;}
4794 { (exit 1); exit 1; }; }
4795fi
4796
4797ac_ext=c
4798ac_cpp='$CPP $CPPFLAGS'
4799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801ac_compiler_gnu=$ac_cv_c_compiler_gnu
4802
4803
64ff59ba 4804{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4805echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 4806if test "${ac_cv_header_stdc+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808else
4809 cat >conftest.$ac_ext <<_ACEOF
4810/* confdefs.h. */
4811_ACEOF
4812cat confdefs.h >>conftest.$ac_ext
4813cat >>conftest.$ac_ext <<_ACEOF
4814/* end confdefs.h. */
4815#include <stdlib.h>
4816#include <stdarg.h>
4817#include <string.h>
4818#include <float.h>
4819
4820int
4821main ()
4822{
4823
4824 ;
4825 return 0;
4826}
4827_ACEOF
4828rm -f conftest.$ac_objext
64ff59ba 4829if { (ac_try="$ac_compile"
4830case "(($ac_try" in
4831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4833esac
4834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4836 ac_status=$?
4837 grep -v '^ *+' conftest.er1 >conftest.err
4838 rm -f conftest.er1
4839 cat conftest.err >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4841 (exit $ac_status); } && {
4842 test -z "$ac_c_werror_flag" ||
4843 test ! -s conftest.err
4844 } && test -s conftest.$ac_objext; then
d9898ee8 4845 ac_cv_header_stdc=yes
4846else
4847 echo "$as_me: failed program was:" >&5
4848sed 's/^/| /' conftest.$ac_ext >&5
4849
64ff59ba 4850 ac_cv_header_stdc=no
d9898ee8 4851fi
64ff59ba 4852
4853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4854
4855if test $ac_cv_header_stdc = yes; then
4856 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4857 cat >conftest.$ac_ext <<_ACEOF
4858/* confdefs.h. */
4859_ACEOF
4860cat confdefs.h >>conftest.$ac_ext
4861cat >>conftest.$ac_ext <<_ACEOF
4862/* end confdefs.h. */
4863#include <string.h>
4864
4865_ACEOF
4866if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4867 $EGREP "memchr" >/dev/null 2>&1; then
4868 :
4869else
4870 ac_cv_header_stdc=no
4871fi
4872rm -f conftest*
4873
4874fi
4875
4876if test $ac_cv_header_stdc = yes; then
4877 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4878 cat >conftest.$ac_ext <<_ACEOF
4879/* confdefs.h. */
4880_ACEOF
4881cat confdefs.h >>conftest.$ac_ext
4882cat >>conftest.$ac_ext <<_ACEOF
4883/* end confdefs.h. */
4884#include <stdlib.h>
4885
4886_ACEOF
4887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4888 $EGREP "free" >/dev/null 2>&1; then
4889 :
4890else
4891 ac_cv_header_stdc=no
4892fi
4893rm -f conftest*
4894
4895fi
4896
4897if test $ac_cv_header_stdc = yes; then
4898 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4899 if test "$cross_compiling" = yes; then
4900 :
4901else
4902 cat >conftest.$ac_ext <<_ACEOF
4903/* confdefs.h. */
4904_ACEOF
4905cat confdefs.h >>conftest.$ac_ext
4906cat >>conftest.$ac_ext <<_ACEOF
4907/* end confdefs.h. */
4908#include <ctype.h>
64ff59ba 4909#include <stdlib.h>
d9898ee8 4910#if ((' ' & 0x0FF) == 0x020)
4911# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4912# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4913#else
4914# define ISLOWER(c) \
4915 (('a' <= (c) && (c) <= 'i') \
4916 || ('j' <= (c) && (c) <= 'r') \
4917 || ('s' <= (c) && (c) <= 'z'))
4918# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4919#endif
4920
4921#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4922int
4923main ()
4924{
4925 int i;
4926 for (i = 0; i < 256; i++)
4927 if (XOR (islower (i), ISLOWER (i))
4928 || toupper (i) != TOUPPER (i))
64ff59ba 4929 return 2;
4930 return 0;
d9898ee8 4931}
4932_ACEOF
4933rm -f conftest$ac_exeext
64ff59ba 4934if { (ac_try="$ac_link"
4935case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938esac
4939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4940 (eval "$ac_link") 2>&5
d9898ee8 4941 ac_status=$?
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 4944 { (case "(($ac_try" in
4945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4947esac
4948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4949 (eval "$ac_try") 2>&5
d9898ee8 4950 ac_status=$?
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; }; then
4953 :
4954else
4955 echo "$as_me: program exited with status $ac_status" >&5
4956echo "$as_me: failed program was:" >&5
4957sed 's/^/| /' conftest.$ac_ext >&5
4958
4959( exit $ac_status )
4960ac_cv_header_stdc=no
4961fi
64ff59ba 4962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 4963fi
64ff59ba 4964
4965
d9898ee8 4966fi
4967fi
64ff59ba 4968{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4969echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 4970if test $ac_cv_header_stdc = yes; then
4971
4972cat >>confdefs.h <<\_ACEOF
4973#define STDC_HEADERS 1
4974_ACEOF
4975
4976fi
4977
4978# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4989 inttypes.h stdint.h unistd.h
4990do
4991as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 4992{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996else
4997 cat >conftest.$ac_ext <<_ACEOF
4998/* confdefs.h. */
4999_ACEOF
5000cat confdefs.h >>conftest.$ac_ext
5001cat >>conftest.$ac_ext <<_ACEOF
5002/* end confdefs.h. */
5003$ac_includes_default
5004
5005#include <$ac_header>
5006_ACEOF
5007rm -f conftest.$ac_objext
64ff59ba 5008if { (ac_try="$ac_compile"
5009case "(($ac_try" in
5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5012esac
5013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5015 ac_status=$?
5016 grep -v '^ *+' conftest.er1 >conftest.err
5017 rm -f conftest.er1
5018 cat conftest.err >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5020 (exit $ac_status); } && {
5021 test -z "$ac_c_werror_flag" ||
5022 test ! -s conftest.err
5023 } && test -s conftest.$ac_objext; then
d9898ee8 5024 eval "$as_ac_Header=yes"
5025else
5026 echo "$as_me: failed program was:" >&5
5027sed 's/^/| /' conftest.$ac_ext >&5
5028
64ff59ba 5029 eval "$as_ac_Header=no"
d9898ee8 5030fi
64ff59ba 5031
5032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5033fi
64ff59ba 5034ac_res=`eval echo '${'$as_ac_Header'}'`
5035 { echo "$as_me:$LINENO: result: $ac_res" >&5
5036echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5037if test `eval echo '${'$as_ac_Header'}'` = yes; then
5038 cat >>confdefs.h <<_ACEOF
5039#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5040_ACEOF
5041
5042fi
5043
5044done
5045
5046
5047
5048for ac_header in dlfcn.h
5049do
5050as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 5051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5056fi
64ff59ba 5057ac_res=`eval echo '${'$as_ac_Header'}'`
5058 { echo "$as_me:$LINENO: result: $ac_res" >&5
5059echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5060else
5061 # Is the header compilable?
64ff59ba 5062{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5063echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 5064cat >conftest.$ac_ext <<_ACEOF
5065/* confdefs.h. */
5066_ACEOF
5067cat confdefs.h >>conftest.$ac_ext
5068cat >>conftest.$ac_ext <<_ACEOF
5069/* end confdefs.h. */
5070$ac_includes_default
5071#include <$ac_header>
5072_ACEOF
5073rm -f conftest.$ac_objext
64ff59ba 5074if { (ac_try="$ac_compile"
5075case "(($ac_try" in
5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5078esac
5079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5081 ac_status=$?
5082 grep -v '^ *+' conftest.er1 >conftest.err
5083 rm -f conftest.er1
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5086 (exit $ac_status); } && {
5087 test -z "$ac_c_werror_flag" ||
5088 test ! -s conftest.err
5089 } && test -s conftest.$ac_objext; then
d9898ee8 5090 ac_header_compiler=yes
5091else
5092 echo "$as_me: failed program was:" >&5
5093sed 's/^/| /' conftest.$ac_ext >&5
5094
64ff59ba 5095 ac_header_compiler=no
d9898ee8 5096fi
64ff59ba 5097
5098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5100echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 5101
5102# Is the header present?
64ff59ba 5103{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5104echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 5105cat >conftest.$ac_ext <<_ACEOF
5106/* confdefs.h. */
5107_ACEOF
5108cat confdefs.h >>conftest.$ac_ext
5109cat >>conftest.$ac_ext <<_ACEOF
5110/* end confdefs.h. */
5111#include <$ac_header>
5112_ACEOF
64ff59ba 5113if { (ac_try="$ac_cpp conftest.$ac_ext"
5114case "(($ac_try" in
5115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116 *) ac_try_echo=$ac_try;;
5117esac
5118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5120 ac_status=$?
5121 grep -v '^ *+' conftest.er1 >conftest.err
5122 rm -f conftest.er1
5123 cat conftest.err >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5125 (exit $ac_status); } >/dev/null && {
5126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5127 test ! -s conftest.err
5128 }; then
d9898ee8 5129 ac_header_preproc=yes
5130else
5131 echo "$as_me: failed program was:" >&5
5132sed 's/^/| /' conftest.$ac_ext >&5
5133
5134 ac_header_preproc=no
5135fi
64ff59ba 5136
d9898ee8 5137rm -f conftest.err conftest.$ac_ext
64ff59ba 5138{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5139echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 5140
5141# So? What about this header?
5142case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5143 yes:no: )
5144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5145echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5147echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5148 ac_header_preproc=yes
5149 ;;
5150 no:yes:* )
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5152echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5154echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5156echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5158echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5160echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5162echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 5163 ( cat <<\_ASBOX
d9898ee8 5164## -------------------------------------------------- ##
5165## Report this to courier-users@lists.sourceforge.net ##
5166## -------------------------------------------------- ##
5167_ASBOX
64ff59ba 5168 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 5169 ;;
5170esac
64ff59ba 5171{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5175else
5176 eval "$as_ac_Header=\$ac_header_preproc"
5177fi
64ff59ba 5178ac_res=`eval echo '${'$as_ac_Header'}'`
5179 { echo "$as_me:$LINENO: result: $ac_res" >&5
5180echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5181
5182fi
5183if test `eval echo '${'$as_ac_Header'}'` = yes; then
5184 cat >>confdefs.h <<_ACEOF
5185#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5186_ACEOF
5187
5188fi
5189
5190done
5191
64ff59ba 5192ac_ext=cpp
d9898ee8 5193ac_cpp='$CXXCPP $CPPFLAGS'
5194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 5197if test -z "$CXX"; then
5198 if test -n "$CCC"; then
5199 CXX=$CCC
5200 else
5201 if test -n "$ac_tool_prefix"; then
5202 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5203 do
5204 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5205set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 5206{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5208if test "${ac_cv_prog_CXX+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210else
5211 if test -n "$CXX"; then
5212 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5213else
5214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215for as_dir in $PATH
5216do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5221 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5224 fi
5225done
5226done
64ff59ba 5227IFS=$as_save_IFS
d9898ee8 5228
5229fi
5230fi
5231CXX=$ac_cv_prog_CXX
5232if test -n "$CXX"; then
64ff59ba 5233 { echo "$as_me:$LINENO: result: $CXX" >&5
5234echo "${ECHO_T}$CXX" >&6; }
d9898ee8 5235else
64ff59ba 5236 { echo "$as_me:$LINENO: result: no" >&5
5237echo "${ECHO_T}no" >&6; }
d9898ee8 5238fi
5239
64ff59ba 5240
d9898ee8 5241 test -n "$CXX" && break
5242 done
5243fi
5244if test -z "$CXX"; then
5245 ac_ct_CXX=$CXX
64ff59ba 5246 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5247do
5248 # Extract the first word of "$ac_prog", so it can be a program name with args.
5249set dummy $ac_prog; ac_word=$2
64ff59ba 5250{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5252if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254else
5255 if test -n "$ac_ct_CXX"; then
5256 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5257else
5258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259for as_dir in $PATH
5260do
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5265 ac_cv_prog_ac_ct_CXX="$ac_prog"
5266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 break 2
5268 fi
5269done
5270done
64ff59ba 5271IFS=$as_save_IFS
d9898ee8 5272
5273fi
5274fi
5275ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5276if test -n "$ac_ct_CXX"; then
64ff59ba 5277 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5278echo "${ECHO_T}$ac_ct_CXX" >&6; }
d9898ee8 5279else
64ff59ba 5280 { echo "$as_me:$LINENO: result: no" >&5
5281echo "${ECHO_T}no" >&6; }
d9898ee8 5282fi
5283
64ff59ba 5284
d9898ee8 5285 test -n "$ac_ct_CXX" && break
5286done
d9898ee8 5287
64ff59ba 5288 if test "x$ac_ct_CXX" = x; then
5289 CXX="g++"
5290 else
5291 case $cross_compiling:$ac_tool_warned in
5292yes:)
5293{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5294whose name does not start with the host triplet. If you think this
5295configuration is useful to you, please write to autoconf@gnu.org." >&5
5296echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5297whose name does not start with the host triplet. If you think this
5298configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5299ac_tool_warned=yes ;;
5300esac
5301 CXX=$ac_ct_CXX
5302 fi
d9898ee8 5303fi
5304
64ff59ba 5305 fi
5306fi
d9898ee8 5307# Provide some information about the compiler.
64ff59ba 5308echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d9898ee8 5309ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 5310{ (ac_try="$ac_compiler --version >&5"
5311case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314esac
5315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }
64ff59ba 5320{ (ac_try="$ac_compiler -v >&5"
5321case "(($ac_try" in
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5324esac
5325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }
64ff59ba 5330{ (ac_try="$ac_compiler -V >&5"
5331case "(($ac_try" in
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5334esac
5335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }
5340
64ff59ba 5341{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5342echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d9898ee8 5343if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5345else
5346 cat >conftest.$ac_ext <<_ACEOF
5347/* confdefs.h. */
5348_ACEOF
5349cat confdefs.h >>conftest.$ac_ext
5350cat >>conftest.$ac_ext <<_ACEOF
5351/* end confdefs.h. */
5352
5353int
5354main ()
5355{
5356#ifndef __GNUC__
5357 choke me
5358#endif
5359
5360 ;
5361 return 0;
5362}
5363_ACEOF
5364rm -f conftest.$ac_objext
64ff59ba 5365if { (ac_try="$ac_compile"
5366case "(($ac_try" in
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5369esac
5370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5372 ac_status=$?
5373 grep -v '^ *+' conftest.er1 >conftest.err
5374 rm -f conftest.er1
5375 cat conftest.err >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5377 (exit $ac_status); } && {
5378 test -z "$ac_cxx_werror_flag" ||
5379 test ! -s conftest.err
5380 } && test -s conftest.$ac_objext; then
d9898ee8 5381 ac_compiler_gnu=yes
5382else
5383 echo "$as_me: failed program was:" >&5
5384sed 's/^/| /' conftest.$ac_ext >&5
5385
64ff59ba 5386 ac_compiler_gnu=no
d9898ee8 5387fi
64ff59ba 5388
5389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5390ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5391
5392fi
64ff59ba 5393{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5394echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d9898ee8 5395GXX=`test $ac_compiler_gnu = yes && echo yes`
5396ac_test_CXXFLAGS=${CXXFLAGS+set}
5397ac_save_CXXFLAGS=$CXXFLAGS
64ff59ba 5398{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5399echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d9898ee8 5400if test "${ac_cv_prog_cxx_g+set}" = set; then
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5402else
64ff59ba 5403 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5404 ac_cxx_werror_flag=yes
5405 ac_cv_prog_cxx_g=no
5406 CXXFLAGS="-g"
5407 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5408/* confdefs.h. */
5409_ACEOF
5410cat confdefs.h >>conftest.$ac_ext
5411cat >>conftest.$ac_ext <<_ACEOF
5412/* end confdefs.h. */
5413
5414int
5415main ()
5416{
5417
5418 ;
5419 return 0;
5420}
5421_ACEOF
5422rm -f conftest.$ac_objext
64ff59ba 5423if { (ac_try="$ac_compile"
5424case "(($ac_try" in
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5427esac
5428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5430 ac_status=$?
5431 grep -v '^ *+' conftest.er1 >conftest.err
5432 rm -f conftest.er1
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5435 (exit $ac_status); } && {
5436 test -z "$ac_cxx_werror_flag" ||
5437 test ! -s conftest.err
5438 } && test -s conftest.$ac_objext; then
d9898ee8 5439 ac_cv_prog_cxx_g=yes
5440else
5441 echo "$as_me: failed program was:" >&5
5442sed 's/^/| /' conftest.$ac_ext >&5
5443
64ff59ba 5444 CXXFLAGS=""
5445 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5446/* confdefs.h. */
5447_ACEOF
5448cat confdefs.h >>conftest.$ac_ext
5449cat >>conftest.$ac_ext <<_ACEOF
5450/* end confdefs.h. */
64ff59ba 5451
d9898ee8 5452int
5453main ()
5454{
64ff59ba 5455
d9898ee8 5456 ;
5457 return 0;
5458}
5459_ACEOF
5460rm -f conftest.$ac_objext
64ff59ba 5461if { (ac_try="$ac_compile"
5462case "(($ac_try" in
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5465esac
5466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5468 ac_status=$?
5469 grep -v '^ *+' conftest.er1 >conftest.err
5470 rm -f conftest.er1
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5473 (exit $ac_status); } && {
5474 test -z "$ac_cxx_werror_flag" ||
5475 test ! -s conftest.err
5476 } && test -s conftest.$ac_objext; then
d9898ee8 5477 :
5478else
5479 echo "$as_me: failed program was:" >&5
5480sed 's/^/| /' conftest.$ac_ext >&5
5481
64ff59ba 5482 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5483 CXXFLAGS="-g"
5484 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5485/* confdefs.h. */
5486_ACEOF
5487cat confdefs.h >>conftest.$ac_ext
5488cat >>conftest.$ac_ext <<_ACEOF
5489/* end confdefs.h. */
64ff59ba 5490
d9898ee8 5491int
5492main ()
5493{
64ff59ba 5494
d9898ee8 5495 ;
5496 return 0;
5497}
5498_ACEOF
5499rm -f conftest.$ac_objext
64ff59ba 5500if { (ac_try="$ac_compile"
5501case "(($ac_try" in
5502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5504esac
5505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5507 ac_status=$?
5508 grep -v '^ *+' conftest.er1 >conftest.err
5509 rm -f conftest.er1
5510 cat conftest.err >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5512 (exit $ac_status); } && {
5513 test -z "$ac_cxx_werror_flag" ||
5514 test ! -s conftest.err
5515 } && test -s conftest.$ac_objext; then
5516 ac_cv_prog_cxx_g=yes
d9898ee8 5517else
5518 echo "$as_me: failed program was:" >&5
5519sed 's/^/| /' conftest.$ac_ext >&5
5520
64ff59ba 5521
d9898ee8 5522fi
64ff59ba 5523
5524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525fi
5526
5527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5528fi
5529
64ff59ba 5530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5532fi
5533{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5534echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5535if test "$ac_test_CXXFLAGS" = set; then
5536 CXXFLAGS=$ac_save_CXXFLAGS
5537elif test $ac_cv_prog_cxx_g = yes; then
5538 if test "$GXX" = yes; then
5539 CXXFLAGS="-g -O2"
5540 else
5541 CXXFLAGS="-g"
5542 fi
5543else
5544 if test "$GXX" = yes; then
5545 CXXFLAGS="-O2"
5546 else
5547 CXXFLAGS=
5548 fi
5549fi
5550ac_ext=cpp
d9898ee8 5551ac_cpp='$CXXCPP $CPPFLAGS'
5552ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5555
5556depcc="$CXX" am_compiler_list=
5557
64ff59ba 5558{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5559echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 5560if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562else
5563 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5564 # We make a subdir and do the tests there. Otherwise we can end up
5565 # making bogus files that we don't know about and never remove. For
5566 # instance it was reported that on HP-UX the gcc test will end up
5567 # making a dummy file named `D' -- because `-MD' means `put the output
5568 # in D'.
5569 mkdir conftest.dir
5570 # Copy depcomp to subdir because otherwise we won't find it if we're
5571 # using a relative directory.
5572 cp "$am_depcomp" conftest.dir
5573 cd conftest.dir
5574 # We will build objects and dependencies in a subdirectory because
5575 # it helps to detect inapplicable dependency modes. For instance
5576 # both Tru64's cc and ICC support -MD to output dependencies as a
5577 # side effect of compilation, but ICC will put the dependencies in
5578 # the current directory while Tru64 will put them in the object
5579 # directory.
5580 mkdir sub
5581
5582 am_cv_CXX_dependencies_compiler_type=none
5583 if test "$am_compiler_list" = ""; then
5584 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5585 fi
5586 for depmode in $am_compiler_list; do
5587 # Setup a source with many dependencies, because some compilers
5588 # like to wrap large dependency lists on column 80 (with \), and
5589 # we should not choose a depcomp mode which is confused by this.
5590 #
5591 # We need to recreate these files for each test, as the compiler may
5592 # overwrite some of them when testing with obscure command lines.
5593 # This happens at least with the AIX C compiler.
5594 : > sub/conftest.c
5595 for i in 1 2 3 4 5 6; do
5596 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5597 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5598 # Solaris 8's {/usr,}/bin/sh.
5599 touch sub/conftst$i.h
5600 done
5601 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5602
5603 case $depmode in
5604 nosideeffect)
5605 # after this tag, mechanisms are not by side-effect, so they'll
5606 # only be used when explicitly requested
5607 if test "x$enable_dependency_tracking" = xyes; then
5608 continue
5609 else
5610 break
5611 fi
5612 ;;
5613 none) break ;;
5614 esac
5615 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5616 # mode. It turns out that the SunPro C++ compiler does not properly
5617 # handle `-M -o', and we need to detect this.
5618 if depmode=$depmode \
5619 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5620 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5621 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5622 >/dev/null 2>conftest.err &&
64ff59ba 5623 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5624 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5625 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5626 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5627 # icc doesn't choke on unknown options, it will just issue warnings
5628 # or remarks (even with -Werror). So we grep stderr for any message
5629 # that says an option was ignored or not supported.
5630 # When given -MP, icc 7.0 and 7.1 complain thusly:
5631 # icc: Command line warning: ignoring option '-M'; no argument required
5632 # The diagnosis changed in icc 8.0:
5633 # icc: Command line remark: option '-MP' not supported
5634 if (grep 'ignoring option' conftest.err ||
5635 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5636 am_cv_CXX_dependencies_compiler_type=$depmode
5637 break
5638 fi
5639 fi
5640 done
5641
5642 cd ..
5643 rm -rf conftest.dir
5644else
5645 am_cv_CXX_dependencies_compiler_type=none
5646fi
5647
5648fi
64ff59ba 5649{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5650echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
d9898ee8 5651CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5652
64ff59ba 5653 if
d9898ee8 5654 test "x$enable_dependency_tracking" != xno \
5655 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5656 am__fastdepCXX_TRUE=
5657 am__fastdepCXX_FALSE='#'
5658else
5659 am__fastdepCXX_TRUE='#'
5660 am__fastdepCXX_FALSE=
5661fi
5662
5663
5664
5665
5666if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5667 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5668 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 5669 ac_ext=cpp
d9898ee8 5670ac_cpp='$CXXCPP $CPPFLAGS'
5671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 5674{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5675echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d9898ee8 5676if test -z "$CXXCPP"; then
5677 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5679else
5680 # Double quotes because CXXCPP needs to be expanded
5681 for CXXCPP in "$CXX -E" "/lib/cpp"
5682 do
5683 ac_preproc_ok=false
5684for ac_cxx_preproc_warn_flag in '' yes
5685do
5686 # Use a header file that comes with gcc, so configuring glibc
5687 # with a fresh cross-compiler works.
5688 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5689 # <limits.h> exists even on freestanding compilers.
5690 # On the NeXT, cc -E runs the code through the compiler's parser,
5691 # not just through cpp. "Syntax error" is here to catch this case.
5692 cat >conftest.$ac_ext <<_ACEOF
5693/* confdefs.h. */
5694_ACEOF
5695cat confdefs.h >>conftest.$ac_ext
5696cat >>conftest.$ac_ext <<_ACEOF
5697/* end confdefs.h. */
5698#ifdef __STDC__
5699# include <limits.h>
5700#else
5701# include <assert.h>
5702#endif
5703 Syntax error
5704_ACEOF
64ff59ba 5705if { (ac_try="$ac_cpp conftest.$ac_ext"
5706case "(($ac_try" in
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5709esac
5710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5712 ac_status=$?
5713 grep -v '^ *+' conftest.er1 >conftest.err
5714 rm -f conftest.er1
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5717 (exit $ac_status); } >/dev/null && {
5718 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5719 test ! -s conftest.err
5720 }; then
d9898ee8 5721 :
5722else
5723 echo "$as_me: failed program was:" >&5
5724sed 's/^/| /' conftest.$ac_ext >&5
5725
5726 # Broken: fails on valid input.
5727continue
5728fi
64ff59ba 5729
d9898ee8 5730rm -f conftest.err conftest.$ac_ext
5731
64ff59ba 5732 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5733 # can be detected and how.
5734 cat >conftest.$ac_ext <<_ACEOF
5735/* confdefs.h. */
5736_ACEOF
5737cat confdefs.h >>conftest.$ac_ext
5738cat >>conftest.$ac_ext <<_ACEOF
5739/* end confdefs.h. */
5740#include <ac_nonexistent.h>
5741_ACEOF
64ff59ba 5742if { (ac_try="$ac_cpp conftest.$ac_ext"
5743case "(($ac_try" in
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5746esac
5747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5749 ac_status=$?
5750 grep -v '^ *+' conftest.er1 >conftest.err
5751 rm -f conftest.er1
5752 cat conftest.err >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5754 (exit $ac_status); } >/dev/null && {
5755 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5756 test ! -s conftest.err
5757 }; then
d9898ee8 5758 # Broken: success on invalid input.
5759continue
5760else
5761 echo "$as_me: failed program was:" >&5
5762sed 's/^/| /' conftest.$ac_ext >&5
5763
5764 # Passes both tests.
5765ac_preproc_ok=:
5766break
5767fi
64ff59ba 5768
d9898ee8 5769rm -f conftest.err conftest.$ac_ext
5770
5771done
5772# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5773rm -f conftest.err conftest.$ac_ext
5774if $ac_preproc_ok; then
5775 break
5776fi
5777
5778 done
5779 ac_cv_prog_CXXCPP=$CXXCPP
5780
5781fi
5782 CXXCPP=$ac_cv_prog_CXXCPP
5783else
5784 ac_cv_prog_CXXCPP=$CXXCPP
5785fi
64ff59ba 5786{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5787echo "${ECHO_T}$CXXCPP" >&6; }
d9898ee8 5788ac_preproc_ok=false
5789for ac_cxx_preproc_warn_flag in '' yes
5790do
5791 # Use a header file that comes with gcc, so configuring glibc
5792 # with a fresh cross-compiler works.
5793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5794 # <limits.h> exists even on freestanding compilers.
5795 # On the NeXT, cc -E runs the code through the compiler's parser,
5796 # not just through cpp. "Syntax error" is here to catch this case.
5797 cat >conftest.$ac_ext <<_ACEOF
5798/* confdefs.h. */
5799_ACEOF
5800cat confdefs.h >>conftest.$ac_ext
5801cat >>conftest.$ac_ext <<_ACEOF
5802/* end confdefs.h. */
5803#ifdef __STDC__
5804# include <limits.h>
5805#else
5806# include <assert.h>
5807#endif
5808 Syntax error
5809_ACEOF
64ff59ba 5810if { (ac_try="$ac_cpp conftest.$ac_ext"
5811case "(($ac_try" in
5812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813 *) ac_try_echo=$ac_try;;
5814esac
5815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5817 ac_status=$?
5818 grep -v '^ *+' conftest.er1 >conftest.err
5819 rm -f conftest.er1
5820 cat conftest.err >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5822 (exit $ac_status); } >/dev/null && {
5823 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5824 test ! -s conftest.err
5825 }; then
d9898ee8 5826 :
5827else
5828 echo "$as_me: failed program was:" >&5
5829sed 's/^/| /' conftest.$ac_ext >&5
5830
5831 # Broken: fails on valid input.
5832continue
5833fi
64ff59ba 5834
d9898ee8 5835rm -f conftest.err conftest.$ac_ext
5836
64ff59ba 5837 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5838 # can be detected and how.
5839 cat >conftest.$ac_ext <<_ACEOF
5840/* confdefs.h. */
5841_ACEOF
5842cat confdefs.h >>conftest.$ac_ext
5843cat >>conftest.$ac_ext <<_ACEOF
5844/* end confdefs.h. */
5845#include <ac_nonexistent.h>
5846_ACEOF
64ff59ba 5847if { (ac_try="$ac_cpp conftest.$ac_ext"
5848case "(($ac_try" in
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5851esac
5852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5854 ac_status=$?
5855 grep -v '^ *+' conftest.er1 >conftest.err
5856 rm -f conftest.er1
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5859 (exit $ac_status); } >/dev/null && {
5860 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5861 test ! -s conftest.err
5862 }; then
d9898ee8 5863 # Broken: success on invalid input.
5864continue
5865else
5866 echo "$as_me: failed program was:" >&5
5867sed 's/^/| /' conftest.$ac_ext >&5
5868
5869 # Passes both tests.
5870ac_preproc_ok=:
5871break
5872fi
64ff59ba 5873
d9898ee8 5874rm -f conftest.err conftest.$ac_ext
5875
5876done
5877# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5878rm -f conftest.err conftest.$ac_ext
5879if $ac_preproc_ok; then
5880 :
5881else
5882 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5883See \`config.log' for more details." >&5
5884echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5885See \`config.log' for more details." >&2;}
5886 { (exit 1); exit 1; }; }
5887fi
5888
64ff59ba 5889ac_ext=cpp
d9898ee8 5890ac_cpp='$CXXCPP $CPPFLAGS'
5891ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5894
5895fi
5896
5897
5898ac_ext=f
5899ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5900ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5901ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5902if test -n "$ac_tool_prefix"; then
64ff59ba 5903 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
d9898ee8 5904 do
5905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5906set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 5907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5909if test "${ac_cv_prog_F77+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911else
5912 if test -n "$F77"; then
5913 ac_cv_prog_F77="$F77" # Let the user override the test.
5914else
5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916for as_dir in $PATH
5917do
5918 IFS=$as_save_IFS
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5922 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 break 2
5925 fi
5926done
5927done
64ff59ba 5928IFS=$as_save_IFS
d9898ee8 5929
5930fi
5931fi
5932F77=$ac_cv_prog_F77
5933if test -n "$F77"; then
64ff59ba 5934 { echo "$as_me:$LINENO: result: $F77" >&5
5935echo "${ECHO_T}$F77" >&6; }
d9898ee8 5936else
64ff59ba 5937 { echo "$as_me:$LINENO: result: no" >&5
5938echo "${ECHO_T}no" >&6; }
d9898ee8 5939fi
5940
64ff59ba 5941
d9898ee8 5942 test -n "$F77" && break
5943 done
5944fi
5945if test -z "$F77"; then
5946 ac_ct_F77=$F77
64ff59ba 5947 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
d9898ee8 5948do
5949 # Extract the first word of "$ac_prog", so it can be a program name with args.
5950set dummy $ac_prog; ac_word=$2
64ff59ba 5951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5953if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5955else
5956 if test -n "$ac_ct_F77"; then
5957 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5958else
5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5966 ac_cv_prog_ac_ct_F77="$ac_prog"
5967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 break 2
5969 fi
5970done
5971done
64ff59ba 5972IFS=$as_save_IFS
d9898ee8 5973
5974fi
5975fi
5976ac_ct_F77=$ac_cv_prog_ac_ct_F77
5977if test -n "$ac_ct_F77"; then
64ff59ba 5978 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5979echo "${ECHO_T}$ac_ct_F77" >&6; }
d9898ee8 5980else
64ff59ba 5981 { echo "$as_me:$LINENO: result: no" >&5
5982echo "${ECHO_T}no" >&6; }
d9898ee8 5983fi
5984
64ff59ba 5985
d9898ee8 5986 test -n "$ac_ct_F77" && break
5987done
5988
64ff59ba 5989 if test "x$ac_ct_F77" = x; then
5990 F77=""
5991 else
5992 case $cross_compiling:$ac_tool_warned in
5993yes:)
5994{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5995whose name does not start with the host triplet. If you think this
5996configuration is useful to you, please write to autoconf@gnu.org." >&5
5997echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5998whose name does not start with the host triplet. If you think this
5999configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6000ac_tool_warned=yes ;;
6001esac
6002 F77=$ac_ct_F77
6003 fi
d9898ee8 6004fi
6005
6006
6007# Provide some information about the compiler.
64ff59ba 6008echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d9898ee8 6009ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 6010{ (ac_try="$ac_compiler --version >&5"
6011case "(($ac_try" in
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6014esac
6015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }
64ff59ba 6020{ (ac_try="$ac_compiler -v >&5"
6021case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024esac
6025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 6027 ac_status=$?
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }
64ff59ba 6030{ (ac_try="$ac_compiler -V >&5"
6031case "(($ac_try" in
6032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6034esac
6035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }
6040rm -f a.out
6041
6042# If we don't use `.F' as extension, the preprocessor is not run on the
6043# input file. (Note that this only needs to work for GNU compilers.)
6044ac_save_ext=$ac_ext
6045ac_ext=F
64ff59ba 6046{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6047echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d9898ee8 6048if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6050else
6051 cat >conftest.$ac_ext <<_ACEOF
6052 program main
6053#ifndef __GNUC__
6054 choke me
6055#endif
6056
6057 end
6058_ACEOF
6059rm -f conftest.$ac_objext
64ff59ba 6060if { (ac_try="$ac_compile"
6061case "(($ac_try" in
6062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6063 *) ac_try_echo=$ac_try;;
6064esac
6065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6066 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6067 ac_status=$?
6068 grep -v '^ *+' conftest.er1 >conftest.err
6069 rm -f conftest.er1
6070 cat conftest.err >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6072 (exit $ac_status); } && {
6073 test -z "$ac_f77_werror_flag" ||
6074 test ! -s conftest.err
6075 } && test -s conftest.$ac_objext; then
d9898ee8 6076 ac_compiler_gnu=yes
6077else
6078 echo "$as_me: failed program was:" >&5
6079sed 's/^/| /' conftest.$ac_ext >&5
6080
64ff59ba 6081 ac_compiler_gnu=no
d9898ee8 6082fi
64ff59ba 6083
6084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6085ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6086
6087fi
64ff59ba 6088{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6089echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d9898ee8 6090ac_ext=$ac_save_ext
6091ac_test_FFLAGS=${FFLAGS+set}
6092ac_save_FFLAGS=$FFLAGS
6093FFLAGS=
64ff59ba 6094{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6095echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d9898ee8 6096if test "${ac_cv_prog_f77_g+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6098else
6099 FFLAGS=-g
6100cat >conftest.$ac_ext <<_ACEOF
6101 program main
6102
6103 end
6104_ACEOF
6105rm -f conftest.$ac_objext
64ff59ba 6106if { (ac_try="$ac_compile"
6107case "(($ac_try" in
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6110esac
6111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6113 ac_status=$?
6114 grep -v '^ *+' conftest.er1 >conftest.err
6115 rm -f conftest.er1
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6118 (exit $ac_status); } && {
6119 test -z "$ac_f77_werror_flag" ||
6120 test ! -s conftest.err
6121 } && test -s conftest.$ac_objext; then
d9898ee8 6122 ac_cv_prog_f77_g=yes
6123else
6124 echo "$as_me: failed program was:" >&5
6125sed 's/^/| /' conftest.$ac_ext >&5
6126
64ff59ba 6127 ac_cv_prog_f77_g=no
d9898ee8 6128fi
64ff59ba 6129
6130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6131
6132fi
64ff59ba 6133{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6134echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d9898ee8 6135if test "$ac_test_FFLAGS" = set; then
6136 FFLAGS=$ac_save_FFLAGS
6137elif test $ac_cv_prog_f77_g = yes; then
6138 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6139 FFLAGS="-g -O2"
6140 else
6141 FFLAGS="-g"
6142 fi
6143else
6144 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6145 FFLAGS="-O2"
6146 else
6147 FFLAGS=
6148 fi
6149fi
6150
6151G77=`test $ac_compiler_gnu = yes && echo yes`
6152ac_ext=c
6153ac_cpp='$CPP $CPPFLAGS'
6154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156ac_compiler_gnu=$ac_cv_c_compiler_gnu
6157
6158
6159
6160# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6161
6162# find the maximum length of command line arguments
64ff59ba 6163{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6164echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
d9898ee8 6165if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167else
6168 i=0
6169 teststring="ABCD"
6170
6171 case $build_os in
6172 msdosdjgpp*)
6173 # On DJGPP, this test can blow up pretty badly due to problems in libc
6174 # (any single argument exceeding 2000 bytes causes a buffer overrun
6175 # during glob expansion). Even if it were fixed, the result of this
6176 # check would be larger than it should be.
6177 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6178 ;;
6179
6180 gnu*)
6181 # Under GNU Hurd, this test is not required because there is
6182 # no limit to the length of command line arguments.
6183 # Libtool will interpret -1 as no limit whatsoever
6184 lt_cv_sys_max_cmd_len=-1;
6185 ;;
6186
6187 cygwin* | mingw*)
6188 # On Win9x/ME, this test blows up -- it succeeds, but takes
6189 # about 5 minutes as the teststring grows exponentially.
6190 # Worse, since 9x/ME are not pre-emptively multitasking,
6191 # you end up with a "frozen" computer, even though with patience
6192 # the test eventually succeeds (with a max line length of 256k).
6193 # Instead, let's just punt: use the minimum linelength reported by
6194 # all of the supported platforms: 8192 (on NT/2K/XP).
6195 lt_cv_sys_max_cmd_len=8192;
6196 ;;
6197
6198 amigaos*)
6199 # On AmigaOS with pdksh, this test takes hours, literally.
6200 # So we just punt and use a minimum line length of 8192.
6201 lt_cv_sys_max_cmd_len=8192;
6202 ;;
6203
6204 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6205 # This has been around since 386BSD, at least. Likely further.
6206 if test -x /sbin/sysctl; then
6207 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6208 elif test -x /usr/sbin/sysctl; then
6209 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6210 else
6211 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6212 fi
6213 # And add a safety zone
6214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6216 ;;
6217
6218 interix*)
6219 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6220 lt_cv_sys_max_cmd_len=196608
6221 ;;
6222
6223 osf*)
6224 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6225 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6226 # nice to cause kernel panics so lets avoid the loop below.
6227 # First set a reasonable default.
6228 lt_cv_sys_max_cmd_len=16384
6229 #
6230 if test -x /sbin/sysconfig; then
6231 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6232 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6233 esac
6234 fi
6235 ;;
6236 sco3.2v5*)
6237 lt_cv_sys_max_cmd_len=102400
6238 ;;
6239 sysv5* | sco5v6* | sysv4.2uw2*)
6240 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6241 if test -n "$kargmax"; then
6242 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6243 else
6244 lt_cv_sys_max_cmd_len=32768
6245 fi
6246 ;;
6247 *)
6248 # If test is not a shell built-in, we'll probably end up computing a
6249 # maximum length that is only half of the actual maximum length, but
6250 # we can't tell.
6251 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6252 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6253 = "XX$teststring") >/dev/null 2>&1 &&
6254 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6255 lt_cv_sys_max_cmd_len=$new_result &&
6256 test $i != 17 # 1/2 MB should be enough
6257 do
6258 i=`expr $i + 1`
6259 teststring=$teststring$teststring
6260 done
6261 teststring=
6262 # Add a significant safety factor because C++ compilers can tack on massive
6263 # amounts of additional arguments before passing them to the linker.
6264 # It appears as though 1/2 is a usable value.
6265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6266 ;;
6267 esac
6268
6269fi
6270
6271if test -n $lt_cv_sys_max_cmd_len ; then
64ff59ba 6272 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6273echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 6274else
64ff59ba 6275 { echo "$as_me:$LINENO: result: none" >&5
6276echo "${ECHO_T}none" >&6; }
d9898ee8 6277fi
6278
6279
6280
6281
6282# Check for command to grab the raw symbol name followed by C symbol from nm.
64ff59ba 6283{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6284echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d9898ee8 6285if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287else
6288
6289# These are sane defaults that work on at least a few old systems.
6290# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6291
6292# Character class describing NM global symbol codes.
6293symcode='[BCDEGRST]'
6294
6295# Regexp to match symbols that can be accessed directly from C.
6296sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6297
6298# Transform an extracted symbol line into a proper C declaration
6299lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6300
6301# Transform an extracted symbol line into symbol name and symbol address
6302lt_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'"
6303
6304# Define system-specific variables.
6305case $host_os in
6306aix*)
6307 symcode='[BCDT]'
6308 ;;
6309cygwin* | mingw* | pw32*)
6310 symcode='[ABCDGISTW]'
6311 ;;
6312hpux*) # Its linker distinguishes data from code symbols
6313 if test "$host_cpu" = ia64; then
6314 symcode='[ABCDEGRST]'
6315 fi
6316 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6317 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'"
6318 ;;
6319linux*)
6320 if test "$host_cpu" = ia64; then
6321 symcode='[ABCDGIRSTW]'
6322 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6323 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'"
6324 fi
6325 ;;
6326irix* | nonstopux*)
6327 symcode='[BCDEGRST]'
6328 ;;
6329osf*)
6330 symcode='[BCDEGQRST]'
6331 ;;
6332solaris*)
6333 symcode='[BDRT]'
6334 ;;
6335sco3.2v5*)
6336 symcode='[DT]'
6337 ;;
6338sysv4.2uw2*)
6339 symcode='[DT]'
6340 ;;
6341sysv5* | sco5v6* | unixware* | OpenUNIX*)
6342 symcode='[ABDT]'
6343 ;;
6344sysv4)
6345 symcode='[DFNSTU]'
6346 ;;
6347esac
6348
6349# Handle CRLF in mingw tool chain
6350opt_cr=
6351case $build_os in
6352mingw*)
6353 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6354 ;;
6355esac
6356
6357# If we're using GNU nm, then use its standard symbol codes.
6358case `$NM -V 2>&1` in
6359*GNU* | *'with BFD'*)
6360 symcode='[ABCDGIRSTW]' ;;
6361esac
6362
6363# Try without a prefix undercore, then with it.
6364for ac_symprfx in "" "_"; do
6365
6366 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6367 symxfrm="\\1 $ac_symprfx\\2 \\2"
6368
6369 # Write the raw and C identifiers.
6370 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6371
6372 # Check to see that the pipe works correctly.
6373 pipe_works=no
6374
6375 rm -f conftest*
6376 cat > conftest.$ac_ext <<EOF
6377#ifdef __cplusplus
6378extern "C" {
6379#endif
6380char nm_test_var;
6381void nm_test_func(){}
6382#ifdef __cplusplus
6383}
6384#endif
6385int main(){nm_test_var='a';nm_test_func();return(0);}
6386EOF
6387
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>&5
6390 ac_status=$?
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; then
6393 # Now try to grab the symbols.
6394 nlist=conftest.nm
6395 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6396 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6397 ac_status=$?
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } && test -s "$nlist"; then
6400 # Try sorting and uniquifying the output.
6401 if sort "$nlist" | uniq > "$nlist"T; then
6402 mv -f "$nlist"T "$nlist"
6403 else
6404 rm -f "$nlist"T
6405 fi
6406
6407 # Make sure that we snagged all the symbols we need.
6408 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6409 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6410 cat <<EOF > conftest.$ac_ext
6411#ifdef __cplusplus
6412extern "C" {
6413#endif
6414
6415EOF
6416 # Now generate the symbol file.
6417 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6418
6419 cat <<EOF >> conftest.$ac_ext
6420#if defined (__STDC__) && __STDC__
6421# define lt_ptr_t void *
6422#else
6423# define lt_ptr_t char *
6424# define const
6425#endif
6426
6427/* The mapping between symbol names and symbols. */
6428const struct {
6429 const char *name;
6430 lt_ptr_t address;
6431}
6432lt_preloaded_symbols[] =
6433{
6434EOF
6435 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6436 cat <<\EOF >> conftest.$ac_ext
6437 {0, (lt_ptr_t) 0}
6438};
6439
6440#ifdef __cplusplus
6441}
6442#endif
6443EOF
6444 # Now try linking the two files.
6445 mv conftest.$ac_objext conftstm.$ac_objext
6446 lt_save_LIBS="$LIBS"
6447 lt_save_CFLAGS="$CFLAGS"
6448 LIBS="conftstm.$ac_objext"
6449 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451 (eval $ac_link) 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6455 pipe_works=yes
6456 fi
6457 LIBS="$lt_save_LIBS"
6458 CFLAGS="$lt_save_CFLAGS"
6459 else
6460 echo "cannot find nm_test_func in $nlist" >&5
6461 fi
6462 else
6463 echo "cannot find nm_test_var in $nlist" >&5
6464 fi
6465 else
6466 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6467 fi
6468 else
6469 echo "$progname: failed program was:" >&5
6470 cat conftest.$ac_ext >&5
6471 fi
6472 rm -f conftest* conftst*
6473
6474 # Do not use the global_symbol_pipe unless it works.
6475 if test "$pipe_works" = yes; then
6476 break
6477 else
6478 lt_cv_sys_global_symbol_pipe=
6479 fi
6480done
6481
6482fi
6483
6484if test -z "$lt_cv_sys_global_symbol_pipe"; then
6485 lt_cv_sys_global_symbol_to_cdecl=
6486fi
6487if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
64ff59ba 6488 { echo "$as_me:$LINENO: result: failed" >&5
6489echo "${ECHO_T}failed" >&6; }
d9898ee8 6490else
64ff59ba 6491 { echo "$as_me:$LINENO: result: ok" >&5
6492echo "${ECHO_T}ok" >&6; }
d9898ee8 6493fi
6494
64ff59ba 6495{ echo "$as_me:$LINENO: checking for objdir" >&5
6496echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d9898ee8 6497if test "${lt_cv_objdir+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6499else
6500 rm -f .libs 2>/dev/null
6501mkdir .libs 2>/dev/null
6502if test -d .libs; then
6503 lt_cv_objdir=.libs
6504else
6505 # MS-DOS does not allow filenames that begin with a dot.
6506 lt_cv_objdir=_libs
6507fi
6508rmdir .libs 2>/dev/null
6509fi
64ff59ba 6510{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6511echo "${ECHO_T}$lt_cv_objdir" >&6; }
d9898ee8 6512objdir=$lt_cv_objdir
6513
6514
6515
6516
6517
6518case $host_os in
6519aix3*)
6520 # AIX sometimes has problems with the GCC collect2 program. For some
6521 # reason, if we set the COLLECT_NAMES environment variable, the problems
6522 # vanish in a puff of smoke.
6523 if test "X${COLLECT_NAMES+set}" != Xset; then
6524 COLLECT_NAMES=
6525 export COLLECT_NAMES
6526 fi
6527 ;;
6528esac
6529
6530# Sed substitution that helps us do robust quoting. It backslashifies
6531# metacharacters that are still active within double-quoted strings.
6532Xsed='sed -e 1s/^X//'
6533sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6534
6535# Same as above, but do not quote variable references.
6536double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6537
6538# Sed substitution to delay expansion of an escaped shell variable in a
6539# double_quote_subst'ed string.
6540delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6541
6542# Sed substitution to avoid accidental globbing in evaled expressions
6543no_glob_subst='s/\*/\\\*/g'
6544
6545# Constants:
6546rm="rm -f"
6547
6548# Global variables:
6549default_ofile=libtool
6550can_build_shared=yes
6551
6552# All known linkers require a `.a' archive for static linking (except MSVC,
6553# which needs '.lib').
6554libext=a
6555ltmain="$ac_aux_dir/ltmain.sh"
6556ofile="$default_ofile"
6557with_gnu_ld="$lt_cv_prog_gnu_ld"
6558
6559if test -n "$ac_tool_prefix"; then
6560 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6561set dummy ${ac_tool_prefix}ar; ac_word=$2
64ff59ba 6562{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6564if test "${ac_cv_prog_AR+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566else
6567 if test -n "$AR"; then
6568 ac_cv_prog_AR="$AR" # Let the user override the test.
6569else
6570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571for as_dir in $PATH
6572do
6573 IFS=$as_save_IFS
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6577 ac_cv_prog_AR="${ac_tool_prefix}ar"
6578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6579 break 2
6580 fi
6581done
6582done
64ff59ba 6583IFS=$as_save_IFS
d9898ee8 6584
6585fi
6586fi
6587AR=$ac_cv_prog_AR
6588if test -n "$AR"; then
64ff59ba 6589 { echo "$as_me:$LINENO: result: $AR" >&5
6590echo "${ECHO_T}$AR" >&6; }
d9898ee8 6591else
64ff59ba 6592 { echo "$as_me:$LINENO: result: no" >&5
6593echo "${ECHO_T}no" >&6; }
d9898ee8 6594fi
6595
64ff59ba 6596
d9898ee8 6597fi
6598if test -z "$ac_cv_prog_AR"; then
6599 ac_ct_AR=$AR
6600 # Extract the first word of "ar", so it can be a program name with args.
6601set dummy ar; ac_word=$2
64ff59ba 6602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6604if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6606else
6607 if test -n "$ac_ct_AR"; then
6608 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6609else
6610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611for as_dir in $PATH
6612do
6613 IFS=$as_save_IFS
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6617 ac_cv_prog_ac_ct_AR="ar"
6618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 break 2
6620 fi
6621done
6622done
64ff59ba 6623IFS=$as_save_IFS
d9898ee8 6624
d9898ee8 6625fi
6626fi
6627ac_ct_AR=$ac_cv_prog_ac_ct_AR
6628if test -n "$ac_ct_AR"; then
64ff59ba 6629 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6630echo "${ECHO_T}$ac_ct_AR" >&6; }
d9898ee8 6631else
64ff59ba 6632 { echo "$as_me:$LINENO: result: no" >&5
6633echo "${ECHO_T}no" >&6; }
d9898ee8 6634fi
6635
64ff59ba 6636 if test "x$ac_ct_AR" = x; then
6637 AR="false"
6638 else
6639 case $cross_compiling:$ac_tool_warned in
6640yes:)
6641{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6642whose name does not start with the host triplet. If you think this
6643configuration is useful to you, please write to autoconf@gnu.org." >&5
6644echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6645whose name does not start with the host triplet. If you think this
6646configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6647ac_tool_warned=yes ;;
6648esac
6649 AR=$ac_ct_AR
6650 fi
d9898ee8 6651else
6652 AR="$ac_cv_prog_AR"
6653fi
6654
6655if test -n "$ac_tool_prefix"; then
6656 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6657set dummy ${ac_tool_prefix}ranlib; ac_word=$2
64ff59ba 6658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6660if test "${ac_cv_prog_RANLIB+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6662else
6663 if test -n "$RANLIB"; then
6664 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6665else
6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6673 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677done
6678done
64ff59ba 6679IFS=$as_save_IFS
d9898ee8 6680
6681fi
6682fi
6683RANLIB=$ac_cv_prog_RANLIB
6684if test -n "$RANLIB"; then
64ff59ba 6685 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6686echo "${ECHO_T}$RANLIB" >&6; }
d9898ee8 6687else
64ff59ba 6688 { echo "$as_me:$LINENO: result: no" >&5
6689echo "${ECHO_T}no" >&6; }
d9898ee8 6690fi
6691
64ff59ba 6692
d9898ee8 6693fi
6694if test -z "$ac_cv_prog_RANLIB"; then
6695 ac_ct_RANLIB=$RANLIB
6696 # Extract the first word of "ranlib", so it can be a program name with args.
6697set dummy ranlib; ac_word=$2
64ff59ba 6698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6700if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6702else
6703 if test -n "$ac_ct_RANLIB"; then
6704 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6705else
6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707for as_dir in $PATH
6708do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6713 ac_cv_prog_ac_ct_RANLIB="ranlib"
6714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6716 fi
6717done
6718done
64ff59ba 6719IFS=$as_save_IFS
d9898ee8 6720
d9898ee8 6721fi
6722fi
6723ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6724if test -n "$ac_ct_RANLIB"; then
64ff59ba 6725 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6726echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d9898ee8 6727else
64ff59ba 6728 { echo "$as_me:$LINENO: result: no" >&5
6729echo "${ECHO_T}no" >&6; }
d9898ee8 6730fi
6731
64ff59ba 6732 if test "x$ac_ct_RANLIB" = x; then
6733 RANLIB=":"
6734 else
6735 case $cross_compiling:$ac_tool_warned in
6736yes:)
6737{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6738whose name does not start with the host triplet. If you think this
6739configuration is useful to you, please write to autoconf@gnu.org." >&5
6740echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6741whose name does not start with the host triplet. If you think this
6742configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6743ac_tool_warned=yes ;;
6744esac
6745 RANLIB=$ac_ct_RANLIB
6746 fi
d9898ee8 6747else
6748 RANLIB="$ac_cv_prog_RANLIB"
6749fi
6750
6751if test -n "$ac_tool_prefix"; then
6752 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6753set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 6754{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6756if test "${ac_cv_prog_STRIP+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6758else
6759 if test -n "$STRIP"; then
6760 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6761else
6762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763for as_dir in $PATH
6764do
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6769 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6772 fi
6773done
6774done
64ff59ba 6775IFS=$as_save_IFS
d9898ee8 6776
6777fi
6778fi
6779STRIP=$ac_cv_prog_STRIP
6780if test -n "$STRIP"; then
64ff59ba 6781 { echo "$as_me:$LINENO: result: $STRIP" >&5
6782echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 6783else
64ff59ba 6784 { echo "$as_me:$LINENO: result: no" >&5
6785echo "${ECHO_T}no" >&6; }
d9898ee8 6786fi
6787
64ff59ba 6788
d9898ee8 6789fi
6790if test -z "$ac_cv_prog_STRIP"; then
6791 ac_ct_STRIP=$STRIP
6792 # Extract the first word of "strip", so it can be a program name with args.
6793set dummy strip; ac_word=$2
64ff59ba 6794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6796if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798else
6799 if test -n "$ac_ct_STRIP"; then
6800 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6801else
6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803for as_dir in $PATH
6804do
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6809 ac_cv_prog_ac_ct_STRIP="strip"
6810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6812 fi
6813done
6814done
64ff59ba 6815IFS=$as_save_IFS
d9898ee8 6816
d9898ee8 6817fi
6818fi
6819ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6820if test -n "$ac_ct_STRIP"; then
64ff59ba 6821 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6822echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 6823else
64ff59ba 6824 { echo "$as_me:$LINENO: result: no" >&5
6825echo "${ECHO_T}no" >&6; }
d9898ee8 6826fi
6827
64ff59ba 6828 if test "x$ac_ct_STRIP" = x; then
6829 STRIP=":"
6830 else
6831 case $cross_compiling:$ac_tool_warned in
6832yes:)
6833{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6834whose name does not start with the host triplet. If you think this
6835configuration is useful to you, please write to autoconf@gnu.org." >&5
6836echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6837whose name does not start with the host triplet. If you think this
6838configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6839ac_tool_warned=yes ;;
6840esac
6841 STRIP=$ac_ct_STRIP
6842 fi
d9898ee8 6843else
6844 STRIP="$ac_cv_prog_STRIP"
6845fi
6846
6847
6848old_CC="$CC"
6849old_CFLAGS="$CFLAGS"
6850
6851# Set sane defaults for various variables
6852test -z "$AR" && AR=ar
6853test -z "$AR_FLAGS" && AR_FLAGS=cru
6854test -z "$AS" && AS=as
6855test -z "$CC" && CC=cc
6856test -z "$LTCC" && LTCC=$CC
6857test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6858test -z "$DLLTOOL" && DLLTOOL=dlltool
6859test -z "$LD" && LD=ld
6860test -z "$LN_S" && LN_S="ln -s"
6861test -z "$MAGIC_CMD" && MAGIC_CMD=file
6862test -z "$NM" && NM=nm
6863test -z "$SED" && SED=sed
6864test -z "$OBJDUMP" && OBJDUMP=objdump
6865test -z "$RANLIB" && RANLIB=:
6866test -z "$STRIP" && STRIP=:
6867test -z "$ac_objext" && ac_objext=o
6868
6869# Determine commands to create old-style static archives.
6870old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6871old_postinstall_cmds='chmod 644 $oldlib'
6872old_postuninstall_cmds=
6873
6874if test -n "$RANLIB"; then
6875 case $host_os in
6876 openbsd*)
6877 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6878 ;;
6879 *)
6880 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6881 ;;
6882 esac
6883 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6884fi
6885
6886for cc_temp in $compiler""; do
6887 case $cc_temp in
6888 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6889 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6890 \-*) ;;
6891 *) break;;
6892 esac
6893done
6894cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6895
6896
6897# Only perform the check for file, if the check method requires it
6898case $deplibs_check_method in
6899file_magic*)
6900 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
64ff59ba 6901 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6902echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d9898ee8 6903if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6905else
6906 case $MAGIC_CMD in
6907[\\/*] | ?:[\\/]*)
6908 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6909 ;;
6910*)
6911 lt_save_MAGIC_CMD="$MAGIC_CMD"
6912 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6913 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6914 for ac_dir in $ac_dummy; do
6915 IFS="$lt_save_ifs"
6916 test -z "$ac_dir" && ac_dir=.
6917 if test -f $ac_dir/${ac_tool_prefix}file; then
6918 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6919 if test -n "$file_magic_test_file"; then
6920 case $deplibs_check_method in
6921 "file_magic "*)
6922 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6923 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6924 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6925 $EGREP "$file_magic_regex" > /dev/null; then
6926 :
6927 else
6928 cat <<EOF 1>&2
6929
6930*** Warning: the command libtool uses to detect shared libraries,
6931*** $file_magic_cmd, produces output that libtool cannot recognize.
6932*** The result is that libtool may fail to recognize shared libraries
6933*** as such. This will affect the creation of libtool libraries that
6934*** depend on shared libraries, but programs linked with such libtool
6935*** libraries will work regardless of this problem. Nevertheless, you
6936*** may want to report the problem to your system manager and/or to
6937*** bug-libtool@gnu.org
6938
6939EOF
6940 fi ;;
6941 esac
6942 fi
6943 break
6944 fi
6945 done
6946 IFS="$lt_save_ifs"
6947 MAGIC_CMD="$lt_save_MAGIC_CMD"
6948 ;;
6949esac
6950fi
6951
6952MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6953if test -n "$MAGIC_CMD"; then
64ff59ba 6954 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6955echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 6956else
64ff59ba 6957 { echo "$as_me:$LINENO: result: no" >&5
6958echo "${ECHO_T}no" >&6; }
d9898ee8 6959fi
6960
6961if test -z "$lt_cv_path_MAGIC_CMD"; then
6962 if test -n "$ac_tool_prefix"; then
64ff59ba 6963 { echo "$as_me:$LINENO: checking for file" >&5
6964echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d9898ee8 6965if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6967else
6968 case $MAGIC_CMD in
6969[\\/*] | ?:[\\/]*)
6970 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6971 ;;
6972*)
6973 lt_save_MAGIC_CMD="$MAGIC_CMD"
6974 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6975 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6976 for ac_dir in $ac_dummy; do
6977 IFS="$lt_save_ifs"
6978 test -z "$ac_dir" && ac_dir=.
6979 if test -f $ac_dir/file; then
6980 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6981 if test -n "$file_magic_test_file"; then
6982 case $deplibs_check_method in
6983 "file_magic "*)
6984 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6985 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6986 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6987 $EGREP "$file_magic_regex" > /dev/null; then
6988 :
6989 else
6990 cat <<EOF 1>&2
6991
6992*** Warning: the command libtool uses to detect shared libraries,
6993*** $file_magic_cmd, produces output that libtool cannot recognize.
6994*** The result is that libtool may fail to recognize shared libraries
6995*** as such. This will affect the creation of libtool libraries that
6996*** depend on shared libraries, but programs linked with such libtool
6997*** libraries will work regardless of this problem. Nevertheless, you
6998*** may want to report the problem to your system manager and/or to
6999*** bug-libtool@gnu.org
7000
7001EOF
7002 fi ;;
7003 esac
7004 fi
7005 break
7006 fi
7007 done
7008 IFS="$lt_save_ifs"
7009 MAGIC_CMD="$lt_save_MAGIC_CMD"
7010 ;;
7011esac
7012fi
7013
7014MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7015if test -n "$MAGIC_CMD"; then
64ff59ba 7016 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7017echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7018else
64ff59ba 7019 { echo "$as_me:$LINENO: result: no" >&5
7020echo "${ECHO_T}no" >&6; }
d9898ee8 7021fi
7022
7023 else
7024 MAGIC_CMD=:
7025 fi
7026fi
7027
7028 fi
7029 ;;
7030esac
7031
7032enable_dlopen=no
7033enable_win32_dll=no
7034
64ff59ba 7035# Check whether --enable-libtool-lock was given.
d9898ee8 7036if test "${enable_libtool_lock+set}" = set; then
64ff59ba 7037 enableval=$enable_libtool_lock;
7038fi
d9898ee8 7039
d9898ee8 7040test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7041
7042
64ff59ba 7043# Check whether --with-pic was given.
d9898ee8 7044if test "${with_pic+set}" = set; then
64ff59ba 7045 withval=$with_pic; pic_mode="$withval"
d9898ee8 7046else
7047 pic_mode=default
64ff59ba 7048fi
7049
d9898ee8 7050test -z "$pic_mode" && pic_mode=default
7051
7052# Use C for the default configuration in the libtool script
7053tagname=
7054lt_save_CC="$CC"
7055ac_ext=c
7056ac_cpp='$CPP $CPPFLAGS'
7057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7059ac_compiler_gnu=$ac_cv_c_compiler_gnu
7060
7061
7062# Source file extension for C test sources.
7063ac_ext=c
7064
7065# Object file extension for compiled C test sources.
7066objext=o
7067objext=$objext
7068
7069# Code to be used in simple compile tests
7070lt_simple_compile_test_code="int some_variable = 0;\n"
7071
7072# Code to be used in simple link tests
7073lt_simple_link_test_code='int main(){return(0);}\n'
7074
7075
7076# If no C compiler was specified, use CC.
7077LTCC=${LTCC-"$CC"}
7078
7079# If no C compiler flags were specified, use CFLAGS.
7080LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7081
7082# Allow CC to be a program name with arguments.
7083compiler=$CC
7084
7085
7086# save warnings/boilerplate of simple test code
7087ac_outfile=conftest.$ac_objext
7088printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7089eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7090_lt_compiler_boilerplate=`cat conftest.err`
7091$rm conftest*
7092
7093ac_outfile=conftest.$ac_objext
7094printf "$lt_simple_link_test_code" >conftest.$ac_ext
7095eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7096_lt_linker_boilerplate=`cat conftest.err`
7097$rm conftest*
7098
7099
7100
7101lt_prog_compiler_no_builtin_flag=
7102
7103if test "$GCC" = yes; then
7104 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7105
7106
64ff59ba 7107{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7108echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 7109if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7111else
7112 lt_cv_prog_compiler_rtti_exceptions=no
7113 ac_outfile=conftest.$ac_objext
7114 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7115 lt_compiler_flag="-fno-rtti -fno-exceptions"
7116 # Insert the option either (1) after the last *FLAGS variable, or
7117 # (2) before a word containing "conftest.", or (3) at the end.
7118 # Note that $ac_compile itself does not contain backslashes and begins
7119 # with a dollar sign (not a hyphen), so the echo should work correctly.
7120 # The option is referenced via a variable to avoid confusing sed.
7121 lt_compile=`echo "$ac_compile" | $SED \
7122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7124 -e 's:$: $lt_compiler_flag:'`
64ff59ba 7125 (eval echo "\"\$as_me:7125: $lt_compile\"" >&5)
d9898ee8 7126 (eval "$lt_compile" 2>conftest.err)
7127 ac_status=$?
7128 cat conftest.err >&5
64ff59ba 7129 echo "$as_me:7129: \$? = $ac_status" >&5
d9898ee8 7130 if (exit $ac_status) && test -s "$ac_outfile"; then
7131 # The compiler can only warn and ignore the option if not recognized
7132 # So say no if there are warnings other than the usual output.
7133 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7134 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7135 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7136 lt_cv_prog_compiler_rtti_exceptions=yes
7137 fi
7138 fi
7139 $rm conftest*
7140
7141fi
64ff59ba 7142{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7143echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7144
7145if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7146 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7147else
7148 :
7149fi
7150
7151fi
7152
7153lt_prog_compiler_wl=
7154lt_prog_compiler_pic=
7155lt_prog_compiler_static=
7156
64ff59ba 7157{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7158echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 7159
7160 if test "$GCC" = yes; then
7161 lt_prog_compiler_wl='-Wl,'
7162 lt_prog_compiler_static='-static'
7163
7164 case $host_os in
7165 aix*)
7166 # All AIX code is PIC.
7167 if test "$host_cpu" = ia64; then
7168 # AIX 5 now supports IA64 processor
7169 lt_prog_compiler_static='-Bstatic'
7170 fi
7171 ;;
7172
7173 amigaos*)
7174 # FIXME: we need at least 68020 code to build shared libraries, but
7175 # adding the `-m68020' flag to GCC prevents building anything better,
7176 # like `-m68040'.
7177 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7178 ;;
7179
7180 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7181 # PIC is the default for these OSes.
7182 ;;
7183
7184 mingw* | pw32* | os2*)
7185 # This hack is so that the source file can tell whether it is being
7186 # built for inclusion in a dll (and should export symbols for example).
7187 lt_prog_compiler_pic='-DDLL_EXPORT'
7188 ;;
7189
7190 darwin* | rhapsody*)
7191 # PIC is the default on this platform
7192 # Common symbols not allowed in MH_DYLIB files
7193 lt_prog_compiler_pic='-fno-common'
7194 ;;
7195
7196 interix3*)
7197 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7198 # Instead, we relocate shared libraries at runtime.
7199 ;;
7200
7201 msdosdjgpp*)
7202 # Just because we use GCC doesn't mean we suddenly get shared libraries
7203 # on systems that don't support them.
7204 lt_prog_compiler_can_build_shared=no
7205 enable_shared=no
7206 ;;
7207
7208 sysv4*MP*)
7209 if test -d /usr/nec; then
7210 lt_prog_compiler_pic=-Kconform_pic
7211 fi
7212 ;;
7213
7214 hpux*)
7215 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7216 # not for PA HP-UX.
7217 case $host_cpu in
7218 hppa*64*|ia64*)
7219 # +Z the default
7220 ;;
7221 *)
7222 lt_prog_compiler_pic='-fPIC'
7223 ;;
7224 esac
7225 ;;
7226
7227 *)
7228 lt_prog_compiler_pic='-fPIC'
7229 ;;
7230 esac
7231 else
7232 # PORTME Check for flag to pass linker flags through the system compiler.
7233 case $host_os in
7234 aix*)
7235 lt_prog_compiler_wl='-Wl,'
7236 if test "$host_cpu" = ia64; then
7237 # AIX 5 now supports IA64 processor
7238 lt_prog_compiler_static='-Bstatic'
7239 else
7240 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7241 fi
7242 ;;
7243 darwin*)
7244 # PIC is the default on this platform
7245 # Common symbols not allowed in MH_DYLIB files
7246 case $cc_basename in
7247 xlc*)
7248 lt_prog_compiler_pic='-qnocommon'
7249 lt_prog_compiler_wl='-Wl,'
7250 ;;
7251 esac
7252 ;;
7253
7254 mingw* | pw32* | os2*)
7255 # This hack is so that the source file can tell whether it is being
7256 # built for inclusion in a dll (and should export symbols for example).
7257 lt_prog_compiler_pic='-DDLL_EXPORT'
7258 ;;
7259
7260 hpux9* | hpux10* | hpux11*)
7261 lt_prog_compiler_wl='-Wl,'
7262 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7263 # not for PA HP-UX.
7264 case $host_cpu in
7265 hppa*64*|ia64*)
7266 # +Z the default
7267 ;;
7268 *)
7269 lt_prog_compiler_pic='+Z'
7270 ;;
7271 esac
7272 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7273 lt_prog_compiler_static='${wl}-a ${wl}archive'
7274 ;;
7275
7276 irix5* | irix6* | nonstopux*)
7277 lt_prog_compiler_wl='-Wl,'
7278 # PIC (with -KPIC) is the default.
7279 lt_prog_compiler_static='-non_shared'
7280 ;;
7281
7282 newsos6)
7283 lt_prog_compiler_pic='-KPIC'
7284 lt_prog_compiler_static='-Bstatic'
7285 ;;
7286
7287 linux*)
7288 case $cc_basename in
7289 icc* | ecc*)
7290 lt_prog_compiler_wl='-Wl,'
7291 lt_prog_compiler_pic='-KPIC'
7292 lt_prog_compiler_static='-static'
7293 ;;
7294 pgcc* | pgf77* | pgf90* | pgf95*)
7295 # Portland Group compilers (*not* the Pentium gcc compiler,
7296 # which looks to be a dead project)
7297 lt_prog_compiler_wl='-Wl,'
7298 lt_prog_compiler_pic='-fpic'
7299 lt_prog_compiler_static='-Bstatic'
7300 ;;
7301 ccc*)
7302 lt_prog_compiler_wl='-Wl,'
7303 # All Alpha code is PIC.
7304 lt_prog_compiler_static='-non_shared'
7305 ;;
7306 esac
7307 ;;
7308
7309 osf3* | osf4* | osf5*)
7310 lt_prog_compiler_wl='-Wl,'
7311 # All OSF/1 code is PIC.
7312 lt_prog_compiler_static='-non_shared'
7313 ;;
7314
7315 solaris*)
7316 lt_prog_compiler_pic='-KPIC'
7317 lt_prog_compiler_static='-Bstatic'
7318 case $cc_basename in
7319 f77* | f90* | f95*)
7320 lt_prog_compiler_wl='-Qoption ld ';;
7321 *)
7322 lt_prog_compiler_wl='-Wl,';;
7323 esac
7324 ;;
7325
7326 sunos4*)
7327 lt_prog_compiler_wl='-Qoption ld '
7328 lt_prog_compiler_pic='-PIC'
7329 lt_prog_compiler_static='-Bstatic'
7330 ;;
7331
7332 sysv4 | sysv4.2uw2* | sysv4.3*)
7333 lt_prog_compiler_wl='-Wl,'
7334 lt_prog_compiler_pic='-KPIC'
7335 lt_prog_compiler_static='-Bstatic'
7336 ;;
7337
7338 sysv4*MP*)
7339 if test -d /usr/nec ;then
7340 lt_prog_compiler_pic='-Kconform_pic'
7341 lt_prog_compiler_static='-Bstatic'
7342 fi
7343 ;;
7344
7345 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7346 lt_prog_compiler_wl='-Wl,'
7347 lt_prog_compiler_pic='-KPIC'
7348 lt_prog_compiler_static='-Bstatic'
7349 ;;
7350
7351 unicos*)
7352 lt_prog_compiler_wl='-Wl,'
7353 lt_prog_compiler_can_build_shared=no
7354 ;;
7355
7356 uts4*)
7357 lt_prog_compiler_pic='-pic'
7358 lt_prog_compiler_static='-Bstatic'
7359 ;;
7360
7361 *)
7362 lt_prog_compiler_can_build_shared=no
7363 ;;
7364 esac
7365 fi
7366
64ff59ba 7367{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7368echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d9898ee8 7369
7370#
7371# Check to make sure the PIC flag actually works.
7372#
7373if test -n "$lt_prog_compiler_pic"; then
7374
64ff59ba 7375{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7376echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d9898ee8 7377if test "${lt_prog_compiler_pic_works+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379else
7380 lt_prog_compiler_pic_works=no
7381 ac_outfile=conftest.$ac_objext
7382 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7383 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7384 # Insert the option either (1) after the last *FLAGS variable, or
7385 # (2) before a word containing "conftest.", or (3) at the end.
7386 # Note that $ac_compile itself does not contain backslashes and begins
7387 # with a dollar sign (not a hyphen), so the echo should work correctly.
7388 # The option is referenced via a variable to avoid confusing sed.
7389 lt_compile=`echo "$ac_compile" | $SED \
7390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7392 -e 's:$: $lt_compiler_flag:'`
64ff59ba 7393 (eval echo "\"\$as_me:7393: $lt_compile\"" >&5)
d9898ee8 7394 (eval "$lt_compile" 2>conftest.err)
7395 ac_status=$?
7396 cat conftest.err >&5
64ff59ba 7397 echo "$as_me:7397: \$? = $ac_status" >&5
d9898ee8 7398 if (exit $ac_status) && test -s "$ac_outfile"; then
7399 # The compiler can only warn and ignore the option if not recognized
7400 # So say no if there are warnings other than the usual output.
7401 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7402 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7403 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7404 lt_prog_compiler_pic_works=yes
7405 fi
7406 fi
7407 $rm conftest*
7408
7409fi
64ff59ba 7410{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7411echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d9898ee8 7412
7413if test x"$lt_prog_compiler_pic_works" = xyes; then
7414 case $lt_prog_compiler_pic in
7415 "" | " "*) ;;
7416 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7417 esac
7418else
7419 lt_prog_compiler_pic=
7420 lt_prog_compiler_can_build_shared=no
7421fi
7422
7423fi
7424case $host_os in
7425 # For platforms which do not support PIC, -DPIC is meaningless:
7426 *djgpp*)
7427 lt_prog_compiler_pic=
7428 ;;
7429 *)
7430 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7431 ;;
7432esac
7433
7434#
7435# Check to make sure the static flag actually works.
7436#
7437wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
64ff59ba 7438{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7439echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 7440if test "${lt_prog_compiler_static_works+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7442else
7443 lt_prog_compiler_static_works=no
7444 save_LDFLAGS="$LDFLAGS"
7445 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7446 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7447 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7448 # The linker can only warn and ignore the option if not recognized
7449 # So say no if there are warnings
7450 if test -s conftest.err; then
7451 # Append any errors to the config.log.
7452 cat conftest.err 1>&5
7453 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7455 if diff conftest.exp conftest.er2 >/dev/null; then
7456 lt_prog_compiler_static_works=yes
7457 fi
7458 else
7459 lt_prog_compiler_static_works=yes
7460 fi
7461 fi
7462 $rm conftest*
7463 LDFLAGS="$save_LDFLAGS"
7464
7465fi
64ff59ba 7466{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7467echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
d9898ee8 7468
7469if test x"$lt_prog_compiler_static_works" = xyes; then
7470 :
7471else
7472 lt_prog_compiler_static=
7473fi
7474
7475
64ff59ba 7476{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7477echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 7478if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480else
7481 lt_cv_prog_compiler_c_o=no
7482 $rm -r conftest 2>/dev/null
7483 mkdir conftest
7484 cd conftest
7485 mkdir out
7486 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7487
7488 lt_compiler_flag="-o out/conftest2.$ac_objext"
7489 # Insert the option either (1) after the last *FLAGS variable, or
7490 # (2) before a word containing "conftest.", or (3) at the end.
7491 # Note that $ac_compile itself does not contain backslashes and begins
7492 # with a dollar sign (not a hyphen), so the echo should work correctly.
7493 lt_compile=`echo "$ac_compile" | $SED \
7494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7496 -e 's:$: $lt_compiler_flag:'`
64ff59ba 7497 (eval echo "\"\$as_me:7497: $lt_compile\"" >&5)
d9898ee8 7498 (eval "$lt_compile" 2>out/conftest.err)
7499 ac_status=$?
7500 cat out/conftest.err >&5
64ff59ba 7501 echo "$as_me:7501: \$? = $ac_status" >&5
d9898ee8 7502 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7503 then
7504 # The compiler can only warn and ignore the option if not recognized
7505 # So say no if there are warnings
7506 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7507 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7508 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7509 lt_cv_prog_compiler_c_o=yes
7510 fi
7511 fi
7512 chmod u+w . 2>&5
7513 $rm conftest*
7514 # SGI C++ compiler will create directory out/ii_files/ for
7515 # template instantiation
7516 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7517 $rm out/* && rmdir out
7518 cd ..
7519 rmdir conftest
7520 $rm conftest*
7521
7522fi
64ff59ba 7523{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7524echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 7525
7526
7527hard_links="nottested"
7528if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7529 # do not overwrite the value of need_locks provided by the user
64ff59ba 7530 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7531echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 7532 hard_links=yes
7533 $rm conftest*
7534 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7535 touch conftest.a
7536 ln conftest.a conftest.b 2>&5 || hard_links=no
7537 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 7538 { echo "$as_me:$LINENO: result: $hard_links" >&5
7539echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 7540 if test "$hard_links" = no; then
7541 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7542echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7543 need_locks=warn
7544 fi
7545else
7546 need_locks=no
7547fi
7548
64ff59ba 7549{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7550echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 7551
7552 runpath_var=
7553 allow_undefined_flag=
7554 enable_shared_with_static_runtimes=no
7555 archive_cmds=
7556 archive_expsym_cmds=
7557 old_archive_From_new_cmds=
7558 old_archive_from_expsyms_cmds=
7559 export_dynamic_flag_spec=
7560 whole_archive_flag_spec=
7561 thread_safe_flag_spec=
7562 hardcode_libdir_flag_spec=
7563 hardcode_libdir_flag_spec_ld=
7564 hardcode_libdir_separator=
7565 hardcode_direct=no
7566 hardcode_minus_L=no
7567 hardcode_shlibpath_var=unsupported
7568 link_all_deplibs=unknown
7569 hardcode_automatic=no
7570 module_cmds=
7571 module_expsym_cmds=
7572 always_export_symbols=no
7573 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7574 # include_expsyms should be a list of space-separated symbols to be *always*
7575 # included in the symbol list
7576 include_expsyms=
7577 # exclude_expsyms can be an extended regexp of symbols to exclude
7578 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7579 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7580 # as well as any symbol that contains `d'.
7581 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7582 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7583 # platforms (ab)use it in PIC code, but their linkers get confused if
7584 # the symbol is explicitly referenced. Since portable code cannot
7585 # rely on this symbol name, it's probably fine to never include it in
7586 # preloaded symbol tables.
7587 extract_expsyms_cmds=
7588 # Just being paranoid about ensuring that cc_basename is set.
7589 for cc_temp in $compiler""; do
7590 case $cc_temp in
7591 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7592 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7593 \-*) ;;
7594 *) break;;
7595 esac
7596done
7597cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7598
7599 case $host_os in
7600 cygwin* | mingw* | pw32*)
7601 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7602 # When not using gcc, we currently assume that we are using
7603 # Microsoft Visual C++.
7604 if test "$GCC" != yes; then
7605 with_gnu_ld=no
7606 fi
7607 ;;
7608 interix*)
7609 # we just hope/assume this is gcc and not c89 (= MSVC++)
7610 with_gnu_ld=yes
7611 ;;
7612 openbsd*)
7613 with_gnu_ld=no
7614 ;;
7615 esac
7616
7617 ld_shlibs=yes
7618 if test "$with_gnu_ld" = yes; then
7619 # If archive_cmds runs LD, not CC, wlarc should be empty
7620 wlarc='${wl}'
7621
7622 # Set some defaults for GNU ld with shared library support. These
7623 # are reset later if shared libraries are not supported. Putting them
7624 # here allows them to be overridden if necessary.
7625 runpath_var=LD_RUN_PATH
7626 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7627 export_dynamic_flag_spec='${wl}--export-dynamic'
7628 # ancient GNU ld didn't support --whole-archive et. al.
7629 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7630 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7631 else
7632 whole_archive_flag_spec=
7633 fi
7634 supports_anon_versioning=no
7635 case `$LD -v 2>/dev/null` in
7636 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7637 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7638 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7639 *\ 2.11.*) ;; # other 2.11 versions
7640 *) supports_anon_versioning=yes ;;
7641 esac
7642
7643 # See if GNU ld supports shared libraries.
7644 case $host_os in
7645 aix3* | aix4* | aix5*)
7646 # On AIX/PPC, the GNU linker is very broken
7647 if test "$host_cpu" != ia64; then
7648 ld_shlibs=no
7649 cat <<EOF 1>&2
7650
7651*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7652*** to be unable to reliably create shared libraries on AIX.
7653*** Therefore, libtool is disabling shared libraries support. If you
7654*** really care for shared libraries, you may want to modify your PATH
7655*** so that a non-GNU linker is found, and then restart.
7656
7657EOF
7658 fi
7659 ;;
7660
7661 amigaos*)
7662 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)'
7663 hardcode_libdir_flag_spec='-L$libdir'
7664 hardcode_minus_L=yes
7665
7666 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7667 # that the semantics of dynamic libraries on AmigaOS, at least up
7668 # to version 4, is to share data among multiple programs linked
7669 # with the same dynamic library. Since this doesn't match the
7670 # behavior of shared libraries on other platforms, we can't use
7671 # them.
7672 ld_shlibs=no
7673 ;;
7674
7675 beos*)
7676 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7677 allow_undefined_flag=unsupported
7678 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7679 # support --undefined. This deserves some investigation. FIXME
7680 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7681 else
7682 ld_shlibs=no
7683 fi
7684 ;;
7685
7686 cygwin* | mingw* | pw32*)
7687 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7688 # as there is no search path for DLLs.
7689 hardcode_libdir_flag_spec='-L$libdir'
7690 allow_undefined_flag=unsupported
7691 always_export_symbols=no
7692 enable_shared_with_static_runtimes=yes
7693 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7694
7695 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7697 # If the export-symbols file already is a .def file (1st line
7698 # is EXPORTS), use it as is; otherwise, prepend...
7699 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7700 cp $export_symbols $output_objdir/$soname.def;
7701 else
7702 echo EXPORTS > $output_objdir/$soname.def;
7703 cat $export_symbols >> $output_objdir/$soname.def;
7704 fi~
7705 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7706 else
7707 ld_shlibs=no
7708 fi
7709 ;;
7710
7711 interix3*)
7712 hardcode_direct=no
7713 hardcode_shlibpath_var=no
7714 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7715 export_dynamic_flag_spec='${wl}-E'
7716 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7717 # Instead, shared libraries are loaded at an image base (0x10000000 by
7718 # default) and relocated if they conflict, which is a slow very memory
7719 # consuming and fragmenting process. To avoid this, we pick a random,
7720 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7721 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7722 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7723 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'
7724 ;;
7725
7726 linux*)
7727 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7728 tmp_addflag=
7729 case $cc_basename,$host_cpu in
7730 pgcc*) # Portland Group C compiler
7731 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'
7732 tmp_addflag=' $pic_flag'
7733 ;;
7734 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7735 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'
7736 tmp_addflag=' $pic_flag -Mnomain' ;;
7737 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7738 tmp_addflag=' -i_dynamic' ;;
7739 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7740 tmp_addflag=' -i_dynamic -nofor_main' ;;
7741 ifc* | ifort*) # Intel Fortran compiler
7742 tmp_addflag=' -nofor_main' ;;
7743 esac
7744 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7745
7746 if test $supports_anon_versioning = yes; then
7747 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7748 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7749 $echo "local: *; };" >> $output_objdir/$libname.ver~
7750 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7751 fi
7752 else
7753 ld_shlibs=no
7754 fi
7755 ;;
7756
7757 netbsd*)
7758 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7759 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7760 wlarc=
7761 else
7762 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7763 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7764 fi
7765 ;;
7766
7767 solaris*)
7768 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7769 ld_shlibs=no
7770 cat <<EOF 1>&2
7771
7772*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7773*** create shared libraries on Solaris systems. Therefore, libtool
7774*** is disabling shared libraries support. We urge you to upgrade GNU
7775*** binutils to release 2.9.1 or newer. Another option is to modify
7776*** your PATH or compiler configuration so that the native linker is
7777*** used, and then restart.
7778
7779EOF
7780 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7782 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7783 else
7784 ld_shlibs=no
7785 fi
7786 ;;
7787
7788 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7789 case `$LD -v 2>&1` in
7790 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7791 ld_shlibs=no
7792 cat <<_LT_EOF 1>&2
7793
7794*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7795*** reliably create shared libraries on SCO systems. Therefore, libtool
7796*** is disabling shared libraries support. We urge you to upgrade GNU
7797*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7798*** your PATH or compiler configuration so that the native linker is
7799*** used, and then restart.
7800
7801_LT_EOF
7802 ;;
7803 *)
7804 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7805 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7807 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7808 else
7809 ld_shlibs=no
7810 fi
7811 ;;
7812 esac
7813 ;;
7814
7815 sunos4*)
7816 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7817 wlarc=
7818 hardcode_direct=yes
7819 hardcode_shlibpath_var=no
7820 ;;
7821
7822 *)
7823 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7824 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7825 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7826 else
7827 ld_shlibs=no
7828 fi
7829 ;;
7830 esac
7831
7832 if test "$ld_shlibs" = no; then
7833 runpath_var=
7834 hardcode_libdir_flag_spec=
7835 export_dynamic_flag_spec=
7836 whole_archive_flag_spec=
7837 fi
7838 else
7839 # PORTME fill in a description of your system's linker (not GNU ld)
7840 case $host_os in
7841 aix3*)
7842 allow_undefined_flag=unsupported
7843 always_export_symbols=yes
7844 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'
7845 # Note: this linker hardcodes the directories in LIBPATH if there
7846 # are no directories specified by -L.
7847 hardcode_minus_L=yes
7848 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7849 # Neither direct hardcoding nor static linking is supported with a
7850 # broken collect2.
7851 hardcode_direct=unsupported
7852 fi
7853 ;;
7854
7855 aix4* | aix5*)
7856 if test "$host_cpu" = ia64; then
7857 # On IA64, the linker does run time linking by default, so we don't
7858 # have to do anything special.
7859 aix_use_runtimelinking=no
7860 exp_sym_flag='-Bexport'
7861 no_entry_flag=""
7862 else
7863 # If we're using GNU nm, then we don't want the "-C" option.
7864 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7865 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7866 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'
7867 else
7868 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'
7869 fi
7870 aix_use_runtimelinking=no
7871
7872 # Test if we are trying to use run time linking or normal
7873 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7874 # need to do runtime linking.
7875 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7876 for ld_flag in $LDFLAGS; do
7877 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7878 aix_use_runtimelinking=yes
7879 break
7880 fi
7881 done
7882 ;;
7883 esac
7884
7885 exp_sym_flag='-bexport'
7886 no_entry_flag='-bnoentry'
7887 fi
7888
7889 # When large executables or shared objects are built, AIX ld can
7890 # have problems creating the table of contents. If linking a library
7891 # or program results in "error TOC overflow" add -mminimal-toc to
7892 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7893 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7894
7895 archive_cmds=''
7896 hardcode_direct=yes
7897 hardcode_libdir_separator=':'
7898 link_all_deplibs=yes
7899
7900 if test "$GCC" = yes; then
7901 case $host_os in aix4.[012]|aix4.[012].*)
7902 # We only want to do this on AIX 4.2 and lower, the check
7903 # below for broken collect2 doesn't work under 4.3+
7904 collect2name=`${CC} -print-prog-name=collect2`
7905 if test -f "$collect2name" && \
7906 strings "$collect2name" | grep resolve_lib_name >/dev/null
7907 then
7908 # We have reworked collect2
7909 hardcode_direct=yes
7910 else
7911 # We have old collect2
7912 hardcode_direct=unsupported
7913 # It fails to find uninstalled libraries when the uninstalled
7914 # path is not listed in the libpath. Setting hardcode_minus_L
7915 # to unsupported forces relinking
7916 hardcode_minus_L=yes
7917 hardcode_libdir_flag_spec='-L$libdir'
7918 hardcode_libdir_separator=
7919 fi
7920 ;;
7921 esac
7922 shared_flag='-shared'
7923 if test "$aix_use_runtimelinking" = yes; then
7924 shared_flag="$shared_flag "'${wl}-G'
7925 fi
7926 else
7927 # not using gcc
7928 if test "$host_cpu" = ia64; then
7929 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7930 # chokes on -Wl,-G. The following line is correct:
7931 shared_flag='-G'
7932 else
7933 if test "$aix_use_runtimelinking" = yes; then
7934 shared_flag='${wl}-G'
7935 else
7936 shared_flag='${wl}-bM:SRE'
7937 fi
7938 fi
7939 fi
7940
7941 # It seems that -bexpall does not export symbols beginning with
7942 # underscore (_), so it is better to generate a list of symbols to export.
7943 always_export_symbols=yes
7944 if test "$aix_use_runtimelinking" = yes; then
7945 # Warning - without using the other runtime loading flags (-brtl),
7946 # -berok will link without error, but may produce a broken library.
7947 allow_undefined_flag='-berok'
7948 # Determine the default libpath from the value encoded in an empty executable.
7949 cat >conftest.$ac_ext <<_ACEOF
7950/* confdefs.h. */
7951_ACEOF
7952cat confdefs.h >>conftest.$ac_ext
7953cat >>conftest.$ac_ext <<_ACEOF
7954/* end confdefs.h. */
7955
7956int
7957main ()
7958{
7959
7960 ;
7961 return 0;
7962}
7963_ACEOF
7964rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 7965if { (ac_try="$ac_link"
7966case "(($ac_try" in
7967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968 *) ac_try_echo=$ac_try;;
7969esac
7970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7971 (eval "$ac_link") 2>conftest.er1
d9898ee8 7972 ac_status=$?
7973 grep -v '^ *+' conftest.er1 >conftest.err
7974 rm -f conftest.er1
7975 cat conftest.err >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 7977 (exit $ac_status); } && {
7978 test -z "$ac_c_werror_flag" ||
7979 test ! -s conftest.err
7980 } && test -s conftest$ac_exeext &&
7981 $as_test_x conftest$ac_exeext; then
d9898ee8 7982
7983aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7984}'`
7985# Check for a 64-bit object if we didn't find anything.
7986if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7987}'`; fi
7988else
7989 echo "$as_me: failed program was:" >&5
7990sed 's/^/| /' conftest.$ac_ext >&5
7991
64ff59ba 7992
d9898ee8 7993fi
64ff59ba 7994
7995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 7996 conftest$ac_exeext conftest.$ac_ext
7997if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7998
7999 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8000 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"
8001 else
8002 if test "$host_cpu" = ia64; then
8003 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8004 allow_undefined_flag="-z nodefs"
8005 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"
8006 else
8007 # Determine the default libpath from the value encoded in an empty executable.
8008 cat >conftest.$ac_ext <<_ACEOF
8009/* confdefs.h. */
8010_ACEOF
8011cat confdefs.h >>conftest.$ac_ext
8012cat >>conftest.$ac_ext <<_ACEOF
8013/* end confdefs.h. */
8014
8015int
8016main ()
8017{
8018
8019 ;
8020 return 0;
8021}
8022_ACEOF
8023rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 8024if { (ac_try="$ac_link"
8025case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8028esac
8029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030 (eval "$ac_link") 2>conftest.er1
d9898ee8 8031 ac_status=$?
8032 grep -v '^ *+' conftest.er1 >conftest.err
8033 rm -f conftest.er1
8034 cat conftest.err >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 8036 (exit $ac_status); } && {
8037 test -z "$ac_c_werror_flag" ||
8038 test ! -s conftest.err
8039 } && test -s conftest$ac_exeext &&
8040 $as_test_x conftest$ac_exeext; then
d9898ee8 8041
8042aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8043}'`
8044# Check for a 64-bit object if we didn't find anything.
8045if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8046}'`; fi
8047else
8048 echo "$as_me: failed program was:" >&5
8049sed 's/^/| /' conftest.$ac_ext >&5
8050
64ff59ba 8051
d9898ee8 8052fi
64ff59ba 8053
8054rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8055 conftest$ac_exeext conftest.$ac_ext
8056if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8057
8058 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8059 # Warning - without using the other run time loading flags,
8060 # -berok will link without error, but may produce a broken library.
8061 no_undefined_flag=' ${wl}-bernotok'
8062 allow_undefined_flag=' ${wl}-berok'
8063 # Exported symbols can be pulled into shared objects from archives
8064 whole_archive_flag_spec='$convenience'
8065 archive_cmds_need_lc=yes
8066 # This is similar to how AIX traditionally builds its shared libraries.
8067 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'
8068 fi
8069 fi
8070 ;;
8071
8072 amigaos*)
8073 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)'
8074 hardcode_libdir_flag_spec='-L$libdir'
8075 hardcode_minus_L=yes
8076 # see comment about different semantics on the GNU ld section
8077 ld_shlibs=no
8078 ;;
8079
8080 bsdi[45]*)
8081 export_dynamic_flag_spec=-rdynamic
8082 ;;
8083
8084 cygwin* | mingw* | pw32*)
8085 # When not using gcc, we currently assume that we are using
8086 # Microsoft Visual C++.
8087 # hardcode_libdir_flag_spec is actually meaningless, as there is
8088 # no search path for DLLs.
8089 hardcode_libdir_flag_spec=' '
8090 allow_undefined_flag=unsupported
8091 # Tell ltmain to make .lib files, not .a files.
8092 libext=lib
8093 # Tell ltmain to make .dll files, not .so files.
8094 shrext_cmds=".dll"
8095 # FIXME: Setting linknames here is a bad hack.
8096 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8097 # The linker will automatically build a .lib file if we build a DLL.
8098 old_archive_From_new_cmds='true'
8099 # FIXME: Should let the user specify the lib program.
8100 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8101 fix_srcfile_path='`cygpath -w "$srcfile"`'
8102 enable_shared_with_static_runtimes=yes
8103 ;;
8104
8105 darwin* | rhapsody*)
8106 case $host_os in
8107 rhapsody* | darwin1.[012])
8108 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8109 ;;
8110 *) # Darwin 1.3 on
8111 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8112 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8113 else
8114 case ${MACOSX_DEPLOYMENT_TARGET} in
8115 10.[012])
8116 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8117 ;;
8118 10.*)
8119 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8120 ;;
8121 esac
8122 fi
8123 ;;
8124 esac
8125 archive_cmds_need_lc=no
8126 hardcode_direct=no
8127 hardcode_automatic=yes
8128 hardcode_shlibpath_var=unsupported
8129 whole_archive_flag_spec=''
8130 link_all_deplibs=yes
8131 if test "$GCC" = yes ; then
8132 output_verbose_link_cmd='echo'
8133 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8134 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8135 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8136 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8137 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}'
8138 else
8139 case $cc_basename in
8140 xlc*)
8141 output_verbose_link_cmd='echo'
8142 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8143 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8144 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8145 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8146 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}'
8147 ;;
8148 *)
8149 ld_shlibs=no
8150 ;;
8151 esac
8152 fi
8153 ;;
8154
8155 dgux*)
8156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8157 hardcode_libdir_flag_spec='-L$libdir'
8158 hardcode_shlibpath_var=no
8159 ;;
8160
8161 freebsd1*)
8162 ld_shlibs=no
8163 ;;
8164
8165 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8166 # support. Future versions do this automatically, but an explicit c++rt0.o
8167 # does not break anything, and helps significantly (at the cost of a little
8168 # extra space).
8169 freebsd2.2*)
8170 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8171 hardcode_libdir_flag_spec='-R$libdir'
8172 hardcode_direct=yes
8173 hardcode_shlibpath_var=no
8174 ;;
8175
8176 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8177 freebsd2*)
8178 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8179 hardcode_direct=yes
8180 hardcode_minus_L=yes
8181 hardcode_shlibpath_var=no
8182 ;;
8183
8184 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8185 freebsd* | kfreebsd*-gnu | dragonfly*)
8186 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8187 hardcode_libdir_flag_spec='-R$libdir'
8188 hardcode_direct=yes
8189 hardcode_shlibpath_var=no
8190 ;;
8191
8192 hpux9*)
8193 if test "$GCC" = yes; then
8194 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'
8195 else
8196 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'
8197 fi
8198 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8199 hardcode_libdir_separator=:
8200 hardcode_direct=yes
8201
8202 # hardcode_minus_L: Not really in the search PATH,
8203 # but as the default location of the library.
8204 hardcode_minus_L=yes
8205 export_dynamic_flag_spec='${wl}-E'
8206 ;;
8207
8208 hpux10*)
8209 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8210 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8211 else
8212 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8213 fi
8214 if test "$with_gnu_ld" = no; then
8215 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8216 hardcode_libdir_separator=:
8217
8218 hardcode_direct=yes
8219 export_dynamic_flag_spec='${wl}-E'
8220
8221 # hardcode_minus_L: Not really in the search PATH,
8222 # but as the default location of the library.
8223 hardcode_minus_L=yes
8224 fi
8225 ;;
8226
8227 hpux11*)
8228 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8229 case $host_cpu in
8230 hppa*64*)
8231 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8232 ;;
8233 ia64*)
8234 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8235 ;;
8236 *)
8237 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8238 ;;
8239 esac
8240 else
8241 case $host_cpu in
8242 hppa*64*)
8243 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8244 ;;
8245 ia64*)
8246 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8247 ;;
8248 *)
8249 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8250 ;;
8251 esac
8252 fi
8253 if test "$with_gnu_ld" = no; then
8254 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8255 hardcode_libdir_separator=:
8256
8257 case $host_cpu in
8258 hppa*64*|ia64*)
8259 hardcode_libdir_flag_spec_ld='+b $libdir'
8260 hardcode_direct=no
8261 hardcode_shlibpath_var=no
8262 ;;
8263 *)
8264 hardcode_direct=yes
8265 export_dynamic_flag_spec='${wl}-E'
8266
8267 # hardcode_minus_L: Not really in the search PATH,
8268 # but as the default location of the library.
8269 hardcode_minus_L=yes
8270 ;;
8271 esac
8272 fi
8273 ;;
8274
8275 irix5* | irix6* | nonstopux*)
8276 if test "$GCC" = yes; then
8277 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'
8278 else
8279 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'
8280 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8281 fi
8282 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8283 hardcode_libdir_separator=:
8284 link_all_deplibs=yes
8285 ;;
8286
8287 netbsd*)
8288 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8290 else
8291 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8292 fi
8293 hardcode_libdir_flag_spec='-R$libdir'
8294 hardcode_direct=yes
8295 hardcode_shlibpath_var=no
8296 ;;
8297
8298 newsos6)
8299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8300 hardcode_direct=yes
8301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8302 hardcode_libdir_separator=:
8303 hardcode_shlibpath_var=no
8304 ;;
8305
8306 openbsd*)
8307 hardcode_direct=yes
8308 hardcode_shlibpath_var=no
8309 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8310 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8311 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8312 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8313 export_dynamic_flag_spec='${wl}-E'
8314 else
8315 case $host_os in
8316 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8317 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8318 hardcode_libdir_flag_spec='-R$libdir'
8319 ;;
8320 *)
8321 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8322 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8323 ;;
8324 esac
8325 fi
8326 ;;
8327
8328 os2*)
8329 hardcode_libdir_flag_spec='-L$libdir'
8330 hardcode_minus_L=yes
8331 allow_undefined_flag=unsupported
8332 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'
8333 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8334 ;;
8335
8336 osf3*)
8337 if test "$GCC" = yes; then
8338 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8339 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'
8340 else
8341 allow_undefined_flag=' -expect_unresolved \*'
8342 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'
8343 fi
8344 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8345 hardcode_libdir_separator=:
8346 ;;
8347
8348 osf4* | osf5*) # as osf3* with the addition of -msym flag
8349 if test "$GCC" = yes; then
8350 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8351 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'
8352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8353 else
8354 allow_undefined_flag=' -expect_unresolved \*'
8355 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'
8356 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8357 $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'
8358
8359 # Both c and cxx compiler support -rpath directly
8360 hardcode_libdir_flag_spec='-rpath $libdir'
8361 fi
8362 hardcode_libdir_separator=:
8363 ;;
8364
8365 solaris*)
8366 no_undefined_flag=' -z text'
8367 if test "$GCC" = yes; then
8368 wlarc='${wl}'
8369 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8370 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8371 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8372 else
8373 wlarc=''
8374 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8375 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8376 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8377 fi
8378 hardcode_libdir_flag_spec='-R$libdir'
8379 hardcode_shlibpath_var=no
8380 case $host_os in
8381 solaris2.[0-5] | solaris2.[0-5].*) ;;
8382 *)
8383 # The compiler driver will combine linker options so we
8384 # cannot just pass the convience library names through
8385 # without $wl, iff we do not link with $LD.
8386 # Luckily, gcc supports the same syntax we need for Sun Studio.
8387 # Supported since Solaris 2.6 (maybe 2.5.1?)
8388 case $wlarc in
8389 '')
8390 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8391 *)
8392 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8393 esac ;;
8394 esac
8395 link_all_deplibs=yes
8396 ;;
8397
8398 sunos4*)
8399 if test "x$host_vendor" = xsequent; then
8400 # Use $CC to link under sequent, because it throws in some extra .o
8401 # files that make .init and .fini sections work.
8402 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8403 else
8404 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8405 fi
8406 hardcode_libdir_flag_spec='-L$libdir'
8407 hardcode_direct=yes
8408 hardcode_minus_L=yes
8409 hardcode_shlibpath_var=no
8410 ;;
8411
8412 sysv4)
8413 case $host_vendor in
8414 sni)
8415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8416 hardcode_direct=yes # is this really true???
8417 ;;
8418 siemens)
8419 ## LD is ld it makes a PLAMLIB
8420 ## CC just makes a GrossModule.
8421 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8422 reload_cmds='$CC -r -o $output$reload_objs'
8423 hardcode_direct=no
8424 ;;
8425 motorola)
8426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8427 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8428 ;;
8429 esac
8430 runpath_var='LD_RUN_PATH'
8431 hardcode_shlibpath_var=no
8432 ;;
8433
8434 sysv4.3*)
8435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8436 hardcode_shlibpath_var=no
8437 export_dynamic_flag_spec='-Bexport'
8438 ;;
8439
8440 sysv4*MP*)
8441 if test -d /usr/nec; then
8442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8443 hardcode_shlibpath_var=no
8444 runpath_var=LD_RUN_PATH
8445 hardcode_runpath_var=yes
8446 ld_shlibs=yes
8447 fi
8448 ;;
8449
8450 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8451 no_undefined_flag='${wl}-z,text'
8452 archive_cmds_need_lc=no
8453 hardcode_shlibpath_var=no
8454 runpath_var='LD_RUN_PATH'
8455
8456 if test "$GCC" = yes; then
8457 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8458 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8459 else
8460 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8461 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8462 fi
8463 ;;
8464
8465 sysv5* | sco3.2v5* | sco5v6*)
8466 # Note: We can NOT use -z defs as we might desire, because we do not
8467 # link with -lc, and that would cause any symbols used from libc to
8468 # always be unresolved, which means just about no library would
8469 # ever link correctly. If we're not using GNU ld we use -z text
8470 # though, which does catch some bad symbols but isn't as heavy-handed
8471 # as -z defs.
8472 no_undefined_flag='${wl}-z,text'
8473 allow_undefined_flag='${wl}-z,nodefs'
8474 archive_cmds_need_lc=no
8475 hardcode_shlibpath_var=no
8476 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8477 hardcode_libdir_separator=':'
8478 link_all_deplibs=yes
8479 export_dynamic_flag_spec='${wl}-Bexport'
8480 runpath_var='LD_RUN_PATH'
8481
8482 if test "$GCC" = yes; then
8483 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8484 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8485 else
8486 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8487 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8488 fi
8489 ;;
8490
8491 uts4*)
8492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8493 hardcode_libdir_flag_spec='-L$libdir'
8494 hardcode_shlibpath_var=no
8495 ;;
8496
8497 *)
8498 ld_shlibs=no
8499 ;;
8500 esac
8501 fi
8502
64ff59ba 8503{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8504echo "${ECHO_T}$ld_shlibs" >&6; }
d9898ee8 8505test "$ld_shlibs" = no && can_build_shared=no
8506
8507#
8508# Do we need to explicitly link libc?
8509#
8510case "x$archive_cmds_need_lc" in
8511x|xyes)
8512 # Assume -lc should be added
8513 archive_cmds_need_lc=yes
8514
8515 if test "$enable_shared" = yes && test "$GCC" = yes; then
8516 case $archive_cmds in
8517 *'~'*)
8518 # FIXME: we may have to deal with multi-command sequences.
8519 ;;
8520 '$CC '*)
8521 # Test whether the compiler implicitly links with -lc since on some
8522 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8523 # to ld, don't add -lc before -lgcc.
64ff59ba 8524 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8525echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 8526 $rm conftest*
8527 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8528
8529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8530 (eval $ac_compile) 2>&5
8531 ac_status=$?
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } 2>conftest.err; then
8534 soname=conftest
8535 lib=conftest
8536 libobjs=conftest.$ac_objext
8537 deplibs=
8538 wl=$lt_prog_compiler_wl
8539 pic_flag=$lt_prog_compiler_pic
8540 compiler_flags=-v
8541 linker_flags=-v
8542 verstring=
8543 output_objdir=.
8544 libname=conftest
8545 lt_save_allow_undefined_flag=$allow_undefined_flag
8546 allow_undefined_flag=
8547 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8548 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8549 ac_status=$?
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }
8552 then
8553 archive_cmds_need_lc=no
8554 else
8555 archive_cmds_need_lc=yes
8556 fi
8557 allow_undefined_flag=$lt_save_allow_undefined_flag
8558 else
8559 cat conftest.err 1>&5
8560 fi
8561 $rm conftest*
64ff59ba 8562 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8563echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d9898ee8 8564 ;;
8565 esac
8566 fi
8567 ;;
8568esac
8569
64ff59ba 8570{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8571echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 8572library_names_spec=
8573libname_spec='lib$name'
8574soname_spec=
8575shrext_cmds=".so"
8576postinstall_cmds=
8577postuninstall_cmds=
8578finish_cmds=
8579finish_eval=
8580shlibpath_var=
8581shlibpath_overrides_runpath=unknown
8582version_type=none
8583dynamic_linker="$host_os ld.so"
8584sys_lib_dlsearch_path_spec="/lib /usr/lib"
8585if test "$GCC" = yes; then
8586 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8587 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8588 # if the path contains ";" then we assume it to be the separator
8589 # otherwise default to the standard path separator (i.e. ":") - it is
8590 # assumed that no part of a normal pathname contains ";" but that should
8591 # okay in the real world where ";" in dirpaths is itself problematic.
8592 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8593 else
8594 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8595 fi
8596else
8597 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8598fi
8599need_lib_prefix=unknown
8600hardcode_into_libs=no
8601
8602# when you set need_version to no, make sure it does not cause -set_version
8603# flags to be left without arguments
8604need_version=unknown
8605
8606case $host_os in
8607aix3*)
8608 version_type=linux
8609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8610 shlibpath_var=LIBPATH
8611
8612 # AIX 3 has no versioning support, so we append a major version to the name.
8613 soname_spec='${libname}${release}${shared_ext}$major'
8614 ;;
8615
8616aix4* | aix5*)
8617 version_type=linux
8618 need_lib_prefix=no
8619 need_version=no
8620 hardcode_into_libs=yes
8621 if test "$host_cpu" = ia64; then
8622 # AIX 5 supports IA64
8623 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8624 shlibpath_var=LD_LIBRARY_PATH
8625 else
8626 # With GCC up to 2.95.x, collect2 would create an import file
8627 # for dependence libraries. The import file would start with
8628 # the line `#! .'. This would cause the generated library to
8629 # depend on `.', always an invalid library. This was fixed in
8630 # development snapshots of GCC prior to 3.0.
8631 case $host_os in
8632 aix4 | aix4.[01] | aix4.[01].*)
8633 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8634 echo ' yes '
8635 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8636 :
8637 else
8638 can_build_shared=no
8639 fi
8640 ;;
8641 esac
8642 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8643 # soname into executable. Probably we can add versioning support to
8644 # collect2, so additional links can be useful in future.
8645 if test "$aix_use_runtimelinking" = yes; then
8646 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8647 # instead of lib<name>.a to let people know that these are not
8648 # typical AIX shared libraries.
8649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8650 else
8651 # We preserve .a as extension for shared libraries through AIX4.2
8652 # and later when we are not doing run time linking.
8653 library_names_spec='${libname}${release}.a $libname.a'
8654 soname_spec='${libname}${release}${shared_ext}$major'
8655 fi
8656 shlibpath_var=LIBPATH
8657 fi
8658 ;;
8659
8660amigaos*)
8661 library_names_spec='$libname.ixlibrary $libname.a'
8662 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8663 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'
8664 ;;
8665
8666beos*)
8667 library_names_spec='${libname}${shared_ext}'
8668 dynamic_linker="$host_os ld.so"
8669 shlibpath_var=LIBRARY_PATH
8670 ;;
8671
8672bsdi[45]*)
8673 version_type=linux
8674 need_version=no
8675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8676 soname_spec='${libname}${release}${shared_ext}$major'
8677 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8678 shlibpath_var=LD_LIBRARY_PATH
8679 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8680 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8681 # the default ld.so.conf also contains /usr/contrib/lib and
8682 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8683 # libtool to hard-code these into programs
8684 ;;
8685
8686cygwin* | mingw* | pw32*)
8687 version_type=windows
8688 shrext_cmds=".dll"
8689 need_version=no
8690 need_lib_prefix=no
8691
8692 case $GCC,$host_os in
8693 yes,cygwin* | yes,mingw* | yes,pw32*)
8694 library_names_spec='$libname.dll.a'
8695 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8696 postinstall_cmds='base_file=`basename \${file}`~
8697 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8698 dldir=$destdir/`dirname \$dlpath`~
8699 test -d \$dldir || mkdir -p \$dldir~
8700 $install_prog $dir/$dlname \$dldir/$dlname~
8701 chmod a+x \$dldir/$dlname'
8702 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8703 dlpath=$dir/\$dldll~
8704 $rm \$dlpath'
8705 shlibpath_overrides_runpath=yes
8706
8707 case $host_os in
8708 cygwin*)
8709 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8710 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8711 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8712 ;;
8713 mingw*)
8714 # MinGW DLLs use traditional 'lib' prefix
8715 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8716 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8717 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8718 # It is most probably a Windows format PATH printed by
8719 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8720 # path with ; separators, and with drive letters. We can handle the
8721 # drive letters (cygwin fileutils understands them), so leave them,
8722 # especially as we might pass files found there to a mingw objdump,
8723 # which wouldn't understand a cygwinified path. Ahh.
8724 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8725 else
8726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8727 fi
8728 ;;
8729 pw32*)
8730 # pw32 DLLs use 'pw' prefix rather than 'lib'
8731 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8732 ;;
8733 esac
8734 ;;
8735
8736 *)
8737 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8738 ;;
8739 esac
8740 dynamic_linker='Win32 ld.exe'
8741 # FIXME: first we should search . and the directory the executable is in
8742 shlibpath_var=PATH
8743 ;;
8744
8745darwin* | rhapsody*)
8746 dynamic_linker="$host_os dyld"
8747 version_type=darwin
8748 need_lib_prefix=no
8749 need_version=no
8750 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8751 soname_spec='${libname}${release}${major}$shared_ext'
8752 shlibpath_overrides_runpath=yes
8753 shlibpath_var=DYLD_LIBRARY_PATH
8754 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8755 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8756 if test "$GCC" = yes; then
8757 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8758 else
8759 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8760 fi
8761 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8762 ;;
8763
8764dgux*)
8765 version_type=linux
8766 need_lib_prefix=no
8767 need_version=no
8768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8769 soname_spec='${libname}${release}${shared_ext}$major'
8770 shlibpath_var=LD_LIBRARY_PATH
8771 ;;
8772
8773freebsd1*)
8774 dynamic_linker=no
8775 ;;
8776
8777kfreebsd*-gnu)
8778 version_type=linux
8779 need_lib_prefix=no
8780 need_version=no
8781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8782 soname_spec='${libname}${release}${shared_ext}$major'
8783 shlibpath_var=LD_LIBRARY_PATH
8784 shlibpath_overrides_runpath=no
8785 hardcode_into_libs=yes
8786 dynamic_linker='GNU ld.so'
8787 ;;
8788
8789freebsd* | dragonfly*)
8790 # DragonFly does not have aout. When/if they implement a new
8791 # versioning mechanism, adjust this.
8792 if test -x /usr/bin/objformat; then
8793 objformat=`/usr/bin/objformat`
8794 else
8795 case $host_os in
8796 freebsd[123]*) objformat=aout ;;
8797 *) objformat=elf ;;
8798 esac
8799 fi
8800 version_type=freebsd-$objformat
8801 case $version_type in
8802 freebsd-elf*)
8803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8804 need_version=no
8805 need_lib_prefix=no
8806 ;;
8807 freebsd-*)
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8809 need_version=yes
8810 ;;
8811 esac
8812 shlibpath_var=LD_LIBRARY_PATH
8813 case $host_os in
8814 freebsd2*)
8815 shlibpath_overrides_runpath=yes
8816 ;;
8817 freebsd3.[01]* | freebsdelf3.[01]*)
8818 shlibpath_overrides_runpath=yes
8819 hardcode_into_libs=yes
8820 ;;
8821 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8822 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8823 shlibpath_overrides_runpath=no
8824 hardcode_into_libs=yes
8825 ;;
8826 freebsd*) # from 4.6 on
8827 shlibpath_overrides_runpath=yes
8828 hardcode_into_libs=yes
8829 ;;
8830 esac
8831 ;;
8832
8833gnu*)
8834 version_type=linux
8835 need_lib_prefix=no
8836 need_version=no
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8838 soname_spec='${libname}${release}${shared_ext}$major'
8839 shlibpath_var=LD_LIBRARY_PATH
8840 hardcode_into_libs=yes
8841 ;;
8842
8843hpux9* | hpux10* | hpux11*)
8844 # Give a soname corresponding to the major version so that dld.sl refuses to
8845 # link against other versions.
8846 version_type=sunos
8847 need_lib_prefix=no
8848 need_version=no
8849 case $host_cpu in
8850 ia64*)
8851 shrext_cmds='.so'
8852 hardcode_into_libs=yes
8853 dynamic_linker="$host_os dld.so"
8854 shlibpath_var=LD_LIBRARY_PATH
8855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8857 soname_spec='${libname}${release}${shared_ext}$major'
8858 if test "X$HPUX_IA64_MODE" = X32; then
8859 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8860 else
8861 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8862 fi
8863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8864 ;;
8865 hppa*64*)
8866 shrext_cmds='.sl'
8867 hardcode_into_libs=yes
8868 dynamic_linker="$host_os dld.sl"
8869 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8870 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872 soname_spec='${libname}${release}${shared_ext}$major'
8873 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8874 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8875 ;;
8876 *)
8877 shrext_cmds='.sl'
8878 dynamic_linker="$host_os dld.sl"
8879 shlibpath_var=SHLIB_PATH
8880 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8882 soname_spec='${libname}${release}${shared_ext}$major'
8883 ;;
8884 esac
8885 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8886 postinstall_cmds='chmod 555 $lib'
8887 ;;
8888
8889interix3*)
8890 version_type=linux
8891 need_lib_prefix=no
8892 need_version=no
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8894 soname_spec='${libname}${release}${shared_ext}$major'
8895 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8896 shlibpath_var=LD_LIBRARY_PATH
8897 shlibpath_overrides_runpath=no
8898 hardcode_into_libs=yes
8899 ;;
8900
8901irix5* | irix6* | nonstopux*)
8902 case $host_os in
8903 nonstopux*) version_type=nonstopux ;;
8904 *)
8905 if test "$lt_cv_prog_gnu_ld" = yes; then
8906 version_type=linux
8907 else
8908 version_type=irix
8909 fi ;;
8910 esac
8911 need_lib_prefix=no
8912 need_version=no
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8915 case $host_os in
8916 irix5* | nonstopux*)
8917 libsuff= shlibsuff=
8918 ;;
8919 *)
8920 case $LD in # libtool.m4 will add one of these switches to LD
8921 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8922 libsuff= shlibsuff= libmagic=32-bit;;
8923 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8924 libsuff=32 shlibsuff=N32 libmagic=N32;;
8925 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8926 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8927 *) libsuff= shlibsuff= libmagic=never-match;;
8928 esac
8929 ;;
8930 esac
8931 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8932 shlibpath_overrides_runpath=no
8933 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8934 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8935 hardcode_into_libs=yes
8936 ;;
8937
8938# No shared lib support for Linux oldld, aout, or coff.
8939linux*oldld* | linux*aout* | linux*coff*)
8940 dynamic_linker=no
8941 ;;
8942
8943# This must be Linux ELF.
8944linux*)
8945 version_type=linux
8946 need_lib_prefix=no
8947 need_version=no
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949 soname_spec='${libname}${release}${shared_ext}$major'
8950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8951 shlibpath_var=LD_LIBRARY_PATH
8952 shlibpath_overrides_runpath=no
8953 # This implies no fast_install, which is unacceptable.
8954 # Some rework will be needed to allow for fast_install
8955 # before this can be enabled.
8956 hardcode_into_libs=yes
8957
8958 # find out which ABI we are using
8959 libsuff=
8960 case "$host_cpu" in
8961 x86_64*|s390x*|powerpc64*)
64ff59ba 8962 echo '#line 8962 "configure"' > conftest.$ac_ext
d9898ee8 8963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8964 (eval $ac_compile) 2>&5
8965 ac_status=$?
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; then
8968 case `/usr/bin/file conftest.$ac_objext` in
8969 *64-bit*)
8970 libsuff=64
8971 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8972 ;;
8973 esac
8974 fi
8975 rm -rf conftest*
8976 ;;
8977 esac
8978
8979 # Append ld.so.conf contents to the search path
8980 if test -f /etc/ld.so.conf; then
64ff59ba 8981 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 8982 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8983 fi
8984
8985 # We used to test for /lib/ld.so.1 and disable shared libraries on
8986 # powerpc, because MkLinux only supported shared libraries with the
8987 # GNU dynamic linker. Since this was broken with cross compilers,
8988 # most powerpc-linux boxes support dynamic linking these days and
8989 # people can always --disable-shared, the test was removed, and we
8990 # assume the GNU/Linux dynamic linker is in use.
8991 dynamic_linker='GNU/Linux ld.so'
8992 ;;
8993
8994knetbsd*-gnu)
8995 version_type=linux
8996 need_lib_prefix=no
8997 need_version=no
8998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8999 soname_spec='${libname}${release}${shared_ext}$major'
9000 shlibpath_var=LD_LIBRARY_PATH
9001 shlibpath_overrides_runpath=no
9002 hardcode_into_libs=yes
9003 dynamic_linker='GNU ld.so'
9004 ;;
9005
9006netbsd*)
9007 version_type=sunos
9008 need_lib_prefix=no
9009 need_version=no
9010 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9013 dynamic_linker='NetBSD (a.out) ld.so'
9014 else
9015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9016 soname_spec='${libname}${release}${shared_ext}$major'
9017 dynamic_linker='NetBSD ld.elf_so'
9018 fi
9019 shlibpath_var=LD_LIBRARY_PATH
9020 shlibpath_overrides_runpath=yes
9021 hardcode_into_libs=yes
9022 ;;
9023
9024newsos6)
9025 version_type=linux
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 shlibpath_overrides_runpath=yes
9029 ;;
9030
9031nto-qnx*)
9032 version_type=linux
9033 need_lib_prefix=no
9034 need_version=no
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 shlibpath_overrides_runpath=yes
9039 ;;
9040
9041openbsd*)
9042 version_type=sunos
9043 sys_lib_dlsearch_path_spec="/usr/lib"
9044 need_lib_prefix=no
9045 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9046 case $host_os in
9047 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9048 *) need_version=no ;;
9049 esac
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9052 shlibpath_var=LD_LIBRARY_PATH
9053 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9054 case $host_os in
9055 openbsd2.[89] | openbsd2.[89].*)
9056 shlibpath_overrides_runpath=no
9057 ;;
9058 *)
9059 shlibpath_overrides_runpath=yes
9060 ;;
9061 esac
9062 else
9063 shlibpath_overrides_runpath=yes
9064 fi
9065 ;;
9066
9067os2*)
9068 libname_spec='$name'
9069 shrext_cmds=".dll"
9070 need_lib_prefix=no
9071 library_names_spec='$libname${shared_ext} $libname.a'
9072 dynamic_linker='OS/2 ld.exe'
9073 shlibpath_var=LIBPATH
9074 ;;
9075
9076osf3* | osf4* | osf5*)
9077 version_type=osf
9078 need_lib_prefix=no
9079 need_version=no
9080 soname_spec='${libname}${release}${shared_ext}$major'
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 shlibpath_var=LD_LIBRARY_PATH
9083 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9084 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9085 ;;
9086
9087solaris*)
9088 version_type=linux
9089 need_lib_prefix=no
9090 need_version=no
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 shlibpath_var=LD_LIBRARY_PATH
9094 shlibpath_overrides_runpath=yes
9095 hardcode_into_libs=yes
9096 # ldd complains unless libraries are executable
9097 postinstall_cmds='chmod +x $lib'
9098 ;;
9099
9100sunos4*)
9101 version_type=sunos
9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9103 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9104 shlibpath_var=LD_LIBRARY_PATH
9105 shlibpath_overrides_runpath=yes
9106 if test "$with_gnu_ld" = yes; then
9107 need_lib_prefix=no
9108 fi
9109 need_version=yes
9110 ;;
9111
9112sysv4 | sysv4.3*)
9113 version_type=linux
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115 soname_spec='${libname}${release}${shared_ext}$major'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 case $host_vendor in
9118 sni)
9119 shlibpath_overrides_runpath=no
9120 need_lib_prefix=no
9121 export_dynamic_flag_spec='${wl}-Blargedynsym'
9122 runpath_var=LD_RUN_PATH
9123 ;;
9124 siemens)
9125 need_lib_prefix=no
9126 ;;
9127 motorola)
9128 need_lib_prefix=no
9129 need_version=no
9130 shlibpath_overrides_runpath=no
9131 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9132 ;;
9133 esac
9134 ;;
9135
9136sysv4*MP*)
9137 if test -d /usr/nec ;then
9138 version_type=linux
9139 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9140 soname_spec='$libname${shared_ext}.$major'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 fi
9143 ;;
9144
9145sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9146 version_type=freebsd-elf
9147 need_lib_prefix=no
9148 need_version=no
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 shlibpath_var=LD_LIBRARY_PATH
9152 hardcode_into_libs=yes
9153 if test "$with_gnu_ld" = yes; then
9154 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9155 shlibpath_overrides_runpath=no
9156 else
9157 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9158 shlibpath_overrides_runpath=yes
9159 case $host_os in
9160 sco3.2v5*)
9161 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9162 ;;
9163 esac
9164 fi
9165 sys_lib_dlsearch_path_spec='/usr/lib'
9166 ;;
9167
9168uts4*)
9169 version_type=linux
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171 soname_spec='${libname}${release}${shared_ext}$major'
9172 shlibpath_var=LD_LIBRARY_PATH
9173 ;;
9174
9175*)
9176 dynamic_linker=no
9177 ;;
9178esac
64ff59ba 9179{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9180echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 9181test "$dynamic_linker" = no && can_build_shared=no
9182
9183variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9184if test "$GCC" = yes; then
9185 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9186fi
9187
64ff59ba 9188{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9189echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 9190hardcode_action=
9191if test -n "$hardcode_libdir_flag_spec" || \
9192 test -n "$runpath_var" || \
9193 test "X$hardcode_automatic" = "Xyes" ; then
9194
9195 # We can hardcode non-existant directories.
9196 if test "$hardcode_direct" != no &&
9197 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9198 # have to relink, otherwise we might link with an installed library
9199 # when we should be linking with a yet-to-be-installed one
9200 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9201 test "$hardcode_minus_L" != no; then
9202 # Linking always hardcodes the temporary library directory.
9203 hardcode_action=relink
9204 else
9205 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9206 hardcode_action=immediate
9207 fi
9208else
9209 # We cannot hardcode anything, or else we can only hardcode existing
9210 # directories.
9211 hardcode_action=unsupported
9212fi
64ff59ba 9213{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9214echo "${ECHO_T}$hardcode_action" >&6; }
d9898ee8 9215
9216if test "$hardcode_action" = relink; then
9217 # Fast installation is not supported
9218 enable_fast_install=no
9219elif test "$shlibpath_overrides_runpath" = yes ||
9220 test "$enable_shared" = no; then
9221 # Fast installation is not necessary
9222 enable_fast_install=needless
9223fi
9224
9225striplib=
9226old_striplib=
64ff59ba 9227{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9228echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d9898ee8 9229if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9230 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9231 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
64ff59ba 9232 { echo "$as_me:$LINENO: result: yes" >&5
9233echo "${ECHO_T}yes" >&6; }
d9898ee8 9234else
9235# FIXME - insert some real tests, host_os isn't really good enough
9236 case $host_os in
9237 darwin*)
9238 if test -n "$STRIP" ; then
9239 striplib="$STRIP -x"
64ff59ba 9240 { echo "$as_me:$LINENO: result: yes" >&5
9241echo "${ECHO_T}yes" >&6; }
d9898ee8 9242 else
64ff59ba 9243 { echo "$as_me:$LINENO: result: no" >&5
9244echo "${ECHO_T}no" >&6; }
d9898ee8 9245fi
9246 ;;
9247 *)
64ff59ba 9248 { echo "$as_me:$LINENO: result: no" >&5
9249echo "${ECHO_T}no" >&6; }
d9898ee8 9250 ;;
9251 esac
9252fi
9253
9254if test "x$enable_dlopen" != xyes; then
9255 enable_dlopen=unknown
9256 enable_dlopen_self=unknown
9257 enable_dlopen_self_static=unknown
9258else
9259 lt_cv_dlopen=no
9260 lt_cv_dlopen_libs=
9261
9262 case $host_os in
9263 beos*)
9264 lt_cv_dlopen="load_add_on"
9265 lt_cv_dlopen_libs=
9266 lt_cv_dlopen_self=yes
9267 ;;
9268
9269 mingw* | pw32*)
9270 lt_cv_dlopen="LoadLibrary"
9271 lt_cv_dlopen_libs=
9272 ;;
9273
9274 cygwin*)
9275 lt_cv_dlopen="dlopen"
9276 lt_cv_dlopen_libs=
9277 ;;
9278
9279 darwin*)
9280 # if libdl is installed we need to link against it
64ff59ba 9281 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9282echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9283if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9285else
9286 ac_check_lib_save_LIBS=$LIBS
9287LIBS="-ldl $LIBS"
9288cat >conftest.$ac_ext <<_ACEOF
9289/* confdefs.h. */
9290_ACEOF
9291cat confdefs.h >>conftest.$ac_ext
9292cat >>conftest.$ac_ext <<_ACEOF
9293/* end confdefs.h. */
9294
64ff59ba 9295/* Override any GCC internal prototype to avoid an error.
9296 Use char because int might match the return type of a GCC
9297 builtin and then its argument prototype would still apply. */
d9898ee8 9298#ifdef __cplusplus
9299extern "C"
9300#endif
d9898ee8 9301char dlopen ();
9302int
9303main ()
9304{
64ff59ba 9305return dlopen ();
d9898ee8 9306 ;
9307 return 0;
9308}
9309_ACEOF
9310rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9311if { (ac_try="$ac_link"
9312case "(($ac_try" in
9313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9314 *) ac_try_echo=$ac_try;;
9315esac
9316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9317 (eval "$ac_link") 2>conftest.er1
d9898ee8 9318 ac_status=$?
9319 grep -v '^ *+' conftest.er1 >conftest.err
9320 rm -f conftest.er1
9321 cat conftest.err >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9323 (exit $ac_status); } && {
9324 test -z "$ac_c_werror_flag" ||
9325 test ! -s conftest.err
9326 } && test -s conftest$ac_exeext &&
9327 $as_test_x conftest$ac_exeext; then
d9898ee8 9328 ac_cv_lib_dl_dlopen=yes
9329else
9330 echo "$as_me: failed program was:" >&5
9331sed 's/^/| /' conftest.$ac_ext >&5
9332
64ff59ba 9333 ac_cv_lib_dl_dlopen=no
d9898ee8 9334fi
64ff59ba 9335
9336rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9337 conftest$ac_exeext conftest.$ac_ext
9338LIBS=$ac_check_lib_save_LIBS
9339fi
64ff59ba 9340{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9341echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9342if test $ac_cv_lib_dl_dlopen = yes; then
9343 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9344else
9345
9346 lt_cv_dlopen="dyld"
9347 lt_cv_dlopen_libs=
9348 lt_cv_dlopen_self=yes
9349
9350fi
9351
9352 ;;
9353
9354 *)
64ff59ba 9355 { echo "$as_me:$LINENO: checking for shl_load" >&5
9356echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9898ee8 9357if test "${ac_cv_func_shl_load+set}" = set; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9359else
9360 cat >conftest.$ac_ext <<_ACEOF
9361/* confdefs.h. */
9362_ACEOF
9363cat confdefs.h >>conftest.$ac_ext
9364cat >>conftest.$ac_ext <<_ACEOF
9365/* end confdefs.h. */
9366/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9368#define shl_load innocuous_shl_load
9369
9370/* System header to define __stub macros and hopefully few prototypes,
9371 which can conflict with char shl_load (); below.
9372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9373 <limits.h> exists even on freestanding compilers. */
9374
9375#ifdef __STDC__
9376# include <limits.h>
9377#else
9378# include <assert.h>
9379#endif
9380
9381#undef shl_load
9382
64ff59ba 9383/* Override any GCC internal prototype to avoid an error.
9384 Use char because int might match the return type of a GCC
9385 builtin and then its argument prototype would still apply. */
d9898ee8 9386#ifdef __cplusplus
9387extern "C"
d9898ee8 9388#endif
d9898ee8 9389char shl_load ();
9390/* The GNU C library defines this for functions which it implements
9391 to always fail with ENOSYS. Some functions are actually named
9392 something starting with __ and the normal name is an alias. */
64ff59ba 9393#if defined __stub_shl_load || defined __stub___shl_load
d9898ee8 9394choke me
d9898ee8 9395#endif
9396
9397int
9398main ()
9399{
64ff59ba 9400return shl_load ();
d9898ee8 9401 ;
9402 return 0;
9403}
9404_ACEOF
9405rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9406if { (ac_try="$ac_link"
9407case "(($ac_try" in
9408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9410esac
9411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412 (eval "$ac_link") 2>conftest.er1
d9898ee8 9413 ac_status=$?
9414 grep -v '^ *+' conftest.er1 >conftest.err
9415 rm -f conftest.er1
9416 cat conftest.err >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9418 (exit $ac_status); } && {
9419 test -z "$ac_c_werror_flag" ||
9420 test ! -s conftest.err
9421 } && test -s conftest$ac_exeext &&
9422 $as_test_x conftest$ac_exeext; then
d9898ee8 9423 ac_cv_func_shl_load=yes
9424else
9425 echo "$as_me: failed program was:" >&5
9426sed 's/^/| /' conftest.$ac_ext >&5
9427
64ff59ba 9428 ac_cv_func_shl_load=no
d9898ee8 9429fi
64ff59ba 9430
9431rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9432 conftest$ac_exeext conftest.$ac_ext
9433fi
64ff59ba 9434{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9435echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9898ee8 9436if test $ac_cv_func_shl_load = yes; then
9437 lt_cv_dlopen="shl_load"
9438else
64ff59ba 9439 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9440echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9898ee8 9441if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9443else
9444 ac_check_lib_save_LIBS=$LIBS
9445LIBS="-ldld $LIBS"
9446cat >conftest.$ac_ext <<_ACEOF
9447/* confdefs.h. */
9448_ACEOF
9449cat confdefs.h >>conftest.$ac_ext
9450cat >>conftest.$ac_ext <<_ACEOF
9451/* end confdefs.h. */
9452
64ff59ba 9453/* Override any GCC internal prototype to avoid an error.
9454 Use char because int might match the return type of a GCC
9455 builtin and then its argument prototype would still apply. */
d9898ee8 9456#ifdef __cplusplus
9457extern "C"
9458#endif
d9898ee8 9459char shl_load ();
9460int
9461main ()
9462{
64ff59ba 9463return shl_load ();
d9898ee8 9464 ;
9465 return 0;
9466}
9467_ACEOF
9468rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9469if { (ac_try="$ac_link"
9470case "(($ac_try" in
9471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9472 *) ac_try_echo=$ac_try;;
9473esac
9474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9475 (eval "$ac_link") 2>conftest.er1
d9898ee8 9476 ac_status=$?
9477 grep -v '^ *+' conftest.er1 >conftest.err
9478 rm -f conftest.er1
9479 cat conftest.err >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9481 (exit $ac_status); } && {
9482 test -z "$ac_c_werror_flag" ||
9483 test ! -s conftest.err
9484 } && test -s conftest$ac_exeext &&
9485 $as_test_x conftest$ac_exeext; then
d9898ee8 9486 ac_cv_lib_dld_shl_load=yes
9487else
9488 echo "$as_me: failed program was:" >&5
9489sed 's/^/| /' conftest.$ac_ext >&5
9490
64ff59ba 9491 ac_cv_lib_dld_shl_load=no
d9898ee8 9492fi
64ff59ba 9493
9494rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9495 conftest$ac_exeext conftest.$ac_ext
9496LIBS=$ac_check_lib_save_LIBS
9497fi
64ff59ba 9498{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9499echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9898ee8 9500if test $ac_cv_lib_dld_shl_load = yes; then
9501 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9502else
64ff59ba 9503 { echo "$as_me:$LINENO: checking for dlopen" >&5
9504echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d9898ee8 9505if test "${ac_cv_func_dlopen+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9507else
9508 cat >conftest.$ac_ext <<_ACEOF
9509/* confdefs.h. */
9510_ACEOF
9511cat confdefs.h >>conftest.$ac_ext
9512cat >>conftest.$ac_ext <<_ACEOF
9513/* end confdefs.h. */
9514/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9516#define dlopen innocuous_dlopen
9517
9518/* System header to define __stub macros and hopefully few prototypes,
9519 which can conflict with char dlopen (); below.
9520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9521 <limits.h> exists even on freestanding compilers. */
9522
9523#ifdef __STDC__
9524# include <limits.h>
9525#else
9526# include <assert.h>
9527#endif
9528
9529#undef dlopen
9530
64ff59ba 9531/* Override any GCC internal prototype to avoid an error.
9532 Use char because int might match the return type of a GCC
9533 builtin and then its argument prototype would still apply. */
d9898ee8 9534#ifdef __cplusplus
9535extern "C"
d9898ee8 9536#endif
d9898ee8 9537char dlopen ();
9538/* The GNU C library defines this for functions which it implements
9539 to always fail with ENOSYS. Some functions are actually named
9540 something starting with __ and the normal name is an alias. */
64ff59ba 9541#if defined __stub_dlopen || defined __stub___dlopen
d9898ee8 9542choke me
d9898ee8 9543#endif
9544
9545int
9546main ()
9547{
64ff59ba 9548return dlopen ();
d9898ee8 9549 ;
9550 return 0;
9551}
9552_ACEOF
9553rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9554if { (ac_try="$ac_link"
9555case "(($ac_try" in
9556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9557 *) ac_try_echo=$ac_try;;
9558esac
9559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9560 (eval "$ac_link") 2>conftest.er1
d9898ee8 9561 ac_status=$?
9562 grep -v '^ *+' conftest.er1 >conftest.err
9563 rm -f conftest.er1
9564 cat conftest.err >&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9566 (exit $ac_status); } && {
9567 test -z "$ac_c_werror_flag" ||
9568 test ! -s conftest.err
9569 } && test -s conftest$ac_exeext &&
9570 $as_test_x conftest$ac_exeext; then
d9898ee8 9571 ac_cv_func_dlopen=yes
9572else
9573 echo "$as_me: failed program was:" >&5
9574sed 's/^/| /' conftest.$ac_ext >&5
9575
64ff59ba 9576 ac_cv_func_dlopen=no
d9898ee8 9577fi
64ff59ba 9578
9579rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9580 conftest$ac_exeext conftest.$ac_ext
9581fi
64ff59ba 9582{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9583echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d9898ee8 9584if test $ac_cv_func_dlopen = yes; then
9585 lt_cv_dlopen="dlopen"
9586else
64ff59ba 9587 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9588echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9589if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9591else
9592 ac_check_lib_save_LIBS=$LIBS
9593LIBS="-ldl $LIBS"
9594cat >conftest.$ac_ext <<_ACEOF
9595/* confdefs.h. */
9596_ACEOF
9597cat confdefs.h >>conftest.$ac_ext
9598cat >>conftest.$ac_ext <<_ACEOF
9599/* end confdefs.h. */
9600
64ff59ba 9601/* Override any GCC internal prototype to avoid an error.
9602 Use char because int might match the return type of a GCC
9603 builtin and then its argument prototype would still apply. */
d9898ee8 9604#ifdef __cplusplus
9605extern "C"
9606#endif
d9898ee8 9607char dlopen ();
9608int
9609main ()
9610{
64ff59ba 9611return dlopen ();
d9898ee8 9612 ;
9613 return 0;
9614}
9615_ACEOF
9616rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9617if { (ac_try="$ac_link"
9618case "(($ac_try" in
9619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9620 *) ac_try_echo=$ac_try;;
9621esac
9622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9623 (eval "$ac_link") 2>conftest.er1
d9898ee8 9624 ac_status=$?
9625 grep -v '^ *+' conftest.er1 >conftest.err
9626 rm -f conftest.er1
9627 cat conftest.err >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9629 (exit $ac_status); } && {
9630 test -z "$ac_c_werror_flag" ||
9631 test ! -s conftest.err
9632 } && test -s conftest$ac_exeext &&
9633 $as_test_x conftest$ac_exeext; then
d9898ee8 9634 ac_cv_lib_dl_dlopen=yes
9635else
9636 echo "$as_me: failed program was:" >&5
9637sed 's/^/| /' conftest.$ac_ext >&5
9638
64ff59ba 9639 ac_cv_lib_dl_dlopen=no
d9898ee8 9640fi
64ff59ba 9641
9642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9643 conftest$ac_exeext conftest.$ac_ext
9644LIBS=$ac_check_lib_save_LIBS
9645fi
64ff59ba 9646{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9647echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9648if test $ac_cv_lib_dl_dlopen = yes; then
9649 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9650else
64ff59ba 9651 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9652echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9898ee8 9653if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9655else
9656 ac_check_lib_save_LIBS=$LIBS
9657LIBS="-lsvld $LIBS"
9658cat >conftest.$ac_ext <<_ACEOF
9659/* confdefs.h. */
9660_ACEOF
9661cat confdefs.h >>conftest.$ac_ext
9662cat >>conftest.$ac_ext <<_ACEOF
9663/* end confdefs.h. */
9664
64ff59ba 9665/* Override any GCC internal prototype to avoid an error.
9666 Use char because int might match the return type of a GCC
9667 builtin and then its argument prototype would still apply. */
d9898ee8 9668#ifdef __cplusplus
9669extern "C"
9670#endif
d9898ee8 9671char dlopen ();
9672int
9673main ()
9674{
64ff59ba 9675return dlopen ();
d9898ee8 9676 ;
9677 return 0;
9678}
9679_ACEOF
9680rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9681if { (ac_try="$ac_link"
9682case "(($ac_try" in
9683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9684 *) ac_try_echo=$ac_try;;
9685esac
9686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9687 (eval "$ac_link") 2>conftest.er1
d9898ee8 9688 ac_status=$?
9689 grep -v '^ *+' conftest.er1 >conftest.err
9690 rm -f conftest.er1
9691 cat conftest.err >&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9693 (exit $ac_status); } && {
9694 test -z "$ac_c_werror_flag" ||
9695 test ! -s conftest.err
9696 } && test -s conftest$ac_exeext &&
9697 $as_test_x conftest$ac_exeext; then
d9898ee8 9698 ac_cv_lib_svld_dlopen=yes
9699else
9700 echo "$as_me: failed program was:" >&5
9701sed 's/^/| /' conftest.$ac_ext >&5
9702
64ff59ba 9703 ac_cv_lib_svld_dlopen=no
d9898ee8 9704fi
64ff59ba 9705
9706rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9707 conftest$ac_exeext conftest.$ac_ext
9708LIBS=$ac_check_lib_save_LIBS
9709fi
64ff59ba 9710{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9711echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9898ee8 9712if test $ac_cv_lib_svld_dlopen = yes; then
9713 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9714else
64ff59ba 9715 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9716echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9898ee8 9717if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9718 echo $ECHO_N "(cached) $ECHO_C" >&6
9719else
9720 ac_check_lib_save_LIBS=$LIBS
9721LIBS="-ldld $LIBS"
9722cat >conftest.$ac_ext <<_ACEOF
9723/* confdefs.h. */
9724_ACEOF
9725cat confdefs.h >>conftest.$ac_ext
9726cat >>conftest.$ac_ext <<_ACEOF
9727/* end confdefs.h. */
9728
64ff59ba 9729/* Override any GCC internal prototype to avoid an error.
9730 Use char because int might match the return type of a GCC
9731 builtin and then its argument prototype would still apply. */
d9898ee8 9732#ifdef __cplusplus
9733extern "C"
9734#endif
d9898ee8 9735char dld_link ();
9736int
9737main ()
9738{
64ff59ba 9739return dld_link ();
d9898ee8 9740 ;
9741 return 0;
9742}
9743_ACEOF
9744rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9745if { (ac_try="$ac_link"
9746case "(($ac_try" in
9747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748 *) ac_try_echo=$ac_try;;
9749esac
9750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9751 (eval "$ac_link") 2>conftest.er1
d9898ee8 9752 ac_status=$?
9753 grep -v '^ *+' conftest.er1 >conftest.err
9754 rm -f conftest.er1
9755 cat conftest.err >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9757 (exit $ac_status); } && {
9758 test -z "$ac_c_werror_flag" ||
9759 test ! -s conftest.err
9760 } && test -s conftest$ac_exeext &&
9761 $as_test_x conftest$ac_exeext; then
d9898ee8 9762 ac_cv_lib_dld_dld_link=yes
9763else
9764 echo "$as_me: failed program was:" >&5
9765sed 's/^/| /' conftest.$ac_ext >&5
9766
64ff59ba 9767 ac_cv_lib_dld_dld_link=no
d9898ee8 9768fi
64ff59ba 9769
9770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9771 conftest$ac_exeext conftest.$ac_ext
9772LIBS=$ac_check_lib_save_LIBS
9773fi
64ff59ba 9774{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9775echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9898ee8 9776if test $ac_cv_lib_dld_dld_link = yes; then
9777 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9778fi
9779
9780
9781fi
9782
9783
9784fi
9785
9786
9787fi
9788
9789
9790fi
9791
9792
9793fi
9794
9795 ;;
9796 esac
9797
9798 if test "x$lt_cv_dlopen" != xno; then
9799 enable_dlopen=yes
9800 else
9801 enable_dlopen=no
9802 fi
9803
9804 case $lt_cv_dlopen in
9805 dlopen)
9806 save_CPPFLAGS="$CPPFLAGS"
9807 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9808
9809 save_LDFLAGS="$LDFLAGS"
9810 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9811
9812 save_LIBS="$LIBS"
9813 LIBS="$lt_cv_dlopen_libs $LIBS"
9814
64ff59ba 9815 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9816echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 9817if test "${lt_cv_dlopen_self+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9819else
9820 if test "$cross_compiling" = yes; then :
9821 lt_cv_dlopen_self=cross
9822else
9823 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9824 lt_status=$lt_dlunknown
9825 cat > conftest.$ac_ext <<EOF
64ff59ba 9826#line 9826 "configure"
d9898ee8 9827#include "confdefs.h"
9828
9829#if HAVE_DLFCN_H
9830#include <dlfcn.h>
9831#endif
9832
9833#include <stdio.h>
9834
9835#ifdef RTLD_GLOBAL
9836# define LT_DLGLOBAL RTLD_GLOBAL
9837#else
9838# ifdef DL_GLOBAL
9839# define LT_DLGLOBAL DL_GLOBAL
9840# else
9841# define LT_DLGLOBAL 0
9842# endif
9843#endif
9844
9845/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9846 find out it does not work in some platform. */
9847#ifndef LT_DLLAZY_OR_NOW
9848# ifdef RTLD_LAZY
9849# define LT_DLLAZY_OR_NOW RTLD_LAZY
9850# else
9851# ifdef DL_LAZY
9852# define LT_DLLAZY_OR_NOW DL_LAZY
9853# else
9854# ifdef RTLD_NOW
9855# define LT_DLLAZY_OR_NOW RTLD_NOW
9856# else
9857# ifdef DL_NOW
9858# define LT_DLLAZY_OR_NOW DL_NOW
9859# else
9860# define LT_DLLAZY_OR_NOW 0
9861# endif
9862# endif
9863# endif
9864# endif
9865#endif
9866
9867#ifdef __cplusplus
9868extern "C" void exit (int);
9869#endif
9870
9871void fnord() { int i=42;}
9872int main ()
9873{
9874 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9875 int status = $lt_dlunknown;
9876
9877 if (self)
9878 {
9879 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9880 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9881 /* dlclose (self); */
9882 }
9883 else
9884 puts (dlerror ());
9885
9886 exit (status);
9887}
9888EOF
9889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9890 (eval $ac_link) 2>&5
9891 ac_status=$?
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9894 (./conftest; exit; ) >&5 2>/dev/null
9895 lt_status=$?
9896 case x$lt_status in
9897 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9898 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9899 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9900 esac
9901 else :
9902 # compilation failed
9903 lt_cv_dlopen_self=no
9904 fi
9905fi
9906rm -fr conftest*
9907
9908
9909fi
64ff59ba 9910{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9911echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d9898ee8 9912
9913 if test "x$lt_cv_dlopen_self" = xyes; then
9914 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
64ff59ba 9915 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9916echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 9917if test "${lt_cv_dlopen_self_static+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9919else
9920 if test "$cross_compiling" = yes; then :
9921 lt_cv_dlopen_self_static=cross
9922else
9923 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9924 lt_status=$lt_dlunknown
9925 cat > conftest.$ac_ext <<EOF
64ff59ba 9926#line 9926 "configure"
d9898ee8 9927#include "confdefs.h"
9928
9929#if HAVE_DLFCN_H
9930#include <dlfcn.h>
9931#endif
9932
9933#include <stdio.h>
9934
9935#ifdef RTLD_GLOBAL
9936# define LT_DLGLOBAL RTLD_GLOBAL
9937#else
9938# ifdef DL_GLOBAL
9939# define LT_DLGLOBAL DL_GLOBAL
9940# else
9941# define LT_DLGLOBAL 0
9942# endif
9943#endif
9944
9945/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9946 find out it does not work in some platform. */
9947#ifndef LT_DLLAZY_OR_NOW
9948# ifdef RTLD_LAZY
9949# define LT_DLLAZY_OR_NOW RTLD_LAZY
9950# else
9951# ifdef DL_LAZY
9952# define LT_DLLAZY_OR_NOW DL_LAZY
9953# else
9954# ifdef RTLD_NOW
9955# define LT_DLLAZY_OR_NOW RTLD_NOW
9956# else
9957# ifdef DL_NOW
9958# define LT_DLLAZY_OR_NOW DL_NOW
9959# else
9960# define LT_DLLAZY_OR_NOW 0
9961# endif
9962# endif
9963# endif
9964# endif
9965#endif
9966
9967#ifdef __cplusplus
9968extern "C" void exit (int);
9969#endif
9970
9971void fnord() { int i=42;}
9972int main ()
9973{
9974 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9975 int status = $lt_dlunknown;
9976
9977 if (self)
9978 {
9979 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9980 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9981 /* dlclose (self); */
9982 }
9983 else
9984 puts (dlerror ());
9985
9986 exit (status);
9987}
9988EOF
9989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9990 (eval $ac_link) 2>&5
9991 ac_status=$?
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9994 (./conftest; exit; ) >&5 2>/dev/null
9995 lt_status=$?
9996 case x$lt_status in
9997 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9998 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9999 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10000 esac
10001 else :
10002 # compilation failed
10003 lt_cv_dlopen_self_static=no
10004 fi
10005fi
10006rm -fr conftest*
10007
10008
10009fi
64ff59ba 10010{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10011echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d9898ee8 10012 fi
10013
10014 CPPFLAGS="$save_CPPFLAGS"
10015 LDFLAGS="$save_LDFLAGS"
10016 LIBS="$save_LIBS"
10017 ;;
10018 esac
10019
10020 case $lt_cv_dlopen_self in
10021 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10022 *) enable_dlopen_self=unknown ;;
10023 esac
10024
10025 case $lt_cv_dlopen_self_static in
10026 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10027 *) enable_dlopen_self_static=unknown ;;
10028 esac
10029fi
10030
10031
10032# Report which library types will actually be built
64ff59ba 10033{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10034echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10035{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10036echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 10037
64ff59ba 10038{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10039echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 10040test "$can_build_shared" = "no" && enable_shared=no
10041
10042# On AIX, shared libraries and static libraries use the same namespace, and
10043# are all built from PIC.
10044case $host_os in
10045aix3*)
10046 test "$enable_shared" = yes && enable_static=no
10047 if test -n "$RANLIB"; then
10048 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10049 postinstall_cmds='$RANLIB $lib'
10050 fi
10051 ;;
10052
10053aix4* | aix5*)
10054 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10055 test "$enable_shared" = yes && enable_static=no
10056 fi
10057 ;;
10058esac
64ff59ba 10059{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10060echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 10061
64ff59ba 10062{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10063echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 10064# Make sure either enable_shared or enable_static is yes.
10065test "$enable_shared" = yes || enable_static=yes
64ff59ba 10066{ echo "$as_me:$LINENO: result: $enable_static" >&5
10067echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 10068
10069# The else clause should only fire when bootstrapping the
10070# libtool distribution, otherwise you forgot to ship ltmain.sh
10071# with your package, and you will get complaints that there are
10072# no rules to generate ltmain.sh.
10073if test -f "$ltmain"; then
10074 # See if we are running on zsh, and set the options which allow our commands through
10075 # without removal of \ escapes.
10076 if test -n "${ZSH_VERSION+set}" ; then
10077 setopt NO_GLOB_SUBST
10078 fi
10079 # Now quote all the things that may contain metacharacters while being
10080 # careful not to overquote the AC_SUBSTed values. We take copies of the
10081 # variables and quote the copies for generation of the libtool script.
10082 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10083 SED SHELL STRIP \
10084 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10085 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10086 deplibs_check_method reload_flag reload_cmds need_locks \
10087 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10088 lt_cv_sys_global_symbol_to_c_name_address \
10089 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10090 old_postinstall_cmds old_postuninstall_cmds \
10091 compiler \
10092 CC \
10093 LD \
10094 lt_prog_compiler_wl \
10095 lt_prog_compiler_pic \
10096 lt_prog_compiler_static \
10097 lt_prog_compiler_no_builtin_flag \
10098 export_dynamic_flag_spec \
10099 thread_safe_flag_spec \
10100 whole_archive_flag_spec \
10101 enable_shared_with_static_runtimes \
10102 old_archive_cmds \
10103 old_archive_from_new_cmds \
10104 predep_objects \
10105 postdep_objects \
10106 predeps \
10107 postdeps \
10108 compiler_lib_search_path \
10109 archive_cmds \
10110 archive_expsym_cmds \
10111 postinstall_cmds \
10112 postuninstall_cmds \
10113 old_archive_from_expsyms_cmds \
10114 allow_undefined_flag \
10115 no_undefined_flag \
10116 export_symbols_cmds \
10117 hardcode_libdir_flag_spec \
10118 hardcode_libdir_flag_spec_ld \
10119 hardcode_libdir_separator \
10120 hardcode_automatic \
10121 module_cmds \
10122 module_expsym_cmds \
10123 lt_cv_prog_compiler_c_o \
10124 exclude_expsyms \
10125 include_expsyms; do
10126
10127 case $var in
10128 old_archive_cmds | \
10129 old_archive_from_new_cmds | \
10130 archive_cmds | \
10131 archive_expsym_cmds | \
10132 module_cmds | \
10133 module_expsym_cmds | \
10134 old_archive_from_expsyms_cmds | \
10135 export_symbols_cmds | \
10136 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10137 postinstall_cmds | postuninstall_cmds | \
10138 old_postinstall_cmds | old_postuninstall_cmds | \
10139 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10140 # Double-quote double-evaled strings.
10141 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10142 ;;
10143 *)
10144 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10145 ;;
10146 esac
10147 done
10148
10149 case $lt_echo in
10150 *'\$0 --fallback-echo"')
10151 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10152 ;;
10153 esac
10154
10155cfgfile="${ofile}T"
10156 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10157 $rm -f "$cfgfile"
10158 { echo "$as_me:$LINENO: creating $ofile" >&5
10159echo "$as_me: creating $ofile" >&6;}
10160
10161 cat <<__EOF__ >> "$cfgfile"
10162#! $SHELL
10163
10164# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10165# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10166# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10167#
10168# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10169# Free Software Foundation, Inc.
10170#
10171# This file is part of GNU Libtool:
10172# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10173#
10174# This program is free software; you can redistribute it and/or modify
10175# it under the terms of the GNU General Public License as published by
10176# the Free Software Foundation; either version 2 of the License, or
10177# (at your option) any later version.
10178#
10179# This program is distributed in the hope that it will be useful, but
10180# WITHOUT ANY WARRANTY; without even the implied warranty of
10181# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10182# General Public License for more details.
10183#
10184# You should have received a copy of the GNU General Public License
10185# along with this program; if not, write to the Free Software
10186# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10187#
10188# As a special exception to the GNU General Public License, if you
10189# distribute this file as part of a program that contains a
10190# configuration script generated by Autoconf, you may include it under
10191# the same distribution terms that you use for the rest of that program.
10192
10193# A sed program that does not truncate output.
10194SED=$lt_SED
10195
10196# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10197Xsed="$SED -e 1s/^X//"
10198
10199# The HP-UX ksh and POSIX shell print the target directory to stdout
10200# if CDPATH is set.
10201(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10202
10203# The names of the tagged configurations supported by this script.
10204available_tags=
10205
10206# ### BEGIN LIBTOOL CONFIG
10207
10208# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10209
10210# Shell to use when invoking shell scripts.
10211SHELL=$lt_SHELL
10212
10213# Whether or not to build shared libraries.
10214build_libtool_libs=$enable_shared
10215
10216# Whether or not to build static libraries.
10217build_old_libs=$enable_static
10218
10219# Whether or not to add -lc for building shared libraries.
10220build_libtool_need_lc=$archive_cmds_need_lc
10221
10222# Whether or not to disallow shared libs when runtime libs are static
10223allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10224
10225# Whether or not to optimize for fast installation.
10226fast_install=$enable_fast_install
10227
10228# The host system.
10229host_alias=$host_alias
10230host=$host
10231host_os=$host_os
10232
10233# The build system.
10234build_alias=$build_alias
10235build=$build
10236build_os=$build_os
10237
10238# An echo program that does not interpret backslashes.
10239echo=$lt_echo
10240
10241# The archiver.
10242AR=$lt_AR
10243AR_FLAGS=$lt_AR_FLAGS
10244
10245# A C compiler.
10246LTCC=$lt_LTCC
10247
10248# LTCC compiler flags.
10249LTCFLAGS=$lt_LTCFLAGS
10250
10251# A language-specific compiler.
10252CC=$lt_compiler
10253
10254# Is the compiler the GNU C compiler?
10255with_gcc=$GCC
10256
d9898ee8 10257# An ERE matcher.
10258EGREP=$lt_EGREP
10259
10260# The linker used to build libraries.
10261LD=$lt_LD
10262
10263# Whether we need hard or soft links.
10264LN_S=$lt_LN_S
10265
10266# A BSD-compatible nm program.
10267NM=$lt_NM
10268
10269# A symbol stripping program
10270STRIP=$lt_STRIP
10271
10272# Used to examine libraries when file_magic_cmd begins "file"
10273MAGIC_CMD=$MAGIC_CMD
10274
10275# Used on cygwin: DLL creation program.
10276DLLTOOL="$DLLTOOL"
10277
10278# Used on cygwin: object dumper.
10279OBJDUMP="$OBJDUMP"
10280
10281# Used on cygwin: assembler.
10282AS="$AS"
10283
10284# The name of the directory that contains temporary libtool files.
10285objdir=$objdir
10286
10287# How to create reloadable object files.
10288reload_flag=$lt_reload_flag
10289reload_cmds=$lt_reload_cmds
10290
10291# How to pass a linker flag through the compiler.
10292wl=$lt_lt_prog_compiler_wl
10293
10294# Object file suffix (normally "o").
10295objext="$ac_objext"
10296
10297# Old archive suffix (normally "a").
10298libext="$libext"
10299
10300# Shared library suffix (normally ".so").
10301shrext_cmds='$shrext_cmds'
10302
10303# Executable file suffix (normally "").
10304exeext="$exeext"
10305
10306# Additional compiler flags for building library objects.
10307pic_flag=$lt_lt_prog_compiler_pic
10308pic_mode=$pic_mode
10309
10310# What is the maximum length of a command?
10311max_cmd_len=$lt_cv_sys_max_cmd_len
10312
10313# Does compiler simultaneously support -c and -o options?
10314compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10315
10316# Must we lock files when doing compilation?
10317need_locks=$lt_need_locks
10318
10319# Do we need the lib prefix for modules?
10320need_lib_prefix=$need_lib_prefix
10321
10322# Do we need a version for libraries?
10323need_version=$need_version
10324
10325# Whether dlopen is supported.
10326dlopen_support=$enable_dlopen
10327
10328# Whether dlopen of programs is supported.
10329dlopen_self=$enable_dlopen_self
10330
10331# Whether dlopen of statically linked programs is supported.
10332dlopen_self_static=$enable_dlopen_self_static
10333
10334# Compiler flag to prevent dynamic linking.
10335link_static_flag=$lt_lt_prog_compiler_static
10336
10337# Compiler flag to turn off builtin functions.
10338no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10339
10340# Compiler flag to allow reflexive dlopens.
10341export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10342
10343# Compiler flag to generate shared objects directly from archives.
10344whole_archive_flag_spec=$lt_whole_archive_flag_spec
10345
10346# Compiler flag to generate thread-safe objects.
10347thread_safe_flag_spec=$lt_thread_safe_flag_spec
10348
10349# Library versioning type.
10350version_type=$version_type
10351
10352# Format of library name prefix.
10353libname_spec=$lt_libname_spec
10354
10355# List of archive names. First name is the real one, the rest are links.
10356# The last name is the one that the linker finds with -lNAME.
10357library_names_spec=$lt_library_names_spec
10358
10359# The coded name of the library, if different from the real name.
10360soname_spec=$lt_soname_spec
10361
10362# Commands used to build and install an old-style archive.
10363RANLIB=$lt_RANLIB
10364old_archive_cmds=$lt_old_archive_cmds
10365old_postinstall_cmds=$lt_old_postinstall_cmds
10366old_postuninstall_cmds=$lt_old_postuninstall_cmds
10367
10368# Create an old-style archive from a shared archive.
10369old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10370
10371# Create a temporary old-style archive to link instead of a shared archive.
10372old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10373
10374# Commands used to build and install a shared archive.
10375archive_cmds=$lt_archive_cmds
10376archive_expsym_cmds=$lt_archive_expsym_cmds
10377postinstall_cmds=$lt_postinstall_cmds
10378postuninstall_cmds=$lt_postuninstall_cmds
10379
10380# Commands used to build a loadable module (assumed same as above if empty)
10381module_cmds=$lt_module_cmds
10382module_expsym_cmds=$lt_module_expsym_cmds
10383
10384# Commands to strip libraries.
10385old_striplib=$lt_old_striplib
10386striplib=$lt_striplib
10387
10388# Dependencies to place before the objects being linked to create a
10389# shared library.
64ff59ba 10390predep_objects=$lt_predep_objects
d9898ee8 10391
10392# Dependencies to place after the objects being linked to create a
10393# shared library.
64ff59ba 10394postdep_objects=$lt_postdep_objects
d9898ee8 10395
10396# Dependencies to place before the objects being linked to create a
10397# shared library.
10398predeps=$lt_predeps
10399
10400# Dependencies to place after the objects being linked to create a
10401# shared library.
10402postdeps=$lt_postdeps
10403
10404# The library search path used internally by the compiler when linking
10405# a shared library.
64ff59ba 10406compiler_lib_search_path=$lt_compiler_lib_search_path
d9898ee8 10407
10408# Method to check whether dependent libraries are shared objects.
10409deplibs_check_method=$lt_deplibs_check_method
10410
10411# Command to use when deplibs_check_method == file_magic.
10412file_magic_cmd=$lt_file_magic_cmd
10413
10414# Flag that allows shared libraries with undefined symbols to be built.
10415allow_undefined_flag=$lt_allow_undefined_flag
10416
10417# Flag that forces no undefined symbols.
10418no_undefined_flag=$lt_no_undefined_flag
10419
10420# Commands used to finish a libtool library installation in a directory.
10421finish_cmds=$lt_finish_cmds
10422
10423# Same as above, but a single script fragment to be evaled but not shown.
10424finish_eval=$lt_finish_eval
10425
10426# Take the output of nm and produce a listing of raw symbols and C names.
10427global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10428
10429# Transform the output of nm in a proper C declaration
10430global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10431
10432# Transform the output of nm in a C name address pair
10433global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10434
10435# This is the shared library runtime path variable.
10436runpath_var=$runpath_var
10437
10438# This is the shared library path variable.
10439shlibpath_var=$shlibpath_var
10440
10441# Is shlibpath searched before the hard-coded library search path?
10442shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10443
10444# How to hardcode a shared library path into an executable.
10445hardcode_action=$hardcode_action
10446
10447# Whether we should hardcode library paths into libraries.
10448hardcode_into_libs=$hardcode_into_libs
10449
10450# Flag to hardcode \$libdir into a binary during linking.
10451# This must work even if \$libdir does not exist.
10452hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10453
10454# If ld is used when linking, flag to hardcode \$libdir into
10455# a binary during linking. This must work even if \$libdir does
10456# not exist.
10457hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10458
10459# Whether we need a single -rpath flag with a separated argument.
10460hardcode_libdir_separator=$lt_hardcode_libdir_separator
10461
10462# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10463# resulting binary.
10464hardcode_direct=$hardcode_direct
10465
10466# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10467# resulting binary.
10468hardcode_minus_L=$hardcode_minus_L
10469
10470# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10471# the resulting binary.
10472hardcode_shlibpath_var=$hardcode_shlibpath_var
10473
10474# Set to yes if building a shared library automatically hardcodes DIR into the library
10475# and all subsequent libraries and executables linked against it.
10476hardcode_automatic=$hardcode_automatic
10477
10478# Variables whose values should be saved in libtool wrapper scripts and
10479# restored at relink time.
10480variables_saved_for_relink="$variables_saved_for_relink"
10481
10482# Whether libtool must link a program against all its dependency libraries.
10483link_all_deplibs=$link_all_deplibs
10484
10485# Compile-time system search path for libraries
64ff59ba 10486sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 10487
10488# Run-time system search path for libraries
10489sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10490
10491# Fix the shell variable \$srcfile for the compiler.
10492fix_srcfile_path="$fix_srcfile_path"
10493
10494# Set to yes if exported symbols are required.
10495always_export_symbols=$always_export_symbols
10496
10497# The commands to list exported symbols.
10498export_symbols_cmds=$lt_export_symbols_cmds
10499
10500# The commands to extract the exported symbol list from a shared archive.
10501extract_expsyms_cmds=$lt_extract_expsyms_cmds
10502
10503# Symbols that should not be listed in the preloaded symbols.
10504exclude_expsyms=$lt_exclude_expsyms
10505
10506# Symbols that must always be exported.
10507include_expsyms=$lt_include_expsyms
10508
10509# ### END LIBTOOL CONFIG
10510
10511__EOF__
10512
10513
10514 case $host_os in
10515 aix3*)
10516 cat <<\EOF >> "$cfgfile"
10517
10518# AIX sometimes has problems with the GCC collect2 program. For some
10519# reason, if we set the COLLECT_NAMES environment variable, the problems
10520# vanish in a puff of smoke.
10521if test "X${COLLECT_NAMES+set}" != Xset; then
10522 COLLECT_NAMES=
10523 export COLLECT_NAMES
10524fi
10525EOF
10526 ;;
10527 esac
10528
10529 # We use sed instead of cat because bash on DJGPP gets confused if
10530 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10531 # text mode, it properly converts lines to CR/LF. This bash problem
10532 # is reportedly fixed, but why not run on old versions too?
10533 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10534
10535 mv -f "$cfgfile" "$ofile" || \
10536 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10537 chmod +x "$ofile"
10538
10539else
10540 # If there is no Makefile yet, we rely on a make rule to execute
10541 # `config.status --recheck' to rerun these tests and create the
10542 # libtool script then.
10543 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10544 if test -f "$ltmain_in"; then
10545 test -f Makefile && make "$ltmain"
10546 fi
10547fi
10548
10549
10550ac_ext=c
10551ac_cpp='$CPP $CPPFLAGS'
10552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10554ac_compiler_gnu=$ac_cv_c_compiler_gnu
10555
10556CC="$lt_save_CC"
10557
10558
64ff59ba 10559# Check whether --with-tags was given.
d9898ee8 10560if test "${with_tags+set}" = set; then
64ff59ba 10561 withval=$with_tags; tagnames="$withval"
10562fi
10563
d9898ee8 10564
10565if test -f "$ltmain" && test -n "$tagnames"; then
10566 if test ! -f "${ofile}"; then
10567 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10568echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10569 fi
10570
10571 if test -z "$LTCC"; then
10572 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10573 if test -z "$LTCC"; then
10574 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10575echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10576 else
10577 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10578echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10579 fi
10580 fi
10581 if test -z "$LTCFLAGS"; then
10582 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10583 fi
10584
10585 # Extract list of available tagged configurations in $ofile.
10586 # Note that this assumes the entire list is on one line.
10587 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10588
10589 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10590 for tagname in $tagnames; do
10591 IFS="$lt_save_ifs"
10592 # Check whether tagname contains only valid characters
10593 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10594 "") ;;
10595 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10596echo "$as_me: error: invalid tag name: $tagname" >&2;}
10597 { (exit 1); exit 1; }; }
10598 ;;
10599 esac
10600
10601 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10602 then
10603 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10604echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10605 { (exit 1); exit 1; }; }
10606 fi
10607
10608 # Update the list of available tags.
10609 if test -n "$tagname"; then
10610 echo appending configuration tag \"$tagname\" to $ofile
10611
10612 case $tagname in
10613 CXX)
10614 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10615 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10616 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 10617 ac_ext=cpp
d9898ee8 10618ac_cpp='$CXXCPP $CPPFLAGS'
10619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10622
10623
10624
10625
10626archive_cmds_need_lc_CXX=no
10627allow_undefined_flag_CXX=
10628always_export_symbols_CXX=no
10629archive_expsym_cmds_CXX=
10630export_dynamic_flag_spec_CXX=
10631hardcode_direct_CXX=no
10632hardcode_libdir_flag_spec_CXX=
10633hardcode_libdir_flag_spec_ld_CXX=
10634hardcode_libdir_separator_CXX=
10635hardcode_minus_L_CXX=no
10636hardcode_shlibpath_var_CXX=unsupported
10637hardcode_automatic_CXX=no
10638module_cmds_CXX=
10639module_expsym_cmds_CXX=
10640link_all_deplibs_CXX=unknown
10641old_archive_cmds_CXX=$old_archive_cmds
10642no_undefined_flag_CXX=
10643whole_archive_flag_spec_CXX=
10644enable_shared_with_static_runtimes_CXX=no
10645
10646# Dependencies to place before and after the object being linked:
10647predep_objects_CXX=
10648postdep_objects_CXX=
10649predeps_CXX=
10650postdeps_CXX=
10651compiler_lib_search_path_CXX=
10652
10653# Source file extension for C++ test sources.
10654ac_ext=cpp
10655
10656# Object file extension for compiled C++ test sources.
10657objext=o
10658objext_CXX=$objext
10659
10660# Code to be used in simple compile tests
10661lt_simple_compile_test_code="int some_variable = 0;\n"
10662
10663# Code to be used in simple link tests
10664lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10665
10666# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10667
10668# If no C compiler was specified, use CC.
10669LTCC=${LTCC-"$CC"}
10670
10671# If no C compiler flags were specified, use CFLAGS.
10672LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10673
10674# Allow CC to be a program name with arguments.
10675compiler=$CC
10676
10677
10678# save warnings/boilerplate of simple test code
10679ac_outfile=conftest.$ac_objext
10680printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10681eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10682_lt_compiler_boilerplate=`cat conftest.err`
10683$rm conftest*
10684
10685ac_outfile=conftest.$ac_objext
10686printf "$lt_simple_link_test_code" >conftest.$ac_ext
10687eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10688_lt_linker_boilerplate=`cat conftest.err`
10689$rm conftest*
10690
10691
10692# Allow CC to be a program name with arguments.
10693lt_save_CC=$CC
10694lt_save_LD=$LD
10695lt_save_GCC=$GCC
10696GCC=$GXX
10697lt_save_with_gnu_ld=$with_gnu_ld
10698lt_save_path_LD=$lt_cv_path_LD
10699if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10700 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10701else
10702 $as_unset lt_cv_prog_gnu_ld
10703fi
10704if test -n "${lt_cv_path_LDCXX+set}"; then
10705 lt_cv_path_LD=$lt_cv_path_LDCXX
10706else
10707 $as_unset lt_cv_path_LD
10708fi
10709test -z "${LDCXX+set}" || LD=$LDCXX
10710CC=${CXX-"c++"}
10711compiler=$CC
10712compiler_CXX=$CC
10713for cc_temp in $compiler""; do
10714 case $cc_temp in
10715 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10716 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10717 \-*) ;;
10718 *) break;;
10719 esac
10720done
10721cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10722
10723
10724# We don't want -fno-exception wen compiling C++ code, so set the
10725# no_builtin_flag separately
10726if test "$GXX" = yes; then
10727 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10728else
10729 lt_prog_compiler_no_builtin_flag_CXX=
10730fi
10731
10732if test "$GXX" = yes; then
10733 # Set up default GNU C++ configuration
10734
10735
64ff59ba 10736# Check whether --with-gnu-ld was given.
d9898ee8 10737if test "${with_gnu_ld+set}" = set; then
64ff59ba 10738 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 10739else
10740 with_gnu_ld=no
64ff59ba 10741fi
10742
d9898ee8 10743ac_prog=ld
10744if test "$GCC" = yes; then
10745 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 10746 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10747echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 10748 case $host in
10749 *-*-mingw*)
10750 # gcc leaves a trailing carriage return which upsets mingw
10751 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10752 *)
10753 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10754 esac
10755 case $ac_prog in
10756 # Accept absolute paths.
10757 [\\/]* | ?:[\\/]*)
10758 re_direlt='/[^/][^/]*/\.\./'
10759 # Canonicalize the pathname of ld
10760 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10761 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10762 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10763 done
10764 test -z "$LD" && LD="$ac_prog"
10765 ;;
10766 "")
10767 # If it fails, then pretend we aren't using GCC.
10768 ac_prog=ld
10769 ;;
10770 *)
10771 # If it is relative, then search for the first ld in PATH.
10772 with_gnu_ld=unknown
10773 ;;
10774 esac
10775elif test "$with_gnu_ld" = yes; then
64ff59ba 10776 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10777echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 10778else
64ff59ba 10779 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10780echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 10781fi
10782if test "${lt_cv_path_LD+set}" = set; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
10784else
10785 if test -z "$LD"; then
10786 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10787 for ac_dir in $PATH; do
10788 IFS="$lt_save_ifs"
10789 test -z "$ac_dir" && ac_dir=.
10790 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10791 lt_cv_path_LD="$ac_dir/$ac_prog"
10792 # Check to see if the program is GNU ld. I'd rather use --version,
10793 # but apparently some variants of GNU ld only accept -v.
10794 # Break only if it was the GNU/non-GNU ld that we prefer.
10795 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10796 *GNU* | *'with BFD'*)
10797 test "$with_gnu_ld" != no && break
10798 ;;
10799 *)
10800 test "$with_gnu_ld" != yes && break
10801 ;;
10802 esac
10803 fi
10804 done
10805 IFS="$lt_save_ifs"
10806else
10807 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10808fi
10809fi
10810
10811LD="$lt_cv_path_LD"
10812if test -n "$LD"; then
64ff59ba 10813 { echo "$as_me:$LINENO: result: $LD" >&5
10814echo "${ECHO_T}$LD" >&6; }
d9898ee8 10815else
64ff59ba 10816 { echo "$as_me:$LINENO: result: no" >&5
10817echo "${ECHO_T}no" >&6; }
d9898ee8 10818fi
10819test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10820echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10821 { (exit 1); exit 1; }; }
64ff59ba 10822{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10823echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 10824if test "${lt_cv_prog_gnu_ld+set}" = set; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
10826else
10827 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10828case `$LD -v 2>&1 </dev/null` in
10829*GNU* | *'with BFD'*)
10830 lt_cv_prog_gnu_ld=yes
10831 ;;
10832*)
10833 lt_cv_prog_gnu_ld=no
10834 ;;
10835esac
10836fi
64ff59ba 10837{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10838echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 10839with_gnu_ld=$lt_cv_prog_gnu_ld
10840
10841
10842
10843 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10844 # archiving commands below assume that GNU ld is being used.
10845 if test "$with_gnu_ld" = yes; then
10846 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10847 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10848
10849 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10850 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10851
10852 # If archive_cmds runs LD, not CC, wlarc should be empty
10853 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10854 # investigate it a little bit more. (MM)
10855 wlarc='${wl}'
10856
10857 # ancient GNU ld didn't support --whole-archive et. al.
10858 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10859 grep 'no-whole-archive' > /dev/null; then
10860 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10861 else
10862 whole_archive_flag_spec_CXX=
10863 fi
10864 else
10865 with_gnu_ld=no
10866 wlarc=
10867
10868 # A generic and very simple default shared library creation
10869 # command for GNU C++ for the case where it uses the native
10870 # linker, instead of GNU ld. If possible, this setting should
10871 # overridden to take advantage of the native linker features on
10872 # the platform it is being used on.
10873 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10874 fi
10875
10876 # Commands to make compiler produce verbose output that lists
10877 # what "hidden" libraries, object files and flags are used when
10878 # linking a shared library.
10879 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10880
10881else
10882 GXX=no
10883 with_gnu_ld=no
10884 wlarc=
10885fi
10886
10887# PORTME: fill in a description of your system's C++ link characteristics
64ff59ba 10888{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10889echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 10890ld_shlibs_CXX=yes
10891case $host_os in
10892 aix3*)
10893 # FIXME: insert proper C++ library support
10894 ld_shlibs_CXX=no
10895 ;;
10896 aix4* | aix5*)
10897 if test "$host_cpu" = ia64; then
10898 # On IA64, the linker does run time linking by default, so we don't
10899 # have to do anything special.
10900 aix_use_runtimelinking=no
10901 exp_sym_flag='-Bexport'
10902 no_entry_flag=""
10903 else
10904 aix_use_runtimelinking=no
10905
10906 # Test if we are trying to use run time linking or normal
10907 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10908 # need to do runtime linking.
10909 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10910 for ld_flag in $LDFLAGS; do
10911 case $ld_flag in
10912 *-brtl*)
10913 aix_use_runtimelinking=yes
10914 break
10915 ;;
10916 esac
10917 done
10918 ;;
10919 esac
10920
10921 exp_sym_flag='-bexport'
10922 no_entry_flag='-bnoentry'
10923 fi
10924
10925 # When large executables or shared objects are built, AIX ld can
10926 # have problems creating the table of contents. If linking a library
10927 # or program results in "error TOC overflow" add -mminimal-toc to
10928 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10929 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10930
10931 archive_cmds_CXX=''
10932 hardcode_direct_CXX=yes
10933 hardcode_libdir_separator_CXX=':'
10934 link_all_deplibs_CXX=yes
10935
10936 if test "$GXX" = yes; then
10937 case $host_os in aix4.[012]|aix4.[012].*)
10938 # We only want to do this on AIX 4.2 and lower, the check
10939 # below for broken collect2 doesn't work under 4.3+
10940 collect2name=`${CC} -print-prog-name=collect2`
10941 if test -f "$collect2name" && \
10942 strings "$collect2name" | grep resolve_lib_name >/dev/null
10943 then
10944 # We have reworked collect2
10945 hardcode_direct_CXX=yes
10946 else
10947 # We have old collect2
10948 hardcode_direct_CXX=unsupported
10949 # It fails to find uninstalled libraries when the uninstalled
10950 # path is not listed in the libpath. Setting hardcode_minus_L
10951 # to unsupported forces relinking
10952 hardcode_minus_L_CXX=yes
10953 hardcode_libdir_flag_spec_CXX='-L$libdir'
10954 hardcode_libdir_separator_CXX=
10955 fi
10956 ;;
10957 esac
10958 shared_flag='-shared'
10959 if test "$aix_use_runtimelinking" = yes; then
10960 shared_flag="$shared_flag "'${wl}-G'
10961 fi
10962 else
10963 # not using gcc
10964 if test "$host_cpu" = ia64; then
10965 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10966 # chokes on -Wl,-G. The following line is correct:
10967 shared_flag='-G'
10968 else
10969 if test "$aix_use_runtimelinking" = yes; then
10970 shared_flag='${wl}-G'
10971 else
10972 shared_flag='${wl}-bM:SRE'
10973 fi
10974 fi
10975 fi
10976
10977 # It seems that -bexpall does not export symbols beginning with
10978 # underscore (_), so it is better to generate a list of symbols to export.
10979 always_export_symbols_CXX=yes
10980 if test "$aix_use_runtimelinking" = yes; then
10981 # Warning - without using the other runtime loading flags (-brtl),
10982 # -berok will link without error, but may produce a broken library.
10983 allow_undefined_flag_CXX='-berok'
10984 # Determine the default libpath from the value encoded in an empty executable.
10985 cat >conftest.$ac_ext <<_ACEOF
10986/* confdefs.h. */
10987_ACEOF
10988cat confdefs.h >>conftest.$ac_ext
10989cat >>conftest.$ac_ext <<_ACEOF
10990/* end confdefs.h. */
10991
10992int
10993main ()
10994{
10995
10996 ;
10997 return 0;
10998}
10999_ACEOF
11000rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 11001if { (ac_try="$ac_link"
11002case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11005esac
11006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007 (eval "$ac_link") 2>conftest.er1
d9898ee8 11008 ac_status=$?
11009 grep -v '^ *+' conftest.er1 >conftest.err
11010 rm -f conftest.er1
11011 cat conftest.err >&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 11013 (exit $ac_status); } && {
11014 test -z "$ac_cxx_werror_flag" ||
11015 test ! -s conftest.err
11016 } && test -s conftest$ac_exeext &&
11017 $as_test_x conftest$ac_exeext; then
d9898ee8 11018
11019aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11020}'`
11021# Check for a 64-bit object if we didn't find anything.
11022if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11023}'`; fi
11024else
11025 echo "$as_me: failed program was:" >&5
11026sed 's/^/| /' conftest.$ac_ext >&5
11027
64ff59ba 11028
d9898ee8 11029fi
64ff59ba 11030
11031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11032 conftest$ac_exeext conftest.$ac_ext
11033if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11034
11035 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11036
11037 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11038 else
11039 if test "$host_cpu" = ia64; then
11040 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11041 allow_undefined_flag_CXX="-z nodefs"
11042 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11043 else
11044 # Determine the default libpath from the value encoded in an empty executable.
11045 cat >conftest.$ac_ext <<_ACEOF
11046/* confdefs.h. */
11047_ACEOF
11048cat confdefs.h >>conftest.$ac_ext
11049cat >>conftest.$ac_ext <<_ACEOF
11050/* end confdefs.h. */
11051
11052int
11053main ()
11054{
11055
11056 ;
11057 return 0;
11058}
11059_ACEOF
11060rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 11061if { (ac_try="$ac_link"
11062case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065esac
11066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_link") 2>conftest.er1
d9898ee8 11068 ac_status=$?
11069 grep -v '^ *+' conftest.er1 >conftest.err
11070 rm -f conftest.er1
11071 cat conftest.err >&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 11073 (exit $ac_status); } && {
11074 test -z "$ac_cxx_werror_flag" ||
11075 test ! -s conftest.err
11076 } && test -s conftest$ac_exeext &&
11077 $as_test_x conftest$ac_exeext; then
d9898ee8 11078
11079aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11080}'`
11081# Check for a 64-bit object if we didn't find anything.
11082if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11083}'`; fi
11084else
11085 echo "$as_me: failed program was:" >&5
11086sed 's/^/| /' conftest.$ac_ext >&5
11087
64ff59ba 11088
d9898ee8 11089fi
64ff59ba 11090
11091rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11092 conftest$ac_exeext conftest.$ac_ext
11093if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11094
11095 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11096 # Warning - without using the other run time loading flags,
11097 # -berok will link without error, but may produce a broken library.
11098 no_undefined_flag_CXX=' ${wl}-bernotok'
11099 allow_undefined_flag_CXX=' ${wl}-berok'
11100 # Exported symbols can be pulled into shared objects from archives
11101 whole_archive_flag_spec_CXX='$convenience'
11102 archive_cmds_need_lc_CXX=yes
11103 # This is similar to how AIX traditionally builds its shared libraries.
11104 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11105 fi
11106 fi
11107 ;;
11108
11109 beos*)
11110 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11111 allow_undefined_flag_CXX=unsupported
11112 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11113 # support --undefined. This deserves some investigation. FIXME
11114 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11115 else
11116 ld_shlibs_CXX=no
11117 fi
11118 ;;
11119
11120 chorus*)
11121 case $cc_basename in
11122 *)
11123 # FIXME: insert proper C++ library support
11124 ld_shlibs_CXX=no
11125 ;;
11126 esac
11127 ;;
11128
11129 cygwin* | mingw* | pw32*)
11130 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11131 # as there is no search path for DLLs.
11132 hardcode_libdir_flag_spec_CXX='-L$libdir'
11133 allow_undefined_flag_CXX=unsupported
11134 always_export_symbols_CXX=no
11135 enable_shared_with_static_runtimes_CXX=yes
11136
11137 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11138 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11139 # If the export-symbols file already is a .def file (1st line
11140 # is EXPORTS), use it as is; otherwise, prepend...
11141 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11142 cp $export_symbols $output_objdir/$soname.def;
11143 else
11144 echo EXPORTS > $output_objdir/$soname.def;
11145 cat $export_symbols >> $output_objdir/$soname.def;
11146 fi~
11147 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11148 else
11149 ld_shlibs_CXX=no
11150 fi
11151 ;;
11152 darwin* | rhapsody*)
11153 case $host_os in
11154 rhapsody* | darwin1.[012])
11155 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11156 ;;
11157 *) # Darwin 1.3 on
11158 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11159 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11160 else
11161 case ${MACOSX_DEPLOYMENT_TARGET} in
11162 10.[012])
11163 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11164 ;;
11165 10.*)
11166 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11167 ;;
11168 esac
11169 fi
11170 ;;
11171 esac
11172 archive_cmds_need_lc_CXX=no
11173 hardcode_direct_CXX=no
11174 hardcode_automatic_CXX=yes
11175 hardcode_shlibpath_var_CXX=unsupported
11176 whole_archive_flag_spec_CXX=''
11177 link_all_deplibs_CXX=yes
11178
11179 if test "$GXX" = yes ; then
11180 lt_int_apple_cc_single_mod=no
11181 output_verbose_link_cmd='echo'
11182 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11183 lt_int_apple_cc_single_mod=yes
11184 fi
11185 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11186 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11187 else
11188 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11189 fi
11190 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11191 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11192 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11193 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11194 else
11195 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11196 fi
11197 module_expsym_cmds_CXX='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}'
11198 else
11199 case $cc_basename in
11200 xlc*)
11201 output_verbose_link_cmd='echo'
11202 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11203 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11204 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11205 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11206 module_expsym_cmds_CXX='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}'
11207 ;;
11208 *)
11209 ld_shlibs_CXX=no
11210 ;;
11211 esac
11212 fi
11213 ;;
11214
11215 dgux*)
11216 case $cc_basename in
11217 ec++*)
11218 # FIXME: insert proper C++ library support
11219 ld_shlibs_CXX=no
11220 ;;
11221 ghcx*)
11222 # Green Hills C++ Compiler
11223 # FIXME: insert proper C++ library support
11224 ld_shlibs_CXX=no
11225 ;;
11226 *)
11227 # FIXME: insert proper C++ library support
11228 ld_shlibs_CXX=no
11229 ;;
11230 esac
11231 ;;
11232 freebsd[12]*)
11233 # C++ shared libraries reported to be fairly broken before switch to ELF
11234 ld_shlibs_CXX=no
11235 ;;
11236 freebsd-elf*)
11237 archive_cmds_need_lc_CXX=no
11238 ;;
11239 freebsd* | kfreebsd*-gnu | dragonfly*)
11240 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11241 # conventions
11242 ld_shlibs_CXX=yes
11243 ;;
11244 gnu*)
11245 ;;
11246 hpux9*)
11247 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11248 hardcode_libdir_separator_CXX=:
11249 export_dynamic_flag_spec_CXX='${wl}-E'
11250 hardcode_direct_CXX=yes
11251 hardcode_minus_L_CXX=yes # Not in the search PATH,
11252 # but as the default
11253 # location of the library.
11254
11255 case $cc_basename in
11256 CC*)
11257 # FIXME: insert proper C++ library support
11258 ld_shlibs_CXX=no
11259 ;;
11260 aCC*)
11261 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11262 # Commands to make compiler produce verbose output that lists
11263 # what "hidden" libraries, object files and flags are used when
11264 # linking a shared library.
11265 #
11266 # There doesn't appear to be a way to prevent this compiler from
11267 # explicitly linking system object files so we need to strip them
11268 # from the output so that they don't get included in the library
11269 # dependencies.
11270 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11271 ;;
11272 *)
11273 if test "$GXX" = yes; then
11274 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11275 else
11276 # FIXME: insert proper C++ library support
11277 ld_shlibs_CXX=no
11278 fi
11279 ;;
11280 esac
11281 ;;
11282 hpux10*|hpux11*)
11283 if test $with_gnu_ld = no; then
11284 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11285 hardcode_libdir_separator_CXX=:
11286
11287 case $host_cpu in
11288 hppa*64*|ia64*)
11289 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11290 ;;
11291 *)
11292 export_dynamic_flag_spec_CXX='${wl}-E'
11293 ;;
11294 esac
11295 fi
11296 case $host_cpu in
11297 hppa*64*|ia64*)
11298 hardcode_direct_CXX=no
11299 hardcode_shlibpath_var_CXX=no
11300 ;;
11301 *)
11302 hardcode_direct_CXX=yes
11303 hardcode_minus_L_CXX=yes # Not in the search PATH,
11304 # but as the default
11305 # location of the library.
11306 ;;
11307 esac
11308
11309 case $cc_basename in
11310 CC*)
11311 # FIXME: insert proper C++ library support
11312 ld_shlibs_CXX=no
11313 ;;
11314 aCC*)
11315 case $host_cpu in
11316 hppa*64*)
11317 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11318 ;;
11319 ia64*)
11320 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11321 ;;
11322 *)
11323 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11324 ;;
11325 esac
11326 # Commands to make compiler produce verbose output that lists
11327 # what "hidden" libraries, object files and flags are used when
11328 # linking a shared library.
11329 #
11330 # There doesn't appear to be a way to prevent this compiler from
11331 # explicitly linking system object files so we need to strip them
11332 # from the output so that they don't get included in the library
11333 # dependencies.
11334 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11335 ;;
11336 *)
11337 if test "$GXX" = yes; then
11338 if test $with_gnu_ld = no; then
11339 case $host_cpu in
11340 hppa*64*)
11341 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11342 ;;
11343 ia64*)
11344 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11345 ;;
11346 *)
11347 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11348 ;;
11349 esac
11350 fi
11351 else
11352 # FIXME: insert proper C++ library support
11353 ld_shlibs_CXX=no
11354 fi
11355 ;;
11356 esac
11357 ;;
11358 interix3*)
11359 hardcode_direct_CXX=no
11360 hardcode_shlibpath_var_CXX=no
11361 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11362 export_dynamic_flag_spec_CXX='${wl}-E'
11363 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11364 # Instead, shared libraries are loaded at an image base (0x10000000 by
11365 # default) and relocated if they conflict, which is a slow very memory
11366 # consuming and fragmenting process. To avoid this, we pick a random,
11367 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11368 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11369 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11370 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11371 ;;
11372 irix5* | irix6*)
11373 case $cc_basename in
11374 CC*)
11375 # SGI C++
11376 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11377
11378 # Archives containing C++ object files must be created using
11379 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11380 # necessary to make sure instantiated templates are included
11381 # in the archive.
11382 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11383 ;;
11384 *)
11385 if test "$GXX" = yes; then
11386 if test "$with_gnu_ld" = no; then
11387 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
11388 else
11389 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11390 fi
11391 fi
11392 link_all_deplibs_CXX=yes
11393 ;;
11394 esac
11395 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11396 hardcode_libdir_separator_CXX=:
11397 ;;
11398 linux*)
11399 case $cc_basename in
11400 KCC*)
11401 # Kuck and Associates, Inc. (KAI) C++ Compiler
11402
11403 # KCC will only create a shared library if the output file
11404 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11405 # to its proper name (with version) after linking.
11406 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11407 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11408 # Commands to make compiler produce verbose output that lists
11409 # what "hidden" libraries, object files and flags are used when
11410 # linking a shared library.
11411 #
11412 # There doesn't appear to be a way to prevent this compiler from
11413 # explicitly linking system object files so we need to strip them
11414 # from the output so that they don't get included in the library
11415 # dependencies.
11416 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11417
11418 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11419 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11420
11421 # Archives containing C++ object files must be created using
11422 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11423 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11424 ;;
11425 icpc*)
11426 # Intel C++
11427 with_gnu_ld=yes
11428 # version 8.0 and above of icpc choke on multiply defined symbols
11429 # if we add $predep_objects and $postdep_objects, however 7.1 and
11430 # earlier do not add the objects themselves.
11431 case `$CC -V 2>&1` in
11432 *"Version 7."*)
11433 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11434 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11435 ;;
11436 *) # Version 8.0 or newer
11437 tmp_idyn=
11438 case $host_cpu in
11439 ia64*) tmp_idyn=' -i_dynamic';;
11440 esac
11441 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11442 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11443 ;;
11444 esac
11445 archive_cmds_need_lc_CXX=no
11446 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11447 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11448 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11449 ;;
11450 pgCC*)
11451 # Portland Group C++ compiler
11452 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11453 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11454
11455 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11456 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11457 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11458 ;;
11459 cxx*)
11460 # Compaq C++
11461 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11462 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11463
11464 runpath_var=LD_RUN_PATH
11465 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11466 hardcode_libdir_separator_CXX=:
11467
11468 # Commands to make compiler produce verbose output that lists
11469 # what "hidden" libraries, object files and flags are used when
11470 # linking a shared library.
11471 #
11472 # There doesn't appear to be a way to prevent this compiler from
11473 # explicitly linking system object files so we need to strip them
11474 # from the output so that they don't get included in the library
11475 # dependencies.
11476 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11477 ;;
11478 esac
11479 ;;
11480 lynxos*)
11481 # FIXME: insert proper C++ library support
11482 ld_shlibs_CXX=no
11483 ;;
11484 m88k*)
11485 # FIXME: insert proper C++ library support
11486 ld_shlibs_CXX=no
11487 ;;
11488 mvs*)
11489 case $cc_basename in
11490 cxx*)
11491 # FIXME: insert proper C++ library support
11492 ld_shlibs_CXX=no
11493 ;;
11494 *)
11495 # FIXME: insert proper C++ library support
11496 ld_shlibs_CXX=no
11497 ;;
11498 esac
11499 ;;
11500 netbsd*)
11501 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11502 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11503 wlarc=
11504 hardcode_libdir_flag_spec_CXX='-R$libdir'
11505 hardcode_direct_CXX=yes
11506 hardcode_shlibpath_var_CXX=no
11507 fi
11508 # Workaround some broken pre-1.5 toolchains
11509 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11510 ;;
11511 openbsd2*)
11512 # C++ shared libraries are fairly broken
11513 ld_shlibs_CXX=no
11514 ;;
11515 openbsd*)
11516 hardcode_direct_CXX=yes
11517 hardcode_shlibpath_var_CXX=no
11518 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11519 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11520 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11521 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11522 export_dynamic_flag_spec_CXX='${wl}-E'
11523 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11524 fi
11525 output_verbose_link_cmd='echo'
11526 ;;
11527 osf3*)
11528 case $cc_basename in
11529 KCC*)
11530 # Kuck and Associates, Inc. (KAI) C++ Compiler
11531
11532 # KCC will only create a shared library if the output file
11533 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11534 # to its proper name (with version) after linking.
11535 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11536
11537 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11538 hardcode_libdir_separator_CXX=:
11539
11540 # Archives containing C++ object files must be created using
11541 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11542 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11543
11544 ;;
11545 RCC*)
11546 # Rational C++ 2.4.1
11547 # FIXME: insert proper C++ library support
11548 ld_shlibs_CXX=no
11549 ;;
11550 cxx*)
11551 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11552 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11553
11554 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11555 hardcode_libdir_separator_CXX=:
11556
11557 # Commands to make compiler produce verbose output that lists
11558 # what "hidden" libraries, object files and flags are used when
11559 # linking a shared library.
11560 #
11561 # There doesn't appear to be a way to prevent this compiler from
11562 # explicitly linking system object files so we need to strip them
11563 # from the output so that they don't get included in the library
11564 # dependencies.
11565 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11566 ;;
11567 *)
11568 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11569 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11570 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11571
11572 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11573 hardcode_libdir_separator_CXX=:
11574
11575 # Commands to make compiler produce verbose output that lists
11576 # what "hidden" libraries, object files and flags are used when
11577 # linking a shared library.
11578 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11579
11580 else
11581 # FIXME: insert proper C++ library support
11582 ld_shlibs_CXX=no
11583 fi
11584 ;;
11585 esac
11586 ;;
11587 osf4* | osf5*)
11588 case $cc_basename in
11589 KCC*)
11590 # Kuck and Associates, Inc. (KAI) C++ Compiler
11591
11592 # KCC will only create a shared library if the output file
11593 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11594 # to its proper name (with version) after linking.
11595 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11596
11597 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11598 hardcode_libdir_separator_CXX=:
11599
11600 # Archives containing C++ object files must be created using
11601 # the KAI C++ compiler.
11602 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11603 ;;
11604 RCC*)
11605 # Rational C++ 2.4.1
11606 # FIXME: insert proper C++ library support
11607 ld_shlibs_CXX=no
11608 ;;
11609 cxx*)
11610 allow_undefined_flag_CXX=' -expect_unresolved \*'
11611 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11612 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11613 echo "-hidden">> $lib.exp~
11614 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11615 $rm $lib.exp'
11616
11617 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11618 hardcode_libdir_separator_CXX=:
11619
11620 # Commands to make compiler produce verbose output that lists
11621 # what "hidden" libraries, object files and flags are used when
11622 # linking a shared library.
11623 #
11624 # There doesn't appear to be a way to prevent this compiler from
11625 # explicitly linking system object files so we need to strip them
11626 # from the output so that they don't get included in the library
11627 # dependencies.
11628 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11629 ;;
11630 *)
11631 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11632 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11633 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11634
11635 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11636 hardcode_libdir_separator_CXX=:
11637
11638 # Commands to make compiler produce verbose output that lists
11639 # what "hidden" libraries, object files and flags are used when
11640 # linking a shared library.
11641 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11642
11643 else
11644 # FIXME: insert proper C++ library support
11645 ld_shlibs_CXX=no
11646 fi
11647 ;;
11648 esac
11649 ;;
11650 psos*)
11651 # FIXME: insert proper C++ library support
11652 ld_shlibs_CXX=no
11653 ;;
11654 sunos4*)
11655 case $cc_basename in
11656 CC*)
11657 # Sun C++ 4.x
11658 # FIXME: insert proper C++ library support
11659 ld_shlibs_CXX=no
11660 ;;
11661 lcc*)
11662 # Lucid
11663 # FIXME: insert proper C++ library support
11664 ld_shlibs_CXX=no
11665 ;;
11666 *)
11667 # FIXME: insert proper C++ library support
11668 ld_shlibs_CXX=no
11669 ;;
11670 esac
11671 ;;
11672 solaris*)
11673 case $cc_basename in
11674 CC*)
11675 # Sun C++ 4.2, 5.x and Centerline C++
11676 archive_cmds_need_lc_CXX=yes
11677 no_undefined_flag_CXX=' -zdefs'
11678 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11679 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11680 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11681
11682 hardcode_libdir_flag_spec_CXX='-R$libdir'
11683 hardcode_shlibpath_var_CXX=no
11684 case $host_os in
11685 solaris2.[0-5] | solaris2.[0-5].*) ;;
11686 *)
11687 # The C++ compiler is used as linker so we must use $wl
11688 # flag to pass the commands to the underlying system
11689 # linker. We must also pass each convience library through
11690 # to the system linker between allextract/defaultextract.
11691 # The C++ compiler will combine linker options so we
11692 # cannot just pass the convience library names through
11693 # without $wl.
11694 # Supported since Solaris 2.6 (maybe 2.5.1?)
11695 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11696 ;;
11697 esac
11698 link_all_deplibs_CXX=yes
11699
11700 output_verbose_link_cmd='echo'
11701
11702 # Archives containing C++ object files must be created using
11703 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11704 # necessary to make sure instantiated templates are included
11705 # in the archive.
11706 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11707 ;;
11708 gcx*)
11709 # Green Hills C++ Compiler
11710 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11711
11712 # The C++ compiler must be used to create the archive.
11713 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11714 ;;
11715 *)
11716 # GNU C++ compiler with Solaris linker
11717 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11718 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11719 if $CC --version | grep -v '^2\.7' > /dev/null; then
11720 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11721 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11722 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11723
11724 # Commands to make compiler produce verbose output that lists
11725 # what "hidden" libraries, object files and flags are used when
11726 # linking a shared library.
11727 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11728 else
11729 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11730 # platform.
11731 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11732 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11733 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11734
11735 # Commands to make compiler produce verbose output that lists
11736 # what "hidden" libraries, object files and flags are used when
11737 # linking a shared library.
11738 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11739 fi
11740
11741 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11742 fi
11743 ;;
11744 esac
11745 ;;
11746 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11747 no_undefined_flag_CXX='${wl}-z,text'
11748 archive_cmds_need_lc_CXX=no
11749 hardcode_shlibpath_var_CXX=no
11750 runpath_var='LD_RUN_PATH'
11751
11752 case $cc_basename in
11753 CC*)
11754 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11755 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11756 ;;
11757 *)
11758 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11759 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11760 ;;
11761 esac
11762 ;;
11763 sysv5* | sco3.2v5* | sco5v6*)
11764 # Note: We can NOT use -z defs as we might desire, because we do not
11765 # link with -lc, and that would cause any symbols used from libc to
11766 # always be unresolved, which means just about no library would
11767 # ever link correctly. If we're not using GNU ld we use -z text
11768 # though, which does catch some bad symbols but isn't as heavy-handed
11769 # as -z defs.
11770 # For security reasons, it is highly recommended that you always
11771 # use absolute paths for naming shared libraries, and exclude the
11772 # DT_RUNPATH tag from executables and libraries. But doing so
11773 # requires that you compile everything twice, which is a pain.
11774 # So that behaviour is only enabled if SCOABSPATH is set to a
11775 # non-empty value in the environment. Most likely only useful for
11776 # creating official distributions of packages.
11777 # This is a hack until libtool officially supports absolute path
11778 # names for shared libraries.
11779 no_undefined_flag_CXX='${wl}-z,text'
11780 allow_undefined_flag_CXX='${wl}-z,nodefs'
11781 archive_cmds_need_lc_CXX=no
11782 hardcode_shlibpath_var_CXX=no
11783 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11784 hardcode_libdir_separator_CXX=':'
11785 link_all_deplibs_CXX=yes
11786 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11787 runpath_var='LD_RUN_PATH'
11788
11789 case $cc_basename in
11790 CC*)
11791 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11792 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11793 ;;
11794 *)
11795 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11796 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11797 ;;
11798 esac
11799 ;;
11800 tandem*)
11801 case $cc_basename in
11802 NCC*)
11803 # NonStop-UX NCC 3.20
11804 # FIXME: insert proper C++ library support
11805 ld_shlibs_CXX=no
11806 ;;
11807 *)
11808 # FIXME: insert proper C++ library support
11809 ld_shlibs_CXX=no
11810 ;;
11811 esac
11812 ;;
11813 vxworks*)
11814 # FIXME: insert proper C++ library support
11815 ld_shlibs_CXX=no
11816 ;;
11817 *)
11818 # FIXME: insert proper C++ library support
11819 ld_shlibs_CXX=no
11820 ;;
11821esac
64ff59ba 11822{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11823echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 11824test "$ld_shlibs_CXX" = no && can_build_shared=no
11825
11826GCC_CXX="$GXX"
11827LD_CXX="$LD"
11828
11829
11830cat > conftest.$ac_ext <<EOF
11831class Foo
11832{
11833public:
11834 Foo (void) { a = 0; }
11835private:
11836 int a;
11837};
11838EOF
11839
11840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11841 (eval $ac_compile) 2>&5
11842 ac_status=$?
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; then
11845 # Parse the compiler output and extract the necessary
11846 # objects, libraries and library flags.
11847
11848 # Sentinel used to keep track of whether or not we are before
11849 # the conftest object file.
11850 pre_test_object_deps_done=no
11851
11852 # The `*' in the case matches for architectures that use `case' in
11853 # $output_verbose_cmd can trigger glob expansion during the loop
11854 # eval without this substitution.
11855 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11856
11857 for p in `eval $output_verbose_link_cmd`; do
11858 case $p in
11859
11860 -L* | -R* | -l*)
11861 # Some compilers place space between "-{L,R}" and the path.
11862 # Remove the space.
11863 if test $p = "-L" \
11864 || test $p = "-R"; then
11865 prev=$p
11866 continue
11867 else
11868 prev=
11869 fi
11870
11871 if test "$pre_test_object_deps_done" = no; then
11872 case $p in
11873 -L* | -R*)
11874 # Internal compiler library paths should come after those
11875 # provided the user. The postdeps already come after the
11876 # user supplied libs so there is no need to process them.
11877 if test -z "$compiler_lib_search_path_CXX"; then
11878 compiler_lib_search_path_CXX="${prev}${p}"
11879 else
11880 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11881 fi
11882 ;;
11883 # The "-l" case would never come before the object being
11884 # linked, so don't bother handling this case.
11885 esac
11886 else
11887 if test -z "$postdeps_CXX"; then
11888 postdeps_CXX="${prev}${p}"
11889 else
11890 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11891 fi
11892 fi
11893 ;;
11894
11895 *.$objext)
11896 # This assumes that the test object file only shows up
11897 # once in the compiler output.
11898 if test "$p" = "conftest.$objext"; then
11899 pre_test_object_deps_done=yes
11900 continue
11901 fi
11902
11903 if test "$pre_test_object_deps_done" = no; then
11904 if test -z "$predep_objects_CXX"; then
11905 predep_objects_CXX="$p"
11906 else
11907 predep_objects_CXX="$predep_objects_CXX $p"
11908 fi
11909 else
11910 if test -z "$postdep_objects_CXX"; then
11911 postdep_objects_CXX="$p"
11912 else
11913 postdep_objects_CXX="$postdep_objects_CXX $p"
11914 fi
11915 fi
11916 ;;
11917
11918 *) ;; # Ignore the rest.
11919
11920 esac
11921 done
11922
11923 # Clean up.
11924 rm -f a.out a.exe
11925else
11926 echo "libtool.m4: error: problem compiling CXX test program"
11927fi
11928
11929$rm -f confest.$objext
11930
11931# PORTME: override above test on systems where it is broken
11932case $host_os in
11933interix3*)
11934 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11935 # hack all around it, let's just trust "g++" to DTRT.
11936 predep_objects_CXX=
11937 postdep_objects_CXX=
11938 postdeps_CXX=
11939 ;;
11940
11941solaris*)
11942 case $cc_basename in
11943 CC*)
11944 # Adding this requires a known-good setup of shared libraries for
11945 # Sun compiler versions before 5.6, else PIC objects from an old
11946 # archive will be linked into the output, leading to subtle bugs.
11947 postdeps_CXX='-lCstd -lCrun'
11948 ;;
11949 esac
11950 ;;
11951esac
11952
11953
11954case " $postdeps_CXX " in
11955*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11956esac
11957
11958lt_prog_compiler_wl_CXX=
11959lt_prog_compiler_pic_CXX=
11960lt_prog_compiler_static_CXX=
11961
64ff59ba 11962{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11963echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 11964
11965 # C++ specific cases for pic, static, wl, etc.
11966 if test "$GXX" = yes; then
11967 lt_prog_compiler_wl_CXX='-Wl,'
11968 lt_prog_compiler_static_CXX='-static'
11969
11970 case $host_os in
11971 aix*)
11972 # All AIX code is PIC.
11973 if test "$host_cpu" = ia64; then
11974 # AIX 5 now supports IA64 processor
11975 lt_prog_compiler_static_CXX='-Bstatic'
11976 fi
11977 ;;
11978 amigaos*)
11979 # FIXME: we need at least 68020 code to build shared libraries, but
11980 # adding the `-m68020' flag to GCC prevents building anything better,
11981 # like `-m68040'.
11982 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11983 ;;
11984 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11985 # PIC is the default for these OSes.
11986 ;;
11987 mingw* | os2* | pw32*)
11988 # This hack is so that the source file can tell whether it is being
11989 # built for inclusion in a dll (and should export symbols for example).
11990 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11991 ;;
11992 darwin* | rhapsody*)
11993 # PIC is the default on this platform
11994 # Common symbols not allowed in MH_DYLIB files
11995 lt_prog_compiler_pic_CXX='-fno-common'
11996 ;;
11997 *djgpp*)
11998 # DJGPP does not support shared libraries at all
11999 lt_prog_compiler_pic_CXX=
12000 ;;
12001 interix3*)
12002 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12003 # Instead, we relocate shared libraries at runtime.
12004 ;;
12005 sysv4*MP*)
12006 if test -d /usr/nec; then
12007 lt_prog_compiler_pic_CXX=-Kconform_pic
12008 fi
12009 ;;
12010 hpux*)
12011 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12012 # not for PA HP-UX.
12013 case $host_cpu in
12014 hppa*64*|ia64*)
12015 ;;
12016 *)
12017 lt_prog_compiler_pic_CXX='-fPIC'
12018 ;;
12019 esac
12020 ;;
12021 *)
12022 lt_prog_compiler_pic_CXX='-fPIC'
12023 ;;
12024 esac
12025 else
12026 case $host_os in
12027 aix4* | aix5*)
12028 # All AIX code is PIC.
12029 if test "$host_cpu" = ia64; then
12030 # AIX 5 now supports IA64 processor
12031 lt_prog_compiler_static_CXX='-Bstatic'
12032 else
12033 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12034 fi
12035 ;;
12036 chorus*)
12037 case $cc_basename in
12038 cxch68*)
12039 # Green Hills C++ Compiler
12040 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12041 ;;
12042 esac
12043 ;;
12044 darwin*)
12045 # PIC is the default on this platform
12046 # Common symbols not allowed in MH_DYLIB files
12047 case $cc_basename in
12048 xlc*)
12049 lt_prog_compiler_pic_CXX='-qnocommon'
12050 lt_prog_compiler_wl_CXX='-Wl,'
12051 ;;
12052 esac
12053 ;;
12054 dgux*)
12055 case $cc_basename in
12056 ec++*)
12057 lt_prog_compiler_pic_CXX='-KPIC'
12058 ;;
12059 ghcx*)
12060 # Green Hills C++ Compiler
12061 lt_prog_compiler_pic_CXX='-pic'
12062 ;;
12063 *)
12064 ;;
12065 esac
12066 ;;
12067 freebsd* | kfreebsd*-gnu | dragonfly*)
12068 # FreeBSD uses GNU C++
12069 ;;
12070 hpux9* | hpux10* | hpux11*)
12071 case $cc_basename in
12072 CC*)
12073 lt_prog_compiler_wl_CXX='-Wl,'
12074 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12075 if test "$host_cpu" != ia64; then
12076 lt_prog_compiler_pic_CXX='+Z'
12077 fi
12078 ;;
12079 aCC*)
12080 lt_prog_compiler_wl_CXX='-Wl,'
12081 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12082 case $host_cpu in
12083 hppa*64*|ia64*)
12084 # +Z the default
12085 ;;
12086 *)
12087 lt_prog_compiler_pic_CXX='+Z'
12088 ;;
12089 esac
12090 ;;
12091 *)
12092 ;;
12093 esac
12094 ;;
12095 interix*)
12096 # This is c89, which is MS Visual C++ (no shared libs)
12097 # Anyone wants to do a port?
12098 ;;
12099 irix5* | irix6* | nonstopux*)
12100 case $cc_basename in
12101 CC*)
12102 lt_prog_compiler_wl_CXX='-Wl,'
12103 lt_prog_compiler_static_CXX='-non_shared'
12104 # CC pic flag -KPIC is the default.
12105 ;;
12106 *)
12107 ;;
12108 esac
12109 ;;
12110 linux*)
12111 case $cc_basename in
12112 KCC*)
12113 # KAI C++ Compiler
12114 lt_prog_compiler_wl_CXX='--backend -Wl,'
12115 lt_prog_compiler_pic_CXX='-fPIC'
12116 ;;
12117 icpc* | ecpc*)
12118 # Intel C++
12119 lt_prog_compiler_wl_CXX='-Wl,'
12120 lt_prog_compiler_pic_CXX='-KPIC'
12121 lt_prog_compiler_static_CXX='-static'
12122 ;;
12123 pgCC*)
12124 # Portland Group C++ compiler.
12125 lt_prog_compiler_wl_CXX='-Wl,'
12126 lt_prog_compiler_pic_CXX='-fpic'
12127 lt_prog_compiler_static_CXX='-Bstatic'
12128 ;;
12129 cxx*)
12130 # Compaq C++
12131 # Make sure the PIC flag is empty. It appears that all Alpha
12132 # Linux and Compaq Tru64 Unix objects are PIC.
12133 lt_prog_compiler_pic_CXX=
12134 lt_prog_compiler_static_CXX='-non_shared'
12135 ;;
12136 *)
12137 ;;
12138 esac
12139 ;;
12140 lynxos*)
12141 ;;
12142 m88k*)
12143 ;;
12144 mvs*)
12145 case $cc_basename in
12146 cxx*)
12147 lt_prog_compiler_pic_CXX='-W c,exportall'
12148 ;;
12149 *)
12150 ;;
12151 esac
12152 ;;
12153 netbsd*)
12154 ;;
12155 osf3* | osf4* | osf5*)
12156 case $cc_basename in
12157 KCC*)
12158 lt_prog_compiler_wl_CXX='--backend -Wl,'
12159 ;;
12160 RCC*)
12161 # Rational C++ 2.4.1
12162 lt_prog_compiler_pic_CXX='-pic'
12163 ;;
12164 cxx*)
12165 # Digital/Compaq C++
12166 lt_prog_compiler_wl_CXX='-Wl,'
12167 # Make sure the PIC flag is empty. It appears that all Alpha
12168 # Linux and Compaq Tru64 Unix objects are PIC.
12169 lt_prog_compiler_pic_CXX=
12170 lt_prog_compiler_static_CXX='-non_shared'
12171 ;;
12172 *)
12173 ;;
12174 esac
12175 ;;
12176 psos*)
12177 ;;
12178 solaris*)
12179 case $cc_basename in
12180 CC*)
12181 # Sun C++ 4.2, 5.x and Centerline C++
12182 lt_prog_compiler_pic_CXX='-KPIC'
12183 lt_prog_compiler_static_CXX='-Bstatic'
12184 lt_prog_compiler_wl_CXX='-Qoption ld '
12185 ;;
12186 gcx*)
12187 # Green Hills C++ Compiler
12188 lt_prog_compiler_pic_CXX='-PIC'
12189 ;;
12190 *)
12191 ;;
12192 esac
12193 ;;
12194 sunos4*)
12195 case $cc_basename in
12196 CC*)
12197 # Sun C++ 4.x
12198 lt_prog_compiler_pic_CXX='-pic'
12199 lt_prog_compiler_static_CXX='-Bstatic'
12200 ;;
12201 lcc*)
12202 # Lucid
12203 lt_prog_compiler_pic_CXX='-pic'
12204 ;;
12205 *)
12206 ;;
12207 esac
12208 ;;
12209 tandem*)
12210 case $cc_basename in
12211 NCC*)
12212 # NonStop-UX NCC 3.20
12213 lt_prog_compiler_pic_CXX='-KPIC'
12214 ;;
12215 *)
12216 ;;
12217 esac
12218 ;;
12219 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12220 case $cc_basename in
12221 CC*)
12222 lt_prog_compiler_wl_CXX='-Wl,'
12223 lt_prog_compiler_pic_CXX='-KPIC'
12224 lt_prog_compiler_static_CXX='-Bstatic'
12225 ;;
12226 esac
12227 ;;
12228 vxworks*)
12229 ;;
12230 *)
12231 lt_prog_compiler_can_build_shared_CXX=no
12232 ;;
12233 esac
12234 fi
12235
64ff59ba 12236{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12237echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d9898ee8 12238
12239#
12240# Check to make sure the PIC flag actually works.
12241#
12242if test -n "$lt_prog_compiler_pic_CXX"; then
12243
64ff59ba 12244{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12245echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d9898ee8 12246if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12247 echo $ECHO_N "(cached) $ECHO_C" >&6
12248else
12249 lt_prog_compiler_pic_works_CXX=no
12250 ac_outfile=conftest.$ac_objext
12251 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12252 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12253 # Insert the option either (1) after the last *FLAGS variable, or
12254 # (2) before a word containing "conftest.", or (3) at the end.
12255 # Note that $ac_compile itself does not contain backslashes and begins
12256 # with a dollar sign (not a hyphen), so the echo should work correctly.
12257 # The option is referenced via a variable to avoid confusing sed.
12258 lt_compile=`echo "$ac_compile" | $SED \
12259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12261 -e 's:$: $lt_compiler_flag:'`
64ff59ba 12262 (eval echo "\"\$as_me:12262: $lt_compile\"" >&5)
d9898ee8 12263 (eval "$lt_compile" 2>conftest.err)
12264 ac_status=$?
12265 cat conftest.err >&5
64ff59ba 12266 echo "$as_me:12266: \$? = $ac_status" >&5
d9898ee8 12267 if (exit $ac_status) && test -s "$ac_outfile"; then
12268 # The compiler can only warn and ignore the option if not recognized
12269 # So say no if there are warnings other than the usual output.
12270 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12272 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12273 lt_prog_compiler_pic_works_CXX=yes
12274 fi
12275 fi
12276 $rm conftest*
12277
12278fi
64ff59ba 12279{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12280echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d9898ee8 12281
12282if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12283 case $lt_prog_compiler_pic_CXX in
12284 "" | " "*) ;;
12285 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12286 esac
12287else
12288 lt_prog_compiler_pic_CXX=
12289 lt_prog_compiler_can_build_shared_CXX=no
12290fi
12291
12292fi
12293case $host_os in
12294 # For platforms which do not support PIC, -DPIC is meaningless:
12295 *djgpp*)
12296 lt_prog_compiler_pic_CXX=
12297 ;;
12298 *)
12299 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12300 ;;
12301esac
12302
12303#
12304# Check to make sure the static flag actually works.
12305#
12306wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
64ff59ba 12307{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12308echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 12309if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12311else
12312 lt_prog_compiler_static_works_CXX=no
12313 save_LDFLAGS="$LDFLAGS"
12314 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12315 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12316 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12317 # The linker can only warn and ignore the option if not recognized
12318 # So say no if there are warnings
12319 if test -s conftest.err; then
12320 # Append any errors to the config.log.
12321 cat conftest.err 1>&5
12322 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12324 if diff conftest.exp conftest.er2 >/dev/null; then
12325 lt_prog_compiler_static_works_CXX=yes
12326 fi
12327 else
12328 lt_prog_compiler_static_works_CXX=yes
12329 fi
12330 fi
12331 $rm conftest*
12332 LDFLAGS="$save_LDFLAGS"
12333
12334fi
64ff59ba 12335{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12336echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
d9898ee8 12337
12338if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12339 :
12340else
12341 lt_prog_compiler_static_CXX=
12342fi
12343
12344
64ff59ba 12345{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12346echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 12347if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12349else
12350 lt_cv_prog_compiler_c_o_CXX=no
12351 $rm -r conftest 2>/dev/null
12352 mkdir conftest
12353 cd conftest
12354 mkdir out
12355 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12356
12357 lt_compiler_flag="-o out/conftest2.$ac_objext"
12358 # Insert the option either (1) after the last *FLAGS variable, or
12359 # (2) before a word containing "conftest.", or (3) at the end.
12360 # Note that $ac_compile itself does not contain backslashes and begins
12361 # with a dollar sign (not a hyphen), so the echo should work correctly.
12362 lt_compile=`echo "$ac_compile" | $SED \
12363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12365 -e 's:$: $lt_compiler_flag:'`
64ff59ba 12366 (eval echo "\"\$as_me:12366: $lt_compile\"" >&5)
d9898ee8 12367 (eval "$lt_compile" 2>out/conftest.err)
12368 ac_status=$?
12369 cat out/conftest.err >&5
64ff59ba 12370 echo "$as_me:12370: \$? = $ac_status" >&5
d9898ee8 12371 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12372 then
12373 # The compiler can only warn and ignore the option if not recognized
12374 # So say no if there are warnings
12375 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12376 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12377 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12378 lt_cv_prog_compiler_c_o_CXX=yes
12379 fi
12380 fi
12381 chmod u+w . 2>&5
12382 $rm conftest*
12383 # SGI C++ compiler will create directory out/ii_files/ for
12384 # template instantiation
12385 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12386 $rm out/* && rmdir out
12387 cd ..
12388 rmdir conftest
12389 $rm conftest*
12390
12391fi
64ff59ba 12392{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12393echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 12394
12395
12396hard_links="nottested"
12397if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12398 # do not overwrite the value of need_locks provided by the user
64ff59ba 12399 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12400echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 12401 hard_links=yes
12402 $rm conftest*
12403 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12404 touch conftest.a
12405 ln conftest.a conftest.b 2>&5 || hard_links=no
12406 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 12407 { echo "$as_me:$LINENO: result: $hard_links" >&5
12408echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 12409 if test "$hard_links" = no; then
12410 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12411echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12412 need_locks=warn
12413 fi
12414else
12415 need_locks=no
12416fi
12417
64ff59ba 12418{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12419echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 12420
12421 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12422 case $host_os in
12423 aix4* | aix5*)
12424 # If we're using GNU nm, then we don't want the "-C" option.
12425 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12426 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12427 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12428 else
12429 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12430 fi
12431 ;;
12432 pw32*)
12433 export_symbols_cmds_CXX="$ltdll_cmds"
12434 ;;
12435 cygwin* | mingw*)
12436 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12437 ;;
12438 *)
12439 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12440 ;;
12441 esac
12442
64ff59ba 12443{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12444echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12445test "$ld_shlibs_CXX" = no && can_build_shared=no
12446
12447#
12448# Do we need to explicitly link libc?
12449#
12450case "x$archive_cmds_need_lc_CXX" in
12451x|xyes)
12452 # Assume -lc should be added
12453 archive_cmds_need_lc_CXX=yes
12454
12455 if test "$enable_shared" = yes && test "$GCC" = yes; then
12456 case $archive_cmds_CXX in
12457 *'~'*)
12458 # FIXME: we may have to deal with multi-command sequences.
12459 ;;
12460 '$CC '*)
12461 # Test whether the compiler implicitly links with -lc since on some
12462 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12463 # to ld, don't add -lc before -lgcc.
64ff59ba 12464 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12465echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 12466 $rm conftest*
12467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12468
12469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12470 (eval $ac_compile) 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } 2>conftest.err; then
12474 soname=conftest
12475 lib=conftest
12476 libobjs=conftest.$ac_objext
12477 deplibs=
12478 wl=$lt_prog_compiler_wl_CXX
12479 pic_flag=$lt_prog_compiler_pic_CXX
12480 compiler_flags=-v
12481 linker_flags=-v
12482 verstring=
12483 output_objdir=.
12484 libname=conftest
12485 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12486 allow_undefined_flag_CXX=
12487 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12488 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12489 ac_status=$?
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }
12492 then
12493 archive_cmds_need_lc_CXX=no
12494 else
12495 archive_cmds_need_lc_CXX=yes
12496 fi
12497 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12498 else
12499 cat conftest.err 1>&5
12500 fi
12501 $rm conftest*
64ff59ba 12502 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12503echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d9898ee8 12504 ;;
12505 esac
12506 fi
12507 ;;
12508esac
12509
64ff59ba 12510{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12511echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 12512library_names_spec=
12513libname_spec='lib$name'
12514soname_spec=
12515shrext_cmds=".so"
12516postinstall_cmds=
12517postuninstall_cmds=
12518finish_cmds=
12519finish_eval=
12520shlibpath_var=
12521shlibpath_overrides_runpath=unknown
12522version_type=none
12523dynamic_linker="$host_os ld.so"
12524sys_lib_dlsearch_path_spec="/lib /usr/lib"
12525if test "$GCC" = yes; then
12526 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12527 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12528 # if the path contains ";" then we assume it to be the separator
12529 # otherwise default to the standard path separator (i.e. ":") - it is
12530 # assumed that no part of a normal pathname contains ";" but that should
12531 # okay in the real world where ";" in dirpaths is itself problematic.
12532 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12533 else
12534 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12535 fi
12536else
12537 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12538fi
12539need_lib_prefix=unknown
12540hardcode_into_libs=no
12541
12542# when you set need_version to no, make sure it does not cause -set_version
12543# flags to be left without arguments
12544need_version=unknown
12545
12546case $host_os in
12547aix3*)
12548 version_type=linux
12549 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12550 shlibpath_var=LIBPATH
12551
12552 # AIX 3 has no versioning support, so we append a major version to the name.
12553 soname_spec='${libname}${release}${shared_ext}$major'
12554 ;;
12555
12556aix4* | aix5*)
12557 version_type=linux
12558 need_lib_prefix=no
12559 need_version=no
12560 hardcode_into_libs=yes
12561 if test "$host_cpu" = ia64; then
12562 # AIX 5 supports IA64
12563 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12564 shlibpath_var=LD_LIBRARY_PATH
12565 else
12566 # With GCC up to 2.95.x, collect2 would create an import file
12567 # for dependence libraries. The import file would start with
12568 # the line `#! .'. This would cause the generated library to
12569 # depend on `.', always an invalid library. This was fixed in
12570 # development snapshots of GCC prior to 3.0.
12571 case $host_os in
12572 aix4 | aix4.[01] | aix4.[01].*)
12573 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12574 echo ' yes '
12575 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12576 :
12577 else
12578 can_build_shared=no
12579 fi
12580 ;;
12581 esac
12582 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12583 # soname into executable. Probably we can add versioning support to
12584 # collect2, so additional links can be useful in future.
12585 if test "$aix_use_runtimelinking" = yes; then
12586 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12587 # instead of lib<name>.a to let people know that these are not
12588 # typical AIX shared libraries.
12589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12590 else
12591 # We preserve .a as extension for shared libraries through AIX4.2
12592 # and later when we are not doing run time linking.
12593 library_names_spec='${libname}${release}.a $libname.a'
12594 soname_spec='${libname}${release}${shared_ext}$major'
12595 fi
12596 shlibpath_var=LIBPATH
12597 fi
12598 ;;
12599
12600amigaos*)
12601 library_names_spec='$libname.ixlibrary $libname.a'
12602 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12603 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'
12604 ;;
12605
12606beos*)
12607 library_names_spec='${libname}${shared_ext}'
12608 dynamic_linker="$host_os ld.so"
12609 shlibpath_var=LIBRARY_PATH
12610 ;;
12611
12612bsdi[45]*)
12613 version_type=linux
12614 need_version=no
12615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12616 soname_spec='${libname}${release}${shared_ext}$major'
12617 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12618 shlibpath_var=LD_LIBRARY_PATH
12619 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12620 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12621 # the default ld.so.conf also contains /usr/contrib/lib and
12622 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12623 # libtool to hard-code these into programs
12624 ;;
12625
12626cygwin* | mingw* | pw32*)
12627 version_type=windows
12628 shrext_cmds=".dll"
12629 need_version=no
12630 need_lib_prefix=no
12631
12632 case $GCC,$host_os in
12633 yes,cygwin* | yes,mingw* | yes,pw32*)
12634 library_names_spec='$libname.dll.a'
12635 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12636 postinstall_cmds='base_file=`basename \${file}`~
12637 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12638 dldir=$destdir/`dirname \$dlpath`~
12639 test -d \$dldir || mkdir -p \$dldir~
12640 $install_prog $dir/$dlname \$dldir/$dlname~
12641 chmod a+x \$dldir/$dlname'
12642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12643 dlpath=$dir/\$dldll~
12644 $rm \$dlpath'
12645 shlibpath_overrides_runpath=yes
12646
12647 case $host_os in
12648 cygwin*)
12649 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12650 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12651 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12652 ;;
12653 mingw*)
12654 # MinGW DLLs use traditional 'lib' prefix
12655 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12656 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12657 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12658 # It is most probably a Windows format PATH printed by
12659 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12660 # path with ; separators, and with drive letters. We can handle the
12661 # drive letters (cygwin fileutils understands them), so leave them,
12662 # especially as we might pass files found there to a mingw objdump,
12663 # which wouldn't understand a cygwinified path. Ahh.
12664 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12665 else
12666 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12667 fi
12668 ;;
12669 pw32*)
12670 # pw32 DLLs use 'pw' prefix rather than 'lib'
12671 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12672 ;;
12673 esac
12674 ;;
12675
12676 *)
12677 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12678 ;;
12679 esac
12680 dynamic_linker='Win32 ld.exe'
12681 # FIXME: first we should search . and the directory the executable is in
12682 shlibpath_var=PATH
12683 ;;
12684
12685darwin* | rhapsody*)
12686 dynamic_linker="$host_os dyld"
12687 version_type=darwin
12688 need_lib_prefix=no
12689 need_version=no
12690 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12691 soname_spec='${libname}${release}${major}$shared_ext'
12692 shlibpath_overrides_runpath=yes
12693 shlibpath_var=DYLD_LIBRARY_PATH
12694 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12695 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12696 if test "$GCC" = yes; then
12697 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12698 else
12699 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12700 fi
12701 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12702 ;;
12703
12704dgux*)
12705 version_type=linux
12706 need_lib_prefix=no
12707 need_version=no
12708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12709 soname_spec='${libname}${release}${shared_ext}$major'
12710 shlibpath_var=LD_LIBRARY_PATH
12711 ;;
12712
12713freebsd1*)
12714 dynamic_linker=no
12715 ;;
12716
12717kfreebsd*-gnu)
12718 version_type=linux
12719 need_lib_prefix=no
12720 need_version=no
12721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12722 soname_spec='${libname}${release}${shared_ext}$major'
12723 shlibpath_var=LD_LIBRARY_PATH
12724 shlibpath_overrides_runpath=no
12725 hardcode_into_libs=yes
12726 dynamic_linker='GNU ld.so'
12727 ;;
12728
12729freebsd* | dragonfly*)
12730 # DragonFly does not have aout. When/if they implement a new
12731 # versioning mechanism, adjust this.
12732 if test -x /usr/bin/objformat; then
12733 objformat=`/usr/bin/objformat`
12734 else
12735 case $host_os in
12736 freebsd[123]*) objformat=aout ;;
12737 *) objformat=elf ;;
12738 esac
12739 fi
12740 version_type=freebsd-$objformat
12741 case $version_type in
12742 freebsd-elf*)
12743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12744 need_version=no
12745 need_lib_prefix=no
12746 ;;
12747 freebsd-*)
12748 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12749 need_version=yes
12750 ;;
12751 esac
12752 shlibpath_var=LD_LIBRARY_PATH
12753 case $host_os in
12754 freebsd2*)
12755 shlibpath_overrides_runpath=yes
12756 ;;
12757 freebsd3.[01]* | freebsdelf3.[01]*)
12758 shlibpath_overrides_runpath=yes
12759 hardcode_into_libs=yes
12760 ;;
12761 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12762 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12763 shlibpath_overrides_runpath=no
12764 hardcode_into_libs=yes
12765 ;;
12766 freebsd*) # from 4.6 on
12767 shlibpath_overrides_runpath=yes
12768 hardcode_into_libs=yes
12769 ;;
12770 esac
12771 ;;
12772
12773gnu*)
12774 version_type=linux
12775 need_lib_prefix=no
12776 need_version=no
12777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12778 soname_spec='${libname}${release}${shared_ext}$major'
12779 shlibpath_var=LD_LIBRARY_PATH
12780 hardcode_into_libs=yes
12781 ;;
12782
12783hpux9* | hpux10* | hpux11*)
12784 # Give a soname corresponding to the major version so that dld.sl refuses to
12785 # link against other versions.
12786 version_type=sunos
12787 need_lib_prefix=no
12788 need_version=no
12789 case $host_cpu in
12790 ia64*)
12791 shrext_cmds='.so'
12792 hardcode_into_libs=yes
12793 dynamic_linker="$host_os dld.so"
12794 shlibpath_var=LD_LIBRARY_PATH
12795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12797 soname_spec='${libname}${release}${shared_ext}$major'
12798 if test "X$HPUX_IA64_MODE" = X32; then
12799 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12800 else
12801 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12802 fi
12803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12804 ;;
12805 hppa*64*)
12806 shrext_cmds='.sl'
12807 hardcode_into_libs=yes
12808 dynamic_linker="$host_os dld.sl"
12809 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12812 soname_spec='${libname}${release}${shared_ext}$major'
12813 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12815 ;;
12816 *)
12817 shrext_cmds='.sl'
12818 dynamic_linker="$host_os dld.sl"
12819 shlibpath_var=SHLIB_PATH
12820 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12822 soname_spec='${libname}${release}${shared_ext}$major'
12823 ;;
12824 esac
12825 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12826 postinstall_cmds='chmod 555 $lib'
12827 ;;
12828
12829interix3*)
12830 version_type=linux
12831 need_lib_prefix=no
12832 need_version=no
12833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12834 soname_spec='${libname}${release}${shared_ext}$major'
12835 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12836 shlibpath_var=LD_LIBRARY_PATH
12837 shlibpath_overrides_runpath=no
12838 hardcode_into_libs=yes
12839 ;;
12840
12841irix5* | irix6* | nonstopux*)
12842 case $host_os in
12843 nonstopux*) version_type=nonstopux ;;
12844 *)
12845 if test "$lt_cv_prog_gnu_ld" = yes; then
12846 version_type=linux
12847 else
12848 version_type=irix
12849 fi ;;
12850 esac
12851 need_lib_prefix=no
12852 need_version=no
12853 soname_spec='${libname}${release}${shared_ext}$major'
12854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12855 case $host_os in
12856 irix5* | nonstopux*)
12857 libsuff= shlibsuff=
12858 ;;
12859 *)
12860 case $LD in # libtool.m4 will add one of these switches to LD
12861 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12862 libsuff= shlibsuff= libmagic=32-bit;;
12863 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12864 libsuff=32 shlibsuff=N32 libmagic=N32;;
12865 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12866 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12867 *) libsuff= shlibsuff= libmagic=never-match;;
12868 esac
12869 ;;
12870 esac
12871 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12872 shlibpath_overrides_runpath=no
12873 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12874 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12875 hardcode_into_libs=yes
12876 ;;
12877
12878# No shared lib support for Linux oldld, aout, or coff.
12879linux*oldld* | linux*aout* | linux*coff*)
12880 dynamic_linker=no
12881 ;;
12882
12883# This must be Linux ELF.
12884linux*)
12885 version_type=linux
12886 need_lib_prefix=no
12887 need_version=no
12888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12889 soname_spec='${libname}${release}${shared_ext}$major'
12890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12891 shlibpath_var=LD_LIBRARY_PATH
12892 shlibpath_overrides_runpath=no
12893 # This implies no fast_install, which is unacceptable.
12894 # Some rework will be needed to allow for fast_install
12895 # before this can be enabled.
12896 hardcode_into_libs=yes
12897
12898 # find out which ABI we are using
12899 libsuff=
12900 case "$host_cpu" in
12901 x86_64*|s390x*|powerpc64*)
64ff59ba 12902 echo '#line 12902 "configure"' > conftest.$ac_ext
d9898ee8 12903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12904 (eval $ac_compile) 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; then
12908 case `/usr/bin/file conftest.$ac_objext` in
12909 *64-bit*)
12910 libsuff=64
12911 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12912 ;;
12913 esac
12914 fi
12915 rm -rf conftest*
12916 ;;
12917 esac
12918
12919 # Append ld.so.conf contents to the search path
12920 if test -f /etc/ld.so.conf; then
64ff59ba 12921 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 12922 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12923 fi
12924
12925 # We used to test for /lib/ld.so.1 and disable shared libraries on
12926 # powerpc, because MkLinux only supported shared libraries with the
12927 # GNU dynamic linker. Since this was broken with cross compilers,
12928 # most powerpc-linux boxes support dynamic linking these days and
12929 # people can always --disable-shared, the test was removed, and we
12930 # assume the GNU/Linux dynamic linker is in use.
12931 dynamic_linker='GNU/Linux ld.so'
12932 ;;
12933
12934knetbsd*-gnu)
12935 version_type=linux
12936 need_lib_prefix=no
12937 need_version=no
12938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12939 soname_spec='${libname}${release}${shared_ext}$major'
12940 shlibpath_var=LD_LIBRARY_PATH
12941 shlibpath_overrides_runpath=no
12942 hardcode_into_libs=yes
12943 dynamic_linker='GNU ld.so'
12944 ;;
12945
12946netbsd*)
12947 version_type=sunos
12948 need_lib_prefix=no
12949 need_version=no
12950 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12953 dynamic_linker='NetBSD (a.out) ld.so'
12954 else
12955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12956 soname_spec='${libname}${release}${shared_ext}$major'
12957 dynamic_linker='NetBSD ld.elf_so'
12958 fi
12959 shlibpath_var=LD_LIBRARY_PATH
12960 shlibpath_overrides_runpath=yes
12961 hardcode_into_libs=yes
12962 ;;
12963
12964newsos6)
12965 version_type=linux
12966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12967 shlibpath_var=LD_LIBRARY_PATH
12968 shlibpath_overrides_runpath=yes
12969 ;;
12970
12971nto-qnx*)
12972 version_type=linux
12973 need_lib_prefix=no
12974 need_version=no
12975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12976 soname_spec='${libname}${release}${shared_ext}$major'
12977 shlibpath_var=LD_LIBRARY_PATH
12978 shlibpath_overrides_runpath=yes
12979 ;;
12980
12981openbsd*)
12982 version_type=sunos
12983 sys_lib_dlsearch_path_spec="/usr/lib"
12984 need_lib_prefix=no
12985 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12986 case $host_os in
12987 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12988 *) need_version=no ;;
12989 esac
12990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12992 shlibpath_var=LD_LIBRARY_PATH
12993 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12994 case $host_os in
12995 openbsd2.[89] | openbsd2.[89].*)
12996 shlibpath_overrides_runpath=no
12997 ;;
12998 *)
12999 shlibpath_overrides_runpath=yes
13000 ;;
13001 esac
13002 else
13003 shlibpath_overrides_runpath=yes
13004 fi
13005 ;;
13006
13007os2*)
13008 libname_spec='$name'
13009 shrext_cmds=".dll"
13010 need_lib_prefix=no
13011 library_names_spec='$libname${shared_ext} $libname.a'
13012 dynamic_linker='OS/2 ld.exe'
13013 shlibpath_var=LIBPATH
13014 ;;
13015
13016osf3* | osf4* | osf5*)
13017 version_type=osf
13018 need_lib_prefix=no
13019 need_version=no
13020 soname_spec='${libname}${release}${shared_ext}$major'
13021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13022 shlibpath_var=LD_LIBRARY_PATH
13023 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13024 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13025 ;;
13026
13027solaris*)
13028 version_type=linux
13029 need_lib_prefix=no
13030 need_version=no
13031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13032 soname_spec='${libname}${release}${shared_ext}$major'
13033 shlibpath_var=LD_LIBRARY_PATH
13034 shlibpath_overrides_runpath=yes
13035 hardcode_into_libs=yes
13036 # ldd complains unless libraries are executable
13037 postinstall_cmds='chmod +x $lib'
13038 ;;
13039
13040sunos4*)
13041 version_type=sunos
13042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13043 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13044 shlibpath_var=LD_LIBRARY_PATH
13045 shlibpath_overrides_runpath=yes
13046 if test "$with_gnu_ld" = yes; then
13047 need_lib_prefix=no
13048 fi
13049 need_version=yes
13050 ;;
13051
13052sysv4 | sysv4.3*)
13053 version_type=linux
13054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13055 soname_spec='${libname}${release}${shared_ext}$major'
13056 shlibpath_var=LD_LIBRARY_PATH
13057 case $host_vendor in
13058 sni)
13059 shlibpath_overrides_runpath=no
13060 need_lib_prefix=no
13061 export_dynamic_flag_spec='${wl}-Blargedynsym'
13062 runpath_var=LD_RUN_PATH
13063 ;;
13064 siemens)
13065 need_lib_prefix=no
13066 ;;
13067 motorola)
13068 need_lib_prefix=no
13069 need_version=no
13070 shlibpath_overrides_runpath=no
13071 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13072 ;;
13073 esac
13074 ;;
13075
13076sysv4*MP*)
13077 if test -d /usr/nec ;then
13078 version_type=linux
13079 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13080 soname_spec='$libname${shared_ext}.$major'
13081 shlibpath_var=LD_LIBRARY_PATH
13082 fi
13083 ;;
13084
13085sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13086 version_type=freebsd-elf
13087 need_lib_prefix=no
13088 need_version=no
13089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13090 soname_spec='${libname}${release}${shared_ext}$major'
13091 shlibpath_var=LD_LIBRARY_PATH
13092 hardcode_into_libs=yes
13093 if test "$with_gnu_ld" = yes; then
13094 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13095 shlibpath_overrides_runpath=no
13096 else
13097 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13098 shlibpath_overrides_runpath=yes
13099 case $host_os in
13100 sco3.2v5*)
13101 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13102 ;;
13103 esac
13104 fi
13105 sys_lib_dlsearch_path_spec='/usr/lib'
13106 ;;
13107
13108uts4*)
13109 version_type=linux
13110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13111 soname_spec='${libname}${release}${shared_ext}$major'
13112 shlibpath_var=LD_LIBRARY_PATH
13113 ;;
13114
13115*)
13116 dynamic_linker=no
13117 ;;
13118esac
64ff59ba 13119{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13120echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 13121test "$dynamic_linker" = no && can_build_shared=no
13122
13123variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13124if test "$GCC" = yes; then
13125 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13126fi
13127
64ff59ba 13128{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13129echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 13130hardcode_action_CXX=
13131if test -n "$hardcode_libdir_flag_spec_CXX" || \
13132 test -n "$runpath_var_CXX" || \
13133 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13134
13135 # We can hardcode non-existant directories.
13136 if test "$hardcode_direct_CXX" != no &&
13137 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13138 # have to relink, otherwise we might link with an installed library
13139 # when we should be linking with a yet-to-be-installed one
13140 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13141 test "$hardcode_minus_L_CXX" != no; then
13142 # Linking always hardcodes the temporary library directory.
13143 hardcode_action_CXX=relink
13144 else
13145 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13146 hardcode_action_CXX=immediate
13147 fi
13148else
13149 # We cannot hardcode anything, or else we can only hardcode existing
13150 # directories.
13151 hardcode_action_CXX=unsupported
13152fi
64ff59ba 13153{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13154echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d9898ee8 13155
13156if test "$hardcode_action_CXX" = relink; then
13157 # Fast installation is not supported
13158 enable_fast_install=no
13159elif test "$shlibpath_overrides_runpath" = yes ||
13160 test "$enable_shared" = no; then
13161 # Fast installation is not necessary
13162 enable_fast_install=needless
13163fi
13164
13165
13166# The else clause should only fire when bootstrapping the
13167# libtool distribution, otherwise you forgot to ship ltmain.sh
13168# with your package, and you will get complaints that there are
13169# no rules to generate ltmain.sh.
13170if test -f "$ltmain"; then
13171 # See if we are running on zsh, and set the options which allow our commands through
13172 # without removal of \ escapes.
13173 if test -n "${ZSH_VERSION+set}" ; then
13174 setopt NO_GLOB_SUBST
13175 fi
13176 # Now quote all the things that may contain metacharacters while being
13177 # careful not to overquote the AC_SUBSTed values. We take copies of the
13178 # variables and quote the copies for generation of the libtool script.
13179 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13180 SED SHELL STRIP \
13181 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13182 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13183 deplibs_check_method reload_flag reload_cmds need_locks \
13184 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13185 lt_cv_sys_global_symbol_to_c_name_address \
13186 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13187 old_postinstall_cmds old_postuninstall_cmds \
13188 compiler_CXX \
13189 CC_CXX \
13190 LD_CXX \
13191 lt_prog_compiler_wl_CXX \
13192 lt_prog_compiler_pic_CXX \
13193 lt_prog_compiler_static_CXX \
13194 lt_prog_compiler_no_builtin_flag_CXX \
13195 export_dynamic_flag_spec_CXX \
13196 thread_safe_flag_spec_CXX \
13197 whole_archive_flag_spec_CXX \
13198 enable_shared_with_static_runtimes_CXX \
13199 old_archive_cmds_CXX \
13200 old_archive_from_new_cmds_CXX \
13201 predep_objects_CXX \
13202 postdep_objects_CXX \
13203 predeps_CXX \
13204 postdeps_CXX \
13205 compiler_lib_search_path_CXX \
13206 archive_cmds_CXX \
13207 archive_expsym_cmds_CXX \
13208 postinstall_cmds_CXX \
13209 postuninstall_cmds_CXX \
13210 old_archive_from_expsyms_cmds_CXX \
13211 allow_undefined_flag_CXX \
13212 no_undefined_flag_CXX \
13213 export_symbols_cmds_CXX \
13214 hardcode_libdir_flag_spec_CXX \
13215 hardcode_libdir_flag_spec_ld_CXX \
13216 hardcode_libdir_separator_CXX \
13217 hardcode_automatic_CXX \
13218 module_cmds_CXX \
13219 module_expsym_cmds_CXX \
13220 lt_cv_prog_compiler_c_o_CXX \
13221 exclude_expsyms_CXX \
13222 include_expsyms_CXX; do
13223
13224 case $var in
13225 old_archive_cmds_CXX | \
13226 old_archive_from_new_cmds_CXX | \
13227 archive_cmds_CXX | \
13228 archive_expsym_cmds_CXX | \
13229 module_cmds_CXX | \
13230 module_expsym_cmds_CXX | \
13231 old_archive_from_expsyms_cmds_CXX | \
13232 export_symbols_cmds_CXX | \
13233 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13234 postinstall_cmds | postuninstall_cmds | \
13235 old_postinstall_cmds | old_postuninstall_cmds | \
13236 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13237 # Double-quote double-evaled strings.
13238 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13239 ;;
13240 *)
13241 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13242 ;;
13243 esac
13244 done
13245
13246 case $lt_echo in
13247 *'\$0 --fallback-echo"')
13248 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13249 ;;
13250 esac
13251
13252cfgfile="$ofile"
13253
13254 cat <<__EOF__ >> "$cfgfile"
13255# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13256
13257# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13258
13259# Shell to use when invoking shell scripts.
13260SHELL=$lt_SHELL
13261
13262# Whether or not to build shared libraries.
13263build_libtool_libs=$enable_shared
13264
13265# Whether or not to build static libraries.
13266build_old_libs=$enable_static
13267
13268# Whether or not to add -lc for building shared libraries.
13269build_libtool_need_lc=$archive_cmds_need_lc_CXX
13270
13271# Whether or not to disallow shared libs when runtime libs are static
13272allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13273
13274# Whether or not to optimize for fast installation.
13275fast_install=$enable_fast_install
13276
13277# The host system.
13278host_alias=$host_alias
13279host=$host
13280host_os=$host_os
13281
13282# The build system.
13283build_alias=$build_alias
13284build=$build
13285build_os=$build_os
13286
13287# An echo program that does not interpret backslashes.
13288echo=$lt_echo
13289
13290# The archiver.
13291AR=$lt_AR
13292AR_FLAGS=$lt_AR_FLAGS
13293
13294# A C compiler.
13295LTCC=$lt_LTCC
13296
13297# LTCC compiler flags.
13298LTCFLAGS=$lt_LTCFLAGS
13299
13300# A language-specific compiler.
13301CC=$lt_compiler_CXX
13302
13303# Is the compiler the GNU C compiler?
13304with_gcc=$GCC_CXX
13305
d9898ee8 13306# An ERE matcher.
13307EGREP=$lt_EGREP
13308
13309# The linker used to build libraries.
13310LD=$lt_LD_CXX
13311
13312# Whether we need hard or soft links.
13313LN_S=$lt_LN_S
13314
13315# A BSD-compatible nm program.
13316NM=$lt_NM
13317
13318# A symbol stripping program
13319STRIP=$lt_STRIP
13320
13321# Used to examine libraries when file_magic_cmd begins "file"
13322MAGIC_CMD=$MAGIC_CMD
13323
13324# Used on cygwin: DLL creation program.
13325DLLTOOL="$DLLTOOL"
13326
13327# Used on cygwin: object dumper.
13328OBJDUMP="$OBJDUMP"
13329
13330# Used on cygwin: assembler.
13331AS="$AS"
13332
13333# The name of the directory that contains temporary libtool files.
13334objdir=$objdir
13335
13336# How to create reloadable object files.
13337reload_flag=$lt_reload_flag
13338reload_cmds=$lt_reload_cmds
13339
13340# How to pass a linker flag through the compiler.
13341wl=$lt_lt_prog_compiler_wl_CXX
13342
13343# Object file suffix (normally "o").
13344objext="$ac_objext"
13345
13346# Old archive suffix (normally "a").
13347libext="$libext"
13348
13349# Shared library suffix (normally ".so").
13350shrext_cmds='$shrext_cmds'
13351
13352# Executable file suffix (normally "").
13353exeext="$exeext"
13354
13355# Additional compiler flags for building library objects.
13356pic_flag=$lt_lt_prog_compiler_pic_CXX
13357pic_mode=$pic_mode
13358
13359# What is the maximum length of a command?
13360max_cmd_len=$lt_cv_sys_max_cmd_len
13361
13362# Does compiler simultaneously support -c and -o options?
13363compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13364
13365# Must we lock files when doing compilation?
13366need_locks=$lt_need_locks
13367
13368# Do we need the lib prefix for modules?
13369need_lib_prefix=$need_lib_prefix
13370
13371# Do we need a version for libraries?
13372need_version=$need_version
13373
13374# Whether dlopen is supported.
13375dlopen_support=$enable_dlopen
13376
13377# Whether dlopen of programs is supported.
13378dlopen_self=$enable_dlopen_self
13379
13380# Whether dlopen of statically linked programs is supported.
13381dlopen_self_static=$enable_dlopen_self_static
13382
13383# Compiler flag to prevent dynamic linking.
13384link_static_flag=$lt_lt_prog_compiler_static_CXX
13385
13386# Compiler flag to turn off builtin functions.
13387no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13388
13389# Compiler flag to allow reflexive dlopens.
13390export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13391
13392# Compiler flag to generate shared objects directly from archives.
13393whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13394
13395# Compiler flag to generate thread-safe objects.
13396thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13397
13398# Library versioning type.
13399version_type=$version_type
13400
13401# Format of library name prefix.
13402libname_spec=$lt_libname_spec
13403
13404# List of archive names. First name is the real one, the rest are links.
13405# The last name is the one that the linker finds with -lNAME.
13406library_names_spec=$lt_library_names_spec
13407
13408# The coded name of the library, if different from the real name.
13409soname_spec=$lt_soname_spec
13410
13411# Commands used to build and install an old-style archive.
13412RANLIB=$lt_RANLIB
13413old_archive_cmds=$lt_old_archive_cmds_CXX
13414old_postinstall_cmds=$lt_old_postinstall_cmds
13415old_postuninstall_cmds=$lt_old_postuninstall_cmds
13416
13417# Create an old-style archive from a shared archive.
13418old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13419
13420# Create a temporary old-style archive to link instead of a shared archive.
13421old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13422
13423# Commands used to build and install a shared archive.
13424archive_cmds=$lt_archive_cmds_CXX
13425archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13426postinstall_cmds=$lt_postinstall_cmds
13427postuninstall_cmds=$lt_postuninstall_cmds
13428
13429# Commands used to build a loadable module (assumed same as above if empty)
13430module_cmds=$lt_module_cmds_CXX
13431module_expsym_cmds=$lt_module_expsym_cmds_CXX
13432
13433# Commands to strip libraries.
13434old_striplib=$lt_old_striplib
13435striplib=$lt_striplib
13436
13437# Dependencies to place before the objects being linked to create a
13438# shared library.
64ff59ba 13439predep_objects=$lt_predep_objects_CXX
d9898ee8 13440
13441# Dependencies to place after the objects being linked to create a
13442# shared library.
64ff59ba 13443postdep_objects=$lt_postdep_objects_CXX
d9898ee8 13444
13445# Dependencies to place before the objects being linked to create a
13446# shared library.
13447predeps=$lt_predeps_CXX
13448
13449# Dependencies to place after the objects being linked to create a
13450# shared library.
13451postdeps=$lt_postdeps_CXX
13452
13453# The library search path used internally by the compiler when linking
13454# a shared library.
64ff59ba 13455compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d9898ee8 13456
13457# Method to check whether dependent libraries are shared objects.
13458deplibs_check_method=$lt_deplibs_check_method
13459
13460# Command to use when deplibs_check_method == file_magic.
13461file_magic_cmd=$lt_file_magic_cmd
13462
13463# Flag that allows shared libraries with undefined symbols to be built.
13464allow_undefined_flag=$lt_allow_undefined_flag_CXX
13465
13466# Flag that forces no undefined symbols.
13467no_undefined_flag=$lt_no_undefined_flag_CXX
13468
13469# Commands used to finish a libtool library installation in a directory.
13470finish_cmds=$lt_finish_cmds
13471
13472# Same as above, but a single script fragment to be evaled but not shown.
13473finish_eval=$lt_finish_eval
13474
13475# Take the output of nm and produce a listing of raw symbols and C names.
13476global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13477
13478# Transform the output of nm in a proper C declaration
13479global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13480
13481# Transform the output of nm in a C name address pair
13482global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13483
13484# This is the shared library runtime path variable.
13485runpath_var=$runpath_var
13486
13487# This is the shared library path variable.
13488shlibpath_var=$shlibpath_var
13489
13490# Is shlibpath searched before the hard-coded library search path?
13491shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13492
13493# How to hardcode a shared library path into an executable.
13494hardcode_action=$hardcode_action_CXX
13495
13496# Whether we should hardcode library paths into libraries.
13497hardcode_into_libs=$hardcode_into_libs
13498
13499# Flag to hardcode \$libdir into a binary during linking.
13500# This must work even if \$libdir does not exist.
13501hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13502
13503# If ld is used when linking, flag to hardcode \$libdir into
13504# a binary during linking. This must work even if \$libdir does
13505# not exist.
13506hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13507
13508# Whether we need a single -rpath flag with a separated argument.
13509hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13510
13511# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13512# resulting binary.
13513hardcode_direct=$hardcode_direct_CXX
13514
13515# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13516# resulting binary.
13517hardcode_minus_L=$hardcode_minus_L_CXX
13518
13519# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13520# the resulting binary.
13521hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13522
13523# Set to yes if building a shared library automatically hardcodes DIR into the library
13524# and all subsequent libraries and executables linked against it.
13525hardcode_automatic=$hardcode_automatic_CXX
13526
13527# Variables whose values should be saved in libtool wrapper scripts and
13528# restored at relink time.
13529variables_saved_for_relink="$variables_saved_for_relink"
13530
13531# Whether libtool must link a program against all its dependency libraries.
13532link_all_deplibs=$link_all_deplibs_CXX
13533
13534# Compile-time system search path for libraries
64ff59ba 13535sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 13536
13537# Run-time system search path for libraries
13538sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13539
13540# Fix the shell variable \$srcfile for the compiler.
13541fix_srcfile_path="$fix_srcfile_path_CXX"
13542
13543# Set to yes if exported symbols are required.
13544always_export_symbols=$always_export_symbols_CXX
13545
13546# The commands to list exported symbols.
13547export_symbols_cmds=$lt_export_symbols_cmds_CXX
13548
13549# The commands to extract the exported symbol list from a shared archive.
13550extract_expsyms_cmds=$lt_extract_expsyms_cmds
13551
13552# Symbols that should not be listed in the preloaded symbols.
13553exclude_expsyms=$lt_exclude_expsyms_CXX
13554
13555# Symbols that must always be exported.
13556include_expsyms=$lt_include_expsyms_CXX
13557
13558# ### END LIBTOOL TAG CONFIG: $tagname
13559
13560__EOF__
13561
13562
13563else
13564 # If there is no Makefile yet, we rely on a make rule to execute
13565 # `config.status --recheck' to rerun these tests and create the
13566 # libtool script then.
13567 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13568 if test -f "$ltmain_in"; then
13569 test -f Makefile && make "$ltmain"
13570 fi
13571fi
13572
13573
13574ac_ext=c
13575ac_cpp='$CPP $CPPFLAGS'
13576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13578ac_compiler_gnu=$ac_cv_c_compiler_gnu
13579
13580CC=$lt_save_CC
13581LDCXX=$LD
13582LD=$lt_save_LD
13583GCC=$lt_save_GCC
13584with_gnu_ldcxx=$with_gnu_ld
13585with_gnu_ld=$lt_save_with_gnu_ld
13586lt_cv_path_LDCXX=$lt_cv_path_LD
13587lt_cv_path_LD=$lt_save_path_LD
13588lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13589lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13590
13591 else
13592 tagname=""
13593 fi
13594 ;;
13595
13596 F77)
13597 if test -n "$F77" && test "X$F77" != "Xno"; then
13598
13599ac_ext=f
13600ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13601ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13602ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13603
13604
13605archive_cmds_need_lc_F77=no
13606allow_undefined_flag_F77=
13607always_export_symbols_F77=no
13608archive_expsym_cmds_F77=
13609export_dynamic_flag_spec_F77=
13610hardcode_direct_F77=no
13611hardcode_libdir_flag_spec_F77=
13612hardcode_libdir_flag_spec_ld_F77=
13613hardcode_libdir_separator_F77=
13614hardcode_minus_L_F77=no
13615hardcode_automatic_F77=no
13616module_cmds_F77=
13617module_expsym_cmds_F77=
13618link_all_deplibs_F77=unknown
13619old_archive_cmds_F77=$old_archive_cmds
13620no_undefined_flag_F77=
13621whole_archive_flag_spec_F77=
13622enable_shared_with_static_runtimes_F77=no
13623
13624# Source file extension for f77 test sources.
13625ac_ext=f
13626
13627# Object file extension for compiled f77 test sources.
13628objext=o
13629objext_F77=$objext
13630
13631# Code to be used in simple compile tests
13632lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13633
13634# Code to be used in simple link tests
13635lt_simple_link_test_code=" program t\n end\n"
13636
13637# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13638
13639# If no C compiler was specified, use CC.
13640LTCC=${LTCC-"$CC"}
13641
13642# If no C compiler flags were specified, use CFLAGS.
13643LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13644
13645# Allow CC to be a program name with arguments.
13646compiler=$CC
13647
13648
13649# save warnings/boilerplate of simple test code
13650ac_outfile=conftest.$ac_objext
13651printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13652eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13653_lt_compiler_boilerplate=`cat conftest.err`
13654$rm conftest*
13655
13656ac_outfile=conftest.$ac_objext
13657printf "$lt_simple_link_test_code" >conftest.$ac_ext
13658eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13659_lt_linker_boilerplate=`cat conftest.err`
13660$rm conftest*
13661
13662
13663# Allow CC to be a program name with arguments.
13664lt_save_CC="$CC"
13665CC=${F77-"f77"}
13666compiler=$CC
13667compiler_F77=$CC
13668for cc_temp in $compiler""; do
13669 case $cc_temp in
13670 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13671 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13672 \-*) ;;
13673 *) break;;
13674 esac
13675done
13676cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13677
13678
64ff59ba 13679{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13680echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13681{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13682echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 13683
64ff59ba 13684{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13685echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 13686test "$can_build_shared" = "no" && enable_shared=no
13687
13688# On AIX, shared libraries and static libraries use the same namespace, and
13689# are all built from PIC.
13690case $host_os in
13691aix3*)
13692 test "$enable_shared" = yes && enable_static=no
13693 if test -n "$RANLIB"; then
13694 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13695 postinstall_cmds='$RANLIB $lib'
13696 fi
13697 ;;
13698aix4* | aix5*)
13699 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13700 test "$enable_shared" = yes && enable_static=no
13701 fi
13702 ;;
13703esac
64ff59ba 13704{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13705echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 13706
64ff59ba 13707{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13708echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 13709# Make sure either enable_shared or enable_static is yes.
13710test "$enable_shared" = yes || enable_static=yes
64ff59ba 13711{ echo "$as_me:$LINENO: result: $enable_static" >&5
13712echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 13713
13714GCC_F77="$G77"
13715LD_F77="$LD"
13716
13717lt_prog_compiler_wl_F77=
13718lt_prog_compiler_pic_F77=
13719lt_prog_compiler_static_F77=
13720
64ff59ba 13721{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13722echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 13723
13724 if test "$GCC" = yes; then
13725 lt_prog_compiler_wl_F77='-Wl,'
13726 lt_prog_compiler_static_F77='-static'
13727
13728 case $host_os in
13729 aix*)
13730 # All AIX code is PIC.
13731 if test "$host_cpu" = ia64; then
13732 # AIX 5 now supports IA64 processor
13733 lt_prog_compiler_static_F77='-Bstatic'
13734 fi
13735 ;;
13736
13737 amigaos*)
13738 # FIXME: we need at least 68020 code to build shared libraries, but
13739 # adding the `-m68020' flag to GCC prevents building anything better,
13740 # like `-m68040'.
13741 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13742 ;;
13743
13744 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13745 # PIC is the default for these OSes.
13746 ;;
13747
13748 mingw* | pw32* | os2*)
13749 # This hack is so that the source file can tell whether it is being
13750 # built for inclusion in a dll (and should export symbols for example).
13751 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13752 ;;
13753
13754 darwin* | rhapsody*)
13755 # PIC is the default on this platform
13756 # Common symbols not allowed in MH_DYLIB files
13757 lt_prog_compiler_pic_F77='-fno-common'
13758 ;;
13759
13760 interix3*)
13761 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13762 # Instead, we relocate shared libraries at runtime.
13763 ;;
13764
13765 msdosdjgpp*)
13766 # Just because we use GCC doesn't mean we suddenly get shared libraries
13767 # on systems that don't support them.
13768 lt_prog_compiler_can_build_shared_F77=no
13769 enable_shared=no
13770 ;;
13771
13772 sysv4*MP*)
13773 if test -d /usr/nec; then
13774 lt_prog_compiler_pic_F77=-Kconform_pic
13775 fi
13776 ;;
13777
13778 hpux*)
13779 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13780 # not for PA HP-UX.
13781 case $host_cpu in
13782 hppa*64*|ia64*)
13783 # +Z the default
13784 ;;
13785 *)
13786 lt_prog_compiler_pic_F77='-fPIC'
13787 ;;
13788 esac
13789 ;;
13790
13791 *)
13792 lt_prog_compiler_pic_F77='-fPIC'
13793 ;;
13794 esac
13795 else
13796 # PORTME Check for flag to pass linker flags through the system compiler.
13797 case $host_os in
13798 aix*)
13799 lt_prog_compiler_wl_F77='-Wl,'
13800 if test "$host_cpu" = ia64; then
13801 # AIX 5 now supports IA64 processor
13802 lt_prog_compiler_static_F77='-Bstatic'
13803 else
13804 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13805 fi
13806 ;;
13807 darwin*)
13808 # PIC is the default on this platform
13809 # Common symbols not allowed in MH_DYLIB files
13810 case $cc_basename in
13811 xlc*)
13812 lt_prog_compiler_pic_F77='-qnocommon'
13813 lt_prog_compiler_wl_F77='-Wl,'
13814 ;;
13815 esac
13816 ;;
13817
13818 mingw* | pw32* | os2*)
13819 # This hack is so that the source file can tell whether it is being
13820 # built for inclusion in a dll (and should export symbols for example).
13821 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13822 ;;
13823
13824 hpux9* | hpux10* | hpux11*)
13825 lt_prog_compiler_wl_F77='-Wl,'
13826 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13827 # not for PA HP-UX.
13828 case $host_cpu in
13829 hppa*64*|ia64*)
13830 # +Z the default
13831 ;;
13832 *)
13833 lt_prog_compiler_pic_F77='+Z'
13834 ;;
13835 esac
13836 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13837 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13838 ;;
13839
13840 irix5* | irix6* | nonstopux*)
13841 lt_prog_compiler_wl_F77='-Wl,'
13842 # PIC (with -KPIC) is the default.
13843 lt_prog_compiler_static_F77='-non_shared'
13844 ;;
13845
13846 newsos6)
13847 lt_prog_compiler_pic_F77='-KPIC'
13848 lt_prog_compiler_static_F77='-Bstatic'
13849 ;;
13850
13851 linux*)
13852 case $cc_basename in
13853 icc* | ecc*)
13854 lt_prog_compiler_wl_F77='-Wl,'
13855 lt_prog_compiler_pic_F77='-KPIC'
13856 lt_prog_compiler_static_F77='-static'
13857 ;;
13858 pgcc* | pgf77* | pgf90* | pgf95*)
13859 # Portland Group compilers (*not* the Pentium gcc compiler,
13860 # which looks to be a dead project)
13861 lt_prog_compiler_wl_F77='-Wl,'
13862 lt_prog_compiler_pic_F77='-fpic'
13863 lt_prog_compiler_static_F77='-Bstatic'
13864 ;;
13865 ccc*)
13866 lt_prog_compiler_wl_F77='-Wl,'
13867 # All Alpha code is PIC.
13868 lt_prog_compiler_static_F77='-non_shared'
13869 ;;
13870 esac
13871 ;;
13872
13873 osf3* | osf4* | osf5*)
13874 lt_prog_compiler_wl_F77='-Wl,'
13875 # All OSF/1 code is PIC.
13876 lt_prog_compiler_static_F77='-non_shared'
13877 ;;
13878
13879 solaris*)
13880 lt_prog_compiler_pic_F77='-KPIC'
13881 lt_prog_compiler_static_F77='-Bstatic'
13882 case $cc_basename in
13883 f77* | f90* | f95*)
13884 lt_prog_compiler_wl_F77='-Qoption ld ';;
13885 *)
13886 lt_prog_compiler_wl_F77='-Wl,';;
13887 esac
13888 ;;
13889
13890 sunos4*)
13891 lt_prog_compiler_wl_F77='-Qoption ld '
13892 lt_prog_compiler_pic_F77='-PIC'
13893 lt_prog_compiler_static_F77='-Bstatic'
13894 ;;
13895
13896 sysv4 | sysv4.2uw2* | sysv4.3*)
13897 lt_prog_compiler_wl_F77='-Wl,'
13898 lt_prog_compiler_pic_F77='-KPIC'
13899 lt_prog_compiler_static_F77='-Bstatic'
13900 ;;
13901
13902 sysv4*MP*)
13903 if test -d /usr/nec ;then
13904 lt_prog_compiler_pic_F77='-Kconform_pic'
13905 lt_prog_compiler_static_F77='-Bstatic'
13906 fi
13907 ;;
13908
13909 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13910 lt_prog_compiler_wl_F77='-Wl,'
13911 lt_prog_compiler_pic_F77='-KPIC'
13912 lt_prog_compiler_static_F77='-Bstatic'
13913 ;;
13914
13915 unicos*)
13916 lt_prog_compiler_wl_F77='-Wl,'
13917 lt_prog_compiler_can_build_shared_F77=no
13918 ;;
13919
13920 uts4*)
13921 lt_prog_compiler_pic_F77='-pic'
13922 lt_prog_compiler_static_F77='-Bstatic'
13923 ;;
13924
13925 *)
13926 lt_prog_compiler_can_build_shared_F77=no
13927 ;;
13928 esac
13929 fi
13930
64ff59ba 13931{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13932echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d9898ee8 13933
13934#
13935# Check to make sure the PIC flag actually works.
13936#
13937if test -n "$lt_prog_compiler_pic_F77"; then
13938
64ff59ba 13939{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13940echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
d9898ee8 13941if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13943else
13944 lt_prog_compiler_pic_works_F77=no
13945 ac_outfile=conftest.$ac_objext
13946 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13947 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13948 # Insert the option either (1) after the last *FLAGS variable, or
13949 # (2) before a word containing "conftest.", or (3) at the end.
13950 # Note that $ac_compile itself does not contain backslashes and begins
13951 # with a dollar sign (not a hyphen), so the echo should work correctly.
13952 # The option is referenced via a variable to avoid confusing sed.
13953 lt_compile=`echo "$ac_compile" | $SED \
13954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13956 -e 's:$: $lt_compiler_flag:'`
64ff59ba 13957 (eval echo "\"\$as_me:13957: $lt_compile\"" >&5)
d9898ee8 13958 (eval "$lt_compile" 2>conftest.err)
13959 ac_status=$?
13960 cat conftest.err >&5
64ff59ba 13961 echo "$as_me:13961: \$? = $ac_status" >&5
d9898ee8 13962 if (exit $ac_status) && test -s "$ac_outfile"; then
13963 # The compiler can only warn and ignore the option if not recognized
13964 # So say no if there are warnings other than the usual output.
13965 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13967 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13968 lt_prog_compiler_pic_works_F77=yes
13969 fi
13970 fi
13971 $rm conftest*
13972
13973fi
64ff59ba 13974{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13975echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d9898ee8 13976
13977if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13978 case $lt_prog_compiler_pic_F77 in
13979 "" | " "*) ;;
13980 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13981 esac
13982else
13983 lt_prog_compiler_pic_F77=
13984 lt_prog_compiler_can_build_shared_F77=no
13985fi
13986
13987fi
13988case $host_os in
13989 # For platforms which do not support PIC, -DPIC is meaningless:
13990 *djgpp*)
13991 lt_prog_compiler_pic_F77=
13992 ;;
13993 *)
13994 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13995 ;;
13996esac
13997
13998#
13999# Check to make sure the static flag actually works.
14000#
14001wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
64ff59ba 14002{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14003echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 14004if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14006else
14007 lt_prog_compiler_static_works_F77=no
14008 save_LDFLAGS="$LDFLAGS"
14009 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14010 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14011 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14012 # The linker can only warn and ignore the option if not recognized
14013 # So say no if there are warnings
14014 if test -s conftest.err; then
14015 # Append any errors to the config.log.
14016 cat conftest.err 1>&5
14017 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14019 if diff conftest.exp conftest.er2 >/dev/null; then
14020 lt_prog_compiler_static_works_F77=yes
14021 fi
14022 else
14023 lt_prog_compiler_static_works_F77=yes
14024 fi
14025 fi
14026 $rm conftest*
14027 LDFLAGS="$save_LDFLAGS"
14028
14029fi
64ff59ba 14030{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14031echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
d9898ee8 14032
14033if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14034 :
14035else
14036 lt_prog_compiler_static_F77=
14037fi
14038
14039
64ff59ba 14040{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14041echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 14042if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14044else
14045 lt_cv_prog_compiler_c_o_F77=no
14046 $rm -r conftest 2>/dev/null
14047 mkdir conftest
14048 cd conftest
14049 mkdir out
14050 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14051
14052 lt_compiler_flag="-o out/conftest2.$ac_objext"
14053 # Insert the option either (1) after the last *FLAGS variable, or
14054 # (2) before a word containing "conftest.", or (3) at the end.
14055 # Note that $ac_compile itself does not contain backslashes and begins
14056 # with a dollar sign (not a hyphen), so the echo should work correctly.
14057 lt_compile=`echo "$ac_compile" | $SED \
14058 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14060 -e 's:$: $lt_compiler_flag:'`
64ff59ba 14061 (eval echo "\"\$as_me:14061: $lt_compile\"" >&5)
d9898ee8 14062 (eval "$lt_compile" 2>out/conftest.err)
14063 ac_status=$?
14064 cat out/conftest.err >&5
64ff59ba 14065 echo "$as_me:14065: \$? = $ac_status" >&5
d9898ee8 14066 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14067 then
14068 # The compiler can only warn and ignore the option if not recognized
14069 # So say no if there are warnings
14070 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14071 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14072 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14073 lt_cv_prog_compiler_c_o_F77=yes
14074 fi
14075 fi
14076 chmod u+w . 2>&5
14077 $rm conftest*
14078 # SGI C++ compiler will create directory out/ii_files/ for
14079 # template instantiation
14080 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14081 $rm out/* && rmdir out
14082 cd ..
14083 rmdir conftest
14084 $rm conftest*
14085
14086fi
64ff59ba 14087{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14088echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d9898ee8 14089
14090
14091hard_links="nottested"
14092if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14093 # do not overwrite the value of need_locks provided by the user
64ff59ba 14094 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14095echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 14096 hard_links=yes
14097 $rm conftest*
14098 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14099 touch conftest.a
14100 ln conftest.a conftest.b 2>&5 || hard_links=no
14101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 14102 { echo "$as_me:$LINENO: result: $hard_links" >&5
14103echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 14104 if test "$hard_links" = no; then
14105 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14106echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14107 need_locks=warn
14108 fi
14109else
14110 need_locks=no
14111fi
14112
64ff59ba 14113{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14114echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 14115
14116 runpath_var=
14117 allow_undefined_flag_F77=
14118 enable_shared_with_static_runtimes_F77=no
14119 archive_cmds_F77=
14120 archive_expsym_cmds_F77=
14121 old_archive_From_new_cmds_F77=
14122 old_archive_from_expsyms_cmds_F77=
14123 export_dynamic_flag_spec_F77=
14124 whole_archive_flag_spec_F77=
14125 thread_safe_flag_spec_F77=
14126 hardcode_libdir_flag_spec_F77=
14127 hardcode_libdir_flag_spec_ld_F77=
14128 hardcode_libdir_separator_F77=
14129 hardcode_direct_F77=no
14130 hardcode_minus_L_F77=no
14131 hardcode_shlibpath_var_F77=unsupported
14132 link_all_deplibs_F77=unknown
14133 hardcode_automatic_F77=no
14134 module_cmds_F77=
14135 module_expsym_cmds_F77=
14136 always_export_symbols_F77=no
14137 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14138 # include_expsyms should be a list of space-separated symbols to be *always*
14139 # included in the symbol list
14140 include_expsyms_F77=
14141 # exclude_expsyms can be an extended regexp of symbols to exclude
14142 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14143 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14144 # as well as any symbol that contains `d'.
14145 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14146 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14147 # platforms (ab)use it in PIC code, but their linkers get confused if
14148 # the symbol is explicitly referenced. Since portable code cannot
14149 # rely on this symbol name, it's probably fine to never include it in
14150 # preloaded symbol tables.
14151 extract_expsyms_cmds=
14152 # Just being paranoid about ensuring that cc_basename is set.
14153 for cc_temp in $compiler""; do
14154 case $cc_temp in
14155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14157 \-*) ;;
14158 *) break;;
14159 esac
14160done
14161cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14162
14163 case $host_os in
14164 cygwin* | mingw* | pw32*)
14165 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14166 # When not using gcc, we currently assume that we are using
14167 # Microsoft Visual C++.
14168 if test "$GCC" != yes; then
14169 with_gnu_ld=no
14170 fi
14171 ;;
14172 interix*)
14173 # we just hope/assume this is gcc and not c89 (= MSVC++)
14174 with_gnu_ld=yes
14175 ;;
14176 openbsd*)
14177 with_gnu_ld=no
14178 ;;
14179 esac
14180
14181 ld_shlibs_F77=yes
14182 if test "$with_gnu_ld" = yes; then
14183 # If archive_cmds runs LD, not CC, wlarc should be empty
14184 wlarc='${wl}'
14185
14186 # Set some defaults for GNU ld with shared library support. These
14187 # are reset later if shared libraries are not supported. Putting them
14188 # here allows them to be overridden if necessary.
14189 runpath_var=LD_RUN_PATH
14190 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14191 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14192 # ancient GNU ld didn't support --whole-archive et. al.
14193 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14194 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14195 else
14196 whole_archive_flag_spec_F77=
14197 fi
14198 supports_anon_versioning=no
14199 case `$LD -v 2>/dev/null` in
14200 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14201 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14202 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14203 *\ 2.11.*) ;; # other 2.11 versions
14204 *) supports_anon_versioning=yes ;;
14205 esac
14206
14207 # See if GNU ld supports shared libraries.
14208 case $host_os in
14209 aix3* | aix4* | aix5*)
14210 # On AIX/PPC, the GNU linker is very broken
14211 if test "$host_cpu" != ia64; then
14212 ld_shlibs_F77=no
14213 cat <<EOF 1>&2
14214
14215*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14216*** to be unable to reliably create shared libraries on AIX.
14217*** Therefore, libtool is disabling shared libraries support. If you
14218*** really care for shared libraries, you may want to modify your PATH
14219*** so that a non-GNU linker is found, and then restart.
14220
14221EOF
14222 fi
14223 ;;
14224
14225 amigaos*)
14226 archive_cmds_F77='$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)'
14227 hardcode_libdir_flag_spec_F77='-L$libdir'
14228 hardcode_minus_L_F77=yes
14229
14230 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14231 # that the semantics of dynamic libraries on AmigaOS, at least up
14232 # to version 4, is to share data among multiple programs linked
14233 # with the same dynamic library. Since this doesn't match the
14234 # behavior of shared libraries on other platforms, we can't use
14235 # them.
14236 ld_shlibs_F77=no
14237 ;;
14238
14239 beos*)
14240 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14241 allow_undefined_flag_F77=unsupported
14242 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14243 # support --undefined. This deserves some investigation. FIXME
14244 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14245 else
14246 ld_shlibs_F77=no
14247 fi
14248 ;;
14249
14250 cygwin* | mingw* | pw32*)
14251 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14252 # as there is no search path for DLLs.
14253 hardcode_libdir_flag_spec_F77='-L$libdir'
14254 allow_undefined_flag_F77=unsupported
14255 always_export_symbols_F77=no
14256 enable_shared_with_static_runtimes_F77=yes
14257 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14258
14259 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14260 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14261 # If the export-symbols file already is a .def file (1st line
14262 # is EXPORTS), use it as is; otherwise, prepend...
14263 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14264 cp $export_symbols $output_objdir/$soname.def;
14265 else
14266 echo EXPORTS > $output_objdir/$soname.def;
14267 cat $export_symbols >> $output_objdir/$soname.def;
14268 fi~
14269 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14270 else
14271 ld_shlibs_F77=no
14272 fi
14273 ;;
14274
14275 interix3*)
14276 hardcode_direct_F77=no
14277 hardcode_shlibpath_var_F77=no
14278 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14279 export_dynamic_flag_spec_F77='${wl}-E'
14280 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14281 # Instead, shared libraries are loaded at an image base (0x10000000 by
14282 # default) and relocated if they conflict, which is a slow very memory
14283 # consuming and fragmenting process. To avoid this, we pick a random,
14284 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14285 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14286 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14287 archive_expsym_cmds_F77='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'
14288 ;;
14289
14290 linux*)
14291 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14292 tmp_addflag=
14293 case $cc_basename,$host_cpu in
14294 pgcc*) # Portland Group C compiler
14295 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14296 tmp_addflag=' $pic_flag'
14297 ;;
14298 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14299 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14300 tmp_addflag=' $pic_flag -Mnomain' ;;
14301 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14302 tmp_addflag=' -i_dynamic' ;;
14303 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14304 tmp_addflag=' -i_dynamic -nofor_main' ;;
14305 ifc* | ifort*) # Intel Fortran compiler
14306 tmp_addflag=' -nofor_main' ;;
14307 esac
14308 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14309
14310 if test $supports_anon_versioning = yes; then
14311 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14312 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14313 $echo "local: *; };" >> $output_objdir/$libname.ver~
14314 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14315 fi
14316 else
14317 ld_shlibs_F77=no
14318 fi
14319 ;;
14320
14321 netbsd*)
14322 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14323 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14324 wlarc=
14325 else
14326 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14327 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14328 fi
14329 ;;
14330
14331 solaris*)
14332 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14333 ld_shlibs_F77=no
14334 cat <<EOF 1>&2
14335
14336*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14337*** create shared libraries on Solaris systems. Therefore, libtool
14338*** is disabling shared libraries support. We urge you to upgrade GNU
14339*** binutils to release 2.9.1 or newer. Another option is to modify
14340*** your PATH or compiler configuration so that the native linker is
14341*** used, and then restart.
14342
14343EOF
14344 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14345 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14346 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14347 else
14348 ld_shlibs_F77=no
14349 fi
14350 ;;
14351
14352 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14353 case `$LD -v 2>&1` in
14354 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14355 ld_shlibs_F77=no
14356 cat <<_LT_EOF 1>&2
14357
14358*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14359*** reliably create shared libraries on SCO systems. Therefore, libtool
14360*** is disabling shared libraries support. We urge you to upgrade GNU
14361*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14362*** your PATH or compiler configuration so that the native linker is
14363*** used, and then restart.
14364
14365_LT_EOF
14366 ;;
14367 *)
14368 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14369 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14370 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14371 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14372 else
14373 ld_shlibs_F77=no
14374 fi
14375 ;;
14376 esac
14377 ;;
14378
14379 sunos4*)
14380 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14381 wlarc=
14382 hardcode_direct_F77=yes
14383 hardcode_shlibpath_var_F77=no
14384 ;;
14385
14386 *)
14387 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14388 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14389 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14390 else
14391 ld_shlibs_F77=no
14392 fi
14393 ;;
14394 esac
14395
14396 if test "$ld_shlibs_F77" = no; then
14397 runpath_var=
14398 hardcode_libdir_flag_spec_F77=
14399 export_dynamic_flag_spec_F77=
14400 whole_archive_flag_spec_F77=
14401 fi
14402 else
14403 # PORTME fill in a description of your system's linker (not GNU ld)
14404 case $host_os in
14405 aix3*)
14406 allow_undefined_flag_F77=unsupported
14407 always_export_symbols_F77=yes
14408 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14409 # Note: this linker hardcodes the directories in LIBPATH if there
14410 # are no directories specified by -L.
14411 hardcode_minus_L_F77=yes
14412 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14413 # Neither direct hardcoding nor static linking is supported with a
14414 # broken collect2.
14415 hardcode_direct_F77=unsupported
14416 fi
14417 ;;
14418
14419 aix4* | aix5*)
14420 if test "$host_cpu" = ia64; then
14421 # On IA64, the linker does run time linking by default, so we don't
14422 # have to do anything special.
14423 aix_use_runtimelinking=no
14424 exp_sym_flag='-Bexport'
14425 no_entry_flag=""
14426 else
14427 # If we're using GNU nm, then we don't want the "-C" option.
14428 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14429 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14430 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14431 else
14432 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14433 fi
14434 aix_use_runtimelinking=no
14435
14436 # Test if we are trying to use run time linking or normal
14437 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14438 # need to do runtime linking.
14439 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14440 for ld_flag in $LDFLAGS; do
14441 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14442 aix_use_runtimelinking=yes
14443 break
14444 fi
14445 done
14446 ;;
14447 esac
14448
14449 exp_sym_flag='-bexport'
14450 no_entry_flag='-bnoentry'
14451 fi
14452
14453 # When large executables or shared objects are built, AIX ld can
14454 # have problems creating the table of contents. If linking a library
14455 # or program results in "error TOC overflow" add -mminimal-toc to
14456 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14457 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14458
14459 archive_cmds_F77=''
14460 hardcode_direct_F77=yes
14461 hardcode_libdir_separator_F77=':'
14462 link_all_deplibs_F77=yes
14463
14464 if test "$GCC" = yes; then
14465 case $host_os in aix4.[012]|aix4.[012].*)
14466 # We only want to do this on AIX 4.2 and lower, the check
14467 # below for broken collect2 doesn't work under 4.3+
14468 collect2name=`${CC} -print-prog-name=collect2`
14469 if test -f "$collect2name" && \
14470 strings "$collect2name" | grep resolve_lib_name >/dev/null
14471 then
14472 # We have reworked collect2
14473 hardcode_direct_F77=yes
14474 else
14475 # We have old collect2
14476 hardcode_direct_F77=unsupported
14477 # It fails to find uninstalled libraries when the uninstalled
14478 # path is not listed in the libpath. Setting hardcode_minus_L
14479 # to unsupported forces relinking
14480 hardcode_minus_L_F77=yes
14481 hardcode_libdir_flag_spec_F77='-L$libdir'
14482 hardcode_libdir_separator_F77=
14483 fi
14484 ;;
14485 esac
14486 shared_flag='-shared'
14487 if test "$aix_use_runtimelinking" = yes; then
14488 shared_flag="$shared_flag "'${wl}-G'
14489 fi
14490 else
14491 # not using gcc
14492 if test "$host_cpu" = ia64; then
14493 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14494 # chokes on -Wl,-G. The following line is correct:
14495 shared_flag='-G'
14496 else
14497 if test "$aix_use_runtimelinking" = yes; then
14498 shared_flag='${wl}-G'
14499 else
14500 shared_flag='${wl}-bM:SRE'
14501 fi
14502 fi
14503 fi
14504
14505 # It seems that -bexpall does not export symbols beginning with
14506 # underscore (_), so it is better to generate a list of symbols to export.
14507 always_export_symbols_F77=yes
14508 if test "$aix_use_runtimelinking" = yes; then
14509 # Warning - without using the other runtime loading flags (-brtl),
14510 # -berok will link without error, but may produce a broken library.
14511 allow_undefined_flag_F77='-berok'
14512 # Determine the default libpath from the value encoded in an empty executable.
14513 cat >conftest.$ac_ext <<_ACEOF
14514 program main
14515
14516 end
14517_ACEOF
14518rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 14519if { (ac_try="$ac_link"
14520case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14523esac
14524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525 (eval "$ac_link") 2>conftest.er1
d9898ee8 14526 ac_status=$?
14527 grep -v '^ *+' conftest.er1 >conftest.err
14528 rm -f conftest.er1
14529 cat conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 14531 (exit $ac_status); } && {
14532 test -z "$ac_f77_werror_flag" ||
14533 test ! -s conftest.err
14534 } && test -s conftest$ac_exeext &&
14535 $as_test_x conftest$ac_exeext; then
d9898ee8 14536
14537aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14538}'`
14539# Check for a 64-bit object if we didn't find anything.
14540if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14541}'`; fi
14542else
14543 echo "$as_me: failed program was:" >&5
14544sed 's/^/| /' conftest.$ac_ext >&5
14545
64ff59ba 14546
d9898ee8 14547fi
64ff59ba 14548
14549rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14550 conftest$ac_exeext conftest.$ac_ext
14551if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14552
14553 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14554 archive_expsym_cmds_F77="\$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"
14555 else
14556 if test "$host_cpu" = ia64; then
14557 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14558 allow_undefined_flag_F77="-z nodefs"
14559 archive_expsym_cmds_F77="\$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"
14560 else
14561 # Determine the default libpath from the value encoded in an empty executable.
14562 cat >conftest.$ac_ext <<_ACEOF
14563 program main
14564
14565 end
14566_ACEOF
14567rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 14568if { (ac_try="$ac_link"
14569case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14572esac
14573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_link") 2>conftest.er1
d9898ee8 14575 ac_status=$?
14576 grep -v '^ *+' conftest.er1 >conftest.err
14577 rm -f conftest.er1
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 14580 (exit $ac_status); } && {
14581 test -z "$ac_f77_werror_flag" ||
14582 test ! -s conftest.err
14583 } && test -s conftest$ac_exeext &&
14584 $as_test_x conftest$ac_exeext; then
d9898ee8 14585
14586aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14587}'`
14588# Check for a 64-bit object if we didn't find anything.
14589if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14590}'`; fi
14591else
14592 echo "$as_me: failed program was:" >&5
14593sed 's/^/| /' conftest.$ac_ext >&5
14594
64ff59ba 14595
d9898ee8 14596fi
64ff59ba 14597
14598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14599 conftest$ac_exeext conftest.$ac_ext
14600if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14601
14602 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14603 # Warning - without using the other run time loading flags,
14604 # -berok will link without error, but may produce a broken library.
14605 no_undefined_flag_F77=' ${wl}-bernotok'
14606 allow_undefined_flag_F77=' ${wl}-berok'
14607 # Exported symbols can be pulled into shared objects from archives
14608 whole_archive_flag_spec_F77='$convenience'
14609 archive_cmds_need_lc_F77=yes
14610 # This is similar to how AIX traditionally builds its shared libraries.
14611 archive_expsym_cmds_F77="\$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'
14612 fi
14613 fi
14614 ;;
14615
14616 amigaos*)
14617 archive_cmds_F77='$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)'
14618 hardcode_libdir_flag_spec_F77='-L$libdir'
14619 hardcode_minus_L_F77=yes
14620 # see comment about different semantics on the GNU ld section
14621 ld_shlibs_F77=no
14622 ;;
14623
14624 bsdi[45]*)
14625 export_dynamic_flag_spec_F77=-rdynamic
14626 ;;
14627
14628 cygwin* | mingw* | pw32*)
14629 # When not using gcc, we currently assume that we are using
14630 # Microsoft Visual C++.
14631 # hardcode_libdir_flag_spec is actually meaningless, as there is
14632 # no search path for DLLs.
14633 hardcode_libdir_flag_spec_F77=' '
14634 allow_undefined_flag_F77=unsupported
14635 # Tell ltmain to make .lib files, not .a files.
14636 libext=lib
14637 # Tell ltmain to make .dll files, not .so files.
14638 shrext_cmds=".dll"
14639 # FIXME: Setting linknames here is a bad hack.
14640 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14641 # The linker will automatically build a .lib file if we build a DLL.
14642 old_archive_From_new_cmds_F77='true'
14643 # FIXME: Should let the user specify the lib program.
14644 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14645 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14646 enable_shared_with_static_runtimes_F77=yes
14647 ;;
14648
14649 darwin* | rhapsody*)
14650 case $host_os in
14651 rhapsody* | darwin1.[012])
14652 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14653 ;;
14654 *) # Darwin 1.3 on
14655 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14656 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14657 else
14658 case ${MACOSX_DEPLOYMENT_TARGET} in
14659 10.[012])
14660 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14661 ;;
14662 10.*)
14663 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14664 ;;
14665 esac
14666 fi
14667 ;;
14668 esac
14669 archive_cmds_need_lc_F77=no
14670 hardcode_direct_F77=no
14671 hardcode_automatic_F77=yes
14672 hardcode_shlibpath_var_F77=unsupported
14673 whole_archive_flag_spec_F77=''
14674 link_all_deplibs_F77=yes
14675 if test "$GCC" = yes ; then
14676 output_verbose_link_cmd='echo'
14677 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14678 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14679 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14680 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14681 module_expsym_cmds_F77='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}'
14682 else
14683 case $cc_basename in
14684 xlc*)
14685 output_verbose_link_cmd='echo'
14686 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14687 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14688 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14689 archive_expsym_cmds_F77='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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14690 module_expsym_cmds_F77='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}'
14691 ;;
14692 *)
14693 ld_shlibs_F77=no
14694 ;;
14695 esac
14696 fi
14697 ;;
14698
14699 dgux*)
14700 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14701 hardcode_libdir_flag_spec_F77='-L$libdir'
14702 hardcode_shlibpath_var_F77=no
14703 ;;
14704
14705 freebsd1*)
14706 ld_shlibs_F77=no
14707 ;;
14708
14709 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14710 # support. Future versions do this automatically, but an explicit c++rt0.o
14711 # does not break anything, and helps significantly (at the cost of a little
14712 # extra space).
14713 freebsd2.2*)
14714 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14715 hardcode_libdir_flag_spec_F77='-R$libdir'
14716 hardcode_direct_F77=yes
14717 hardcode_shlibpath_var_F77=no
14718 ;;
14719
14720 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14721 freebsd2*)
14722 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14723 hardcode_direct_F77=yes
14724 hardcode_minus_L_F77=yes
14725 hardcode_shlibpath_var_F77=no
14726 ;;
14727
14728 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14729 freebsd* | kfreebsd*-gnu | dragonfly*)
14730 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14731 hardcode_libdir_flag_spec_F77='-R$libdir'
14732 hardcode_direct_F77=yes
14733 hardcode_shlibpath_var_F77=no
14734 ;;
14735
14736 hpux9*)
14737 if test "$GCC" = yes; then
14738 archive_cmds_F77='$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'
14739 else
14740 archive_cmds_F77='$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'
14741 fi
14742 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14743 hardcode_libdir_separator_F77=:
14744 hardcode_direct_F77=yes
14745
14746 # hardcode_minus_L: Not really in the search PATH,
14747 # but as the default location of the library.
14748 hardcode_minus_L_F77=yes
14749 export_dynamic_flag_spec_F77='${wl}-E'
14750 ;;
14751
14752 hpux10*)
14753 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14754 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14755 else
14756 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14757 fi
14758 if test "$with_gnu_ld" = no; then
14759 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14760 hardcode_libdir_separator_F77=:
14761
14762 hardcode_direct_F77=yes
14763 export_dynamic_flag_spec_F77='${wl}-E'
14764
14765 # hardcode_minus_L: Not really in the search PATH,
14766 # but as the default location of the library.
14767 hardcode_minus_L_F77=yes
14768 fi
14769 ;;
14770
14771 hpux11*)
14772 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14773 case $host_cpu in
14774 hppa*64*)
14775 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14776 ;;
14777 ia64*)
14778 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14779 ;;
14780 *)
14781 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14782 ;;
14783 esac
14784 else
14785 case $host_cpu in
14786 hppa*64*)
14787 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14788 ;;
14789 ia64*)
14790 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14791 ;;
14792 *)
14793 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14794 ;;
14795 esac
14796 fi
14797 if test "$with_gnu_ld" = no; then
14798 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14799 hardcode_libdir_separator_F77=:
14800
14801 case $host_cpu in
14802 hppa*64*|ia64*)
14803 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14804 hardcode_direct_F77=no
14805 hardcode_shlibpath_var_F77=no
14806 ;;
14807 *)
14808 hardcode_direct_F77=yes
14809 export_dynamic_flag_spec_F77='${wl}-E'
14810
14811 # hardcode_minus_L: Not really in the search PATH,
14812 # but as the default location of the library.
14813 hardcode_minus_L_F77=yes
14814 ;;
14815 esac
14816 fi
14817 ;;
14818
14819 irix5* | irix6* | nonstopux*)
14820 if test "$GCC" = yes; then
14821 archive_cmds_F77='$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'
14822 else
14823 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14824 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14825 fi
14826 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14827 hardcode_libdir_separator_F77=:
14828 link_all_deplibs_F77=yes
14829 ;;
14830
14831 netbsd*)
14832 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14833 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14834 else
14835 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14836 fi
14837 hardcode_libdir_flag_spec_F77='-R$libdir'
14838 hardcode_direct_F77=yes
14839 hardcode_shlibpath_var_F77=no
14840 ;;
14841
14842 newsos6)
14843 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14844 hardcode_direct_F77=yes
14845 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14846 hardcode_libdir_separator_F77=:
14847 hardcode_shlibpath_var_F77=no
14848 ;;
14849
14850 openbsd*)
14851 hardcode_direct_F77=yes
14852 hardcode_shlibpath_var_F77=no
14853 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14854 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14855 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14856 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14857 export_dynamic_flag_spec_F77='${wl}-E'
14858 else
14859 case $host_os in
14860 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14861 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14862 hardcode_libdir_flag_spec_F77='-R$libdir'
14863 ;;
14864 *)
14865 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14866 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14867 ;;
14868 esac
14869 fi
14870 ;;
14871
14872 os2*)
14873 hardcode_libdir_flag_spec_F77='-L$libdir'
14874 hardcode_minus_L_F77=yes
14875 allow_undefined_flag_F77=unsupported
14876 archive_cmds_F77='$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'
14877 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14878 ;;
14879
14880 osf3*)
14881 if test "$GCC" = yes; then
14882 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14883 archive_cmds_F77='$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'
14884 else
14885 allow_undefined_flag_F77=' -expect_unresolved \*'
14886 archive_cmds_F77='$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'
14887 fi
14888 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14889 hardcode_libdir_separator_F77=:
14890 ;;
14891
14892 osf4* | osf5*) # as osf3* with the addition of -msym flag
14893 if test "$GCC" = yes; then
14894 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14895 archive_cmds_F77='$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'
14896 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14897 else
14898 allow_undefined_flag_F77=' -expect_unresolved \*'
14899 archive_cmds_F77='$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'
14900 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14901 $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'
14902
14903 # Both c and cxx compiler support -rpath directly
14904 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14905 fi
14906 hardcode_libdir_separator_F77=:
14907 ;;
14908
14909 solaris*)
14910 no_undefined_flag_F77=' -z text'
14911 if test "$GCC" = yes; then
14912 wlarc='${wl}'
14913 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14914 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14915 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14916 else
14917 wlarc=''
14918 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14919 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14920 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14921 fi
14922 hardcode_libdir_flag_spec_F77='-R$libdir'
14923 hardcode_shlibpath_var_F77=no
14924 case $host_os in
14925 solaris2.[0-5] | solaris2.[0-5].*) ;;
14926 *)
14927 # The compiler driver will combine linker options so we
14928 # cannot just pass the convience library names through
14929 # without $wl, iff we do not link with $LD.
14930 # Luckily, gcc supports the same syntax we need for Sun Studio.
14931 # Supported since Solaris 2.6 (maybe 2.5.1?)
14932 case $wlarc in
14933 '')
14934 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14935 *)
14936 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14937 esac ;;
14938 esac
14939 link_all_deplibs_F77=yes
14940 ;;
14941
14942 sunos4*)
14943 if test "x$host_vendor" = xsequent; then
14944 # Use $CC to link under sequent, because it throws in some extra .o
14945 # files that make .init and .fini sections work.
14946 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14947 else
14948 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14949 fi
14950 hardcode_libdir_flag_spec_F77='-L$libdir'
14951 hardcode_direct_F77=yes
14952 hardcode_minus_L_F77=yes
14953 hardcode_shlibpath_var_F77=no
14954 ;;
14955
14956 sysv4)
14957 case $host_vendor in
14958 sni)
14959 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14960 hardcode_direct_F77=yes # is this really true???
14961 ;;
14962 siemens)
14963 ## LD is ld it makes a PLAMLIB
14964 ## CC just makes a GrossModule.
14965 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14966 reload_cmds_F77='$CC -r -o $output$reload_objs'
14967 hardcode_direct_F77=no
14968 ;;
14969 motorola)
14970 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14971 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14972 ;;
14973 esac
14974 runpath_var='LD_RUN_PATH'
14975 hardcode_shlibpath_var_F77=no
14976 ;;
14977
14978 sysv4.3*)
14979 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14980 hardcode_shlibpath_var_F77=no
14981 export_dynamic_flag_spec_F77='-Bexport'
14982 ;;
14983
14984 sysv4*MP*)
14985 if test -d /usr/nec; then
14986 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14987 hardcode_shlibpath_var_F77=no
14988 runpath_var=LD_RUN_PATH
14989 hardcode_runpath_var=yes
14990 ld_shlibs_F77=yes
14991 fi
14992 ;;
14993
14994 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14995 no_undefined_flag_F77='${wl}-z,text'
14996 archive_cmds_need_lc_F77=no
14997 hardcode_shlibpath_var_F77=no
14998 runpath_var='LD_RUN_PATH'
14999
15000 if test "$GCC" = yes; then
15001 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15002 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15003 else
15004 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15005 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15006 fi
15007 ;;
15008
15009 sysv5* | sco3.2v5* | sco5v6*)
15010 # Note: We can NOT use -z defs as we might desire, because we do not
15011 # link with -lc, and that would cause any symbols used from libc to
15012 # always be unresolved, which means just about no library would
15013 # ever link correctly. If we're not using GNU ld we use -z text
15014 # though, which does catch some bad symbols but isn't as heavy-handed
15015 # as -z defs.
15016 no_undefined_flag_F77='${wl}-z,text'
15017 allow_undefined_flag_F77='${wl}-z,nodefs'
15018 archive_cmds_need_lc_F77=no
15019 hardcode_shlibpath_var_F77=no
15020 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15021 hardcode_libdir_separator_F77=':'
15022 link_all_deplibs_F77=yes
15023 export_dynamic_flag_spec_F77='${wl}-Bexport'
15024 runpath_var='LD_RUN_PATH'
15025
15026 if test "$GCC" = yes; then
15027 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15028 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15029 else
15030 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15031 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15032 fi
15033 ;;
15034
15035 uts4*)
15036 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15037 hardcode_libdir_flag_spec_F77='-L$libdir'
15038 hardcode_shlibpath_var_F77=no
15039 ;;
15040
15041 *)
15042 ld_shlibs_F77=no
15043 ;;
15044 esac
15045 fi
15046
64ff59ba 15047{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15048echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d9898ee8 15049test "$ld_shlibs_F77" = no && can_build_shared=no
15050
15051#
15052# Do we need to explicitly link libc?
15053#
15054case "x$archive_cmds_need_lc_F77" in
15055x|xyes)
15056 # Assume -lc should be added
15057 archive_cmds_need_lc_F77=yes
15058
15059 if test "$enable_shared" = yes && test "$GCC" = yes; then
15060 case $archive_cmds_F77 in
15061 *'~'*)
15062 # FIXME: we may have to deal with multi-command sequences.
15063 ;;
15064 '$CC '*)
15065 # Test whether the compiler implicitly links with -lc since on some
15066 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15067 # to ld, don't add -lc before -lgcc.
64ff59ba 15068 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15069echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 15070 $rm conftest*
15071 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15072
15073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15074 (eval $ac_compile) 2>&5
15075 ac_status=$?
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); } 2>conftest.err; then
15078 soname=conftest
15079 lib=conftest
15080 libobjs=conftest.$ac_objext
15081 deplibs=
15082 wl=$lt_prog_compiler_wl_F77
15083 pic_flag=$lt_prog_compiler_pic_F77
15084 compiler_flags=-v
15085 linker_flags=-v
15086 verstring=
15087 output_objdir=.
15088 libname=conftest
15089 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15090 allow_undefined_flag_F77=
15091 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15092 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15093 ac_status=$?
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }
15096 then
15097 archive_cmds_need_lc_F77=no
15098 else
15099 archive_cmds_need_lc_F77=yes
15100 fi
15101 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15102 else
15103 cat conftest.err 1>&5
15104 fi
15105 $rm conftest*
64ff59ba 15106 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15107echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d9898ee8 15108 ;;
15109 esac
15110 fi
15111 ;;
15112esac
15113
64ff59ba 15114{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15115echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 15116library_names_spec=
15117libname_spec='lib$name'
15118soname_spec=
15119shrext_cmds=".so"
15120postinstall_cmds=
15121postuninstall_cmds=
15122finish_cmds=
15123finish_eval=
15124shlibpath_var=
15125shlibpath_overrides_runpath=unknown
15126version_type=none
15127dynamic_linker="$host_os ld.so"
15128sys_lib_dlsearch_path_spec="/lib /usr/lib"
15129if test "$GCC" = yes; then
15130 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15131 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15132 # if the path contains ";" then we assume it to be the separator
15133 # otherwise default to the standard path separator (i.e. ":") - it is
15134 # assumed that no part of a normal pathname contains ";" but that should
15135 # okay in the real world where ";" in dirpaths is itself problematic.
15136 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15137 else
15138 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15139 fi
15140else
15141 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15142fi
15143need_lib_prefix=unknown
15144hardcode_into_libs=no
15145
15146# when you set need_version to no, make sure it does not cause -set_version
15147# flags to be left without arguments
15148need_version=unknown
15149
15150case $host_os in
15151aix3*)
15152 version_type=linux
15153 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15154 shlibpath_var=LIBPATH
15155
15156 # AIX 3 has no versioning support, so we append a major version to the name.
15157 soname_spec='${libname}${release}${shared_ext}$major'
15158 ;;
15159
15160aix4* | aix5*)
15161 version_type=linux
15162 need_lib_prefix=no
15163 need_version=no
15164 hardcode_into_libs=yes
15165 if test "$host_cpu" = ia64; then
15166 # AIX 5 supports IA64
15167 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15168 shlibpath_var=LD_LIBRARY_PATH
15169 else
15170 # With GCC up to 2.95.x, collect2 would create an import file
15171 # for dependence libraries. The import file would start with
15172 # the line `#! .'. This would cause the generated library to
15173 # depend on `.', always an invalid library. This was fixed in
15174 # development snapshots of GCC prior to 3.0.
15175 case $host_os in
15176 aix4 | aix4.[01] | aix4.[01].*)
15177 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15178 echo ' yes '
15179 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15180 :
15181 else
15182 can_build_shared=no
15183 fi
15184 ;;
15185 esac
15186 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15187 # soname into executable. Probably we can add versioning support to
15188 # collect2, so additional links can be useful in future.
15189 if test "$aix_use_runtimelinking" = yes; then
15190 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15191 # instead of lib<name>.a to let people know that these are not
15192 # typical AIX shared libraries.
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 else
15195 # We preserve .a as extension for shared libraries through AIX4.2
15196 # and later when we are not doing run time linking.
15197 library_names_spec='${libname}${release}.a $libname.a'
15198 soname_spec='${libname}${release}${shared_ext}$major'
15199 fi
15200 shlibpath_var=LIBPATH
15201 fi
15202 ;;
15203
15204amigaos*)
15205 library_names_spec='$libname.ixlibrary $libname.a'
15206 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15207 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'
15208 ;;
15209
15210beos*)
15211 library_names_spec='${libname}${shared_ext}'
15212 dynamic_linker="$host_os ld.so"
15213 shlibpath_var=LIBRARY_PATH
15214 ;;
15215
15216bsdi[45]*)
15217 version_type=linux
15218 need_version=no
15219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15220 soname_spec='${libname}${release}${shared_ext}$major'
15221 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15222 shlibpath_var=LD_LIBRARY_PATH
15223 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15224 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15225 # the default ld.so.conf also contains /usr/contrib/lib and
15226 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15227 # libtool to hard-code these into programs
15228 ;;
15229
15230cygwin* | mingw* | pw32*)
15231 version_type=windows
15232 shrext_cmds=".dll"
15233 need_version=no
15234 need_lib_prefix=no
15235
15236 case $GCC,$host_os in
15237 yes,cygwin* | yes,mingw* | yes,pw32*)
15238 library_names_spec='$libname.dll.a'
15239 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15240 postinstall_cmds='base_file=`basename \${file}`~
15241 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15242 dldir=$destdir/`dirname \$dlpath`~
15243 test -d \$dldir || mkdir -p \$dldir~
15244 $install_prog $dir/$dlname \$dldir/$dlname~
15245 chmod a+x \$dldir/$dlname'
15246 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15247 dlpath=$dir/\$dldll~
15248 $rm \$dlpath'
15249 shlibpath_overrides_runpath=yes
15250
15251 case $host_os in
15252 cygwin*)
15253 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15254 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15255 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15256 ;;
15257 mingw*)
15258 # MinGW DLLs use traditional 'lib' prefix
15259 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15260 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15261 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15262 # It is most probably a Windows format PATH printed by
15263 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15264 # path with ; separators, and with drive letters. We can handle the
15265 # drive letters (cygwin fileutils understands them), so leave them,
15266 # especially as we might pass files found there to a mingw objdump,
15267 # which wouldn't understand a cygwinified path. Ahh.
15268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15269 else
15270 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15271 fi
15272 ;;
15273 pw32*)
15274 # pw32 DLLs use 'pw' prefix rather than 'lib'
15275 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15276 ;;
15277 esac
15278 ;;
15279
15280 *)
15281 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15282 ;;
15283 esac
15284 dynamic_linker='Win32 ld.exe'
15285 # FIXME: first we should search . and the directory the executable is in
15286 shlibpath_var=PATH
15287 ;;
15288
15289darwin* | rhapsody*)
15290 dynamic_linker="$host_os dyld"
15291 version_type=darwin
15292 need_lib_prefix=no
15293 need_version=no
15294 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15295 soname_spec='${libname}${release}${major}$shared_ext'
15296 shlibpath_overrides_runpath=yes
15297 shlibpath_var=DYLD_LIBRARY_PATH
15298 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15299 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15300 if test "$GCC" = yes; then
15301 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15302 else
15303 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15304 fi
15305 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15306 ;;
15307
15308dgux*)
15309 version_type=linux
15310 need_lib_prefix=no
15311 need_version=no
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15313 soname_spec='${libname}${release}${shared_ext}$major'
15314 shlibpath_var=LD_LIBRARY_PATH
15315 ;;
15316
15317freebsd1*)
15318 dynamic_linker=no
15319 ;;
15320
15321kfreebsd*-gnu)
15322 version_type=linux
15323 need_lib_prefix=no
15324 need_version=no
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15326 soname_spec='${libname}${release}${shared_ext}$major'
15327 shlibpath_var=LD_LIBRARY_PATH
15328 shlibpath_overrides_runpath=no
15329 hardcode_into_libs=yes
15330 dynamic_linker='GNU ld.so'
15331 ;;
15332
15333freebsd* | dragonfly*)
15334 # DragonFly does not have aout. When/if they implement a new
15335 # versioning mechanism, adjust this.
15336 if test -x /usr/bin/objformat; then
15337 objformat=`/usr/bin/objformat`
15338 else
15339 case $host_os in
15340 freebsd[123]*) objformat=aout ;;
15341 *) objformat=elf ;;
15342 esac
15343 fi
15344 version_type=freebsd-$objformat
15345 case $version_type in
15346 freebsd-elf*)
15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15348 need_version=no
15349 need_lib_prefix=no
15350 ;;
15351 freebsd-*)
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15353 need_version=yes
15354 ;;
15355 esac
15356 shlibpath_var=LD_LIBRARY_PATH
15357 case $host_os in
15358 freebsd2*)
15359 shlibpath_overrides_runpath=yes
15360 ;;
15361 freebsd3.[01]* | freebsdelf3.[01]*)
15362 shlibpath_overrides_runpath=yes
15363 hardcode_into_libs=yes
15364 ;;
15365 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15366 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15367 shlibpath_overrides_runpath=no
15368 hardcode_into_libs=yes
15369 ;;
15370 freebsd*) # from 4.6 on
15371 shlibpath_overrides_runpath=yes
15372 hardcode_into_libs=yes
15373 ;;
15374 esac
15375 ;;
15376
15377gnu*)
15378 version_type=linux
15379 need_lib_prefix=no
15380 need_version=no
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15382 soname_spec='${libname}${release}${shared_ext}$major'
15383 shlibpath_var=LD_LIBRARY_PATH
15384 hardcode_into_libs=yes
15385 ;;
15386
15387hpux9* | hpux10* | hpux11*)
15388 # Give a soname corresponding to the major version so that dld.sl refuses to
15389 # link against other versions.
15390 version_type=sunos
15391 need_lib_prefix=no
15392 need_version=no
15393 case $host_cpu in
15394 ia64*)
15395 shrext_cmds='.so'
15396 hardcode_into_libs=yes
15397 dynamic_linker="$host_os dld.so"
15398 shlibpath_var=LD_LIBRARY_PATH
15399 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401 soname_spec='${libname}${release}${shared_ext}$major'
15402 if test "X$HPUX_IA64_MODE" = X32; then
15403 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15404 else
15405 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15406 fi
15407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15408 ;;
15409 hppa*64*)
15410 shrext_cmds='.sl'
15411 hardcode_into_libs=yes
15412 dynamic_linker="$host_os dld.sl"
15413 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15414 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416 soname_spec='${libname}${release}${shared_ext}$major'
15417 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15418 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15419 ;;
15420 *)
15421 shrext_cmds='.sl'
15422 dynamic_linker="$host_os dld.sl"
15423 shlibpath_var=SHLIB_PATH
15424 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15426 soname_spec='${libname}${release}${shared_ext}$major'
15427 ;;
15428 esac
15429 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15430 postinstall_cmds='chmod 555 $lib'
15431 ;;
15432
15433interix3*)
15434 version_type=linux
15435 need_lib_prefix=no
15436 need_version=no
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15438 soname_spec='${libname}${release}${shared_ext}$major'
15439 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15440 shlibpath_var=LD_LIBRARY_PATH
15441 shlibpath_overrides_runpath=no
15442 hardcode_into_libs=yes
15443 ;;
15444
15445irix5* | irix6* | nonstopux*)
15446 case $host_os in
15447 nonstopux*) version_type=nonstopux ;;
15448 *)
15449 if test "$lt_cv_prog_gnu_ld" = yes; then
15450 version_type=linux
15451 else
15452 version_type=irix
15453 fi ;;
15454 esac
15455 need_lib_prefix=no
15456 need_version=no
15457 soname_spec='${libname}${release}${shared_ext}$major'
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15459 case $host_os in
15460 irix5* | nonstopux*)
15461 libsuff= shlibsuff=
15462 ;;
15463 *)
15464 case $LD in # libtool.m4 will add one of these switches to LD
15465 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15466 libsuff= shlibsuff= libmagic=32-bit;;
15467 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15468 libsuff=32 shlibsuff=N32 libmagic=N32;;
15469 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15470 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15471 *) libsuff= shlibsuff= libmagic=never-match;;
15472 esac
15473 ;;
15474 esac
15475 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15476 shlibpath_overrides_runpath=no
15477 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15478 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15479 hardcode_into_libs=yes
15480 ;;
15481
15482# No shared lib support for Linux oldld, aout, or coff.
15483linux*oldld* | linux*aout* | linux*coff*)
15484 dynamic_linker=no
15485 ;;
15486
15487# This must be Linux ELF.
15488linux*)
15489 version_type=linux
15490 need_lib_prefix=no
15491 need_version=no
15492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15493 soname_spec='${libname}${release}${shared_ext}$major'
15494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15495 shlibpath_var=LD_LIBRARY_PATH
15496 shlibpath_overrides_runpath=no
15497 # This implies no fast_install, which is unacceptable.
15498 # Some rework will be needed to allow for fast_install
15499 # before this can be enabled.
15500 hardcode_into_libs=yes
15501
15502 # find out which ABI we are using
15503 libsuff=
15504 case "$host_cpu" in
15505 x86_64*|s390x*|powerpc64*)
64ff59ba 15506 echo '#line 15506 "configure"' > conftest.$ac_ext
d9898ee8 15507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15508 (eval $ac_compile) 2>&5
15509 ac_status=$?
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; then
15512 case `/usr/bin/file conftest.$ac_objext` in
15513 *64-bit*)
15514 libsuff=64
15515 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15516 ;;
15517 esac
15518 fi
15519 rm -rf conftest*
15520 ;;
15521 esac
15522
15523 # Append ld.so.conf contents to the search path
15524 if test -f /etc/ld.so.conf; then
64ff59ba 15525 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 15526 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15527 fi
15528
15529 # We used to test for /lib/ld.so.1 and disable shared libraries on
15530 # powerpc, because MkLinux only supported shared libraries with the
15531 # GNU dynamic linker. Since this was broken with cross compilers,
15532 # most powerpc-linux boxes support dynamic linking these days and
15533 # people can always --disable-shared, the test was removed, and we
15534 # assume the GNU/Linux dynamic linker is in use.
15535 dynamic_linker='GNU/Linux ld.so'
15536 ;;
15537
15538knetbsd*-gnu)
15539 version_type=linux
15540 need_lib_prefix=no
15541 need_version=no
15542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15543 soname_spec='${libname}${release}${shared_ext}$major'
15544 shlibpath_var=LD_LIBRARY_PATH
15545 shlibpath_overrides_runpath=no
15546 hardcode_into_libs=yes
15547 dynamic_linker='GNU ld.so'
15548 ;;
15549
15550netbsd*)
15551 version_type=sunos
15552 need_lib_prefix=no
15553 need_version=no
15554 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15557 dynamic_linker='NetBSD (a.out) ld.so'
15558 else
15559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15560 soname_spec='${libname}${release}${shared_ext}$major'
15561 dynamic_linker='NetBSD ld.elf_so'
15562 fi
15563 shlibpath_var=LD_LIBRARY_PATH
15564 shlibpath_overrides_runpath=yes
15565 hardcode_into_libs=yes
15566 ;;
15567
15568newsos6)
15569 version_type=linux
15570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15571 shlibpath_var=LD_LIBRARY_PATH
15572 shlibpath_overrides_runpath=yes
15573 ;;
15574
15575nto-qnx*)
15576 version_type=linux
15577 need_lib_prefix=no
15578 need_version=no
15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15580 soname_spec='${libname}${release}${shared_ext}$major'
15581 shlibpath_var=LD_LIBRARY_PATH
15582 shlibpath_overrides_runpath=yes
15583 ;;
15584
15585openbsd*)
15586 version_type=sunos
15587 sys_lib_dlsearch_path_spec="/usr/lib"
15588 need_lib_prefix=no
15589 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15590 case $host_os in
15591 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15592 *) need_version=no ;;
15593 esac
15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15596 shlibpath_var=LD_LIBRARY_PATH
15597 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15598 case $host_os in
15599 openbsd2.[89] | openbsd2.[89].*)
15600 shlibpath_overrides_runpath=no
15601 ;;
15602 *)
15603 shlibpath_overrides_runpath=yes
15604 ;;
15605 esac
15606 else
15607 shlibpath_overrides_runpath=yes
15608 fi
15609 ;;
15610
15611os2*)
15612 libname_spec='$name'
15613 shrext_cmds=".dll"
15614 need_lib_prefix=no
15615 library_names_spec='$libname${shared_ext} $libname.a'
15616 dynamic_linker='OS/2 ld.exe'
15617 shlibpath_var=LIBPATH
15618 ;;
15619
15620osf3* | osf4* | osf5*)
15621 version_type=osf
15622 need_lib_prefix=no
15623 need_version=no
15624 soname_spec='${libname}${release}${shared_ext}$major'
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626 shlibpath_var=LD_LIBRARY_PATH
15627 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15628 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15629 ;;
15630
15631solaris*)
15632 version_type=linux
15633 need_lib_prefix=no
15634 need_version=no
15635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15636 soname_spec='${libname}${release}${shared_ext}$major'
15637 shlibpath_var=LD_LIBRARY_PATH
15638 shlibpath_overrides_runpath=yes
15639 hardcode_into_libs=yes
15640 # ldd complains unless libraries are executable
15641 postinstall_cmds='chmod +x $lib'
15642 ;;
15643
15644sunos4*)
15645 version_type=sunos
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15647 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15648 shlibpath_var=LD_LIBRARY_PATH
15649 shlibpath_overrides_runpath=yes
15650 if test "$with_gnu_ld" = yes; then
15651 need_lib_prefix=no
15652 fi
15653 need_version=yes
15654 ;;
15655
15656sysv4 | sysv4.3*)
15657 version_type=linux
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15659 soname_spec='${libname}${release}${shared_ext}$major'
15660 shlibpath_var=LD_LIBRARY_PATH
15661 case $host_vendor in
15662 sni)
15663 shlibpath_overrides_runpath=no
15664 need_lib_prefix=no
15665 export_dynamic_flag_spec='${wl}-Blargedynsym'
15666 runpath_var=LD_RUN_PATH
15667 ;;
15668 siemens)
15669 need_lib_prefix=no
15670 ;;
15671 motorola)
15672 need_lib_prefix=no
15673 need_version=no
15674 shlibpath_overrides_runpath=no
15675 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15676 ;;
15677 esac
15678 ;;
15679
15680sysv4*MP*)
15681 if test -d /usr/nec ;then
15682 version_type=linux
15683 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15684 soname_spec='$libname${shared_ext}.$major'
15685 shlibpath_var=LD_LIBRARY_PATH
15686 fi
15687 ;;
15688
15689sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15690 version_type=freebsd-elf
15691 need_lib_prefix=no
15692 need_version=no
15693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15694 soname_spec='${libname}${release}${shared_ext}$major'
15695 shlibpath_var=LD_LIBRARY_PATH
15696 hardcode_into_libs=yes
15697 if test "$with_gnu_ld" = yes; then
15698 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15699 shlibpath_overrides_runpath=no
15700 else
15701 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15702 shlibpath_overrides_runpath=yes
15703 case $host_os in
15704 sco3.2v5*)
15705 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15706 ;;
15707 esac
15708 fi
15709 sys_lib_dlsearch_path_spec='/usr/lib'
15710 ;;
15711
15712uts4*)
15713 version_type=linux
15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15715 soname_spec='${libname}${release}${shared_ext}$major'
15716 shlibpath_var=LD_LIBRARY_PATH
15717 ;;
15718
15719*)
15720 dynamic_linker=no
15721 ;;
15722esac
64ff59ba 15723{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15724echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 15725test "$dynamic_linker" = no && can_build_shared=no
15726
15727variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15728if test "$GCC" = yes; then
15729 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15730fi
15731
64ff59ba 15732{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15733echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 15734hardcode_action_F77=
15735if test -n "$hardcode_libdir_flag_spec_F77" || \
15736 test -n "$runpath_var_F77" || \
15737 test "X$hardcode_automatic_F77" = "Xyes" ; then
15738
15739 # We can hardcode non-existant directories.
15740 if test "$hardcode_direct_F77" != no &&
15741 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15742 # have to relink, otherwise we might link with an installed library
15743 # when we should be linking with a yet-to-be-installed one
15744 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15745 test "$hardcode_minus_L_F77" != no; then
15746 # Linking always hardcodes the temporary library directory.
15747 hardcode_action_F77=relink
15748 else
15749 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15750 hardcode_action_F77=immediate
15751 fi
15752else
15753 # We cannot hardcode anything, or else we can only hardcode existing
15754 # directories.
15755 hardcode_action_F77=unsupported
15756fi
64ff59ba 15757{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15758echo "${ECHO_T}$hardcode_action_F77" >&6; }
d9898ee8 15759
15760if test "$hardcode_action_F77" = relink; then
15761 # Fast installation is not supported
15762 enable_fast_install=no
15763elif test "$shlibpath_overrides_runpath" = yes ||
15764 test "$enable_shared" = no; then
15765 # Fast installation is not necessary
15766 enable_fast_install=needless
15767fi
15768
15769
15770# The else clause should only fire when bootstrapping the
15771# libtool distribution, otherwise you forgot to ship ltmain.sh
15772# with your package, and you will get complaints that there are
15773# no rules to generate ltmain.sh.
15774if test -f "$ltmain"; then
15775 # See if we are running on zsh, and set the options which allow our commands through
15776 # without removal of \ escapes.
15777 if test -n "${ZSH_VERSION+set}" ; then
15778 setopt NO_GLOB_SUBST
15779 fi
15780 # Now quote all the things that may contain metacharacters while being
15781 # careful not to overquote the AC_SUBSTed values. We take copies of the
15782 # variables and quote the copies for generation of the libtool script.
15783 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15784 SED SHELL STRIP \
15785 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15786 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15787 deplibs_check_method reload_flag reload_cmds need_locks \
15788 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15789 lt_cv_sys_global_symbol_to_c_name_address \
15790 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15791 old_postinstall_cmds old_postuninstall_cmds \
15792 compiler_F77 \
15793 CC_F77 \
15794 LD_F77 \
15795 lt_prog_compiler_wl_F77 \
15796 lt_prog_compiler_pic_F77 \
15797 lt_prog_compiler_static_F77 \
15798 lt_prog_compiler_no_builtin_flag_F77 \
15799 export_dynamic_flag_spec_F77 \
15800 thread_safe_flag_spec_F77 \
15801 whole_archive_flag_spec_F77 \
15802 enable_shared_with_static_runtimes_F77 \
15803 old_archive_cmds_F77 \
15804 old_archive_from_new_cmds_F77 \
15805 predep_objects_F77 \
15806 postdep_objects_F77 \
15807 predeps_F77 \
15808 postdeps_F77 \
15809 compiler_lib_search_path_F77 \
15810 archive_cmds_F77 \
15811 archive_expsym_cmds_F77 \
15812 postinstall_cmds_F77 \
15813 postuninstall_cmds_F77 \
15814 old_archive_from_expsyms_cmds_F77 \
15815 allow_undefined_flag_F77 \
15816 no_undefined_flag_F77 \
15817 export_symbols_cmds_F77 \
15818 hardcode_libdir_flag_spec_F77 \
15819 hardcode_libdir_flag_spec_ld_F77 \
15820 hardcode_libdir_separator_F77 \
15821 hardcode_automatic_F77 \
15822 module_cmds_F77 \
15823 module_expsym_cmds_F77 \
15824 lt_cv_prog_compiler_c_o_F77 \
15825 exclude_expsyms_F77 \
15826 include_expsyms_F77; do
15827
15828 case $var in
15829 old_archive_cmds_F77 | \
15830 old_archive_from_new_cmds_F77 | \
15831 archive_cmds_F77 | \
15832 archive_expsym_cmds_F77 | \
15833 module_cmds_F77 | \
15834 module_expsym_cmds_F77 | \
15835 old_archive_from_expsyms_cmds_F77 | \
15836 export_symbols_cmds_F77 | \
15837 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15838 postinstall_cmds | postuninstall_cmds | \
15839 old_postinstall_cmds | old_postuninstall_cmds | \
15840 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15841 # Double-quote double-evaled strings.
15842 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15843 ;;
15844 *)
15845 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15846 ;;
15847 esac
15848 done
15849
15850 case $lt_echo in
15851 *'\$0 --fallback-echo"')
15852 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15853 ;;
15854 esac
15855
15856cfgfile="$ofile"
15857
15858 cat <<__EOF__ >> "$cfgfile"
15859# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15860
15861# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15862
15863# Shell to use when invoking shell scripts.
15864SHELL=$lt_SHELL
15865
15866# Whether or not to build shared libraries.
15867build_libtool_libs=$enable_shared
15868
15869# Whether or not to build static libraries.
15870build_old_libs=$enable_static
15871
15872# Whether or not to add -lc for building shared libraries.
15873build_libtool_need_lc=$archive_cmds_need_lc_F77
15874
15875# Whether or not to disallow shared libs when runtime libs are static
15876allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15877
15878# Whether or not to optimize for fast installation.
15879fast_install=$enable_fast_install
15880
15881# The host system.
15882host_alias=$host_alias
15883host=$host
15884host_os=$host_os
15885
15886# The build system.
15887build_alias=$build_alias
15888build=$build
15889build_os=$build_os
15890
15891# An echo program that does not interpret backslashes.
15892echo=$lt_echo
15893
15894# The archiver.
15895AR=$lt_AR
15896AR_FLAGS=$lt_AR_FLAGS
15897
15898# A C compiler.
15899LTCC=$lt_LTCC
15900
15901# LTCC compiler flags.
15902LTCFLAGS=$lt_LTCFLAGS
15903
15904# A language-specific compiler.
15905CC=$lt_compiler_F77
15906
15907# Is the compiler the GNU C compiler?
15908with_gcc=$GCC_F77
15909
d9898ee8 15910# An ERE matcher.
15911EGREP=$lt_EGREP
15912
15913# The linker used to build libraries.
15914LD=$lt_LD_F77
15915
15916# Whether we need hard or soft links.
15917LN_S=$lt_LN_S
15918
15919# A BSD-compatible nm program.
15920NM=$lt_NM
15921
15922# A symbol stripping program
15923STRIP=$lt_STRIP
15924
15925# Used to examine libraries when file_magic_cmd begins "file"
15926MAGIC_CMD=$MAGIC_CMD
15927
15928# Used on cygwin: DLL creation program.
15929DLLTOOL="$DLLTOOL"
15930
15931# Used on cygwin: object dumper.
15932OBJDUMP="$OBJDUMP"
15933
15934# Used on cygwin: assembler.
15935AS="$AS"
15936
15937# The name of the directory that contains temporary libtool files.
15938objdir=$objdir
15939
15940# How to create reloadable object files.
15941reload_flag=$lt_reload_flag
15942reload_cmds=$lt_reload_cmds
15943
15944# How to pass a linker flag through the compiler.
15945wl=$lt_lt_prog_compiler_wl_F77
15946
15947# Object file suffix (normally "o").
15948objext="$ac_objext"
15949
15950# Old archive suffix (normally "a").
15951libext="$libext"
15952
15953# Shared library suffix (normally ".so").
15954shrext_cmds='$shrext_cmds'
15955
15956# Executable file suffix (normally "").
15957exeext="$exeext"
15958
15959# Additional compiler flags for building library objects.
15960pic_flag=$lt_lt_prog_compiler_pic_F77
15961pic_mode=$pic_mode
15962
15963# What is the maximum length of a command?
15964max_cmd_len=$lt_cv_sys_max_cmd_len
15965
15966# Does compiler simultaneously support -c and -o options?
15967compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15968
15969# Must we lock files when doing compilation?
15970need_locks=$lt_need_locks
15971
15972# Do we need the lib prefix for modules?
15973need_lib_prefix=$need_lib_prefix
15974
15975# Do we need a version for libraries?
15976need_version=$need_version
15977
15978# Whether dlopen is supported.
15979dlopen_support=$enable_dlopen
15980
15981# Whether dlopen of programs is supported.
15982dlopen_self=$enable_dlopen_self
15983
15984# Whether dlopen of statically linked programs is supported.
15985dlopen_self_static=$enable_dlopen_self_static
15986
15987# Compiler flag to prevent dynamic linking.
15988link_static_flag=$lt_lt_prog_compiler_static_F77
15989
15990# Compiler flag to turn off builtin functions.
15991no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15992
15993# Compiler flag to allow reflexive dlopens.
15994export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15995
15996# Compiler flag to generate shared objects directly from archives.
15997whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15998
15999# Compiler flag to generate thread-safe objects.
16000thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16001
16002# Library versioning type.
16003version_type=$version_type
16004
16005# Format of library name prefix.
16006libname_spec=$lt_libname_spec
16007
16008# List of archive names. First name is the real one, the rest are links.
16009# The last name is the one that the linker finds with -lNAME.
16010library_names_spec=$lt_library_names_spec
16011
16012# The coded name of the library, if different from the real name.
16013soname_spec=$lt_soname_spec
16014
16015# Commands used to build and install an old-style archive.
16016RANLIB=$lt_RANLIB
16017old_archive_cmds=$lt_old_archive_cmds_F77
16018old_postinstall_cmds=$lt_old_postinstall_cmds
16019old_postuninstall_cmds=$lt_old_postuninstall_cmds
16020
16021# Create an old-style archive from a shared archive.
16022old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16023
16024# Create a temporary old-style archive to link instead of a shared archive.
16025old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16026
16027# Commands used to build and install a shared archive.
16028archive_cmds=$lt_archive_cmds_F77
16029archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16030postinstall_cmds=$lt_postinstall_cmds
16031postuninstall_cmds=$lt_postuninstall_cmds
16032
16033# Commands used to build a loadable module (assumed same as above if empty)
16034module_cmds=$lt_module_cmds_F77
16035module_expsym_cmds=$lt_module_expsym_cmds_F77
16036
16037# Commands to strip libraries.
16038old_striplib=$lt_old_striplib
16039striplib=$lt_striplib
16040
16041# Dependencies to place before the objects being linked to create a
16042# shared library.
64ff59ba 16043predep_objects=$lt_predep_objects_F77
d9898ee8 16044
16045# Dependencies to place after the objects being linked to create a
16046# shared library.
64ff59ba 16047postdep_objects=$lt_postdep_objects_F77
d9898ee8 16048
16049# Dependencies to place before the objects being linked to create a
16050# shared library.
16051predeps=$lt_predeps_F77
16052
16053# Dependencies to place after the objects being linked to create a
16054# shared library.
16055postdeps=$lt_postdeps_F77
16056
16057# The library search path used internally by the compiler when linking
16058# a shared library.
64ff59ba 16059compiler_lib_search_path=$lt_compiler_lib_search_path_F77
d9898ee8 16060
16061# Method to check whether dependent libraries are shared objects.
16062deplibs_check_method=$lt_deplibs_check_method
16063
16064# Command to use when deplibs_check_method == file_magic.
16065file_magic_cmd=$lt_file_magic_cmd
16066
16067# Flag that allows shared libraries with undefined symbols to be built.
16068allow_undefined_flag=$lt_allow_undefined_flag_F77
16069
16070# Flag that forces no undefined symbols.
16071no_undefined_flag=$lt_no_undefined_flag_F77
16072
16073# Commands used to finish a libtool library installation in a directory.
16074finish_cmds=$lt_finish_cmds
16075
16076# Same as above, but a single script fragment to be evaled but not shown.
16077finish_eval=$lt_finish_eval
16078
16079# Take the output of nm and produce a listing of raw symbols and C names.
16080global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16081
16082# Transform the output of nm in a proper C declaration
16083global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16084
16085# Transform the output of nm in a C name address pair
16086global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16087
16088# This is the shared library runtime path variable.
16089runpath_var=$runpath_var
16090
16091# This is the shared library path variable.
16092shlibpath_var=$shlibpath_var
16093
16094# Is shlibpath searched before the hard-coded library search path?
16095shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16096
16097# How to hardcode a shared library path into an executable.
16098hardcode_action=$hardcode_action_F77
16099
16100# Whether we should hardcode library paths into libraries.
16101hardcode_into_libs=$hardcode_into_libs
16102
16103# Flag to hardcode \$libdir into a binary during linking.
16104# This must work even if \$libdir does not exist.
16105hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16106
16107# If ld is used when linking, flag to hardcode \$libdir into
16108# a binary during linking. This must work even if \$libdir does
16109# not exist.
16110hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16111
16112# Whether we need a single -rpath flag with a separated argument.
16113hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16114
16115# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16116# resulting binary.
16117hardcode_direct=$hardcode_direct_F77
16118
16119# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16120# resulting binary.
16121hardcode_minus_L=$hardcode_minus_L_F77
16122
16123# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16124# the resulting binary.
16125hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16126
16127# Set to yes if building a shared library automatically hardcodes DIR into the library
16128# and all subsequent libraries and executables linked against it.
16129hardcode_automatic=$hardcode_automatic_F77
16130
16131# Variables whose values should be saved in libtool wrapper scripts and
16132# restored at relink time.
16133variables_saved_for_relink="$variables_saved_for_relink"
16134
16135# Whether libtool must link a program against all its dependency libraries.
16136link_all_deplibs=$link_all_deplibs_F77
16137
16138# Compile-time system search path for libraries
64ff59ba 16139sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 16140
16141# Run-time system search path for libraries
16142sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16143
16144# Fix the shell variable \$srcfile for the compiler.
16145fix_srcfile_path="$fix_srcfile_path_F77"
16146
16147# Set to yes if exported symbols are required.
16148always_export_symbols=$always_export_symbols_F77
16149
16150# The commands to list exported symbols.
16151export_symbols_cmds=$lt_export_symbols_cmds_F77
16152
16153# The commands to extract the exported symbol list from a shared archive.
16154extract_expsyms_cmds=$lt_extract_expsyms_cmds
16155
16156# Symbols that should not be listed in the preloaded symbols.
16157exclude_expsyms=$lt_exclude_expsyms_F77
16158
16159# Symbols that must always be exported.
16160include_expsyms=$lt_include_expsyms_F77
16161
16162# ### END LIBTOOL TAG CONFIG: $tagname
16163
16164__EOF__
16165
16166
16167else
16168 # If there is no Makefile yet, we rely on a make rule to execute
16169 # `config.status --recheck' to rerun these tests and create the
16170 # libtool script then.
16171 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16172 if test -f "$ltmain_in"; then
16173 test -f Makefile && make "$ltmain"
16174 fi
16175fi
16176
16177
16178ac_ext=c
16179ac_cpp='$CPP $CPPFLAGS'
16180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16182ac_compiler_gnu=$ac_cv_c_compiler_gnu
16183
16184CC="$lt_save_CC"
16185
16186 else
16187 tagname=""
16188 fi
16189 ;;
16190
16191 GCJ)
16192 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16193
16194
d9898ee8 16195# Source file extension for Java test sources.
16196ac_ext=java
16197
16198# Object file extension for compiled Java test sources.
16199objext=o
16200objext_GCJ=$objext
16201
16202# Code to be used in simple compile tests
16203lt_simple_compile_test_code="class foo {}\n"
16204
16205# Code to be used in simple link tests
16206lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16207
16208# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16209
16210# If no C compiler was specified, use CC.
16211LTCC=${LTCC-"$CC"}
16212
16213# If no C compiler flags were specified, use CFLAGS.
16214LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16215
16216# Allow CC to be a program name with arguments.
16217compiler=$CC
16218
16219
16220# save warnings/boilerplate of simple test code
16221ac_outfile=conftest.$ac_objext
16222printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16223eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16224_lt_compiler_boilerplate=`cat conftest.err`
16225$rm conftest*
16226
16227ac_outfile=conftest.$ac_objext
16228printf "$lt_simple_link_test_code" >conftest.$ac_ext
16229eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16230_lt_linker_boilerplate=`cat conftest.err`
16231$rm conftest*
16232
16233
16234# Allow CC to be a program name with arguments.
16235lt_save_CC="$CC"
16236CC=${GCJ-"gcj"}
16237compiler=$CC
16238compiler_GCJ=$CC
16239for cc_temp in $compiler""; do
16240 case $cc_temp in
16241 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16242 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16243 \-*) ;;
16244 *) break;;
16245 esac
16246done
16247cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16248
16249
16250# GCJ did not exist at the time GCC didn't implicitly link libc in.
16251archive_cmds_need_lc_GCJ=no
16252
16253old_archive_cmds_GCJ=$old_archive_cmds
16254
16255
16256lt_prog_compiler_no_builtin_flag_GCJ=
16257
16258if test "$GCC" = yes; then
16259 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16260
16261
64ff59ba 16262{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16263echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 16264if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16265 echo $ECHO_N "(cached) $ECHO_C" >&6
16266else
16267 lt_cv_prog_compiler_rtti_exceptions=no
16268 ac_outfile=conftest.$ac_objext
16269 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16270 lt_compiler_flag="-fno-rtti -fno-exceptions"
16271 # Insert the option either (1) after the last *FLAGS variable, or
16272 # (2) before a word containing "conftest.", or (3) at the end.
16273 # Note that $ac_compile itself does not contain backslashes and begins
16274 # with a dollar sign (not a hyphen), so the echo should work correctly.
16275 # The option is referenced via a variable to avoid confusing sed.
16276 lt_compile=`echo "$ac_compile" | $SED \
16277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16279 -e 's:$: $lt_compiler_flag:'`
64ff59ba 16280 (eval echo "\"\$as_me:16280: $lt_compile\"" >&5)
d9898ee8 16281 (eval "$lt_compile" 2>conftest.err)
16282 ac_status=$?
16283 cat conftest.err >&5
64ff59ba 16284 echo "$as_me:16284: \$? = $ac_status" >&5
d9898ee8 16285 if (exit $ac_status) && test -s "$ac_outfile"; then
16286 # The compiler can only warn and ignore the option if not recognized
16287 # So say no if there are warnings other than the usual output.
16288 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16290 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16291 lt_cv_prog_compiler_rtti_exceptions=yes
16292 fi
16293 fi
16294 $rm conftest*
16295
16296fi
64ff59ba 16297{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16298echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 16299
16300if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16301 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16302else
16303 :
16304fi
16305
16306fi
16307
16308lt_prog_compiler_wl_GCJ=
16309lt_prog_compiler_pic_GCJ=
16310lt_prog_compiler_static_GCJ=
16311
64ff59ba 16312{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16313echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 16314
16315 if test "$GCC" = yes; then
16316 lt_prog_compiler_wl_GCJ='-Wl,'
16317 lt_prog_compiler_static_GCJ='-static'
16318
16319 case $host_os in
16320 aix*)
16321 # All AIX code is PIC.
16322 if test "$host_cpu" = ia64; then
16323 # AIX 5 now supports IA64 processor
16324 lt_prog_compiler_static_GCJ='-Bstatic'
16325 fi
16326 ;;
16327
16328 amigaos*)
16329 # FIXME: we need at least 68020 code to build shared libraries, but
16330 # adding the `-m68020' flag to GCC prevents building anything better,
16331 # like `-m68040'.
16332 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16333 ;;
16334
16335 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16336 # PIC is the default for these OSes.
16337 ;;
16338
16339 mingw* | pw32* | os2*)
16340 # This hack is so that the source file can tell whether it is being
16341 # built for inclusion in a dll (and should export symbols for example).
16342 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16343 ;;
16344
16345 darwin* | rhapsody*)
16346 # PIC is the default on this platform
16347 # Common symbols not allowed in MH_DYLIB files
16348 lt_prog_compiler_pic_GCJ='-fno-common'
16349 ;;
16350
16351 interix3*)
16352 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16353 # Instead, we relocate shared libraries at runtime.
16354 ;;
16355
16356 msdosdjgpp*)
16357 # Just because we use GCC doesn't mean we suddenly get shared libraries
16358 # on systems that don't support them.
16359 lt_prog_compiler_can_build_shared_GCJ=no
16360 enable_shared=no
16361 ;;
16362
16363 sysv4*MP*)
16364 if test -d /usr/nec; then
16365 lt_prog_compiler_pic_GCJ=-Kconform_pic
16366 fi
16367 ;;
16368
16369 hpux*)
16370 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16371 # not for PA HP-UX.
16372 case $host_cpu in
16373 hppa*64*|ia64*)
16374 # +Z the default
16375 ;;
16376 *)
16377 lt_prog_compiler_pic_GCJ='-fPIC'
16378 ;;
16379 esac
16380 ;;
16381
16382 *)
16383 lt_prog_compiler_pic_GCJ='-fPIC'
16384 ;;
16385 esac
16386 else
16387 # PORTME Check for flag to pass linker flags through the system compiler.
16388 case $host_os in
16389 aix*)
16390 lt_prog_compiler_wl_GCJ='-Wl,'
16391 if test "$host_cpu" = ia64; then
16392 # AIX 5 now supports IA64 processor
16393 lt_prog_compiler_static_GCJ='-Bstatic'
16394 else
16395 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16396 fi
16397 ;;
16398 darwin*)
16399 # PIC is the default on this platform
16400 # Common symbols not allowed in MH_DYLIB files
16401 case $cc_basename in
16402 xlc*)
16403 lt_prog_compiler_pic_GCJ='-qnocommon'
16404 lt_prog_compiler_wl_GCJ='-Wl,'
16405 ;;
16406 esac
16407 ;;
16408
16409 mingw* | pw32* | os2*)
16410 # This hack is so that the source file can tell whether it is being
16411 # built for inclusion in a dll (and should export symbols for example).
16412 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16413 ;;
16414
16415 hpux9* | hpux10* | hpux11*)
16416 lt_prog_compiler_wl_GCJ='-Wl,'
16417 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16418 # not for PA HP-UX.
16419 case $host_cpu in
16420 hppa*64*|ia64*)
16421 # +Z the default
16422 ;;
16423 *)
16424 lt_prog_compiler_pic_GCJ='+Z'
16425 ;;
16426 esac
16427 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16428 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16429 ;;
16430
16431 irix5* | irix6* | nonstopux*)
16432 lt_prog_compiler_wl_GCJ='-Wl,'
16433 # PIC (with -KPIC) is the default.
16434 lt_prog_compiler_static_GCJ='-non_shared'
16435 ;;
16436
16437 newsos6)
16438 lt_prog_compiler_pic_GCJ='-KPIC'
16439 lt_prog_compiler_static_GCJ='-Bstatic'
16440 ;;
16441
16442 linux*)
16443 case $cc_basename in
16444 icc* | ecc*)
16445 lt_prog_compiler_wl_GCJ='-Wl,'
16446 lt_prog_compiler_pic_GCJ='-KPIC'
16447 lt_prog_compiler_static_GCJ='-static'
16448 ;;
16449 pgcc* | pgf77* | pgf90* | pgf95*)
16450 # Portland Group compilers (*not* the Pentium gcc compiler,
16451 # which looks to be a dead project)
16452 lt_prog_compiler_wl_GCJ='-Wl,'
16453 lt_prog_compiler_pic_GCJ='-fpic'
16454 lt_prog_compiler_static_GCJ='-Bstatic'
16455 ;;
16456 ccc*)
16457 lt_prog_compiler_wl_GCJ='-Wl,'
16458 # All Alpha code is PIC.
16459 lt_prog_compiler_static_GCJ='-non_shared'
16460 ;;
16461 esac
16462 ;;
16463
16464 osf3* | osf4* | osf5*)
16465 lt_prog_compiler_wl_GCJ='-Wl,'
16466 # All OSF/1 code is PIC.
16467 lt_prog_compiler_static_GCJ='-non_shared'
16468 ;;
16469
16470 solaris*)
16471 lt_prog_compiler_pic_GCJ='-KPIC'
16472 lt_prog_compiler_static_GCJ='-Bstatic'
16473 case $cc_basename in
16474 f77* | f90* | f95*)
16475 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16476 *)
16477 lt_prog_compiler_wl_GCJ='-Wl,';;
16478 esac
16479 ;;
16480
16481 sunos4*)
16482 lt_prog_compiler_wl_GCJ='-Qoption ld '
16483 lt_prog_compiler_pic_GCJ='-PIC'
16484 lt_prog_compiler_static_GCJ='-Bstatic'
16485 ;;
16486
16487 sysv4 | sysv4.2uw2* | sysv4.3*)
16488 lt_prog_compiler_wl_GCJ='-Wl,'
16489 lt_prog_compiler_pic_GCJ='-KPIC'
16490 lt_prog_compiler_static_GCJ='-Bstatic'
16491 ;;
16492
16493 sysv4*MP*)
16494 if test -d /usr/nec ;then
16495 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16496 lt_prog_compiler_static_GCJ='-Bstatic'
16497 fi
16498 ;;
16499
16500 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16501 lt_prog_compiler_wl_GCJ='-Wl,'
16502 lt_prog_compiler_pic_GCJ='-KPIC'
16503 lt_prog_compiler_static_GCJ='-Bstatic'
16504 ;;
16505
16506 unicos*)
16507 lt_prog_compiler_wl_GCJ='-Wl,'
16508 lt_prog_compiler_can_build_shared_GCJ=no
16509 ;;
16510
16511 uts4*)
16512 lt_prog_compiler_pic_GCJ='-pic'
16513 lt_prog_compiler_static_GCJ='-Bstatic'
16514 ;;
16515
16516 *)
16517 lt_prog_compiler_can_build_shared_GCJ=no
16518 ;;
16519 esac
16520 fi
16521
64ff59ba 16522{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16523echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d9898ee8 16524
16525#
16526# Check to make sure the PIC flag actually works.
16527#
16528if test -n "$lt_prog_compiler_pic_GCJ"; then
16529
64ff59ba 16530{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16531echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d9898ee8 16532if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16533 echo $ECHO_N "(cached) $ECHO_C" >&6
16534else
16535 lt_prog_compiler_pic_works_GCJ=no
16536 ac_outfile=conftest.$ac_objext
16537 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16538 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16539 # Insert the option either (1) after the last *FLAGS variable, or
16540 # (2) before a word containing "conftest.", or (3) at the end.
16541 # Note that $ac_compile itself does not contain backslashes and begins
16542 # with a dollar sign (not a hyphen), so the echo should work correctly.
16543 # The option is referenced via a variable to avoid confusing sed.
16544 lt_compile=`echo "$ac_compile" | $SED \
16545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16547 -e 's:$: $lt_compiler_flag:'`
64ff59ba 16548 (eval echo "\"\$as_me:16548: $lt_compile\"" >&5)
d9898ee8 16549 (eval "$lt_compile" 2>conftest.err)
16550 ac_status=$?
16551 cat conftest.err >&5
64ff59ba 16552 echo "$as_me:16552: \$? = $ac_status" >&5
d9898ee8 16553 if (exit $ac_status) && test -s "$ac_outfile"; then
16554 # The compiler can only warn and ignore the option if not recognized
16555 # So say no if there are warnings other than the usual output.
16556 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16558 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16559 lt_prog_compiler_pic_works_GCJ=yes
16560 fi
16561 fi
16562 $rm conftest*
16563
16564fi
64ff59ba 16565{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16566echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d9898ee8 16567
16568if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16569 case $lt_prog_compiler_pic_GCJ in
16570 "" | " "*) ;;
16571 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16572 esac
16573else
16574 lt_prog_compiler_pic_GCJ=
16575 lt_prog_compiler_can_build_shared_GCJ=no
16576fi
16577
16578fi
16579case $host_os in
16580 # For platforms which do not support PIC, -DPIC is meaningless:
16581 *djgpp*)
16582 lt_prog_compiler_pic_GCJ=
16583 ;;
16584 *)
16585 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16586 ;;
16587esac
16588
16589#
16590# Check to make sure the static flag actually works.
16591#
16592wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
64ff59ba 16593{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16594echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 16595if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16596 echo $ECHO_N "(cached) $ECHO_C" >&6
16597else
16598 lt_prog_compiler_static_works_GCJ=no
16599 save_LDFLAGS="$LDFLAGS"
16600 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16601 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16602 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16603 # The linker can only warn and ignore the option if not recognized
16604 # So say no if there are warnings
16605 if test -s conftest.err; then
16606 # Append any errors to the config.log.
16607 cat conftest.err 1>&5
16608 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16609 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16610 if diff conftest.exp conftest.er2 >/dev/null; then
16611 lt_prog_compiler_static_works_GCJ=yes
16612 fi
16613 else
16614 lt_prog_compiler_static_works_GCJ=yes
16615 fi
16616 fi
16617 $rm conftest*
16618 LDFLAGS="$save_LDFLAGS"
16619
16620fi
64ff59ba 16621{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16622echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
d9898ee8 16623
16624if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16625 :
16626else
16627 lt_prog_compiler_static_GCJ=
16628fi
16629
16630
64ff59ba 16631{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16632echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 16633if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16634 echo $ECHO_N "(cached) $ECHO_C" >&6
16635else
16636 lt_cv_prog_compiler_c_o_GCJ=no
16637 $rm -r conftest 2>/dev/null
16638 mkdir conftest
16639 cd conftest
16640 mkdir out
16641 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16642
16643 lt_compiler_flag="-o out/conftest2.$ac_objext"
16644 # Insert the option either (1) after the last *FLAGS variable, or
16645 # (2) before a word containing "conftest.", or (3) at the end.
16646 # Note that $ac_compile itself does not contain backslashes and begins
16647 # with a dollar sign (not a hyphen), so the echo should work correctly.
16648 lt_compile=`echo "$ac_compile" | $SED \
16649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16651 -e 's:$: $lt_compiler_flag:'`
64ff59ba 16652 (eval echo "\"\$as_me:16652: $lt_compile\"" >&5)
d9898ee8 16653 (eval "$lt_compile" 2>out/conftest.err)
16654 ac_status=$?
16655 cat out/conftest.err >&5
64ff59ba 16656 echo "$as_me:16656: \$? = $ac_status" >&5
d9898ee8 16657 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16658 then
16659 # The compiler can only warn and ignore the option if not recognized
16660 # So say no if there are warnings
16661 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16662 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16663 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16664 lt_cv_prog_compiler_c_o_GCJ=yes
16665 fi
16666 fi
16667 chmod u+w . 2>&5
16668 $rm conftest*
16669 # SGI C++ compiler will create directory out/ii_files/ for
16670 # template instantiation
16671 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16672 $rm out/* && rmdir out
16673 cd ..
16674 rmdir conftest
16675 $rm conftest*
16676
16677fi
64ff59ba 16678{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16679echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d9898ee8 16680
16681
16682hard_links="nottested"
16683if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16684 # do not overwrite the value of need_locks provided by the user
64ff59ba 16685 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16686echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 16687 hard_links=yes
16688 $rm conftest*
16689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16690 touch conftest.a
16691 ln conftest.a conftest.b 2>&5 || hard_links=no
16692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 16693 { echo "$as_me:$LINENO: result: $hard_links" >&5
16694echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 16695 if test "$hard_links" = no; then
16696 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16697echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16698 need_locks=warn
16699 fi
16700else
16701 need_locks=no
16702fi
16703
64ff59ba 16704{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16705echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 16706
16707 runpath_var=
16708 allow_undefined_flag_GCJ=
16709 enable_shared_with_static_runtimes_GCJ=no
16710 archive_cmds_GCJ=
16711 archive_expsym_cmds_GCJ=
16712 old_archive_From_new_cmds_GCJ=
16713 old_archive_from_expsyms_cmds_GCJ=
16714 export_dynamic_flag_spec_GCJ=
16715 whole_archive_flag_spec_GCJ=
16716 thread_safe_flag_spec_GCJ=
16717 hardcode_libdir_flag_spec_GCJ=
16718 hardcode_libdir_flag_spec_ld_GCJ=
16719 hardcode_libdir_separator_GCJ=
16720 hardcode_direct_GCJ=no
16721 hardcode_minus_L_GCJ=no
16722 hardcode_shlibpath_var_GCJ=unsupported
16723 link_all_deplibs_GCJ=unknown
16724 hardcode_automatic_GCJ=no
16725 module_cmds_GCJ=
16726 module_expsym_cmds_GCJ=
16727 always_export_symbols_GCJ=no
16728 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16729 # include_expsyms should be a list of space-separated symbols to be *always*
16730 # included in the symbol list
16731 include_expsyms_GCJ=
16732 # exclude_expsyms can be an extended regexp of symbols to exclude
16733 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16734 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16735 # as well as any symbol that contains `d'.
16736 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16737 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16738 # platforms (ab)use it in PIC code, but their linkers get confused if
16739 # the symbol is explicitly referenced. Since portable code cannot
16740 # rely on this symbol name, it's probably fine to never include it in
16741 # preloaded symbol tables.
16742 extract_expsyms_cmds=
16743 # Just being paranoid about ensuring that cc_basename is set.
16744 for cc_temp in $compiler""; do
16745 case $cc_temp in
16746 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16747 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16748 \-*) ;;
16749 *) break;;
16750 esac
16751done
16752cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16753
16754 case $host_os in
16755 cygwin* | mingw* | pw32*)
16756 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16757 # When not using gcc, we currently assume that we are using
16758 # Microsoft Visual C++.
16759 if test "$GCC" != yes; then
16760 with_gnu_ld=no
16761 fi
16762 ;;
16763 interix*)
16764 # we just hope/assume this is gcc and not c89 (= MSVC++)
16765 with_gnu_ld=yes
16766 ;;
16767 openbsd*)
16768 with_gnu_ld=no
16769 ;;
16770 esac
16771
16772 ld_shlibs_GCJ=yes
16773 if test "$with_gnu_ld" = yes; then
16774 # If archive_cmds runs LD, not CC, wlarc should be empty
16775 wlarc='${wl}'
16776
16777 # Set some defaults for GNU ld with shared library support. These
16778 # are reset later if shared libraries are not supported. Putting them
16779 # here allows them to be overridden if necessary.
16780 runpath_var=LD_RUN_PATH
16781 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16782 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16783 # ancient GNU ld didn't support --whole-archive et. al.
16784 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16785 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16786 else
16787 whole_archive_flag_spec_GCJ=
16788 fi
16789 supports_anon_versioning=no
16790 case `$LD -v 2>/dev/null` in
16791 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16792 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16793 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16794 *\ 2.11.*) ;; # other 2.11 versions
16795 *) supports_anon_versioning=yes ;;
16796 esac
16797
16798 # See if GNU ld supports shared libraries.
16799 case $host_os in
16800 aix3* | aix4* | aix5*)
16801 # On AIX/PPC, the GNU linker is very broken
16802 if test "$host_cpu" != ia64; then
16803 ld_shlibs_GCJ=no
16804 cat <<EOF 1>&2
16805
16806*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16807*** to be unable to reliably create shared libraries on AIX.
16808*** Therefore, libtool is disabling shared libraries support. If you
16809*** really care for shared libraries, you may want to modify your PATH
16810*** so that a non-GNU linker is found, and then restart.
16811
16812EOF
16813 fi
16814 ;;
16815
16816 amigaos*)
16817 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)'
16818 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16819 hardcode_minus_L_GCJ=yes
16820
16821 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16822 # that the semantics of dynamic libraries on AmigaOS, at least up
16823 # to version 4, is to share data among multiple programs linked
16824 # with the same dynamic library. Since this doesn't match the
16825 # behavior of shared libraries on other platforms, we can't use
16826 # them.
16827 ld_shlibs_GCJ=no
16828 ;;
16829
16830 beos*)
16831 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16832 allow_undefined_flag_GCJ=unsupported
16833 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16834 # support --undefined. This deserves some investigation. FIXME
16835 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16836 else
16837 ld_shlibs_GCJ=no
16838 fi
16839 ;;
16840
16841 cygwin* | mingw* | pw32*)
16842 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16843 # as there is no search path for DLLs.
16844 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16845 allow_undefined_flag_GCJ=unsupported
16846 always_export_symbols_GCJ=no
16847 enable_shared_with_static_runtimes_GCJ=yes
16848 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16849
16850 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16851 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16852 # If the export-symbols file already is a .def file (1st line
16853 # is EXPORTS), use it as is; otherwise, prepend...
16854 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16855 cp $export_symbols $output_objdir/$soname.def;
16856 else
16857 echo EXPORTS > $output_objdir/$soname.def;
16858 cat $export_symbols >> $output_objdir/$soname.def;
16859 fi~
16860 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16861 else
16862 ld_shlibs_GCJ=no
16863 fi
16864 ;;
16865
16866 interix3*)
16867 hardcode_direct_GCJ=no
16868 hardcode_shlibpath_var_GCJ=no
16869 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16870 export_dynamic_flag_spec_GCJ='${wl}-E'
16871 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16872 # Instead, shared libraries are loaded at an image base (0x10000000 by
16873 # default) and relocated if they conflict, which is a slow very memory
16874 # consuming and fragmenting process. To avoid this, we pick a random,
16875 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16876 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16877 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'
16878 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'
16879 ;;
16880
16881 linux*)
16882 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16883 tmp_addflag=
16884 case $cc_basename,$host_cpu in
16885 pgcc*) # Portland Group C compiler
16886 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'
16887 tmp_addflag=' $pic_flag'
16888 ;;
16889 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16890 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'
16891 tmp_addflag=' $pic_flag -Mnomain' ;;
16892 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16893 tmp_addflag=' -i_dynamic' ;;
16894 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16895 tmp_addflag=' -i_dynamic -nofor_main' ;;
16896 ifc* | ifort*) # Intel Fortran compiler
16897 tmp_addflag=' -nofor_main' ;;
16898 esac
16899 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16900
16901 if test $supports_anon_versioning = yes; then
16902 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16903 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16904 $echo "local: *; };" >> $output_objdir/$libname.ver~
16905 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16906 fi
16907 else
16908 ld_shlibs_GCJ=no
16909 fi
16910 ;;
16911
16912 netbsd*)
16913 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16914 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16915 wlarc=
16916 else
16917 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16918 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16919 fi
16920 ;;
16921
16922 solaris*)
16923 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16924 ld_shlibs_GCJ=no
16925 cat <<EOF 1>&2
16926
16927*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16928*** create shared libraries on Solaris systems. Therefore, libtool
16929*** is disabling shared libraries support. We urge you to upgrade GNU
16930*** binutils to release 2.9.1 or newer. Another option is to modify
16931*** your PATH or compiler configuration so that the native linker is
16932*** used, and then restart.
16933
16934EOF
16935 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16936 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16937 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16938 else
16939 ld_shlibs_GCJ=no
16940 fi
16941 ;;
16942
16943 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16944 case `$LD -v 2>&1` in
16945 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16946 ld_shlibs_GCJ=no
16947 cat <<_LT_EOF 1>&2
16948
16949*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16950*** reliably create shared libraries on SCO systems. Therefore, libtool
16951*** is disabling shared libraries support. We urge you to upgrade GNU
16952*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16953*** your PATH or compiler configuration so that the native linker is
16954*** used, and then restart.
16955
16956_LT_EOF
16957 ;;
16958 *)
16959 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16960 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16961 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16962 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16963 else
16964 ld_shlibs_GCJ=no
16965 fi
16966 ;;
16967 esac
16968 ;;
16969
16970 sunos4*)
16971 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16972 wlarc=
16973 hardcode_direct_GCJ=yes
16974 hardcode_shlibpath_var_GCJ=no
16975 ;;
16976
16977 *)
16978 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16979 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16980 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16981 else
16982 ld_shlibs_GCJ=no
16983 fi
16984 ;;
16985 esac
16986
16987 if test "$ld_shlibs_GCJ" = no; then
16988 runpath_var=
16989 hardcode_libdir_flag_spec_GCJ=
16990 export_dynamic_flag_spec_GCJ=
16991 whole_archive_flag_spec_GCJ=
16992 fi
16993 else
16994 # PORTME fill in a description of your system's linker (not GNU ld)
16995 case $host_os in
16996 aix3*)
16997 allow_undefined_flag_GCJ=unsupported
16998 always_export_symbols_GCJ=yes
16999 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'
17000 # Note: this linker hardcodes the directories in LIBPATH if there
17001 # are no directories specified by -L.
17002 hardcode_minus_L_GCJ=yes
17003 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17004 # Neither direct hardcoding nor static linking is supported with a
17005 # broken collect2.
17006 hardcode_direct_GCJ=unsupported
17007 fi
17008 ;;
17009
17010 aix4* | aix5*)
17011 if test "$host_cpu" = ia64; then
17012 # On IA64, the linker does run time linking by default, so we don't
17013 # have to do anything special.
17014 aix_use_runtimelinking=no
17015 exp_sym_flag='-Bexport'
17016 no_entry_flag=""
17017 else
17018 # If we're using GNU nm, then we don't want the "-C" option.
17019 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17020 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17021 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'
17022 else
17023 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'
17024 fi
17025 aix_use_runtimelinking=no
17026
17027 # Test if we are trying to use run time linking or normal
17028 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17029 # need to do runtime linking.
17030 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17031 for ld_flag in $LDFLAGS; do
17032 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17033 aix_use_runtimelinking=yes
17034 break
17035 fi
17036 done
17037 ;;
17038 esac
17039
17040 exp_sym_flag='-bexport'
17041 no_entry_flag='-bnoentry'
17042 fi
17043
17044 # When large executables or shared objects are built, AIX ld can
17045 # have problems creating the table of contents. If linking a library
17046 # or program results in "error TOC overflow" add -mminimal-toc to
17047 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17048 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17049
17050 archive_cmds_GCJ=''
17051 hardcode_direct_GCJ=yes
17052 hardcode_libdir_separator_GCJ=':'
17053 link_all_deplibs_GCJ=yes
17054
17055 if test "$GCC" = yes; then
17056 case $host_os in aix4.[012]|aix4.[012].*)
17057 # We only want to do this on AIX 4.2 and lower, the check
17058 # below for broken collect2 doesn't work under 4.3+
17059 collect2name=`${CC} -print-prog-name=collect2`
17060 if test -f "$collect2name" && \
17061 strings "$collect2name" | grep resolve_lib_name >/dev/null
17062 then
17063 # We have reworked collect2
17064 hardcode_direct_GCJ=yes
17065 else
17066 # We have old collect2
17067 hardcode_direct_GCJ=unsupported
17068 # It fails to find uninstalled libraries when the uninstalled
17069 # path is not listed in the libpath. Setting hardcode_minus_L
17070 # to unsupported forces relinking
17071 hardcode_minus_L_GCJ=yes
17072 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17073 hardcode_libdir_separator_GCJ=
17074 fi
17075 ;;
17076 esac
17077 shared_flag='-shared'
17078 if test "$aix_use_runtimelinking" = yes; then
17079 shared_flag="$shared_flag "'${wl}-G'
17080 fi
17081 else
17082 # not using gcc
17083 if test "$host_cpu" = ia64; then
17084 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17085 # chokes on -Wl,-G. The following line is correct:
17086 shared_flag='-G'
17087 else
17088 if test "$aix_use_runtimelinking" = yes; then
17089 shared_flag='${wl}-G'
17090 else
17091 shared_flag='${wl}-bM:SRE'
17092 fi
17093 fi
17094 fi
17095
17096 # It seems that -bexpall does not export symbols beginning with
17097 # underscore (_), so it is better to generate a list of symbols to export.
17098 always_export_symbols_GCJ=yes
17099 if test "$aix_use_runtimelinking" = yes; then
17100 # Warning - without using the other runtime loading flags (-brtl),
17101 # -berok will link without error, but may produce a broken library.
17102 allow_undefined_flag_GCJ='-berok'
17103 # Determine the default libpath from the value encoded in an empty executable.
17104 cat >conftest.$ac_ext <<_ACEOF
17105/* confdefs.h. */
17106_ACEOF
17107cat confdefs.h >>conftest.$ac_ext
17108cat >>conftest.$ac_ext <<_ACEOF
17109/* end confdefs.h. */
17110
17111int
17112main ()
17113{
17114
17115 ;
17116 return 0;
17117}
17118_ACEOF
17119rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 17120if { (ac_try="$ac_link"
17121case "(($ac_try" in
17122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123 *) ac_try_echo=$ac_try;;
17124esac
17125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17126 (eval "$ac_link") 2>conftest.er1
d9898ee8 17127 ac_status=$?
17128 grep -v '^ *+' conftest.er1 >conftest.err
17129 rm -f conftest.er1
17130 cat conftest.err >&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 17132 (exit $ac_status); } && {
17133 test -z "$ac_c_werror_flag" ||
17134 test ! -s conftest.err
17135 } && test -s conftest$ac_exeext &&
17136 $as_test_x conftest$ac_exeext; then
d9898ee8 17137
17138aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17139}'`
17140# Check for a 64-bit object if we didn't find anything.
17141if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17142}'`; fi
17143else
17144 echo "$as_me: failed program was:" >&5
17145sed 's/^/| /' conftest.$ac_ext >&5
17146
64ff59ba 17147
d9898ee8 17148fi
64ff59ba 17149
17150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17151 conftest$ac_exeext conftest.$ac_ext
17152if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17153
17154 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17155 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"
17156 else
17157 if test "$host_cpu" = ia64; then
17158 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17159 allow_undefined_flag_GCJ="-z nodefs"
17160 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"
17161 else
17162 # Determine the default libpath from the value encoded in an empty executable.
17163 cat >conftest.$ac_ext <<_ACEOF
17164/* confdefs.h. */
17165_ACEOF
17166cat confdefs.h >>conftest.$ac_ext
17167cat >>conftest.$ac_ext <<_ACEOF
17168/* end confdefs.h. */
17169
17170int
17171main ()
17172{
17173
17174 ;
17175 return 0;
17176}
17177_ACEOF
17178rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 17179if { (ac_try="$ac_link"
17180case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17183esac
17184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_link") 2>conftest.er1
d9898ee8 17186 ac_status=$?
17187 grep -v '^ *+' conftest.er1 >conftest.err
17188 rm -f conftest.er1
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 17191 (exit $ac_status); } && {
17192 test -z "$ac_c_werror_flag" ||
17193 test ! -s conftest.err
17194 } && test -s conftest$ac_exeext &&
17195 $as_test_x conftest$ac_exeext; then
d9898ee8 17196
17197aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17198}'`
17199# Check for a 64-bit object if we didn't find anything.
17200if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17201}'`; fi
17202else
17203 echo "$as_me: failed program was:" >&5
17204sed 's/^/| /' conftest.$ac_ext >&5
17205
64ff59ba 17206
d9898ee8 17207fi
64ff59ba 17208
17209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17210 conftest$ac_exeext conftest.$ac_ext
17211if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17212
17213 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17214 # Warning - without using the other run time loading flags,
17215 # -berok will link without error, but may produce a broken library.
17216 no_undefined_flag_GCJ=' ${wl}-bernotok'
17217 allow_undefined_flag_GCJ=' ${wl}-berok'
17218 # Exported symbols can be pulled into shared objects from archives
17219 whole_archive_flag_spec_GCJ='$convenience'
17220 archive_cmds_need_lc_GCJ=yes
17221 # This is similar to how AIX traditionally builds its shared libraries.
17222 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'
17223 fi
17224 fi
17225 ;;
17226
17227 amigaos*)
17228 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)'
17229 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17230 hardcode_minus_L_GCJ=yes
17231 # see comment about different semantics on the GNU ld section
17232 ld_shlibs_GCJ=no
17233 ;;
17234
17235 bsdi[45]*)
17236 export_dynamic_flag_spec_GCJ=-rdynamic
17237 ;;
17238
17239 cygwin* | mingw* | pw32*)
17240 # When not using gcc, we currently assume that we are using
17241 # Microsoft Visual C++.
17242 # hardcode_libdir_flag_spec is actually meaningless, as there is
17243 # no search path for DLLs.
17244 hardcode_libdir_flag_spec_GCJ=' '
17245 allow_undefined_flag_GCJ=unsupported
17246 # Tell ltmain to make .lib files, not .a files.
17247 libext=lib
17248 # Tell ltmain to make .dll files, not .so files.
17249 shrext_cmds=".dll"
17250 # FIXME: Setting linknames here is a bad hack.
17251 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17252 # The linker will automatically build a .lib file if we build a DLL.
17253 old_archive_From_new_cmds_GCJ='true'
17254 # FIXME: Should let the user specify the lib program.
17255 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17256 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17257 enable_shared_with_static_runtimes_GCJ=yes
17258 ;;
17259
17260 darwin* | rhapsody*)
17261 case $host_os in
17262 rhapsody* | darwin1.[012])
17263 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17264 ;;
17265 *) # Darwin 1.3 on
17266 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17267 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17268 else
17269 case ${MACOSX_DEPLOYMENT_TARGET} in
17270 10.[012])
17271 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17272 ;;
17273 10.*)
17274 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17275 ;;
17276 esac
17277 fi
17278 ;;
17279 esac
17280 archive_cmds_need_lc_GCJ=no
17281 hardcode_direct_GCJ=no
17282 hardcode_automatic_GCJ=yes
17283 hardcode_shlibpath_var_GCJ=unsupported
17284 whole_archive_flag_spec_GCJ=''
17285 link_all_deplibs_GCJ=yes
17286 if test "$GCC" = yes ; then
17287 output_verbose_link_cmd='echo'
17288 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17289 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17290 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17291 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17292 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}'
17293 else
17294 case $cc_basename in
17295 xlc*)
17296 output_verbose_link_cmd='echo'
17297 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17298 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17299 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17300 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17301 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}'
17302 ;;
17303 *)
17304 ld_shlibs_GCJ=no
17305 ;;
17306 esac
17307 fi
17308 ;;
17309
17310 dgux*)
17311 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17312 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17313 hardcode_shlibpath_var_GCJ=no
17314 ;;
17315
17316 freebsd1*)
17317 ld_shlibs_GCJ=no
17318 ;;
17319
17320 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17321 # support. Future versions do this automatically, but an explicit c++rt0.o
17322 # does not break anything, and helps significantly (at the cost of a little
17323 # extra space).
17324 freebsd2.2*)
17325 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17326 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17327 hardcode_direct_GCJ=yes
17328 hardcode_shlibpath_var_GCJ=no
17329 ;;
17330
17331 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17332 freebsd2*)
17333 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17334 hardcode_direct_GCJ=yes
17335 hardcode_minus_L_GCJ=yes
17336 hardcode_shlibpath_var_GCJ=no
17337 ;;
17338
17339 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17340 freebsd* | kfreebsd*-gnu | dragonfly*)
17341 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17342 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17343 hardcode_direct_GCJ=yes
17344 hardcode_shlibpath_var_GCJ=no
17345 ;;
17346
17347 hpux9*)
17348 if test "$GCC" = yes; then
17349 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'
17350 else
17351 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'
17352 fi
17353 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17354 hardcode_libdir_separator_GCJ=:
17355 hardcode_direct_GCJ=yes
17356
17357 # hardcode_minus_L: Not really in the search PATH,
17358 # but as the default location of the library.
17359 hardcode_minus_L_GCJ=yes
17360 export_dynamic_flag_spec_GCJ='${wl}-E'
17361 ;;
17362
17363 hpux10*)
17364 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17365 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17366 else
17367 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17368 fi
17369 if test "$with_gnu_ld" = no; then
17370 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17371 hardcode_libdir_separator_GCJ=:
17372
17373 hardcode_direct_GCJ=yes
17374 export_dynamic_flag_spec_GCJ='${wl}-E'
17375
17376 # hardcode_minus_L: Not really in the search PATH,
17377 # but as the default location of the library.
17378 hardcode_minus_L_GCJ=yes
17379 fi
17380 ;;
17381
17382 hpux11*)
17383 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17384 case $host_cpu in
17385 hppa*64*)
17386 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17387 ;;
17388 ia64*)
17389 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17390 ;;
17391 *)
17392 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17393 ;;
17394 esac
17395 else
17396 case $host_cpu in
17397 hppa*64*)
17398 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17399 ;;
17400 ia64*)
17401 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17402 ;;
17403 *)
17404 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17405 ;;
17406 esac
17407 fi
17408 if test "$with_gnu_ld" = no; then
17409 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17410 hardcode_libdir_separator_GCJ=:
17411
17412 case $host_cpu in
17413 hppa*64*|ia64*)
17414 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17415 hardcode_direct_GCJ=no
17416 hardcode_shlibpath_var_GCJ=no
17417 ;;
17418 *)
17419 hardcode_direct_GCJ=yes
17420 export_dynamic_flag_spec_GCJ='${wl}-E'
17421
17422 # hardcode_minus_L: Not really in the search PATH,
17423 # but as the default location of the library.
17424 hardcode_minus_L_GCJ=yes
17425 ;;
17426 esac
17427 fi
17428 ;;
17429
17430 irix5* | irix6* | nonstopux*)
17431 if test "$GCC" = yes; then
17432 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'
17433 else
17434 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'
17435 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17436 fi
17437 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17438 hardcode_libdir_separator_GCJ=:
17439 link_all_deplibs_GCJ=yes
17440 ;;
17441
17442 netbsd*)
17443 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17444 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17445 else
17446 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17447 fi
17448 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17449 hardcode_direct_GCJ=yes
17450 hardcode_shlibpath_var_GCJ=no
17451 ;;
17452
17453 newsos6)
17454 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17455 hardcode_direct_GCJ=yes
17456 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17457 hardcode_libdir_separator_GCJ=:
17458 hardcode_shlibpath_var_GCJ=no
17459 ;;
17460
17461 openbsd*)
17462 hardcode_direct_GCJ=yes
17463 hardcode_shlibpath_var_GCJ=no
17464 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17465 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17466 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17467 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17468 export_dynamic_flag_spec_GCJ='${wl}-E'
17469 else
17470 case $host_os in
17471 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17472 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17473 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17474 ;;
17475 *)
17476 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17477 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17478 ;;
17479 esac
17480 fi
17481 ;;
17482
17483 os2*)
17484 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17485 hardcode_minus_L_GCJ=yes
17486 allow_undefined_flag_GCJ=unsupported
17487 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'
17488 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17489 ;;
17490
17491 osf3*)
17492 if test "$GCC" = yes; then
17493 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17494 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'
17495 else
17496 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17497 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'
17498 fi
17499 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17500 hardcode_libdir_separator_GCJ=:
17501 ;;
17502
17503 osf4* | osf5*) # as osf3* with the addition of -msym flag
17504 if test "$GCC" = yes; then
17505 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17506 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'
17507 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17508 else
17509 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17510 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'
17511 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~
17512 $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'
17513
17514 # Both c and cxx compiler support -rpath directly
17515 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17516 fi
17517 hardcode_libdir_separator_GCJ=:
17518 ;;
17519
17520 solaris*)
17521 no_undefined_flag_GCJ=' -z text'
17522 if test "$GCC" = yes; then
17523 wlarc='${wl}'
17524 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17525 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17526 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17527 else
17528 wlarc=''
17529 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17530 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17531 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17532 fi
17533 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17534 hardcode_shlibpath_var_GCJ=no
17535 case $host_os in
17536 solaris2.[0-5] | solaris2.[0-5].*) ;;
17537 *)
17538 # The compiler driver will combine linker options so we
17539 # cannot just pass the convience library names through
17540 # without $wl, iff we do not link with $LD.
17541 # Luckily, gcc supports the same syntax we need for Sun Studio.
17542 # Supported since Solaris 2.6 (maybe 2.5.1?)
17543 case $wlarc in
17544 '')
17545 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17546 *)
17547 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17548 esac ;;
17549 esac
17550 link_all_deplibs_GCJ=yes
17551 ;;
17552
17553 sunos4*)
17554 if test "x$host_vendor" = xsequent; then
17555 # Use $CC to link under sequent, because it throws in some extra .o
17556 # files that make .init and .fini sections work.
17557 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17558 else
17559 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17560 fi
17561 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17562 hardcode_direct_GCJ=yes
17563 hardcode_minus_L_GCJ=yes
17564 hardcode_shlibpath_var_GCJ=no
17565 ;;
17566
17567 sysv4)
17568 case $host_vendor in
17569 sni)
17570 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17571 hardcode_direct_GCJ=yes # is this really true???
17572 ;;
17573 siemens)
17574 ## LD is ld it makes a PLAMLIB
17575 ## CC just makes a GrossModule.
17576 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17577 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17578 hardcode_direct_GCJ=no
17579 ;;
17580 motorola)
17581 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17582 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17583 ;;
17584 esac
17585 runpath_var='LD_RUN_PATH'
17586 hardcode_shlibpath_var_GCJ=no
17587 ;;
17588
17589 sysv4.3*)
17590 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17591 hardcode_shlibpath_var_GCJ=no
17592 export_dynamic_flag_spec_GCJ='-Bexport'
17593 ;;
17594
17595 sysv4*MP*)
17596 if test -d /usr/nec; then
17597 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17598 hardcode_shlibpath_var_GCJ=no
17599 runpath_var=LD_RUN_PATH
17600 hardcode_runpath_var=yes
17601 ld_shlibs_GCJ=yes
17602 fi
17603 ;;
17604
17605 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17606 no_undefined_flag_GCJ='${wl}-z,text'
17607 archive_cmds_need_lc_GCJ=no
17608 hardcode_shlibpath_var_GCJ=no
17609 runpath_var='LD_RUN_PATH'
17610
17611 if test "$GCC" = yes; then
17612 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17613 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17614 else
17615 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17616 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17617 fi
17618 ;;
17619
17620 sysv5* | sco3.2v5* | sco5v6*)
17621 # Note: We can NOT use -z defs as we might desire, because we do not
17622 # link with -lc, and that would cause any symbols used from libc to
17623 # always be unresolved, which means just about no library would
17624 # ever link correctly. If we're not using GNU ld we use -z text
17625 # though, which does catch some bad symbols but isn't as heavy-handed
17626 # as -z defs.
17627 no_undefined_flag_GCJ='${wl}-z,text'
17628 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17629 archive_cmds_need_lc_GCJ=no
17630 hardcode_shlibpath_var_GCJ=no
17631 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17632 hardcode_libdir_separator_GCJ=':'
17633 link_all_deplibs_GCJ=yes
17634 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17635 runpath_var='LD_RUN_PATH'
17636
17637 if test "$GCC" = yes; then
17638 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17639 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17640 else
17641 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17642 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17643 fi
17644 ;;
17645
17646 uts4*)
17647 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17648 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17649 hardcode_shlibpath_var_GCJ=no
17650 ;;
17651
17652 *)
17653 ld_shlibs_GCJ=no
17654 ;;
17655 esac
17656 fi
17657
64ff59ba 17658{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17659echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d9898ee8 17660test "$ld_shlibs_GCJ" = no && can_build_shared=no
17661
17662#
17663# Do we need to explicitly link libc?
17664#
17665case "x$archive_cmds_need_lc_GCJ" in
17666x|xyes)
17667 # Assume -lc should be added
17668 archive_cmds_need_lc_GCJ=yes
17669
17670 if test "$enable_shared" = yes && test "$GCC" = yes; then
17671 case $archive_cmds_GCJ in
17672 *'~'*)
17673 # FIXME: we may have to deal with multi-command sequences.
17674 ;;
17675 '$CC '*)
17676 # Test whether the compiler implicitly links with -lc since on some
17677 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17678 # to ld, don't add -lc before -lgcc.
64ff59ba 17679 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17680echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 17681 $rm conftest*
17682 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17683
17684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17685 (eval $ac_compile) 2>&5
17686 ac_status=$?
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); } 2>conftest.err; then
17689 soname=conftest
17690 lib=conftest
17691 libobjs=conftest.$ac_objext
17692 deplibs=
17693 wl=$lt_prog_compiler_wl_GCJ
17694 pic_flag=$lt_prog_compiler_pic_GCJ
17695 compiler_flags=-v
17696 linker_flags=-v
17697 verstring=
17698 output_objdir=.
17699 libname=conftest
17700 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17701 allow_undefined_flag_GCJ=
17702 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17703 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17704 ac_status=$?
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }
17707 then
17708 archive_cmds_need_lc_GCJ=no
17709 else
17710 archive_cmds_need_lc_GCJ=yes
17711 fi
17712 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17713 else
17714 cat conftest.err 1>&5
17715 fi
17716 $rm conftest*
64ff59ba 17717 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17718echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d9898ee8 17719 ;;
17720 esac
17721 fi
17722 ;;
17723esac
17724
64ff59ba 17725{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17726echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 17727library_names_spec=
17728libname_spec='lib$name'
17729soname_spec=
17730shrext_cmds=".so"
17731postinstall_cmds=
17732postuninstall_cmds=
17733finish_cmds=
17734finish_eval=
17735shlibpath_var=
17736shlibpath_overrides_runpath=unknown
17737version_type=none
17738dynamic_linker="$host_os ld.so"
17739sys_lib_dlsearch_path_spec="/lib /usr/lib"
17740if test "$GCC" = yes; then
17741 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17742 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17743 # if the path contains ";" then we assume it to be the separator
17744 # otherwise default to the standard path separator (i.e. ":") - it is
17745 # assumed that no part of a normal pathname contains ";" but that should
17746 # okay in the real world where ";" in dirpaths is itself problematic.
17747 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17748 else
17749 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17750 fi
17751else
17752 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17753fi
17754need_lib_prefix=unknown
17755hardcode_into_libs=no
17756
17757# when you set need_version to no, make sure it does not cause -set_version
17758# flags to be left without arguments
17759need_version=unknown
17760
17761case $host_os in
17762aix3*)
17763 version_type=linux
17764 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17765 shlibpath_var=LIBPATH
17766
17767 # AIX 3 has no versioning support, so we append a major version to the name.
17768 soname_spec='${libname}${release}${shared_ext}$major'
17769 ;;
17770
17771aix4* | aix5*)
17772 version_type=linux
17773 need_lib_prefix=no
17774 need_version=no
17775 hardcode_into_libs=yes
17776 if test "$host_cpu" = ia64; then
17777 # AIX 5 supports IA64
17778 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17779 shlibpath_var=LD_LIBRARY_PATH
17780 else
17781 # With GCC up to 2.95.x, collect2 would create an import file
17782 # for dependence libraries. The import file would start with
17783 # the line `#! .'. This would cause the generated library to
17784 # depend on `.', always an invalid library. This was fixed in
17785 # development snapshots of GCC prior to 3.0.
17786 case $host_os in
17787 aix4 | aix4.[01] | aix4.[01].*)
17788 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17789 echo ' yes '
17790 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17791 :
17792 else
17793 can_build_shared=no
17794 fi
17795 ;;
17796 esac
17797 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17798 # soname into executable. Probably we can add versioning support to
17799 # collect2, so additional links can be useful in future.
17800 if test "$aix_use_runtimelinking" = yes; then
17801 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17802 # instead of lib<name>.a to let people know that these are not
17803 # typical AIX shared libraries.
17804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17805 else
17806 # We preserve .a as extension for shared libraries through AIX4.2
17807 # and later when we are not doing run time linking.
17808 library_names_spec='${libname}${release}.a $libname.a'
17809 soname_spec='${libname}${release}${shared_ext}$major'
17810 fi
17811 shlibpath_var=LIBPATH
17812 fi
17813 ;;
17814
17815amigaos*)
17816 library_names_spec='$libname.ixlibrary $libname.a'
17817 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17818 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'
17819 ;;
17820
17821beos*)
17822 library_names_spec='${libname}${shared_ext}'
17823 dynamic_linker="$host_os ld.so"
17824 shlibpath_var=LIBRARY_PATH
17825 ;;
17826
17827bsdi[45]*)
17828 version_type=linux
17829 need_version=no
17830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17831 soname_spec='${libname}${release}${shared_ext}$major'
17832 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17833 shlibpath_var=LD_LIBRARY_PATH
17834 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17835 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17836 # the default ld.so.conf also contains /usr/contrib/lib and
17837 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17838 # libtool to hard-code these into programs
17839 ;;
17840
17841cygwin* | mingw* | pw32*)
17842 version_type=windows
17843 shrext_cmds=".dll"
17844 need_version=no
17845 need_lib_prefix=no
17846
17847 case $GCC,$host_os in
17848 yes,cygwin* | yes,mingw* | yes,pw32*)
17849 library_names_spec='$libname.dll.a'
17850 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17851 postinstall_cmds='base_file=`basename \${file}`~
17852 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17853 dldir=$destdir/`dirname \$dlpath`~
17854 test -d \$dldir || mkdir -p \$dldir~
17855 $install_prog $dir/$dlname \$dldir/$dlname~
17856 chmod a+x \$dldir/$dlname'
17857 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17858 dlpath=$dir/\$dldll~
17859 $rm \$dlpath'
17860 shlibpath_overrides_runpath=yes
17861
17862 case $host_os in
17863 cygwin*)
17864 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17865 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17866 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17867 ;;
17868 mingw*)
17869 # MinGW DLLs use traditional 'lib' prefix
17870 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17871 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17872 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17873 # It is most probably a Windows format PATH printed by
17874 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17875 # path with ; separators, and with drive letters. We can handle the
17876 # drive letters (cygwin fileutils understands them), so leave them,
17877 # especially as we might pass files found there to a mingw objdump,
17878 # which wouldn't understand a cygwinified path. Ahh.
17879 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17880 else
17881 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17882 fi
17883 ;;
17884 pw32*)
17885 # pw32 DLLs use 'pw' prefix rather than 'lib'
17886 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17887 ;;
17888 esac
17889 ;;
17890
17891 *)
17892 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17893 ;;
17894 esac
17895 dynamic_linker='Win32 ld.exe'
17896 # FIXME: first we should search . and the directory the executable is in
17897 shlibpath_var=PATH
17898 ;;
17899
17900darwin* | rhapsody*)
17901 dynamic_linker="$host_os dyld"
17902 version_type=darwin
17903 need_lib_prefix=no
17904 need_version=no
17905 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17906 soname_spec='${libname}${release}${major}$shared_ext'
17907 shlibpath_overrides_runpath=yes
17908 shlibpath_var=DYLD_LIBRARY_PATH
17909 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17910 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17911 if test "$GCC" = yes; then
17912 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17913 else
17914 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17915 fi
17916 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17917 ;;
17918
17919dgux*)
17920 version_type=linux
17921 need_lib_prefix=no
17922 need_version=no
17923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17924 soname_spec='${libname}${release}${shared_ext}$major'
17925 shlibpath_var=LD_LIBRARY_PATH
17926 ;;
17927
17928freebsd1*)
17929 dynamic_linker=no
17930 ;;
17931
17932kfreebsd*-gnu)
17933 version_type=linux
17934 need_lib_prefix=no
17935 need_version=no
17936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17937 soname_spec='${libname}${release}${shared_ext}$major'
17938 shlibpath_var=LD_LIBRARY_PATH
17939 shlibpath_overrides_runpath=no
17940 hardcode_into_libs=yes
17941 dynamic_linker='GNU ld.so'
17942 ;;
17943
17944freebsd* | dragonfly*)
17945 # DragonFly does not have aout. When/if they implement a new
17946 # versioning mechanism, adjust this.
17947 if test -x /usr/bin/objformat; then
17948 objformat=`/usr/bin/objformat`
17949 else
17950 case $host_os in
17951 freebsd[123]*) objformat=aout ;;
17952 *) objformat=elf ;;
17953 esac
17954 fi
17955 version_type=freebsd-$objformat
17956 case $version_type in
17957 freebsd-elf*)
17958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17959 need_version=no
17960 need_lib_prefix=no
17961 ;;
17962 freebsd-*)
17963 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17964 need_version=yes
17965 ;;
17966 esac
17967 shlibpath_var=LD_LIBRARY_PATH
17968 case $host_os in
17969 freebsd2*)
17970 shlibpath_overrides_runpath=yes
17971 ;;
17972 freebsd3.[01]* | freebsdelf3.[01]*)
17973 shlibpath_overrides_runpath=yes
17974 hardcode_into_libs=yes
17975 ;;
17976 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17977 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17978 shlibpath_overrides_runpath=no
17979 hardcode_into_libs=yes
17980 ;;
17981 freebsd*) # from 4.6 on
17982 shlibpath_overrides_runpath=yes
17983 hardcode_into_libs=yes
17984 ;;
17985 esac
17986 ;;
17987
17988gnu*)
17989 version_type=linux
17990 need_lib_prefix=no
17991 need_version=no
17992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17993 soname_spec='${libname}${release}${shared_ext}$major'
17994 shlibpath_var=LD_LIBRARY_PATH
17995 hardcode_into_libs=yes
17996 ;;
17997
17998hpux9* | hpux10* | hpux11*)
17999 # Give a soname corresponding to the major version so that dld.sl refuses to
18000 # link against other versions.
18001 version_type=sunos
18002 need_lib_prefix=no
18003 need_version=no
18004 case $host_cpu in
18005 ia64*)
18006 shrext_cmds='.so'
18007 hardcode_into_libs=yes
18008 dynamic_linker="$host_os dld.so"
18009 shlibpath_var=LD_LIBRARY_PATH
18010 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18012 soname_spec='${libname}${release}${shared_ext}$major'
18013 if test "X$HPUX_IA64_MODE" = X32; then
18014 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18015 else
18016 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18017 fi
18018 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18019 ;;
18020 hppa*64*)
18021 shrext_cmds='.sl'
18022 hardcode_into_libs=yes
18023 dynamic_linker="$host_os dld.sl"
18024 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18027 soname_spec='${libname}${release}${shared_ext}$major'
18028 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18030 ;;
18031 *)
18032 shrext_cmds='.sl'
18033 dynamic_linker="$host_os dld.sl"
18034 shlibpath_var=SHLIB_PATH
18035 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18037 soname_spec='${libname}${release}${shared_ext}$major'
18038 ;;
18039 esac
18040 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18041 postinstall_cmds='chmod 555 $lib'
18042 ;;
18043
18044interix3*)
18045 version_type=linux
18046 need_lib_prefix=no
18047 need_version=no
18048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18049 soname_spec='${libname}${release}${shared_ext}$major'
18050 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18051 shlibpath_var=LD_LIBRARY_PATH
18052 shlibpath_overrides_runpath=no
18053 hardcode_into_libs=yes
18054 ;;
18055
18056irix5* | irix6* | nonstopux*)
18057 case $host_os in
18058 nonstopux*) version_type=nonstopux ;;
18059 *)
18060 if test "$lt_cv_prog_gnu_ld" = yes; then
18061 version_type=linux
18062 else
18063 version_type=irix
18064 fi ;;
18065 esac
18066 need_lib_prefix=no
18067 need_version=no
18068 soname_spec='${libname}${release}${shared_ext}$major'
18069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18070 case $host_os in
18071 irix5* | nonstopux*)
18072 libsuff= shlibsuff=
18073 ;;
18074 *)
18075 case $LD in # libtool.m4 will add one of these switches to LD
18076 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18077 libsuff= shlibsuff= libmagic=32-bit;;
18078 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18079 libsuff=32 shlibsuff=N32 libmagic=N32;;
18080 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18081 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18082 *) libsuff= shlibsuff= libmagic=never-match;;
18083 esac
18084 ;;
18085 esac
18086 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18087 shlibpath_overrides_runpath=no
18088 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18089 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18090 hardcode_into_libs=yes
18091 ;;
18092
18093# No shared lib support for Linux oldld, aout, or coff.
18094linux*oldld* | linux*aout* | linux*coff*)
18095 dynamic_linker=no
18096 ;;
18097
18098# This must be Linux ELF.
18099linux*)
18100 version_type=linux
18101 need_lib_prefix=no
18102 need_version=no
18103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18104 soname_spec='${libname}${release}${shared_ext}$major'
18105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18106 shlibpath_var=LD_LIBRARY_PATH
18107 shlibpath_overrides_runpath=no
18108 # This implies no fast_install, which is unacceptable.
18109 # Some rework will be needed to allow for fast_install
18110 # before this can be enabled.
18111 hardcode_into_libs=yes
18112
18113 # find out which ABI we are using
18114 libsuff=
18115 case "$host_cpu" in
18116 x86_64*|s390x*|powerpc64*)
64ff59ba 18117 echo '#line 18117 "configure"' > conftest.$ac_ext
d9898ee8 18118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18119 (eval $ac_compile) 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; then
18123 case `/usr/bin/file conftest.$ac_objext` in
18124 *64-bit*)
18125 libsuff=64
18126 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18127 ;;
18128 esac
18129 fi
18130 rm -rf conftest*
18131 ;;
18132 esac
18133
18134 # Append ld.so.conf contents to the search path
18135 if test -f /etc/ld.so.conf; then
64ff59ba 18136 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 18137 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18138 fi
18139
18140 # We used to test for /lib/ld.so.1 and disable shared libraries on
18141 # powerpc, because MkLinux only supported shared libraries with the
18142 # GNU dynamic linker. Since this was broken with cross compilers,
18143 # most powerpc-linux boxes support dynamic linking these days and
18144 # people can always --disable-shared, the test was removed, and we
18145 # assume the GNU/Linux dynamic linker is in use.
18146 dynamic_linker='GNU/Linux ld.so'
18147 ;;
18148
18149knetbsd*-gnu)
18150 version_type=linux
18151 need_lib_prefix=no
18152 need_version=no
18153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18154 soname_spec='${libname}${release}${shared_ext}$major'
18155 shlibpath_var=LD_LIBRARY_PATH
18156 shlibpath_overrides_runpath=no
18157 hardcode_into_libs=yes
18158 dynamic_linker='GNU ld.so'
18159 ;;
18160
18161netbsd*)
18162 version_type=sunos
18163 need_lib_prefix=no
18164 need_version=no
18165 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18168 dynamic_linker='NetBSD (a.out) ld.so'
18169 else
18170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18171 soname_spec='${libname}${release}${shared_ext}$major'
18172 dynamic_linker='NetBSD ld.elf_so'
18173 fi
18174 shlibpath_var=LD_LIBRARY_PATH
18175 shlibpath_overrides_runpath=yes
18176 hardcode_into_libs=yes
18177 ;;
18178
18179newsos6)
18180 version_type=linux
18181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18182 shlibpath_var=LD_LIBRARY_PATH
18183 shlibpath_overrides_runpath=yes
18184 ;;
18185
18186nto-qnx*)
18187 version_type=linux
18188 need_lib_prefix=no
18189 need_version=no
18190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18191 soname_spec='${libname}${release}${shared_ext}$major'
18192 shlibpath_var=LD_LIBRARY_PATH
18193 shlibpath_overrides_runpath=yes
18194 ;;
18195
18196openbsd*)
18197 version_type=sunos
18198 sys_lib_dlsearch_path_spec="/usr/lib"
18199 need_lib_prefix=no
18200 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18201 case $host_os in
18202 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18203 *) need_version=no ;;
18204 esac
18205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18207 shlibpath_var=LD_LIBRARY_PATH
18208 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18209 case $host_os in
18210 openbsd2.[89] | openbsd2.[89].*)
18211 shlibpath_overrides_runpath=no
18212 ;;
18213 *)
18214 shlibpath_overrides_runpath=yes
18215 ;;
18216 esac
18217 else
18218 shlibpath_overrides_runpath=yes
18219 fi
18220 ;;
18221
18222os2*)
18223 libname_spec='$name'
18224 shrext_cmds=".dll"
18225 need_lib_prefix=no
18226 library_names_spec='$libname${shared_ext} $libname.a'
18227 dynamic_linker='OS/2 ld.exe'
18228 shlibpath_var=LIBPATH
18229 ;;
18230
18231osf3* | osf4* | osf5*)
18232 version_type=osf
18233 need_lib_prefix=no
18234 need_version=no
18235 soname_spec='${libname}${release}${shared_ext}$major'
18236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18237 shlibpath_var=LD_LIBRARY_PATH
18238 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18239 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18240 ;;
18241
18242solaris*)
18243 version_type=linux
18244 need_lib_prefix=no
18245 need_version=no
18246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18247 soname_spec='${libname}${release}${shared_ext}$major'
18248 shlibpath_var=LD_LIBRARY_PATH
18249 shlibpath_overrides_runpath=yes
18250 hardcode_into_libs=yes
18251 # ldd complains unless libraries are executable
18252 postinstall_cmds='chmod +x $lib'
18253 ;;
18254
18255sunos4*)
18256 version_type=sunos
18257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18258 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18259 shlibpath_var=LD_LIBRARY_PATH
18260 shlibpath_overrides_runpath=yes
18261 if test "$with_gnu_ld" = yes; then
18262 need_lib_prefix=no
18263 fi
18264 need_version=yes
18265 ;;
18266
18267sysv4 | sysv4.3*)
18268 version_type=linux
18269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18270 soname_spec='${libname}${release}${shared_ext}$major'
18271 shlibpath_var=LD_LIBRARY_PATH
18272 case $host_vendor in
18273 sni)
18274 shlibpath_overrides_runpath=no
18275 need_lib_prefix=no
18276 export_dynamic_flag_spec='${wl}-Blargedynsym'
18277 runpath_var=LD_RUN_PATH
18278 ;;
18279 siemens)
18280 need_lib_prefix=no
18281 ;;
18282 motorola)
18283 need_lib_prefix=no
18284 need_version=no
18285 shlibpath_overrides_runpath=no
18286 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18287 ;;
18288 esac
18289 ;;
18290
18291sysv4*MP*)
18292 if test -d /usr/nec ;then
18293 version_type=linux
18294 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18295 soname_spec='$libname${shared_ext}.$major'
18296 shlibpath_var=LD_LIBRARY_PATH
18297 fi
18298 ;;
18299
18300sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18301 version_type=freebsd-elf
18302 need_lib_prefix=no
18303 need_version=no
18304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18305 soname_spec='${libname}${release}${shared_ext}$major'
18306 shlibpath_var=LD_LIBRARY_PATH
18307 hardcode_into_libs=yes
18308 if test "$with_gnu_ld" = yes; then
18309 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18310 shlibpath_overrides_runpath=no
18311 else
18312 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18313 shlibpath_overrides_runpath=yes
18314 case $host_os in
18315 sco3.2v5*)
18316 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18317 ;;
18318 esac
18319 fi
18320 sys_lib_dlsearch_path_spec='/usr/lib'
18321 ;;
18322
18323uts4*)
18324 version_type=linux
18325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18326 soname_spec='${libname}${release}${shared_ext}$major'
18327 shlibpath_var=LD_LIBRARY_PATH
18328 ;;
18329
18330*)
18331 dynamic_linker=no
18332 ;;
18333esac
64ff59ba 18334{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18335echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 18336test "$dynamic_linker" = no && can_build_shared=no
18337
18338variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18339if test "$GCC" = yes; then
18340 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18341fi
18342
64ff59ba 18343{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18344echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 18345hardcode_action_GCJ=
18346if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18347 test -n "$runpath_var_GCJ" || \
18348 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18349
18350 # We can hardcode non-existant directories.
18351 if test "$hardcode_direct_GCJ" != no &&
18352 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18353 # have to relink, otherwise we might link with an installed library
18354 # when we should be linking with a yet-to-be-installed one
18355 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18356 test "$hardcode_minus_L_GCJ" != no; then
18357 # Linking always hardcodes the temporary library directory.
18358 hardcode_action_GCJ=relink
18359 else
18360 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18361 hardcode_action_GCJ=immediate
18362 fi
18363else
18364 # We cannot hardcode anything, or else we can only hardcode existing
18365 # directories.
18366 hardcode_action_GCJ=unsupported
18367fi
64ff59ba 18368{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18369echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d9898ee8 18370
18371if test "$hardcode_action_GCJ" = relink; then
18372 # Fast installation is not supported
18373 enable_fast_install=no
18374elif test "$shlibpath_overrides_runpath" = yes ||
18375 test "$enable_shared" = no; then
18376 # Fast installation is not necessary
18377 enable_fast_install=needless
18378fi
18379
18380
18381# The else clause should only fire when bootstrapping the
18382# libtool distribution, otherwise you forgot to ship ltmain.sh
18383# with your package, and you will get complaints that there are
18384# no rules to generate ltmain.sh.
18385if test -f "$ltmain"; then
18386 # See if we are running on zsh, and set the options which allow our commands through
18387 # without removal of \ escapes.
18388 if test -n "${ZSH_VERSION+set}" ; then
18389 setopt NO_GLOB_SUBST
18390 fi
18391 # Now quote all the things that may contain metacharacters while being
18392 # careful not to overquote the AC_SUBSTed values. We take copies of the
18393 # variables and quote the copies for generation of the libtool script.
18394 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18395 SED SHELL STRIP \
18396 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18397 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18398 deplibs_check_method reload_flag reload_cmds need_locks \
18399 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18400 lt_cv_sys_global_symbol_to_c_name_address \
18401 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18402 old_postinstall_cmds old_postuninstall_cmds \
18403 compiler_GCJ \
18404 CC_GCJ \
18405 LD_GCJ \
18406 lt_prog_compiler_wl_GCJ \
18407 lt_prog_compiler_pic_GCJ \
18408 lt_prog_compiler_static_GCJ \
18409 lt_prog_compiler_no_builtin_flag_GCJ \
18410 export_dynamic_flag_spec_GCJ \
18411 thread_safe_flag_spec_GCJ \
18412 whole_archive_flag_spec_GCJ \
18413 enable_shared_with_static_runtimes_GCJ \
18414 old_archive_cmds_GCJ \
18415 old_archive_from_new_cmds_GCJ \
18416 predep_objects_GCJ \
18417 postdep_objects_GCJ \
18418 predeps_GCJ \
18419 postdeps_GCJ \
18420 compiler_lib_search_path_GCJ \
18421 archive_cmds_GCJ \
18422 archive_expsym_cmds_GCJ \
18423 postinstall_cmds_GCJ \
18424 postuninstall_cmds_GCJ \
18425 old_archive_from_expsyms_cmds_GCJ \
18426 allow_undefined_flag_GCJ \
18427 no_undefined_flag_GCJ \
18428 export_symbols_cmds_GCJ \
18429 hardcode_libdir_flag_spec_GCJ \
18430 hardcode_libdir_flag_spec_ld_GCJ \
18431 hardcode_libdir_separator_GCJ \
18432 hardcode_automatic_GCJ \
18433 module_cmds_GCJ \
18434 module_expsym_cmds_GCJ \
18435 lt_cv_prog_compiler_c_o_GCJ \
18436 exclude_expsyms_GCJ \
18437 include_expsyms_GCJ; do
18438
18439 case $var in
18440 old_archive_cmds_GCJ | \
18441 old_archive_from_new_cmds_GCJ | \
18442 archive_cmds_GCJ | \
18443 archive_expsym_cmds_GCJ | \
18444 module_cmds_GCJ | \
18445 module_expsym_cmds_GCJ | \
18446 old_archive_from_expsyms_cmds_GCJ | \
18447 export_symbols_cmds_GCJ | \
18448 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18449 postinstall_cmds | postuninstall_cmds | \
18450 old_postinstall_cmds | old_postuninstall_cmds | \
18451 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18452 # Double-quote double-evaled strings.
18453 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18454 ;;
18455 *)
18456 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18457 ;;
18458 esac
18459 done
18460
18461 case $lt_echo in
18462 *'\$0 --fallback-echo"')
18463 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18464 ;;
18465 esac
18466
18467cfgfile="$ofile"
18468
18469 cat <<__EOF__ >> "$cfgfile"
18470# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18471
18472# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18473
18474# Shell to use when invoking shell scripts.
18475SHELL=$lt_SHELL
18476
18477# Whether or not to build shared libraries.
18478build_libtool_libs=$enable_shared
18479
18480# Whether or not to build static libraries.
18481build_old_libs=$enable_static
18482
18483# Whether or not to add -lc for building shared libraries.
18484build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18485
18486# Whether or not to disallow shared libs when runtime libs are static
18487allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18488
18489# Whether or not to optimize for fast installation.
18490fast_install=$enable_fast_install
18491
18492# The host system.
18493host_alias=$host_alias
18494host=$host
18495host_os=$host_os
18496
18497# The build system.
18498build_alias=$build_alias
18499build=$build
18500build_os=$build_os
18501
18502# An echo program that does not interpret backslashes.
18503echo=$lt_echo
18504
18505# The archiver.
18506AR=$lt_AR
18507AR_FLAGS=$lt_AR_FLAGS
18508
18509# A C compiler.
18510LTCC=$lt_LTCC
18511
18512# LTCC compiler flags.
18513LTCFLAGS=$lt_LTCFLAGS
18514
18515# A language-specific compiler.
18516CC=$lt_compiler_GCJ
18517
18518# Is the compiler the GNU C compiler?
18519with_gcc=$GCC_GCJ
18520
d9898ee8 18521# An ERE matcher.
18522EGREP=$lt_EGREP
18523
18524# The linker used to build libraries.
18525LD=$lt_LD_GCJ
18526
18527# Whether we need hard or soft links.
18528LN_S=$lt_LN_S
18529
18530# A BSD-compatible nm program.
18531NM=$lt_NM
18532
18533# A symbol stripping program
18534STRIP=$lt_STRIP
18535
18536# Used to examine libraries when file_magic_cmd begins "file"
18537MAGIC_CMD=$MAGIC_CMD
18538
18539# Used on cygwin: DLL creation program.
18540DLLTOOL="$DLLTOOL"
18541
18542# Used on cygwin: object dumper.
18543OBJDUMP="$OBJDUMP"
18544
18545# Used on cygwin: assembler.
18546AS="$AS"
18547
18548# The name of the directory that contains temporary libtool files.
18549objdir=$objdir
18550
18551# How to create reloadable object files.
18552reload_flag=$lt_reload_flag
18553reload_cmds=$lt_reload_cmds
18554
18555# How to pass a linker flag through the compiler.
18556wl=$lt_lt_prog_compiler_wl_GCJ
18557
18558# Object file suffix (normally "o").
18559objext="$ac_objext"
18560
18561# Old archive suffix (normally "a").
18562libext="$libext"
18563
18564# Shared library suffix (normally ".so").
18565shrext_cmds='$shrext_cmds'
18566
18567# Executable file suffix (normally "").
18568exeext="$exeext"
18569
18570# Additional compiler flags for building library objects.
18571pic_flag=$lt_lt_prog_compiler_pic_GCJ
18572pic_mode=$pic_mode
18573
18574# What is the maximum length of a command?
18575max_cmd_len=$lt_cv_sys_max_cmd_len
18576
18577# Does compiler simultaneously support -c and -o options?
18578compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18579
18580# Must we lock files when doing compilation?
18581need_locks=$lt_need_locks
18582
18583# Do we need the lib prefix for modules?
18584need_lib_prefix=$need_lib_prefix
18585
18586# Do we need a version for libraries?
18587need_version=$need_version
18588
18589# Whether dlopen is supported.
18590dlopen_support=$enable_dlopen
18591
18592# Whether dlopen of programs is supported.
18593dlopen_self=$enable_dlopen_self
18594
18595# Whether dlopen of statically linked programs is supported.
18596dlopen_self_static=$enable_dlopen_self_static
18597
18598# Compiler flag to prevent dynamic linking.
18599link_static_flag=$lt_lt_prog_compiler_static_GCJ
18600
18601# Compiler flag to turn off builtin functions.
18602no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18603
18604# Compiler flag to allow reflexive dlopens.
18605export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18606
18607# Compiler flag to generate shared objects directly from archives.
18608whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18609
18610# Compiler flag to generate thread-safe objects.
18611thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18612
18613# Library versioning type.
18614version_type=$version_type
18615
18616# Format of library name prefix.
18617libname_spec=$lt_libname_spec
18618
18619# List of archive names. First name is the real one, the rest are links.
18620# The last name is the one that the linker finds with -lNAME.
18621library_names_spec=$lt_library_names_spec
18622
18623# The coded name of the library, if different from the real name.
18624soname_spec=$lt_soname_spec
18625
18626# Commands used to build and install an old-style archive.
18627RANLIB=$lt_RANLIB
18628old_archive_cmds=$lt_old_archive_cmds_GCJ
18629old_postinstall_cmds=$lt_old_postinstall_cmds
18630old_postuninstall_cmds=$lt_old_postuninstall_cmds
18631
18632# Create an old-style archive from a shared archive.
18633old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18634
18635# Create a temporary old-style archive to link instead of a shared archive.
18636old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18637
18638# Commands used to build and install a shared archive.
18639archive_cmds=$lt_archive_cmds_GCJ
18640archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18641postinstall_cmds=$lt_postinstall_cmds
18642postuninstall_cmds=$lt_postuninstall_cmds
18643
18644# Commands used to build a loadable module (assumed same as above if empty)
18645module_cmds=$lt_module_cmds_GCJ
18646module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18647
18648# Commands to strip libraries.
18649old_striplib=$lt_old_striplib
18650striplib=$lt_striplib
18651
18652# Dependencies to place before the objects being linked to create a
18653# shared library.
64ff59ba 18654predep_objects=$lt_predep_objects_GCJ
d9898ee8 18655
18656# Dependencies to place after the objects being linked to create a
18657# shared library.
64ff59ba 18658postdep_objects=$lt_postdep_objects_GCJ
d9898ee8 18659
18660# Dependencies to place before the objects being linked to create a
18661# shared library.
18662predeps=$lt_predeps_GCJ
18663
18664# Dependencies to place after the objects being linked to create a
18665# shared library.
18666postdeps=$lt_postdeps_GCJ
18667
18668# The library search path used internally by the compiler when linking
18669# a shared library.
64ff59ba 18670compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
d9898ee8 18671
18672# Method to check whether dependent libraries are shared objects.
18673deplibs_check_method=$lt_deplibs_check_method
18674
18675# Command to use when deplibs_check_method == file_magic.
18676file_magic_cmd=$lt_file_magic_cmd
18677
18678# Flag that allows shared libraries with undefined symbols to be built.
18679allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18680
18681# Flag that forces no undefined symbols.
18682no_undefined_flag=$lt_no_undefined_flag_GCJ
18683
18684# Commands used to finish a libtool library installation in a directory.
18685finish_cmds=$lt_finish_cmds
18686
18687# Same as above, but a single script fragment to be evaled but not shown.
18688finish_eval=$lt_finish_eval
18689
18690# Take the output of nm and produce a listing of raw symbols and C names.
18691global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18692
18693# Transform the output of nm in a proper C declaration
18694global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18695
18696# Transform the output of nm in a C name address pair
18697global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18698
18699# This is the shared library runtime path variable.
18700runpath_var=$runpath_var
18701
18702# This is the shared library path variable.
18703shlibpath_var=$shlibpath_var
18704
18705# Is shlibpath searched before the hard-coded library search path?
18706shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18707
18708# How to hardcode a shared library path into an executable.
18709hardcode_action=$hardcode_action_GCJ
18710
18711# Whether we should hardcode library paths into libraries.
18712hardcode_into_libs=$hardcode_into_libs
18713
18714# Flag to hardcode \$libdir into a binary during linking.
18715# This must work even if \$libdir does not exist.
18716hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18717
18718# If ld is used when linking, flag to hardcode \$libdir into
18719# a binary during linking. This must work even if \$libdir does
18720# not exist.
18721hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18722
18723# Whether we need a single -rpath flag with a separated argument.
18724hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18725
18726# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18727# resulting binary.
18728hardcode_direct=$hardcode_direct_GCJ
18729
18730# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18731# resulting binary.
18732hardcode_minus_L=$hardcode_minus_L_GCJ
18733
18734# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18735# the resulting binary.
18736hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18737
18738# Set to yes if building a shared library automatically hardcodes DIR into the library
18739# and all subsequent libraries and executables linked against it.
18740hardcode_automatic=$hardcode_automatic_GCJ
18741
18742# Variables whose values should be saved in libtool wrapper scripts and
18743# restored at relink time.
18744variables_saved_for_relink="$variables_saved_for_relink"
18745
18746# Whether libtool must link a program against all its dependency libraries.
18747link_all_deplibs=$link_all_deplibs_GCJ
18748
18749# Compile-time system search path for libraries
64ff59ba 18750sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 18751
18752# Run-time system search path for libraries
18753sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18754
18755# Fix the shell variable \$srcfile for the compiler.
18756fix_srcfile_path="$fix_srcfile_path_GCJ"
18757
18758# Set to yes if exported symbols are required.
18759always_export_symbols=$always_export_symbols_GCJ
18760
18761# The commands to list exported symbols.
18762export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18763
18764# The commands to extract the exported symbol list from a shared archive.
18765extract_expsyms_cmds=$lt_extract_expsyms_cmds
18766
18767# Symbols that should not be listed in the preloaded symbols.
18768exclude_expsyms=$lt_exclude_expsyms_GCJ
18769
18770# Symbols that must always be exported.
18771include_expsyms=$lt_include_expsyms_GCJ
18772
18773# ### END LIBTOOL TAG CONFIG: $tagname
18774
18775__EOF__
18776
18777
18778else
18779 # If there is no Makefile yet, we rely on a make rule to execute
18780 # `config.status --recheck' to rerun these tests and create the
18781 # libtool script then.
18782 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18783 if test -f "$ltmain_in"; then
18784 test -f Makefile && make "$ltmain"
18785 fi
18786fi
18787
18788
18789ac_ext=c
18790ac_cpp='$CPP $CPPFLAGS'
18791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18793ac_compiler_gnu=$ac_cv_c_compiler_gnu
18794
18795CC="$lt_save_CC"
18796
18797 else
18798 tagname=""
18799 fi
18800 ;;
18801
18802 RC)
18803
18804
d9898ee8 18805# Source file extension for RC test sources.
18806ac_ext=rc
18807
18808# Object file extension for compiled RC test sources.
18809objext=o
18810objext_RC=$objext
18811
18812# Code to be used in simple compile tests
18813lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18814
18815# Code to be used in simple link tests
18816lt_simple_link_test_code="$lt_simple_compile_test_code"
18817
18818# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18819
18820# If no C compiler was specified, use CC.
18821LTCC=${LTCC-"$CC"}
18822
18823# If no C compiler flags were specified, use CFLAGS.
18824LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18825
18826# Allow CC to be a program name with arguments.
18827compiler=$CC
18828
18829
18830# save warnings/boilerplate of simple test code
18831ac_outfile=conftest.$ac_objext
18832printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18833eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18834_lt_compiler_boilerplate=`cat conftest.err`
18835$rm conftest*
18836
18837ac_outfile=conftest.$ac_objext
18838printf "$lt_simple_link_test_code" >conftest.$ac_ext
18839eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18840_lt_linker_boilerplate=`cat conftest.err`
18841$rm conftest*
18842
18843
18844# Allow CC to be a program name with arguments.
18845lt_save_CC="$CC"
18846CC=${RC-"windres"}
18847compiler=$CC
18848compiler_RC=$CC
18849for cc_temp in $compiler""; do
18850 case $cc_temp in
18851 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18852 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18853 \-*) ;;
18854 *) break;;
18855 esac
18856done
18857cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18858
18859lt_cv_prog_compiler_c_o_RC=yes
18860
18861# The else clause should only fire when bootstrapping the
18862# libtool distribution, otherwise you forgot to ship ltmain.sh
18863# with your package, and you will get complaints that there are
18864# no rules to generate ltmain.sh.
18865if test -f "$ltmain"; then
18866 # See if we are running on zsh, and set the options which allow our commands through
18867 # without removal of \ escapes.
18868 if test -n "${ZSH_VERSION+set}" ; then
18869 setopt NO_GLOB_SUBST
18870 fi
18871 # Now quote all the things that may contain metacharacters while being
18872 # careful not to overquote the AC_SUBSTed values. We take copies of the
18873 # variables and quote the copies for generation of the libtool script.
18874 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18875 SED SHELL STRIP \
18876 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18877 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18878 deplibs_check_method reload_flag reload_cmds need_locks \
18879 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18880 lt_cv_sys_global_symbol_to_c_name_address \
18881 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18882 old_postinstall_cmds old_postuninstall_cmds \
18883 compiler_RC \
18884 CC_RC \
18885 LD_RC \
18886 lt_prog_compiler_wl_RC \
18887 lt_prog_compiler_pic_RC \
18888 lt_prog_compiler_static_RC \
18889 lt_prog_compiler_no_builtin_flag_RC \
18890 export_dynamic_flag_spec_RC \
18891 thread_safe_flag_spec_RC \
18892 whole_archive_flag_spec_RC \
18893 enable_shared_with_static_runtimes_RC \
18894 old_archive_cmds_RC \
18895 old_archive_from_new_cmds_RC \
18896 predep_objects_RC \
18897 postdep_objects_RC \
18898 predeps_RC \
18899 postdeps_RC \
18900 compiler_lib_search_path_RC \
18901 archive_cmds_RC \
18902 archive_expsym_cmds_RC \
18903 postinstall_cmds_RC \
18904 postuninstall_cmds_RC \
18905 old_archive_from_expsyms_cmds_RC \
18906 allow_undefined_flag_RC \
18907 no_undefined_flag_RC \
18908 export_symbols_cmds_RC \
18909 hardcode_libdir_flag_spec_RC \
18910 hardcode_libdir_flag_spec_ld_RC \
18911 hardcode_libdir_separator_RC \
18912 hardcode_automatic_RC \
18913 module_cmds_RC \
18914 module_expsym_cmds_RC \
18915 lt_cv_prog_compiler_c_o_RC \
18916 exclude_expsyms_RC \
18917 include_expsyms_RC; do
18918
18919 case $var in
18920 old_archive_cmds_RC | \
18921 old_archive_from_new_cmds_RC | \
18922 archive_cmds_RC | \
18923 archive_expsym_cmds_RC | \
18924 module_cmds_RC | \
18925 module_expsym_cmds_RC | \
18926 old_archive_from_expsyms_cmds_RC | \
18927 export_symbols_cmds_RC | \
18928 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18929 postinstall_cmds | postuninstall_cmds | \
18930 old_postinstall_cmds | old_postuninstall_cmds | \
18931 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18932 # Double-quote double-evaled strings.
18933 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18934 ;;
18935 *)
18936 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18937 ;;
18938 esac
18939 done
18940
18941 case $lt_echo in
18942 *'\$0 --fallback-echo"')
18943 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18944 ;;
18945 esac
18946
18947cfgfile="$ofile"
18948
18949 cat <<__EOF__ >> "$cfgfile"
18950# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18951
18952# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18953
18954# Shell to use when invoking shell scripts.
18955SHELL=$lt_SHELL
18956
18957# Whether or not to build shared libraries.
18958build_libtool_libs=$enable_shared
18959
18960# Whether or not to build static libraries.
18961build_old_libs=$enable_static
18962
18963# Whether or not to add -lc for building shared libraries.
18964build_libtool_need_lc=$archive_cmds_need_lc_RC
18965
18966# Whether or not to disallow shared libs when runtime libs are static
18967allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18968
18969# Whether or not to optimize for fast installation.
18970fast_install=$enable_fast_install
18971
18972# The host system.
18973host_alias=$host_alias
18974host=$host
18975host_os=$host_os
18976
18977# The build system.
18978build_alias=$build_alias
18979build=$build
18980build_os=$build_os
18981
18982# An echo program that does not interpret backslashes.
18983echo=$lt_echo
18984
18985# The archiver.
18986AR=$lt_AR
18987AR_FLAGS=$lt_AR_FLAGS
18988
18989# A C compiler.
18990LTCC=$lt_LTCC
18991
18992# LTCC compiler flags.
18993LTCFLAGS=$lt_LTCFLAGS
18994
18995# A language-specific compiler.
18996CC=$lt_compiler_RC
18997
18998# Is the compiler the GNU C compiler?
18999with_gcc=$GCC_RC
19000
d9898ee8 19001# An ERE matcher.
19002EGREP=$lt_EGREP
19003
19004# The linker used to build libraries.
19005LD=$lt_LD_RC
19006
19007# Whether we need hard or soft links.
19008LN_S=$lt_LN_S
19009
19010# A BSD-compatible nm program.
19011NM=$lt_NM
19012
19013# A symbol stripping program
19014STRIP=$lt_STRIP
19015
19016# Used to examine libraries when file_magic_cmd begins "file"
19017MAGIC_CMD=$MAGIC_CMD
19018
19019# Used on cygwin: DLL creation program.
19020DLLTOOL="$DLLTOOL"
19021
19022# Used on cygwin: object dumper.
19023OBJDUMP="$OBJDUMP"
19024
19025# Used on cygwin: assembler.
19026AS="$AS"
19027
19028# The name of the directory that contains temporary libtool files.
19029objdir=$objdir
19030
19031# How to create reloadable object files.
19032reload_flag=$lt_reload_flag
19033reload_cmds=$lt_reload_cmds
19034
19035# How to pass a linker flag through the compiler.
19036wl=$lt_lt_prog_compiler_wl_RC
19037
19038# Object file suffix (normally "o").
19039objext="$ac_objext"
19040
19041# Old archive suffix (normally "a").
19042libext="$libext"
19043
19044# Shared library suffix (normally ".so").
19045shrext_cmds='$shrext_cmds'
19046
19047# Executable file suffix (normally "").
19048exeext="$exeext"
19049
19050# Additional compiler flags for building library objects.
19051pic_flag=$lt_lt_prog_compiler_pic_RC
19052pic_mode=$pic_mode
19053
19054# What is the maximum length of a command?
19055max_cmd_len=$lt_cv_sys_max_cmd_len
19056
19057# Does compiler simultaneously support -c and -o options?
19058compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19059
19060# Must we lock files when doing compilation?
19061need_locks=$lt_need_locks
19062
19063# Do we need the lib prefix for modules?
19064need_lib_prefix=$need_lib_prefix
19065
19066# Do we need a version for libraries?
19067need_version=$need_version
19068
19069# Whether dlopen is supported.
19070dlopen_support=$enable_dlopen
19071
19072# Whether dlopen of programs is supported.
19073dlopen_self=$enable_dlopen_self
19074
19075# Whether dlopen of statically linked programs is supported.
19076dlopen_self_static=$enable_dlopen_self_static
19077
19078# Compiler flag to prevent dynamic linking.
19079link_static_flag=$lt_lt_prog_compiler_static_RC
19080
19081# Compiler flag to turn off builtin functions.
19082no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19083
19084# Compiler flag to allow reflexive dlopens.
19085export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19086
19087# Compiler flag to generate shared objects directly from archives.
19088whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19089
19090# Compiler flag to generate thread-safe objects.
19091thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19092
19093# Library versioning type.
19094version_type=$version_type
19095
19096# Format of library name prefix.
19097libname_spec=$lt_libname_spec
19098
19099# List of archive names. First name is the real one, the rest are links.
19100# The last name is the one that the linker finds with -lNAME.
19101library_names_spec=$lt_library_names_spec
19102
19103# The coded name of the library, if different from the real name.
19104soname_spec=$lt_soname_spec
19105
19106# Commands used to build and install an old-style archive.
19107RANLIB=$lt_RANLIB
19108old_archive_cmds=$lt_old_archive_cmds_RC
19109old_postinstall_cmds=$lt_old_postinstall_cmds
19110old_postuninstall_cmds=$lt_old_postuninstall_cmds
19111
19112# Create an old-style archive from a shared archive.
19113old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19114
19115# Create a temporary old-style archive to link instead of a shared archive.
19116old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19117
19118# Commands used to build and install a shared archive.
19119archive_cmds=$lt_archive_cmds_RC
19120archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19121postinstall_cmds=$lt_postinstall_cmds
19122postuninstall_cmds=$lt_postuninstall_cmds
19123
19124# Commands used to build a loadable module (assumed same as above if empty)
19125module_cmds=$lt_module_cmds_RC
19126module_expsym_cmds=$lt_module_expsym_cmds_RC
19127
19128# Commands to strip libraries.
19129old_striplib=$lt_old_striplib
19130striplib=$lt_striplib
19131
19132# Dependencies to place before the objects being linked to create a
19133# shared library.
64ff59ba 19134predep_objects=$lt_predep_objects_RC
d9898ee8 19135
19136# Dependencies to place after the objects being linked to create a
19137# shared library.
64ff59ba 19138postdep_objects=$lt_postdep_objects_RC
d9898ee8 19139
19140# Dependencies to place before the objects being linked to create a
19141# shared library.
19142predeps=$lt_predeps_RC
19143
19144# Dependencies to place after the objects being linked to create a
19145# shared library.
19146postdeps=$lt_postdeps_RC
19147
19148# The library search path used internally by the compiler when linking
19149# a shared library.
64ff59ba 19150compiler_lib_search_path=$lt_compiler_lib_search_path_RC
d9898ee8 19151
19152# Method to check whether dependent libraries are shared objects.
19153deplibs_check_method=$lt_deplibs_check_method
19154
19155# Command to use when deplibs_check_method == file_magic.
19156file_magic_cmd=$lt_file_magic_cmd
19157
19158# Flag that allows shared libraries with undefined symbols to be built.
19159allow_undefined_flag=$lt_allow_undefined_flag_RC
19160
19161# Flag that forces no undefined symbols.
19162no_undefined_flag=$lt_no_undefined_flag_RC
19163
19164# Commands used to finish a libtool library installation in a directory.
19165finish_cmds=$lt_finish_cmds
19166
19167# Same as above, but a single script fragment to be evaled but not shown.
19168finish_eval=$lt_finish_eval
19169
19170# Take the output of nm and produce a listing of raw symbols and C names.
19171global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19172
19173# Transform the output of nm in a proper C declaration
19174global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19175
19176# Transform the output of nm in a C name address pair
19177global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19178
19179# This is the shared library runtime path variable.
19180runpath_var=$runpath_var
19181
19182# This is the shared library path variable.
19183shlibpath_var=$shlibpath_var
19184
19185# Is shlibpath searched before the hard-coded library search path?
19186shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19187
19188# How to hardcode a shared library path into an executable.
19189hardcode_action=$hardcode_action_RC
19190
19191# Whether we should hardcode library paths into libraries.
19192hardcode_into_libs=$hardcode_into_libs
19193
19194# Flag to hardcode \$libdir into a binary during linking.
19195# This must work even if \$libdir does not exist.
19196hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19197
19198# If ld is used when linking, flag to hardcode \$libdir into
19199# a binary during linking. This must work even if \$libdir does
19200# not exist.
19201hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19202
19203# Whether we need a single -rpath flag with a separated argument.
19204hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19205
19206# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19207# resulting binary.
19208hardcode_direct=$hardcode_direct_RC
19209
19210# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19211# resulting binary.
19212hardcode_minus_L=$hardcode_minus_L_RC
19213
19214# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19215# the resulting binary.
19216hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19217
19218# Set to yes if building a shared library automatically hardcodes DIR into the library
19219# and all subsequent libraries and executables linked against it.
19220hardcode_automatic=$hardcode_automatic_RC
19221
19222# Variables whose values should be saved in libtool wrapper scripts and
19223# restored at relink time.
19224variables_saved_for_relink="$variables_saved_for_relink"
19225
19226# Whether libtool must link a program against all its dependency libraries.
19227link_all_deplibs=$link_all_deplibs_RC
19228
19229# Compile-time system search path for libraries
64ff59ba 19230sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19231
19232# Run-time system search path for libraries
19233sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19234
19235# Fix the shell variable \$srcfile for the compiler.
19236fix_srcfile_path="$fix_srcfile_path_RC"
19237
19238# Set to yes if exported symbols are required.
19239always_export_symbols=$always_export_symbols_RC
19240
19241# The commands to list exported symbols.
19242export_symbols_cmds=$lt_export_symbols_cmds_RC
19243
19244# The commands to extract the exported symbol list from a shared archive.
19245extract_expsyms_cmds=$lt_extract_expsyms_cmds
19246
19247# Symbols that should not be listed in the preloaded symbols.
19248exclude_expsyms=$lt_exclude_expsyms_RC
19249
19250# Symbols that must always be exported.
19251include_expsyms=$lt_include_expsyms_RC
19252
19253# ### END LIBTOOL TAG CONFIG: $tagname
19254
19255__EOF__
19256
19257
19258else
19259 # If there is no Makefile yet, we rely on a make rule to execute
19260 # `config.status --recheck' to rerun these tests and create the
19261 # libtool script then.
19262 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19263 if test -f "$ltmain_in"; then
19264 test -f Makefile && make "$ltmain"
19265 fi
19266fi
19267
19268
19269ac_ext=c
19270ac_cpp='$CPP $CPPFLAGS'
19271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19273ac_compiler_gnu=$ac_cv_c_compiler_gnu
19274
19275CC="$lt_save_CC"
19276
19277 ;;
19278
19279 *)
19280 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19281echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19282 { (exit 1); exit 1; }; }
19283 ;;
19284 esac
19285
19286 # Append the new tag name to the list of available tags.
19287 if test -n "$tagname" ; then
19288 available_tags="$available_tags $tagname"
19289 fi
19290 fi
19291 done
19292 IFS="$lt_save_ifs"
19293
19294 # Now substitute the updated list of available tags.
19295 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19296 mv "${ofile}T" "$ofile"
19297 chmod +x "$ofile"
19298 else
19299 rm -f "${ofile}T"
19300 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19301echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19302 { (exit 1); exit 1; }; }
19303 fi
19304fi
19305
19306
19307
19308# This can be used to rebuild libtool when needed
19309LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19310
19311# Always use our own libtool.
19312LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19313
19314# Prevent multiple expansion
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336if test "$GCC" = yes
19337then
19338 CFLAGS="-Wall $CFLAGS"
19339fi
19340CFLAGS="$CFLAGS -I$srcdir/.. -I.."
19341
19342
19343
19344
19345for ac_header in sys/types.h
19346do
19347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 19348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19352 echo $ECHO_N "(cached) $ECHO_C" >&6
19353fi
64ff59ba 19354ac_res=`eval echo '${'$as_ac_Header'}'`
19355 { echo "$as_me:$LINENO: result: $ac_res" >&5
19356echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19357else
19358 # Is the header compilable?
64ff59ba 19359{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19360echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 19361cat >conftest.$ac_ext <<_ACEOF
19362/* confdefs.h. */
19363_ACEOF
19364cat confdefs.h >>conftest.$ac_ext
19365cat >>conftest.$ac_ext <<_ACEOF
19366/* end confdefs.h. */
19367$ac_includes_default
19368#include <$ac_header>
19369_ACEOF
19370rm -f conftest.$ac_objext
64ff59ba 19371if { (ac_try="$ac_compile"
19372case "(($ac_try" in
19373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19374 *) ac_try_echo=$ac_try;;
19375esac
19376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19377 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19378 ac_status=$?
19379 grep -v '^ *+' conftest.er1 >conftest.err
19380 rm -f conftest.er1
19381 cat conftest.err >&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19383 (exit $ac_status); } && {
19384 test -z "$ac_c_werror_flag" ||
19385 test ! -s conftest.err
19386 } && test -s conftest.$ac_objext; then
d9898ee8 19387 ac_header_compiler=yes
19388else
19389 echo "$as_me: failed program was:" >&5
19390sed 's/^/| /' conftest.$ac_ext >&5
19391
64ff59ba 19392 ac_header_compiler=no
d9898ee8 19393fi
64ff59ba 19394
19395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19396{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19397echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 19398
19399# Is the header present?
64ff59ba 19400{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19401echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 19402cat >conftest.$ac_ext <<_ACEOF
19403/* confdefs.h. */
19404_ACEOF
19405cat confdefs.h >>conftest.$ac_ext
19406cat >>conftest.$ac_ext <<_ACEOF
19407/* end confdefs.h. */
19408#include <$ac_header>
19409_ACEOF
64ff59ba 19410if { (ac_try="$ac_cpp conftest.$ac_ext"
19411case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19414esac
19415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 19417 ac_status=$?
19418 grep -v '^ *+' conftest.er1 >conftest.err
19419 rm -f conftest.er1
19420 cat conftest.err >&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19422 (exit $ac_status); } >/dev/null && {
19423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19424 test ! -s conftest.err
19425 }; then
d9898ee8 19426 ac_header_preproc=yes
19427else
19428 echo "$as_me: failed program was:" >&5
19429sed 's/^/| /' conftest.$ac_ext >&5
19430
19431 ac_header_preproc=no
19432fi
64ff59ba 19433
d9898ee8 19434rm -f conftest.err conftest.$ac_ext
64ff59ba 19435{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19436echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 19437
19438# So? What about this header?
19439case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19440 yes:no: )
19441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19442echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19444echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19445 ac_header_preproc=yes
19446 ;;
19447 no:yes:* )
19448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19449echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19451echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19453echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19455echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19457echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19459echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 19460 ( cat <<\_ASBOX
d9898ee8 19461## -------------------------------------------------- ##
19462## Report this to courier-users@lists.sourceforge.net ##
19463## -------------------------------------------------- ##
19464_ASBOX
64ff59ba 19465 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 19466 ;;
19467esac
64ff59ba 19468{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19471 echo $ECHO_N "(cached) $ECHO_C" >&6
19472else
19473 eval "$as_ac_Header=\$ac_header_preproc"
19474fi
64ff59ba 19475ac_res=`eval echo '${'$as_ac_Header'}'`
19476 { echo "$as_me:$LINENO: result: $ac_res" >&5
19477echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19478
19479fi
19480if test `eval echo '${'$as_ac_Header'}'` = yes; then
19481 cat >>confdefs.h <<_ACEOF
19482#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19483_ACEOF
19484
19485fi
19486
19487done
19488
19489
19490
64ff59ba 19491# Check whether --with-int32 was given.
d9898ee8 19492if test "${with_int32+set}" = set; then
64ff59ba 19493 withval=$with_int32; int32="$withval"
d9898ee8 19494else
19495
19496
64ff59ba 19497 { echo "$as_me:$LINENO: checking for uint32_t" >&5
19498echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
d9898ee8 19499
19500 cat >conftest.$ac_ext <<_ACEOF
19501/* confdefs.h. */
19502_ACEOF
19503cat confdefs.h >>conftest.$ac_ext
19504cat >>conftest.$ac_ext <<_ACEOF
19505/* end confdefs.h. */
19506
19507#if HAVE_SYS_TYPES_H
19508#include <sys/types.h>
19509#endif
19510
19511int
19512main ()
19513{
19514
19515 uint32_t i=0;
19516
19517 ;
19518 return 0;
19519}
19520_ACEOF
19521rm -f conftest.$ac_objext
64ff59ba 19522if { (ac_try="$ac_compile"
19523case "(($ac_try" in
19524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525 *) ac_try_echo=$ac_try;;
19526esac
19527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19528 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19529 ac_status=$?
19530 grep -v '^ *+' conftest.er1 >conftest.err
19531 rm -f conftest.er1
19532 cat conftest.err >&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19534 (exit $ac_status); } && {
19535 test -z "$ac_c_werror_flag" ||
19536 test ! -s conftest.err
19537 } && test -s conftest.$ac_objext; then
19538 { echo "$as_me:$LINENO: result: yes" >&5
19539echo "${ECHO_T}yes" >&6; } ; int32="uint32_t"
d9898ee8 19540else
19541 echo "$as_me: failed program was:" >&5
19542sed 's/^/| /' conftest.$ac_ext >&5
19543
19544
19545
64ff59ba 19546 { echo "$as_me:$LINENO: result: no" >&5
19547echo "${ECHO_T}no" >&6; }
19548 { echo "$as_me:$LINENO: checking for u_int_32_t" >&5
19549echo $ECHO_N "checking for u_int_32_t... $ECHO_C" >&6; }
d9898ee8 19550
19551 cat >conftest.$ac_ext <<_ACEOF
19552/* confdefs.h. */
19553_ACEOF
19554cat confdefs.h >>conftest.$ac_ext
19555cat >>conftest.$ac_ext <<_ACEOF
19556/* end confdefs.h. */
19557
19558#if HAVE_SYS_TYPES_H
19559#include <sys/types.h>
19560#endif
19561
19562int
19563main ()
19564{
19565
19566 u_int32_t i=0;
19567
19568 ;
19569 return 0;
19570}
19571_ACEOF
19572rm -f conftest.$ac_objext
64ff59ba 19573if { (ac_try="$ac_compile"
19574case "(($ac_try" in
19575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19576 *) ac_try_echo=$ac_try;;
19577esac
19578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19579 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19580 ac_status=$?
19581 grep -v '^ *+' conftest.er1 >conftest.err
19582 rm -f conftest.er1
19583 cat conftest.err >&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19585 (exit $ac_status); } && {
19586 test -z "$ac_c_werror_flag" ||
19587 test ! -s conftest.err
19588 } && test -s conftest.$ac_objext; then
19589 { echo "$as_me:$LINENO: result: yes" >&5
19590echo "${ECHO_T}yes" >&6; }; int32="u_int32_t"
d9898ee8 19591else
19592 echo "$as_me: failed program was:" >&5
19593sed 's/^/| /' conftest.$ac_ext >&5
19594
19595
19596
64ff59ba 19597 { echo "$as_me:$LINENO: result: no" >&5
19598echo "${ECHO_T}no" >&6; }
d9898ee8 19599
64ff59ba 19600 { echo "$as_me:$LINENO: checking for unsigned" >&5
19601echo $ECHO_N "checking for unsigned... $ECHO_C" >&6; }
d9898ee8 19602if test "${ac_cv_type_unsigned+set}" = set; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19604else
19605 cat >conftest.$ac_ext <<_ACEOF
19606/* confdefs.h. */
19607_ACEOF
19608cat confdefs.h >>conftest.$ac_ext
19609cat >>conftest.$ac_ext <<_ACEOF
19610/* end confdefs.h. */
19611$ac_includes_default
64ff59ba 19612typedef unsigned ac__type_new_;
d9898ee8 19613int
19614main ()
19615{
64ff59ba 19616if ((ac__type_new_ *) 0)
d9898ee8 19617 return 0;
64ff59ba 19618if (sizeof (ac__type_new_))
d9898ee8 19619 return 0;
19620 ;
19621 return 0;
19622}
19623_ACEOF
19624rm -f conftest.$ac_objext
64ff59ba 19625if { (ac_try="$ac_compile"
19626case "(($ac_try" in
19627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628 *) ac_try_echo=$ac_try;;
19629esac
19630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19632 ac_status=$?
19633 grep -v '^ *+' conftest.er1 >conftest.err
19634 rm -f conftest.er1
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19637 (exit $ac_status); } && {
19638 test -z "$ac_c_werror_flag" ||
19639 test ! -s conftest.err
19640 } && test -s conftest.$ac_objext; then
d9898ee8 19641 ac_cv_type_unsigned=yes
19642else
19643 echo "$as_me: failed program was:" >&5
19644sed 's/^/| /' conftest.$ac_ext >&5
19645
64ff59ba 19646 ac_cv_type_unsigned=no
d9898ee8 19647fi
64ff59ba 19648
19649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19650fi
64ff59ba 19651{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
19652echo "${ECHO_T}$ac_cv_type_unsigned" >&6; }
d9898ee8 19653
64ff59ba 19654# The cast to long int works around a bug in the HP C Compiler
19655# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19656# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19657# This bug is HP SR number 8606223364.
19658{ echo "$as_me:$LINENO: checking size of unsigned" >&5
19659echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6; }
d9898ee8 19660if test "${ac_cv_sizeof_unsigned+set}" = set; then
19661 echo $ECHO_N "(cached) $ECHO_C" >&6
19662else
d9898ee8 19663 if test "$cross_compiling" = yes; then
19664 # Depending upon the size, compute the lo and hi bounds.
19665cat >conftest.$ac_ext <<_ACEOF
19666/* confdefs.h. */
19667_ACEOF
19668cat confdefs.h >>conftest.$ac_ext
19669cat >>conftest.$ac_ext <<_ACEOF
19670/* end confdefs.h. */
19671$ac_includes_default
64ff59ba 19672 typedef unsigned ac__type_sizeof_;
d9898ee8 19673int
19674main ()
19675{
64ff59ba 19676static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
d9898ee8 19677test_array [0] = 0
19678
19679 ;
19680 return 0;
19681}
19682_ACEOF
19683rm -f conftest.$ac_objext
64ff59ba 19684if { (ac_try="$ac_compile"
19685case "(($ac_try" in
19686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687 *) ac_try_echo=$ac_try;;
19688esac
19689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19691 ac_status=$?
19692 grep -v '^ *+' conftest.er1 >conftest.err
19693 rm -f conftest.er1
19694 cat conftest.err >&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19696 (exit $ac_status); } && {
19697 test -z "$ac_c_werror_flag" ||
19698 test ! -s conftest.err
19699 } && test -s conftest.$ac_objext; then
d9898ee8 19700 ac_lo=0 ac_mid=0
19701 while :; do
19702 cat >conftest.$ac_ext <<_ACEOF
19703/* confdefs.h. */
19704_ACEOF
19705cat confdefs.h >>conftest.$ac_ext
19706cat >>conftest.$ac_ext <<_ACEOF
19707/* end confdefs.h. */
19708$ac_includes_default
64ff59ba 19709 typedef unsigned ac__type_sizeof_;
d9898ee8 19710int
19711main ()
19712{
64ff59ba 19713static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d9898ee8 19714test_array [0] = 0
19715
19716 ;
19717 return 0;
19718}
19719_ACEOF
19720rm -f conftest.$ac_objext
64ff59ba 19721if { (ac_try="$ac_compile"
19722case "(($ac_try" in
19723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724 *) ac_try_echo=$ac_try;;
19725esac
19726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19727 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19728 ac_status=$?
19729 grep -v '^ *+' conftest.er1 >conftest.err
19730 rm -f conftest.er1
19731 cat conftest.err >&5
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19733 (exit $ac_status); } && {
19734 test -z "$ac_c_werror_flag" ||
19735 test ! -s conftest.err
19736 } && test -s conftest.$ac_objext; then
d9898ee8 19737 ac_hi=$ac_mid; break
19738else
19739 echo "$as_me: failed program was:" >&5
19740sed 's/^/| /' conftest.$ac_ext >&5
19741
64ff59ba 19742 ac_lo=`expr $ac_mid + 1`
19743 if test $ac_lo -le $ac_mid; then
19744 ac_lo= ac_hi=
19745 break
19746 fi
19747 ac_mid=`expr 2 '*' $ac_mid + 1`
d9898ee8 19748fi
64ff59ba 19749
19750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19751 done
19752else
19753 echo "$as_me: failed program was:" >&5
19754sed 's/^/| /' conftest.$ac_ext >&5
19755
64ff59ba 19756 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 19757/* confdefs.h. */
19758_ACEOF
19759cat confdefs.h >>conftest.$ac_ext
19760cat >>conftest.$ac_ext <<_ACEOF
19761/* end confdefs.h. */
19762$ac_includes_default
64ff59ba 19763 typedef unsigned ac__type_sizeof_;
d9898ee8 19764int
19765main ()
19766{
64ff59ba 19767static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
d9898ee8 19768test_array [0] = 0
19769
19770 ;
19771 return 0;
19772}
19773_ACEOF
19774rm -f conftest.$ac_objext
64ff59ba 19775if { (ac_try="$ac_compile"
19776case "(($ac_try" in
19777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778 *) ac_try_echo=$ac_try;;
19779esac
19780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19782 ac_status=$?
19783 grep -v '^ *+' conftest.er1 >conftest.err
19784 rm -f conftest.er1
19785 cat conftest.err >&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19787 (exit $ac_status); } && {
19788 test -z "$ac_c_werror_flag" ||
19789 test ! -s conftest.err
19790 } && test -s conftest.$ac_objext; then
d9898ee8 19791 ac_hi=-1 ac_mid=-1
19792 while :; do
19793 cat >conftest.$ac_ext <<_ACEOF
19794/* confdefs.h. */
19795_ACEOF
19796cat confdefs.h >>conftest.$ac_ext
19797cat >>conftest.$ac_ext <<_ACEOF
19798/* end confdefs.h. */
19799$ac_includes_default
64ff59ba 19800 typedef unsigned ac__type_sizeof_;
d9898ee8 19801int
19802main ()
19803{
64ff59ba 19804static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
d9898ee8 19805test_array [0] = 0
19806
19807 ;
19808 return 0;
19809}
19810_ACEOF
19811rm -f conftest.$ac_objext
64ff59ba 19812if { (ac_try="$ac_compile"
19813case "(($ac_try" in
19814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815 *) ac_try_echo=$ac_try;;
19816esac
19817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19819 ac_status=$?
19820 grep -v '^ *+' conftest.er1 >conftest.err
19821 rm -f conftest.er1
19822 cat conftest.err >&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19824 (exit $ac_status); } && {
19825 test -z "$ac_c_werror_flag" ||
19826 test ! -s conftest.err
19827 } && test -s conftest.$ac_objext; then
d9898ee8 19828 ac_lo=$ac_mid; break
19829else
19830 echo "$as_me: failed program was:" >&5
19831sed 's/^/| /' conftest.$ac_ext >&5
19832
64ff59ba 19833 ac_hi=`expr '(' $ac_mid ')' - 1`
19834 if test $ac_mid -le $ac_hi; then
19835 ac_lo= ac_hi=
19836 break
19837 fi
19838 ac_mid=`expr 2 '*' $ac_mid`
d9898ee8 19839fi
64ff59ba 19840
19841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19842 done
19843else
19844 echo "$as_me: failed program was:" >&5
19845sed 's/^/| /' conftest.$ac_ext >&5
19846
64ff59ba 19847 ac_lo= ac_hi=
d9898ee8 19848fi
64ff59ba 19849
19850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19851fi
64ff59ba 19852
19853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19854# Binary search between lo and hi bounds.
19855while test "x$ac_lo" != "x$ac_hi"; do
19856 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19857 cat >conftest.$ac_ext <<_ACEOF
19858/* confdefs.h. */
19859_ACEOF
19860cat confdefs.h >>conftest.$ac_ext
19861cat >>conftest.$ac_ext <<_ACEOF
19862/* end confdefs.h. */
19863$ac_includes_default
64ff59ba 19864 typedef unsigned ac__type_sizeof_;
d9898ee8 19865int
19866main ()
19867{
64ff59ba 19868static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d9898ee8 19869test_array [0] = 0
19870
19871 ;
19872 return 0;
19873}
19874_ACEOF
19875rm -f conftest.$ac_objext
64ff59ba 19876if { (ac_try="$ac_compile"
19877case "(($ac_try" in
19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879 *) ac_try_echo=$ac_try;;
19880esac
19881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19883 ac_status=$?
19884 grep -v '^ *+' conftest.er1 >conftest.err
19885 rm -f conftest.er1
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19888 (exit $ac_status); } && {
19889 test -z "$ac_c_werror_flag" ||
19890 test ! -s conftest.err
19891 } && test -s conftest.$ac_objext; then
d9898ee8 19892 ac_hi=$ac_mid
19893else
19894 echo "$as_me: failed program was:" >&5
19895sed 's/^/| /' conftest.$ac_ext >&5
19896
64ff59ba 19897 ac_lo=`expr '(' $ac_mid ')' + 1`
d9898ee8 19898fi
64ff59ba 19899
19900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19901done
19902case $ac_lo in
19903?*) ac_cv_sizeof_unsigned=$ac_lo;;
64ff59ba 19904'') if test "$ac_cv_type_unsigned" = yes; then
19905 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
d9898ee8 19906See \`config.log' for more details." >&5
64ff59ba 19907echo "$as_me: error: cannot compute sizeof (unsigned)
d9898ee8 19908See \`config.log' for more details." >&2;}
64ff59ba 19909 { (exit 77); exit 77; }; }
19910 else
19911 ac_cv_sizeof_unsigned=0
19912 fi ;;
d9898ee8 19913esac
d9898ee8 19914else
19915 cat >conftest.$ac_ext <<_ACEOF
19916/* confdefs.h. */
19917_ACEOF
19918cat confdefs.h >>conftest.$ac_ext
19919cat >>conftest.$ac_ext <<_ACEOF
19920/* end confdefs.h. */
19921$ac_includes_default
64ff59ba 19922 typedef unsigned ac__type_sizeof_;
19923static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19924static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
d9898ee8 19925#include <stdio.h>
19926#include <stdlib.h>
19927int
19928main ()
19929{
19930
19931 FILE *f = fopen ("conftest.val", "w");
19932 if (! f)
64ff59ba 19933 return 1;
19934 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
d9898ee8 19935 {
64ff59ba 19936 long int i = longval ();
19937 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19938 return 1;
d9898ee8 19939 fprintf (f, "%ld\n", i);
19940 }
19941 else
19942 {
64ff59ba 19943 unsigned long int i = ulongval ();
19944 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19945 return 1;
d9898ee8 19946 fprintf (f, "%lu\n", i);
19947 }
64ff59ba 19948 return ferror (f) || fclose (f) != 0;
d9898ee8 19949
19950 ;
19951 return 0;
19952}
19953_ACEOF
19954rm -f conftest$ac_exeext
64ff59ba 19955if { (ac_try="$ac_link"
19956case "(($ac_try" in
19957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958 *) ac_try_echo=$ac_try;;
19959esac
19960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961 (eval "$ac_link") 2>&5
d9898ee8 19962 ac_status=$?
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 19965 { (case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19968esac
19969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_try") 2>&5
d9898ee8 19971 ac_status=$?
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); }; }; then
19974 ac_cv_sizeof_unsigned=`cat conftest.val`
19975else
19976 echo "$as_me: program exited with status $ac_status" >&5
19977echo "$as_me: failed program was:" >&5
19978sed 's/^/| /' conftest.$ac_ext >&5
19979
19980( exit $ac_status )
64ff59ba 19981if test "$ac_cv_type_unsigned" = yes; then
19982 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
d9898ee8 19983See \`config.log' for more details." >&5
64ff59ba 19984echo "$as_me: error: cannot compute sizeof (unsigned)
d9898ee8 19985See \`config.log' for more details." >&2;}
64ff59ba 19986 { (exit 77); exit 77; }; }
19987 else
19988 ac_cv_sizeof_unsigned=0
19989 fi
d9898ee8 19990fi
64ff59ba 19991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 19992fi
19993rm -f conftest.val
d9898ee8 19994fi
64ff59ba 19995{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
19996echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6; }
19997
19998
19999
d9898ee8 20000cat >>confdefs.h <<_ACEOF
20001#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
20002_ACEOF
20003
20004
20005 if test "$ac_cv_sizeof_unsigned" != 4
20006 then
64ff59ba 20007 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20008echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
d9898ee8 20009if test "${ac_cv_type_unsigned_long+set}" = set; then
20010 echo $ECHO_N "(cached) $ECHO_C" >&6
20011else
20012 cat >conftest.$ac_ext <<_ACEOF
20013/* confdefs.h. */
20014_ACEOF
20015cat confdefs.h >>conftest.$ac_ext
20016cat >>conftest.$ac_ext <<_ACEOF
20017/* end confdefs.h. */
20018$ac_includes_default
64ff59ba 20019typedef unsigned long ac__type_new_;
d9898ee8 20020int
20021main ()
20022{
64ff59ba 20023if ((ac__type_new_ *) 0)
d9898ee8 20024 return 0;
64ff59ba 20025if (sizeof (ac__type_new_))
d9898ee8 20026 return 0;
20027 ;
20028 return 0;
20029}
20030_ACEOF
20031rm -f conftest.$ac_objext
64ff59ba 20032if { (ac_try="$ac_compile"
20033case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20036esac
20037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20039 ac_status=$?
20040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -f conftest.er1
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20044 (exit $ac_status); } && {
20045 test -z "$ac_c_werror_flag" ||
20046 test ! -s conftest.err
20047 } && test -s conftest.$ac_objext; then
d9898ee8 20048 ac_cv_type_unsigned_long=yes
20049else
20050 echo "$as_me: failed program was:" >&5
20051sed 's/^/| /' conftest.$ac_ext >&5
20052
64ff59ba 20053 ac_cv_type_unsigned_long=no
d9898ee8 20054fi
64ff59ba 20055
20056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20057fi
64ff59ba 20058{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20059echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
d9898ee8 20060
64ff59ba 20061# The cast to long int works around a bug in the HP C Compiler
20062# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20063# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20064# This bug is HP SR number 8606223364.
20065{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
20066echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
d9898ee8 20067if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20068 echo $ECHO_N "(cached) $ECHO_C" >&6
20069else
d9898ee8 20070 if test "$cross_compiling" = yes; then
20071 # Depending upon the size, compute the lo and hi bounds.
20072cat >conftest.$ac_ext <<_ACEOF
20073/* confdefs.h. */
20074_ACEOF
20075cat confdefs.h >>conftest.$ac_ext
20076cat >>conftest.$ac_ext <<_ACEOF
20077/* end confdefs.h. */
20078$ac_includes_default
64ff59ba 20079 typedef unsigned long ac__type_sizeof_;
d9898ee8 20080int
20081main ()
20082{
64ff59ba 20083static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
d9898ee8 20084test_array [0] = 0
20085
20086 ;
20087 return 0;
20088}
20089_ACEOF
20090rm -f conftest.$ac_objext
64ff59ba 20091if { (ac_try="$ac_compile"
20092case "(($ac_try" in
20093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094 *) ac_try_echo=$ac_try;;
20095esac
20096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20098 ac_status=$?
20099 grep -v '^ *+' conftest.er1 >conftest.err
20100 rm -f conftest.er1
20101 cat conftest.err >&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20103 (exit $ac_status); } && {
20104 test -z "$ac_c_werror_flag" ||
20105 test ! -s conftest.err
20106 } && test -s conftest.$ac_objext; then
d9898ee8 20107 ac_lo=0 ac_mid=0
20108 while :; do
20109 cat >conftest.$ac_ext <<_ACEOF
20110/* confdefs.h. */
20111_ACEOF
20112cat confdefs.h >>conftest.$ac_ext
20113cat >>conftest.$ac_ext <<_ACEOF
20114/* end confdefs.h. */
20115$ac_includes_default
64ff59ba 20116 typedef unsigned long ac__type_sizeof_;
d9898ee8 20117int
20118main ()
20119{
64ff59ba 20120static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d9898ee8 20121test_array [0] = 0
20122
20123 ;
20124 return 0;
20125}
20126_ACEOF
20127rm -f conftest.$ac_objext
64ff59ba 20128if { (ac_try="$ac_compile"
20129case "(($ac_try" in
20130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20132esac
20133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20135 ac_status=$?
20136 grep -v '^ *+' conftest.er1 >conftest.err
20137 rm -f conftest.er1
20138 cat conftest.err >&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20140 (exit $ac_status); } && {
20141 test -z "$ac_c_werror_flag" ||
20142 test ! -s conftest.err
20143 } && test -s conftest.$ac_objext; then
d9898ee8 20144 ac_hi=$ac_mid; break
20145else
20146 echo "$as_me: failed program was:" >&5
20147sed 's/^/| /' conftest.$ac_ext >&5
20148
64ff59ba 20149 ac_lo=`expr $ac_mid + 1`
20150 if test $ac_lo -le $ac_mid; then
20151 ac_lo= ac_hi=
20152 break
20153 fi
20154 ac_mid=`expr 2 '*' $ac_mid + 1`
d9898ee8 20155fi
64ff59ba 20156
20157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20158 done
20159else
20160 echo "$as_me: failed program was:" >&5
20161sed 's/^/| /' conftest.$ac_ext >&5
20162
64ff59ba 20163 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 20164/* confdefs.h. */
20165_ACEOF
20166cat confdefs.h >>conftest.$ac_ext
20167cat >>conftest.$ac_ext <<_ACEOF
20168/* end confdefs.h. */
20169$ac_includes_default
64ff59ba 20170 typedef unsigned long ac__type_sizeof_;
d9898ee8 20171int
20172main ()
20173{
64ff59ba 20174static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
d9898ee8 20175test_array [0] = 0
20176
20177 ;
20178 return 0;
20179}
20180_ACEOF
20181rm -f conftest.$ac_objext
64ff59ba 20182if { (ac_try="$ac_compile"
20183case "(($ac_try" in
20184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185 *) ac_try_echo=$ac_try;;
20186esac
20187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20189 ac_status=$?
20190 grep -v '^ *+' conftest.er1 >conftest.err
20191 rm -f conftest.er1
20192 cat conftest.err >&5
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20194 (exit $ac_status); } && {
20195 test -z "$ac_c_werror_flag" ||
20196 test ! -s conftest.err
20197 } && test -s conftest.$ac_objext; then
d9898ee8 20198 ac_hi=-1 ac_mid=-1
20199 while :; do
20200 cat >conftest.$ac_ext <<_ACEOF
20201/* confdefs.h. */
20202_ACEOF
20203cat confdefs.h >>conftest.$ac_ext
20204cat >>conftest.$ac_ext <<_ACEOF
20205/* end confdefs.h. */
20206$ac_includes_default
64ff59ba 20207 typedef unsigned long ac__type_sizeof_;
d9898ee8 20208int
20209main ()
20210{
64ff59ba 20211static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
d9898ee8 20212test_array [0] = 0
20213
20214 ;
20215 return 0;
20216}
20217_ACEOF
20218rm -f conftest.$ac_objext
64ff59ba 20219if { (ac_try="$ac_compile"
20220case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20223esac
20224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20226 ac_status=$?
20227 grep -v '^ *+' conftest.er1 >conftest.err
20228 rm -f conftest.er1
20229 cat conftest.err >&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20231 (exit $ac_status); } && {
20232 test -z "$ac_c_werror_flag" ||
20233 test ! -s conftest.err
20234 } && test -s conftest.$ac_objext; then
d9898ee8 20235 ac_lo=$ac_mid; break
20236else
20237 echo "$as_me: failed program was:" >&5
20238sed 's/^/| /' conftest.$ac_ext >&5
20239
64ff59ba 20240 ac_hi=`expr '(' $ac_mid ')' - 1`
20241 if test $ac_mid -le $ac_hi; then
20242 ac_lo= ac_hi=
20243 break
20244 fi
20245 ac_mid=`expr 2 '*' $ac_mid`
d9898ee8 20246fi
64ff59ba 20247
20248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20249 done
20250else
20251 echo "$as_me: failed program was:" >&5
20252sed 's/^/| /' conftest.$ac_ext >&5
20253
64ff59ba 20254 ac_lo= ac_hi=
d9898ee8 20255fi
64ff59ba 20256
20257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20258fi
64ff59ba 20259
20260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20261# Binary search between lo and hi bounds.
20262while test "x$ac_lo" != "x$ac_hi"; do
20263 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20264 cat >conftest.$ac_ext <<_ACEOF
20265/* confdefs.h. */
20266_ACEOF
20267cat confdefs.h >>conftest.$ac_ext
20268cat >>conftest.$ac_ext <<_ACEOF
20269/* end confdefs.h. */
20270$ac_includes_default
64ff59ba 20271 typedef unsigned long ac__type_sizeof_;
d9898ee8 20272int
20273main ()
20274{
64ff59ba 20275static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d9898ee8 20276test_array [0] = 0
20277
20278 ;
20279 return 0;
20280}
20281_ACEOF
20282rm -f conftest.$ac_objext
64ff59ba 20283if { (ac_try="$ac_compile"
20284case "(($ac_try" in
20285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286 *) ac_try_echo=$ac_try;;
20287esac
20288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20290 ac_status=$?
20291 grep -v '^ *+' conftest.er1 >conftest.err
20292 rm -f conftest.er1
20293 cat conftest.err >&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20295 (exit $ac_status); } && {
20296 test -z "$ac_c_werror_flag" ||
20297 test ! -s conftest.err
20298 } && test -s conftest.$ac_objext; then
d9898ee8 20299 ac_hi=$ac_mid
20300else
20301 echo "$as_me: failed program was:" >&5
20302sed 's/^/| /' conftest.$ac_ext >&5
20303
64ff59ba 20304 ac_lo=`expr '(' $ac_mid ')' + 1`
d9898ee8 20305fi
64ff59ba 20306
20307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20308done
20309case $ac_lo in
20310?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
64ff59ba 20311'') if test "$ac_cv_type_unsigned_long" = yes; then
20312 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
d9898ee8 20313See \`config.log' for more details." >&5
64ff59ba 20314echo "$as_me: error: cannot compute sizeof (unsigned long)
d9898ee8 20315See \`config.log' for more details." >&2;}
64ff59ba 20316 { (exit 77); exit 77; }; }
20317 else
20318 ac_cv_sizeof_unsigned_long=0
20319 fi ;;
d9898ee8 20320esac
d9898ee8 20321else
20322 cat >conftest.$ac_ext <<_ACEOF
20323/* confdefs.h. */
20324_ACEOF
20325cat confdefs.h >>conftest.$ac_ext
20326cat >>conftest.$ac_ext <<_ACEOF
20327/* end confdefs.h. */
20328$ac_includes_default
64ff59ba 20329 typedef unsigned long ac__type_sizeof_;
20330static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20331static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
d9898ee8 20332#include <stdio.h>
20333#include <stdlib.h>
20334int
20335main ()
20336{
20337
20338 FILE *f = fopen ("conftest.val", "w");
20339 if (! f)
64ff59ba 20340 return 1;
20341 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
d9898ee8 20342 {
64ff59ba 20343 long int i = longval ();
20344 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20345 return 1;
d9898ee8 20346 fprintf (f, "%ld\n", i);
20347 }
20348 else
20349 {
64ff59ba 20350 unsigned long int i = ulongval ();
20351 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20352 return 1;
d9898ee8 20353 fprintf (f, "%lu\n", i);
20354 }
64ff59ba 20355 return ferror (f) || fclose (f) != 0;
d9898ee8 20356
20357 ;
20358 return 0;
20359}
20360_ACEOF
20361rm -f conftest$ac_exeext
64ff59ba 20362if { (ac_try="$ac_link"
20363case "(($ac_try" in
20364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365 *) ac_try_echo=$ac_try;;
20366esac
20367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368 (eval "$ac_link") 2>&5
d9898ee8 20369 ac_status=$?
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 20372 { (case "(($ac_try" in
20373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20374 *) ac_try_echo=$ac_try;;
20375esac
20376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20377 (eval "$ac_try") 2>&5
d9898ee8 20378 ac_status=$?
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; }; then
20381 ac_cv_sizeof_unsigned_long=`cat conftest.val`
20382else
20383 echo "$as_me: program exited with status $ac_status" >&5
20384echo "$as_me: failed program was:" >&5
20385sed 's/^/| /' conftest.$ac_ext >&5
20386
20387( exit $ac_status )
64ff59ba 20388if test "$ac_cv_type_unsigned_long" = yes; then
20389 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
d9898ee8 20390See \`config.log' for more details." >&5
64ff59ba 20391echo "$as_me: error: cannot compute sizeof (unsigned long)
d9898ee8 20392See \`config.log' for more details." >&2;}
64ff59ba 20393 { (exit 77); exit 77; }; }
20394 else
20395 ac_cv_sizeof_unsigned_long=0
20396 fi
d9898ee8 20397fi
64ff59ba 20398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20399fi
20400rm -f conftest.val
d9898ee8 20401fi
64ff59ba 20402{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20403echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20404
20405
20406
d9898ee8 20407cat >>confdefs.h <<_ACEOF
20408#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20409_ACEOF
20410
20411
20412 if test "$ac_cv_sizeof_unsigned_long" != 4
20413 then
64ff59ba 20414 { echo "$as_me:$LINENO: checking for unsigned short" >&5
20415echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
d9898ee8 20416if test "${ac_cv_type_unsigned_short+set}" = set; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
20418else
20419 cat >conftest.$ac_ext <<_ACEOF
20420/* confdefs.h. */
20421_ACEOF
20422cat confdefs.h >>conftest.$ac_ext
20423cat >>conftest.$ac_ext <<_ACEOF
20424/* end confdefs.h. */
20425$ac_includes_default
64ff59ba 20426typedef unsigned short ac__type_new_;
d9898ee8 20427int
20428main ()
20429{
64ff59ba 20430if ((ac__type_new_ *) 0)
d9898ee8 20431 return 0;
64ff59ba 20432if (sizeof (ac__type_new_))
d9898ee8 20433 return 0;
20434 ;
20435 return 0;
20436}
20437_ACEOF
20438rm -f conftest.$ac_objext
64ff59ba 20439if { (ac_try="$ac_compile"
20440case "(($ac_try" in
20441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442 *) ac_try_echo=$ac_try;;
20443esac
20444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20446 ac_status=$?
20447 grep -v '^ *+' conftest.er1 >conftest.err
20448 rm -f conftest.er1
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20451 (exit $ac_status); } && {
20452 test -z "$ac_c_werror_flag" ||
20453 test ! -s conftest.err
20454 } && test -s conftest.$ac_objext; then
d9898ee8 20455 ac_cv_type_unsigned_short=yes
20456else
20457 echo "$as_me: failed program was:" >&5
20458sed 's/^/| /' conftest.$ac_ext >&5
20459
64ff59ba 20460 ac_cv_type_unsigned_short=no
d9898ee8 20461fi
64ff59ba 20462
20463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20464fi
64ff59ba 20465{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
20466echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
d9898ee8 20467
64ff59ba 20468# The cast to long int works around a bug in the HP C Compiler
20469# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20470# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20471# This bug is HP SR number 8606223364.
20472{ echo "$as_me:$LINENO: checking size of unsigned short" >&5
20473echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
d9898ee8 20474if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
20475 echo $ECHO_N "(cached) $ECHO_C" >&6
20476else
d9898ee8 20477 if test "$cross_compiling" = yes; then
20478 # Depending upon the size, compute the lo and hi bounds.
20479cat >conftest.$ac_ext <<_ACEOF
20480/* confdefs.h. */
20481_ACEOF
20482cat confdefs.h >>conftest.$ac_ext
20483cat >>conftest.$ac_ext <<_ACEOF
20484/* end confdefs.h. */
20485$ac_includes_default
64ff59ba 20486 typedef unsigned short ac__type_sizeof_;
d9898ee8 20487int
20488main ()
20489{
64ff59ba 20490static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
d9898ee8 20491test_array [0] = 0
20492
20493 ;
20494 return 0;
20495}
20496_ACEOF
20497rm -f conftest.$ac_objext
64ff59ba 20498if { (ac_try="$ac_compile"
20499case "(($ac_try" in
20500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501 *) ac_try_echo=$ac_try;;
20502esac
20503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20504 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20505 ac_status=$?
20506 grep -v '^ *+' conftest.er1 >conftest.err
20507 rm -f conftest.er1
20508 cat conftest.err >&5
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20510 (exit $ac_status); } && {
20511 test -z "$ac_c_werror_flag" ||
20512 test ! -s conftest.err
20513 } && test -s conftest.$ac_objext; then
d9898ee8 20514 ac_lo=0 ac_mid=0
20515 while :; do
20516 cat >conftest.$ac_ext <<_ACEOF
20517/* confdefs.h. */
20518_ACEOF
20519cat confdefs.h >>conftest.$ac_ext
20520cat >>conftest.$ac_ext <<_ACEOF
20521/* end confdefs.h. */
20522$ac_includes_default
64ff59ba 20523 typedef unsigned short ac__type_sizeof_;
d9898ee8 20524int
20525main ()
20526{
64ff59ba 20527static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d9898ee8 20528test_array [0] = 0
20529
20530 ;
20531 return 0;
20532}
20533_ACEOF
20534rm -f conftest.$ac_objext
64ff59ba 20535if { (ac_try="$ac_compile"
20536case "(($ac_try" in
20537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20538 *) ac_try_echo=$ac_try;;
20539esac
20540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20541 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20542 ac_status=$?
20543 grep -v '^ *+' conftest.er1 >conftest.err
20544 rm -f conftest.er1
20545 cat conftest.err >&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20547 (exit $ac_status); } && {
20548 test -z "$ac_c_werror_flag" ||
20549 test ! -s conftest.err
20550 } && test -s conftest.$ac_objext; then
d9898ee8 20551 ac_hi=$ac_mid; break
20552else
20553 echo "$as_me: failed program was:" >&5
20554sed 's/^/| /' conftest.$ac_ext >&5
20555
64ff59ba 20556 ac_lo=`expr $ac_mid + 1`
20557 if test $ac_lo -le $ac_mid; then
20558 ac_lo= ac_hi=
20559 break
20560 fi
20561 ac_mid=`expr 2 '*' $ac_mid + 1`
d9898ee8 20562fi
64ff59ba 20563
20564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20565 done
20566else
20567 echo "$as_me: failed program was:" >&5
20568sed 's/^/| /' conftest.$ac_ext >&5
20569
64ff59ba 20570 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 20571/* confdefs.h. */
20572_ACEOF
20573cat confdefs.h >>conftest.$ac_ext
20574cat >>conftest.$ac_ext <<_ACEOF
20575/* end confdefs.h. */
20576$ac_includes_default
64ff59ba 20577 typedef unsigned short ac__type_sizeof_;
d9898ee8 20578int
20579main ()
20580{
64ff59ba 20581static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
d9898ee8 20582test_array [0] = 0
20583
20584 ;
20585 return 0;
20586}
20587_ACEOF
20588rm -f conftest.$ac_objext
64ff59ba 20589if { (ac_try="$ac_compile"
20590case "(($ac_try" in
20591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592 *) ac_try_echo=$ac_try;;
20593esac
20594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20596 ac_status=$?
20597 grep -v '^ *+' conftest.er1 >conftest.err
20598 rm -f conftest.er1
20599 cat conftest.err >&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20601 (exit $ac_status); } && {
20602 test -z "$ac_c_werror_flag" ||
20603 test ! -s conftest.err
20604 } && test -s conftest.$ac_objext; then
d9898ee8 20605 ac_hi=-1 ac_mid=-1
20606 while :; do
20607 cat >conftest.$ac_ext <<_ACEOF
20608/* confdefs.h. */
20609_ACEOF
20610cat confdefs.h >>conftest.$ac_ext
20611cat >>conftest.$ac_ext <<_ACEOF
20612/* end confdefs.h. */
20613$ac_includes_default
64ff59ba 20614 typedef unsigned short ac__type_sizeof_;
d9898ee8 20615int
20616main ()
20617{
64ff59ba 20618static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
d9898ee8 20619test_array [0] = 0
20620
20621 ;
20622 return 0;
20623}
20624_ACEOF
20625rm -f conftest.$ac_objext
64ff59ba 20626if { (ac_try="$ac_compile"
20627case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20630esac
20631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20633 ac_status=$?
20634 grep -v '^ *+' conftest.er1 >conftest.err
20635 rm -f conftest.er1
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20638 (exit $ac_status); } && {
20639 test -z "$ac_c_werror_flag" ||
20640 test ! -s conftest.err
20641 } && test -s conftest.$ac_objext; then
d9898ee8 20642 ac_lo=$ac_mid; break
20643else
20644 echo "$as_me: failed program was:" >&5
20645sed 's/^/| /' conftest.$ac_ext >&5
20646
64ff59ba 20647 ac_hi=`expr '(' $ac_mid ')' - 1`
20648 if test $ac_mid -le $ac_hi; then
20649 ac_lo= ac_hi=
20650 break
20651 fi
20652 ac_mid=`expr 2 '*' $ac_mid`
d9898ee8 20653fi
64ff59ba 20654
20655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20656 done
20657else
20658 echo "$as_me: failed program was:" >&5
20659sed 's/^/| /' conftest.$ac_ext >&5
20660
64ff59ba 20661 ac_lo= ac_hi=
d9898ee8 20662fi
64ff59ba 20663
20664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20665fi
64ff59ba 20666
20667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20668# Binary search between lo and hi bounds.
20669while test "x$ac_lo" != "x$ac_hi"; do
20670 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20671 cat >conftest.$ac_ext <<_ACEOF
20672/* confdefs.h. */
20673_ACEOF
20674cat confdefs.h >>conftest.$ac_ext
20675cat >>conftest.$ac_ext <<_ACEOF
20676/* end confdefs.h. */
20677$ac_includes_default
64ff59ba 20678 typedef unsigned short ac__type_sizeof_;
d9898ee8 20679int
20680main ()
20681{
64ff59ba 20682static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d9898ee8 20683test_array [0] = 0
20684
20685 ;
20686 return 0;
20687}
20688_ACEOF
20689rm -f conftest.$ac_objext
64ff59ba 20690if { (ac_try="$ac_compile"
20691case "(($ac_try" in
20692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693 *) ac_try_echo=$ac_try;;
20694esac
20695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20697 ac_status=$?
20698 grep -v '^ *+' conftest.er1 >conftest.err
20699 rm -f conftest.er1
20700 cat conftest.err >&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20702 (exit $ac_status); } && {
20703 test -z "$ac_c_werror_flag" ||
20704 test ! -s conftest.err
20705 } && test -s conftest.$ac_objext; then
d9898ee8 20706 ac_hi=$ac_mid
20707else
20708 echo "$as_me: failed program was:" >&5
20709sed 's/^/| /' conftest.$ac_ext >&5
20710
64ff59ba 20711 ac_lo=`expr '(' $ac_mid ')' + 1`
d9898ee8 20712fi
64ff59ba 20713
20714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20715done
20716case $ac_lo in
20717?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
64ff59ba 20718'') if test "$ac_cv_type_unsigned_short" = yes; then
20719 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
d9898ee8 20720See \`config.log' for more details." >&5
64ff59ba 20721echo "$as_me: error: cannot compute sizeof (unsigned short)
d9898ee8 20722See \`config.log' for more details." >&2;}
64ff59ba 20723 { (exit 77); exit 77; }; }
20724 else
20725 ac_cv_sizeof_unsigned_short=0
20726 fi ;;
d9898ee8 20727esac
d9898ee8 20728else
20729 cat >conftest.$ac_ext <<_ACEOF
20730/* confdefs.h. */
20731_ACEOF
20732cat confdefs.h >>conftest.$ac_ext
20733cat >>conftest.$ac_ext <<_ACEOF
20734/* end confdefs.h. */
20735$ac_includes_default
64ff59ba 20736 typedef unsigned short ac__type_sizeof_;
20737static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20738static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
d9898ee8 20739#include <stdio.h>
20740#include <stdlib.h>
20741int
20742main ()
20743{
20744
20745 FILE *f = fopen ("conftest.val", "w");
20746 if (! f)
64ff59ba 20747 return 1;
20748 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
d9898ee8 20749 {
64ff59ba 20750 long int i = longval ();
20751 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20752 return 1;
d9898ee8 20753 fprintf (f, "%ld\n", i);
20754 }
20755 else
20756 {
64ff59ba 20757 unsigned long int i = ulongval ();
20758 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20759 return 1;
d9898ee8 20760 fprintf (f, "%lu\n", i);
20761 }
64ff59ba 20762 return ferror (f) || fclose (f) != 0;
d9898ee8 20763
20764 ;
20765 return 0;
20766}
20767_ACEOF
20768rm -f conftest$ac_exeext
64ff59ba 20769if { (ac_try="$ac_link"
20770case "(($ac_try" in
20771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772 *) ac_try_echo=$ac_try;;
20773esac
20774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20775 (eval "$ac_link") 2>&5
d9898ee8 20776 ac_status=$?
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 20779 { (case "(($ac_try" in
20780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781 *) ac_try_echo=$ac_try;;
20782esac
20783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784 (eval "$ac_try") 2>&5
d9898ee8 20785 ac_status=$?
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; }; then
20788 ac_cv_sizeof_unsigned_short=`cat conftest.val`
20789else
20790 echo "$as_me: program exited with status $ac_status" >&5
20791echo "$as_me: failed program was:" >&5
20792sed 's/^/| /' conftest.$ac_ext >&5
20793
20794( exit $ac_status )
64ff59ba 20795if test "$ac_cv_type_unsigned_short" = yes; then
20796 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
d9898ee8 20797See \`config.log' for more details." >&5
64ff59ba 20798echo "$as_me: error: cannot compute sizeof (unsigned short)
d9898ee8 20799See \`config.log' for more details." >&2;}
64ff59ba 20800 { (exit 77); exit 77; }; }
20801 else
20802 ac_cv_sizeof_unsigned_short=0
20803 fi
d9898ee8 20804fi
64ff59ba 20805rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20806fi
20807rm -f conftest.val
d9898ee8 20808fi
64ff59ba 20809{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
20810echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
20811
20812
20813
d9898ee8 20814cat >>confdefs.h <<_ACEOF
20815#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20816_ACEOF
20817
20818
20819 if test "$ac_cv_sizeof_unsigned_short" != 4
20820 then
20821 { { echo "$as_me:$LINENO: error: --with-int32 option is required" >&5
20822echo "$as_me: error: --with-int32 option is required" >&2;}
20823 { (exit 1); exit 1; }; }
20824 fi
20825 int32="unsigned short"
20826 else
20827 int32="unsigned long"
20828 fi
20829 else
20830 int32="unsigned"
20831 fi
20832
20833fi
64ff59ba 20834
20835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20836
20837fi
64ff59ba 20838
20839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20840
20841
64ff59ba 20842fi
20843
d9898ee8 20844UINT32="$int32"
20845
20846
20847cat >>confdefs.h <<_ACEOF
20848#define SHA1_WORD $UINT32
20849_ACEOF
20850
20851
64ff59ba 20852{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20853echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
d9898ee8 20854if test "${ac_cv_c_const+set}" = set; then
20855 echo $ECHO_N "(cached) $ECHO_C" >&6
20856else
20857 cat >conftest.$ac_ext <<_ACEOF
20858/* confdefs.h. */
20859_ACEOF
20860cat confdefs.h >>conftest.$ac_ext
20861cat >>conftest.$ac_ext <<_ACEOF
20862/* end confdefs.h. */
20863
20864int
20865main ()
20866{
20867/* FIXME: Include the comments suggested by Paul. */
20868#ifndef __cplusplus
20869 /* Ultrix mips cc rejects this. */
20870 typedef int charset[2];
64ff59ba 20871 const charset cs;
d9898ee8 20872 /* SunOS 4.1.1 cc rejects this. */
64ff59ba 20873 char const *const *pcpcc;
20874 char **ppc;
d9898ee8 20875 /* NEC SVR4.0.2 mips cc rejects this. */
20876 struct point {int x, y;};
20877 static struct point const zero = {0,0};
20878 /* AIX XL C 1.02.0.0 rejects this.
20879 It does not let you subtract one const X* pointer from another in
20880 an arm of an if-expression whose if-part is not a constant
20881 expression */
20882 const char *g = "string";
64ff59ba 20883 pcpcc = &g + (g ? g-g : 0);
d9898ee8 20884 /* HPUX 7.0 cc rejects these. */
64ff59ba 20885 ++pcpcc;
20886 ppc = (char**) pcpcc;
20887 pcpcc = (char const *const *) ppc;
d9898ee8 20888 { /* SCO 3.2v4 cc rejects this. */
20889 char *t;
20890 char const *s = 0 ? (char *) 0 : (char const *) 0;
20891
20892 *t++ = 0;
64ff59ba 20893 if (s) return 0;
d9898ee8 20894 }
20895 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20896 int x[] = {25, 17};
20897 const int *foo = &x[0];
20898 ++foo;
20899 }
20900 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20901 typedef const int *iptr;
20902 iptr p = 0;
20903 ++p;
20904 }
20905 { /* AIX XL C 1.02.0.0 rejects this saying
20906 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20907 struct s { int j; const int *ap[3]; };
20908 struct s *b; b->j = 5;
20909 }
20910 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20911 const int foo = 10;
64ff59ba 20912 if (!foo) return 0;
d9898ee8 20913 }
64ff59ba 20914 return !cs[0] && !zero.x;
d9898ee8 20915#endif
20916
20917 ;
20918 return 0;
20919}
20920_ACEOF
20921rm -f conftest.$ac_objext
64ff59ba 20922if { (ac_try="$ac_compile"
20923case "(($ac_try" in
20924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925 *) ac_try_echo=$ac_try;;
20926esac
20927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20929 ac_status=$?
20930 grep -v '^ *+' conftest.er1 >conftest.err
20931 rm -f conftest.er1
20932 cat conftest.err >&5
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20934 (exit $ac_status); } && {
20935 test -z "$ac_c_werror_flag" ||
20936 test ! -s conftest.err
20937 } && test -s conftest.$ac_objext; then
d9898ee8 20938 ac_cv_c_const=yes
20939else
20940 echo "$as_me: failed program was:" >&5
20941sed 's/^/| /' conftest.$ac_ext >&5
20942
64ff59ba 20943 ac_cv_c_const=no
d9898ee8 20944fi
64ff59ba 20945
20946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20947fi
64ff59ba 20948{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20949echo "${ECHO_T}$ac_cv_c_const" >&6; }
d9898ee8 20950if test $ac_cv_c_const = no; then
20951
20952cat >>confdefs.h <<\_ACEOF
20953#define const
20954_ACEOF
20955
20956fi
20957
20958
64ff59ba 20959{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20960echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 20961if test "${ac_cv_header_stdc+set}" = set; then
20962 echo $ECHO_N "(cached) $ECHO_C" >&6
20963else
20964 cat >conftest.$ac_ext <<_ACEOF
20965/* confdefs.h. */
20966_ACEOF
20967cat confdefs.h >>conftest.$ac_ext
20968cat >>conftest.$ac_ext <<_ACEOF
20969/* end confdefs.h. */
20970#include <stdlib.h>
20971#include <stdarg.h>
20972#include <string.h>
20973#include <float.h>
20974
20975int
20976main ()
20977{
20978
20979 ;
20980 return 0;
20981}
20982_ACEOF
20983rm -f conftest.$ac_objext
64ff59ba 20984if { (ac_try="$ac_compile"
20985case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20988esac
20989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20990 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20991 ac_status=$?
20992 grep -v '^ *+' conftest.er1 >conftest.err
20993 rm -f conftest.er1
20994 cat conftest.err >&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20996 (exit $ac_status); } && {
20997 test -z "$ac_c_werror_flag" ||
20998 test ! -s conftest.err
20999 } && test -s conftest.$ac_objext; then
d9898ee8 21000 ac_cv_header_stdc=yes
21001else
21002 echo "$as_me: failed program was:" >&5
21003sed 's/^/| /' conftest.$ac_ext >&5
21004
64ff59ba 21005 ac_cv_header_stdc=no
d9898ee8 21006fi
64ff59ba 21007
21008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 21009
21010if test $ac_cv_header_stdc = yes; then
21011 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21012 cat >conftest.$ac_ext <<_ACEOF
21013/* confdefs.h. */
21014_ACEOF
21015cat confdefs.h >>conftest.$ac_ext
21016cat >>conftest.$ac_ext <<_ACEOF
21017/* end confdefs.h. */
21018#include <string.h>
21019
21020_ACEOF
21021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21022 $EGREP "memchr" >/dev/null 2>&1; then
21023 :
21024else
21025 ac_cv_header_stdc=no
21026fi
21027rm -f conftest*
21028
21029fi
21030
21031if test $ac_cv_header_stdc = yes; then
21032 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21033 cat >conftest.$ac_ext <<_ACEOF
21034/* confdefs.h. */
21035_ACEOF
21036cat confdefs.h >>conftest.$ac_ext
21037cat >>conftest.$ac_ext <<_ACEOF
21038/* end confdefs.h. */
21039#include <stdlib.h>
21040
21041_ACEOF
21042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21043 $EGREP "free" >/dev/null 2>&1; then
21044 :
21045else
21046 ac_cv_header_stdc=no
21047fi
21048rm -f conftest*
21049
21050fi
21051
21052if test $ac_cv_header_stdc = yes; then
21053 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21054 if test "$cross_compiling" = yes; then
21055 :
21056else
21057 cat >conftest.$ac_ext <<_ACEOF
21058/* confdefs.h. */
21059_ACEOF
21060cat confdefs.h >>conftest.$ac_ext
21061cat >>conftest.$ac_ext <<_ACEOF
21062/* end confdefs.h. */
21063#include <ctype.h>
64ff59ba 21064#include <stdlib.h>
d9898ee8 21065#if ((' ' & 0x0FF) == 0x020)
21066# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21067# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21068#else
21069# define ISLOWER(c) \
21070 (('a' <= (c) && (c) <= 'i') \
21071 || ('j' <= (c) && (c) <= 'r') \
21072 || ('s' <= (c) && (c) <= 'z'))
21073# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21074#endif
21075
21076#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21077int
21078main ()
21079{
21080 int i;
21081 for (i = 0; i < 256; i++)
21082 if (XOR (islower (i), ISLOWER (i))
21083 || toupper (i) != TOUPPER (i))
64ff59ba 21084 return 2;
21085 return 0;
d9898ee8 21086}
21087_ACEOF
21088rm -f conftest$ac_exeext
64ff59ba 21089if { (ac_try="$ac_link"
21090case "(($ac_try" in
21091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21092 *) ac_try_echo=$ac_try;;
21093esac
21094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21095 (eval "$ac_link") 2>&5
d9898ee8 21096 ac_status=$?
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 21099 { (case "(($ac_try" in
21100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21101 *) ac_try_echo=$ac_try;;
21102esac
21103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21104 (eval "$ac_try") 2>&5
d9898ee8 21105 ac_status=$?
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; }; then
21108 :
21109else
21110 echo "$as_me: program exited with status $ac_status" >&5
21111echo "$as_me: failed program was:" >&5
21112sed 's/^/| /' conftest.$ac_ext >&5
21113
21114( exit $ac_status )
21115ac_cv_header_stdc=no
21116fi
64ff59ba 21117rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 21118fi
64ff59ba 21119
21120
d9898ee8 21121fi
21122fi
64ff59ba 21123{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21124echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 21125if test $ac_cv_header_stdc = yes; then
21126
21127cat >>confdefs.h <<\_ACEOF
21128#define STDC_HEADERS 1
21129_ACEOF
21130
21131fi
21132
21133
64ff59ba 21134ac_config_files="$ac_config_files Makefile"
21135
d9898ee8 21136cat >confcache <<\_ACEOF
21137# This file is a shell script that caches the results of configure
21138# tests run on this system so they can be shared between configure
21139# scripts and configure runs, see configure's option --config-cache.
21140# It is not useful on other systems. If it contains results you don't
21141# want to keep, you may remove or edit it.
21142#
21143# config.status only pays attention to the cache file if you give it
21144# the --recheck option to rerun configure.
21145#
21146# `ac_cv_env_foo' variables (set or unset) will be overridden when
21147# loading this file, other *unset* `ac_cv_foo' will be assigned the
21148# following values.
21149
21150_ACEOF
21151
21152# The following way of writing the cache mishandles newlines in values,
21153# but we know of no workaround that is simple, portable, and efficient.
64ff59ba 21154# So, we kill variables containing newlines.
d9898ee8 21155# Ultrix sh set writes to stderr and can't be redirected directly,
21156# and sets the high bit in the cache file unless we assign to the vars.
64ff59ba 21157(
21158 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21159 eval ac_val=\$$ac_var
21160 case $ac_val in #(
21161 *${as_nl}*)
21162 case $ac_var in #(
21163 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21164echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21165 esac
21166 case $ac_var in #(
21167 _ | IFS | as_nl) ;; #(
21168 *) $as_unset $ac_var ;;
21169 esac ;;
21170 esac
21171 done
21172
d9898ee8 21173 (set) 2>&1 |
64ff59ba 21174 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21175 *${as_nl}ac_space=\ *)
d9898ee8 21176 # `set' does not quote correctly, so add quotes (double-quote
21177 # substitution turns \\\\ into \\, and sed turns \\ into \).
21178 sed -n \
21179 "s/'/'\\\\''/g;
21180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
64ff59ba 21181 ;; #(
d9898ee8 21182 *)
21183 # `set' quotes correctly as required by POSIX, so do not add quotes.
64ff59ba 21184 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 21185 ;;
64ff59ba 21186 esac |
21187 sort
21188) |
d9898ee8 21189 sed '
64ff59ba 21190 /^ac_cv_env_/b end
d9898ee8 21191 t clear
64ff59ba 21192 :clear
d9898ee8 21193 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21194 t end
64ff59ba 21195 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21196 :end' >>confcache
21197if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21198 if test -w "$cache_file"; then
21199 test "x$cache_file" != "x/dev/null" &&
21200 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21201echo "$as_me: updating cache $cache_file" >&6;}
d9898ee8 21202 cat confcache >$cache_file
21203 else
64ff59ba 21204 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21205echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d9898ee8 21206 fi
21207fi
21208rm -f confcache
21209
21210test "x$prefix" = xNONE && prefix=$ac_default_prefix
21211# Let make expand exec_prefix.
21212test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21213
d9898ee8 21214DEFS=-DHAVE_CONFIG_H
21215
21216ac_libobjs=
21217ac_ltlibobjs=
21218for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21219 # 1. Remove the extension, and $U if already installed.
64ff59ba 21220 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21221 ac_i=`echo "$ac_i" | sed "$ac_script"`
21222 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21223 # will be set to the directory where LIBOBJS objects are built.
21224 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21225 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 21226done
21227LIBOBJS=$ac_libobjs
21228
21229LTLIBOBJS=$ac_ltlibobjs
21230
21231
21232if test -z "${HMACC_TRUE}" && test -z "${HMACC_FALSE}"; then
21233 { { echo "$as_me:$LINENO: error: conditional \"HMACC\" was never defined.
21234Usually this means the macro was only invoked conditionally." >&5
21235echo "$as_me: error: conditional \"HMACC\" was never defined.
21236Usually this means the macro was only invoked conditionally." >&2;}
21237 { (exit 1); exit 1; }; }
21238fi
21239if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21240 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21241Usually this means the macro was only invoked conditionally." >&5
21242echo "$as_me: error: conditional \"AMDEP\" was never defined.
21243Usually this means the macro was only invoked conditionally." >&2;}
21244 { (exit 1); exit 1; }; }
21245fi
21246if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21247 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21248Usually this means the macro was only invoked conditionally." >&5
21249echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21250Usually this means the macro was only invoked conditionally." >&2;}
21251 { (exit 1); exit 1; }; }
21252fi
21253if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21254 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21255Usually this means the macro was only invoked conditionally." >&5
21256echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21257Usually this means the macro was only invoked conditionally." >&2;}
21258 { (exit 1); exit 1; }; }
21259fi
21260
21261: ${CONFIG_STATUS=./config.status}
21262ac_clean_files_save=$ac_clean_files
21263ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21264{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21265echo "$as_me: creating $CONFIG_STATUS" >&6;}
21266cat >$CONFIG_STATUS <<_ACEOF
21267#! $SHELL
21268# Generated by $as_me.
21269# Run this file to recreate the current configuration.
21270# Compiler output produced by configure, useful for debugging
21271# configure, is in config.log if it exists.
21272
21273debug=false
21274ac_cs_recheck=false
21275ac_cs_silent=false
21276SHELL=\${CONFIG_SHELL-$SHELL}
21277_ACEOF
21278
21279cat >>$CONFIG_STATUS <<\_ACEOF
21280## --------------------- ##
21281## M4sh Initialization. ##
21282## --------------------- ##
21283
64ff59ba 21284# Be more Bourne compatible
21285DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 21286if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21287 emulate sh
21288 NULLCMD=:
21289 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21290 # is contrary to our usage. Disable this feature.
21291 alias -g '${1+"$@"}'='"$@"'
64ff59ba 21292 setopt NO_GLOB_SUBST
21293else
21294 case `(set -o) 2>/dev/null` in
21295 *posix*) set -o posix ;;
21296esac
21297
21298fi
21299
21300
21301
21302
21303# PATH needs CR
21304# Avoid depending upon Character Ranges.
21305as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21306as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21307as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21308as_cr_digits='0123456789'
21309as_cr_alnum=$as_cr_Letters$as_cr_digits
21310
21311# The user is always right.
21312if test "${PATH_SEPARATOR+set}" != set; then
21313 echo "#! /bin/sh" >conf$$.sh
21314 echo "exit 0" >>conf$$.sh
21315 chmod +x conf$$.sh
21316 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21317 PATH_SEPARATOR=';'
21318 else
21319 PATH_SEPARATOR=:
21320 fi
21321 rm -f conf$$.sh
d9898ee8 21322fi
d9898ee8 21323
21324# Support unset when possible.
21325if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21326 as_unset=unset
21327else
21328 as_unset=false
21329fi
21330
21331
64ff59ba 21332# IFS
21333# We need space, tab and new line, in precisely that order. Quoting is
21334# there to prevent editors from complaining about space-tab.
21335# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21336# splitting by setting IFS to empty value.)
21337as_nl='
21338'
21339IFS=" "" $as_nl"
21340
21341# Find who we are. Look in the path if we contain no directory separator.
21342case $0 in
21343 *[\\/]* ) as_myself=$0 ;;
21344 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21345for as_dir in $PATH
21346do
21347 IFS=$as_save_IFS
21348 test -z "$as_dir" && as_dir=.
21349 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21350done
21351IFS=$as_save_IFS
21352
21353 ;;
21354esac
21355# We did not find ourselves, most probably we were run as `sh COMMAND'
21356# in which case we are not to be found in the path.
21357if test "x$as_myself" = x; then
21358 as_myself=$0
21359fi
21360if test ! -f "$as_myself"; then
21361 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21362 { (exit 1); exit 1; }
21363fi
21364
d9898ee8 21365# Work around bugs in pre-3.0 UWIN ksh.
64ff59ba 21366for as_var in ENV MAIL MAILPATH
21367do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21368done
d9898ee8 21369PS1='$ '
21370PS2='> '
21371PS4='+ '
21372
21373# NLS nuisances.
21374for as_var in \
21375 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21376 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21377 LC_TELEPHONE LC_TIME
21378do
21379 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21380 eval $as_var=C; export $as_var
21381 else
64ff59ba 21382 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 21383 fi
21384done
21385
21386# Required to use basename.
64ff59ba 21387if expr a : '\(a\)' >/dev/null 2>&1 &&
21388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 21389 as_expr=expr
21390else
21391 as_expr=false
21392fi
21393
64ff59ba 21394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 21395 as_basename=basename
21396else
21397 as_basename=false
21398fi
21399
21400
21401# Name of the executable.
64ff59ba 21402as_me=`$as_basename -- "$0" ||
d9898ee8 21403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21404 X"$0" : 'X\(//\)$' \| \
64ff59ba 21405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21406echo X/"$0" |
64ff59ba 21407 sed '/^.*\/\([^/][^/]*\)\/*$/{
21408 s//\1/
21409 q
21410 }
21411 /^X\/\(\/\/\)$/{
21412 s//\1/
21413 q
21414 }
21415 /^X\/\(\/\).*/{
21416 s//\1/
21417 q
21418 }
21419 s/.*/./; q'`
d9898ee8 21420
64ff59ba 21421# CDPATH.
21422$as_unset CDPATH
d9898ee8 21423
21424
d9898ee8 21425
d9898ee8 21426 as_lineno_1=$LINENO
21427 as_lineno_2=$LINENO
d9898ee8 21428 test "x$as_lineno_1" != "x$as_lineno_2" &&
64ff59ba 21429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 21430
21431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21432 # uniformly replaced by the line number. The first 'sed' inserts a
64ff59ba 21433 # line-number line after each line using $LINENO; the second 'sed'
21434 # does the real work. The second script uses 'N' to pair each
21435 # line-number line with the line containing $LINENO, and appends
21436 # trailing '-' during substitution so that $LINENO is not a special
21437 # case at line end.
d9898ee8 21438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
64ff59ba 21439 # scripts with optimization help from Paolo Bonzini. Blame Lee
21440 # E. McMahon (1931-1989) for sed's syntax. :-)
21441 sed -n '
21442 p
21443 /[$]LINENO/=
21444 ' <$as_myself |
d9898ee8 21445 sed '
64ff59ba 21446 s/[$]LINENO.*/&-/
21447 t lineno
21448 b
21449 :lineno
d9898ee8 21450 N
64ff59ba 21451 :loop
21452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 21453 t loop
64ff59ba 21454 s/-\n.*//
d9898ee8 21455 ' >$as_me.lineno &&
64ff59ba 21456 chmod +x "$as_me.lineno" ||
21457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 21458 { (exit 1); exit 1; }; }
21459
21460 # Don't try to exec as it changes $[0], causing all sort of problems
21461 # (the dirname of $[0] is not the place where we might find the
64ff59ba 21462 # original and so on. Autoconf is especially sensitive to this).
21463 . "./$as_me.lineno"
d9898ee8 21464 # Exit status is that of the last command.
21465 exit
21466}
21467
21468
64ff59ba 21469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21470 as_dirname=dirname
21471else
21472 as_dirname=false
21473fi
21474
21475ECHO_C= ECHO_N= ECHO_T=
21476case `echo -n x` in
21477-n*)
21478 case `echo 'x\c'` in
21479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21480 *) ECHO_C='\c';;
21481 esac;;
21482*)
21483 ECHO_N='-n';;
d9898ee8 21484esac
21485
64ff59ba 21486if expr a : '\(a\)' >/dev/null 2>&1 &&
21487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 21488 as_expr=expr
21489else
21490 as_expr=false
21491fi
21492
21493rm -f conf$$ conf$$.exe conf$$.file
64ff59ba 21494if test -d conf$$.dir; then
21495 rm -f conf$$.dir/conf$$.file
21496else
21497 rm -f conf$$.dir
21498 mkdir conf$$.dir
21499fi
d9898ee8 21500echo >conf$$.file
21501if ln -s conf$$.file conf$$ 2>/dev/null; then
64ff59ba 21502 as_ln_s='ln -s'
21503 # ... but there are two gotchas:
21504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21506 # In both cases, we have to default to `cp -p'.
21507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 21508 as_ln_s='cp -p'
d9898ee8 21509elif ln conf$$.file conf$$ 2>/dev/null; then
21510 as_ln_s=ln
21511else
21512 as_ln_s='cp -p'
21513fi
64ff59ba 21514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21515rmdir conf$$.dir 2>/dev/null
d9898ee8 21516
21517if mkdir -p . 2>/dev/null; then
21518 as_mkdir_p=:
21519else
21520 test -d ./-p && rmdir ./-p
21521 as_mkdir_p=false
21522fi
21523
64ff59ba 21524if test -x / >/dev/null 2>&1; then
21525 as_test_x='test -x'
21526else
21527 if ls -dL / >/dev/null 2>&1; then
21528 as_ls_L_option=L
21529 else
21530 as_ls_L_option=
21531 fi
21532 as_test_x='
21533 eval sh -c '\''
21534 if test -d "$1"; then
21535 test -d "$1/.";
21536 else
21537 case $1 in
21538 -*)set "./$1";;
21539 esac;
21540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21541 ???[sx]*):;;*)false;;esac;fi
21542 '\'' sh
21543 '
21544fi
21545as_executable_p=$as_test_x
d9898ee8 21546
21547# Sed expression to map a string onto a valid CPP name.
21548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21549
21550# Sed expression to map a string onto a valid variable name.
21551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21552
21553
d9898ee8 21554exec 6>&1
21555
64ff59ba 21556# Save the log message, to keep $[0] and so on meaningful, and to
d9898ee8 21557# report actual input values of CONFIG_FILES etc. instead of their
64ff59ba 21558# values after options handling.
21559ac_log="
d9898ee8 21560This file was extended by libsha1 $as_me 1.21, which was
64ff59ba 21561generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 21562
21563 CONFIG_FILES = $CONFIG_FILES
21564 CONFIG_HEADERS = $CONFIG_HEADERS
21565 CONFIG_LINKS = $CONFIG_LINKS
21566 CONFIG_COMMANDS = $CONFIG_COMMANDS
21567 $ $0 $@
21568
64ff59ba 21569on `(hostname || uname -n) 2>/dev/null | sed 1q`
21570"
21571
d9898ee8 21572_ACEOF
21573
64ff59ba 21574cat >>$CONFIG_STATUS <<_ACEOF
d9898ee8 21575# Files that config.status was made for.
64ff59ba 21576config_files="$ac_config_files"
21577config_headers="$ac_config_headers"
21578config_commands="$ac_config_commands"
d9898ee8 21579
64ff59ba 21580_ACEOF
d9898ee8 21581
21582cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 21583ac_cs_usage="\
21584\`$as_me' instantiates files from templates according to the
21585current configuration.
21586
21587Usage: $0 [OPTIONS] [FILE]...
21588
21589 -h, --help print this help, then exit
64ff59ba 21590 -V, --version print version number and configuration settings, then exit
d9898ee8 21591 -q, --quiet do not print progress messages
21592 -d, --debug don't remove temporary files
21593 --recheck update $as_me by reconfiguring in the same conditions
21594 --file=FILE[:TEMPLATE]
21595 instantiate the configuration file FILE
21596 --header=FILE[:TEMPLATE]
21597 instantiate the configuration header FILE
21598
21599Configuration files:
21600$config_files
21601
21602Configuration headers:
21603$config_headers
21604
21605Configuration commands:
21606$config_commands
21607
21608Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 21609
64ff59ba 21610_ACEOF
d9898ee8 21611cat >>$CONFIG_STATUS <<_ACEOF
21612ac_cs_version="\\
21613libsha1 config.status 1.21
64ff59ba 21614configured by $0, generated by GNU Autoconf 2.61,
21615 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 21616
64ff59ba 21617Copyright (C) 2006 Free Software Foundation, Inc.
d9898ee8 21618This config.status script is free software; the Free Software Foundation
21619gives unlimited permission to copy, distribute and modify it."
64ff59ba 21620
21621ac_pwd='$ac_pwd'
21622srcdir='$srcdir'
21623INSTALL='$INSTALL'
21624MKDIR_P='$MKDIR_P'
d9898ee8 21625_ACEOF
21626
21627cat >>$CONFIG_STATUS <<\_ACEOF
21628# If no file are specified by the user, then we need to provide default
21629# value. By we need to know if files were specified by the user.
21630ac_need_defaults=:
21631while test $# != 0
21632do
21633 case $1 in
21634 --*=*)
64ff59ba 21635 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21636 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d9898ee8 21637 ac_shift=:
21638 ;;
64ff59ba 21639 *)
d9898ee8 21640 ac_option=$1
21641 ac_optarg=$2
21642 ac_shift=shift
21643 ;;
d9898ee8 21644 esac
21645
21646 case $ac_option in
21647 # Handling of the options.
d9898ee8 21648 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21649 ac_cs_recheck=: ;;
64ff59ba 21650 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21651 echo "$ac_cs_version"; exit ;;
21652 --debug | --debu | --deb | --de | --d | -d )
d9898ee8 21653 debug=: ;;
21654 --file | --fil | --fi | --f )
21655 $ac_shift
21656 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21657 ac_need_defaults=false;;
21658 --header | --heade | --head | --hea )
21659 $ac_shift
21660 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21661 ac_need_defaults=false;;
64ff59ba 21662 --he | --h)
21663 # Conflict between --help and --header
21664 { echo "$as_me: error: ambiguous option: $1
21665Try \`$0 --help' for more information." >&2
21666 { (exit 1); exit 1; }; };;
21667 --help | --hel | -h )
21668 echo "$ac_cs_usage"; exit ;;
d9898ee8 21669 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21670 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21671 ac_cs_silent=: ;;
21672
21673 # This is an error.
64ff59ba 21674 -*) { echo "$as_me: error: unrecognized option: $1
21675Try \`$0 --help' for more information." >&2
d9898ee8 21676 { (exit 1); exit 1; }; } ;;
21677
64ff59ba 21678 *) ac_config_targets="$ac_config_targets $1"
21679 ac_need_defaults=false ;;
d9898ee8 21680
21681 esac
21682 shift
21683done
21684
21685ac_configure_extra_args=
21686
21687if $ac_cs_silent; then
21688 exec 6>/dev/null
21689 ac_configure_extra_args="$ac_configure_extra_args --silent"
21690fi
21691
21692_ACEOF
21693cat >>$CONFIG_STATUS <<_ACEOF
21694if \$ac_cs_recheck; then
64ff59ba 21695 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21696 CONFIG_SHELL=$SHELL
21697 export CONFIG_SHELL
21698 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9898ee8 21699fi
21700
21701_ACEOF
64ff59ba 21702cat >>$CONFIG_STATUS <<\_ACEOF
21703exec 5>>config.log
21704{
21705 echo
21706 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21707## Running $as_me. ##
21708_ASBOX
21709 echo "$ac_log"
21710} >&5
d9898ee8 21711
64ff59ba 21712_ACEOF
d9898ee8 21713cat >>$CONFIG_STATUS <<_ACEOF
21714#
64ff59ba 21715# INIT-COMMANDS
d9898ee8 21716#
d9898ee8 21717AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21718
21719_ACEOF
21720
d9898ee8 21721cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 21722
21723# Handling of arguments.
d9898ee8 21724for ac_config_target in $ac_config_targets
21725do
64ff59ba 21726 case $ac_config_target in
21727 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21728 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21729 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21730
d9898ee8 21731 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21732echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21733 { (exit 1); exit 1; }; };;
21734 esac
21735done
21736
64ff59ba 21737
d9898ee8 21738# If the user did not use the arguments to specify the items to instantiate,
21739# then the envvar interface is used. Set only those that are not.
21740# We use the long form for the default assignment because of an extremely
21741# bizarre bug on SunOS 4.1.3.
21742if $ac_need_defaults; then
21743 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21744 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21745 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21746fi
21747
21748# Have a temporary directory for convenience. Make it in the build tree
64ff59ba 21749# simply because there is no reason against having it here, and in addition,
d9898ee8 21750# creating and moving files from /tmp can sometimes cause problems.
64ff59ba 21751# Hook for its removal unless debugging.
21752# Note that there is a small window in which the directory will not be cleaned:
21753# after its creation but before its name has been assigned to `$tmp'.
d9898ee8 21754$debug ||
21755{
64ff59ba 21756 tmp=
21757 trap 'exit_status=$?
21758 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21759' 0
d9898ee8 21760 trap '{ (exit 1); exit 1; }' 1 2 13 15
21761}
d9898ee8 21762# Create a (secure) tmp directory for tmp files.
21763
21764{
64ff59ba 21765 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d9898ee8 21766 test -n "$tmp" && test -d "$tmp"
21767} ||
21768{
64ff59ba 21769 tmp=./conf$$-$RANDOM
21770 (umask 077 && mkdir "$tmp")
d9898ee8 21771} ||
21772{
21773 echo "$me: cannot create a temporary directory in ." >&2
21774 { (exit 1); exit 1; }
21775}
21776
d9898ee8 21777#
64ff59ba 21778# Set up the sed scripts for CONFIG_FILES section.
d9898ee8 21779#
21780
21781# No need to generate the scripts if there are no CONFIG_FILES.
21782# This happens for instance when ./config.status config.h
64ff59ba 21783if test -n "$CONFIG_FILES"; then
d9898ee8 21784
21785_ACEOF
21786
64ff59ba 21787
21788
21789ac_delim='%!_!# '
21790for ac_last_try in false false false false false :; do
21791 cat >conf$$subs.sed <<_ACEOF
21792SHELL!$SHELL$ac_delim
21793PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21794PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21795PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21796PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21797PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21798PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21799exec_prefix!$exec_prefix$ac_delim
21800prefix!$prefix$ac_delim
21801program_transform_name!$program_transform_name$ac_delim
21802bindir!$bindir$ac_delim
21803sbindir!$sbindir$ac_delim
21804libexecdir!$libexecdir$ac_delim
21805datarootdir!$datarootdir$ac_delim
21806datadir!$datadir$ac_delim
21807sysconfdir!$sysconfdir$ac_delim
21808sharedstatedir!$sharedstatedir$ac_delim
21809localstatedir!$localstatedir$ac_delim
21810includedir!$includedir$ac_delim
21811oldincludedir!$oldincludedir$ac_delim
21812docdir!$docdir$ac_delim
21813infodir!$infodir$ac_delim
21814htmldir!$htmldir$ac_delim
21815dvidir!$dvidir$ac_delim
21816pdfdir!$pdfdir$ac_delim
21817psdir!$psdir$ac_delim
21818libdir!$libdir$ac_delim
21819localedir!$localedir$ac_delim
21820mandir!$mandir$ac_delim
21821DEFS!$DEFS$ac_delim
21822ECHO_C!$ECHO_C$ac_delim
21823ECHO_N!$ECHO_N$ac_delim
21824ECHO_T!$ECHO_T$ac_delim
21825LIBS!$LIBS$ac_delim
21826build_alias!$build_alias$ac_delim
21827host_alias!$host_alias$ac_delim
21828target_alias!$target_alias$ac_delim
21829INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21830INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21831INSTALL_DATA!$INSTALL_DATA$ac_delim
21832am__isrc!$am__isrc$ac_delim
21833CYGPATH_W!$CYGPATH_W$ac_delim
21834PACKAGE!$PACKAGE$ac_delim
21835VERSION!$VERSION$ac_delim
21836ACLOCAL!$ACLOCAL$ac_delim
21837AUTOCONF!$AUTOCONF$ac_delim
21838AUTOMAKE!$AUTOMAKE$ac_delim
21839AUTOHEADER!$AUTOHEADER$ac_delim
21840MAKEINFO!$MAKEINFO$ac_delim
21841install_sh!$install_sh$ac_delim
21842STRIP!$STRIP$ac_delim
21843INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21844mkdir_p!$mkdir_p$ac_delim
21845AWK!$AWK$ac_delim
21846SET_MAKE!$SET_MAKE$ac_delim
21847am__leading_dot!$am__leading_dot$ac_delim
21848AMTAR!$AMTAR$ac_delim
21849am__tar!$am__tar$ac_delim
21850am__untar!$am__untar$ac_delim
21851HMACC_TRUE!$HMACC_TRUE$ac_delim
21852HMACC_FALSE!$HMACC_FALSE$ac_delim
21853CC!$CC$ac_delim
21854CFLAGS!$CFLAGS$ac_delim
21855LDFLAGS!$LDFLAGS$ac_delim
21856CPPFLAGS!$CPPFLAGS$ac_delim
21857ac_ct_CC!$ac_ct_CC$ac_delim
21858EXEEXT!$EXEEXT$ac_delim
21859OBJEXT!$OBJEXT$ac_delim
21860DEPDIR!$DEPDIR$ac_delim
21861am__include!$am__include$ac_delim
21862am__quote!$am__quote$ac_delim
21863AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21864AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21865AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21866CCDEPMODE!$CCDEPMODE$ac_delim
21867am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21868am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21869LN_S!$LN_S$ac_delim
21870build!$build$ac_delim
21871build_cpu!$build_cpu$ac_delim
21872build_vendor!$build_vendor$ac_delim
21873build_os!$build_os$ac_delim
21874host!$host$ac_delim
21875host_cpu!$host_cpu$ac_delim
21876host_vendor!$host_vendor$ac_delim
21877host_os!$host_os$ac_delim
21878SED!$SED$ac_delim
21879GREP!$GREP$ac_delim
21880EGREP!$EGREP$ac_delim
21881ECHO!$ECHO$ac_delim
21882AR!$AR$ac_delim
21883RANLIB!$RANLIB$ac_delim
21884CPP!$CPP$ac_delim
21885CXX!$CXX$ac_delim
21886CXXFLAGS!$CXXFLAGS$ac_delim
21887ac_ct_CXX!$ac_ct_CXX$ac_delim
21888CXXDEPMODE!$CXXDEPMODE$ac_delim
21889_ACEOF
21890
21891 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21892 break
21893 elif $ac_last_try; then
21894 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21895echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21896 { (exit 1); exit 1; }; }
21897 else
21898 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d9898ee8 21899 fi
64ff59ba 21900done
21901
21902ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21903if test -n "$ac_eof"; then
21904 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21905 ac_eof=`expr $ac_eof + 1`
21906fi
21907
21908cat >>$CONFIG_STATUS <<_ACEOF
21909cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21910/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21911_ACEOF
21912sed '
21913s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21914s/^/s,@/; s/!/@,|#_!!_#|/
21915:n
21916t n
21917s/'"$ac_delim"'$/,g/; t
21918s/$/\\/; p
21919N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21920' >>$CONFIG_STATUS <conf$$subs.sed
21921rm -f conf$$subs.sed
21922cat >>$CONFIG_STATUS <<_ACEOF
21923CEOF$ac_eof
21924_ACEOF
21925
21926
21927ac_delim='%!_!# '
21928for ac_last_try in false false false false false :; do
21929 cat >conf$$subs.sed <<_ACEOF
21930am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21931am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21932CXXCPP!$CXXCPP$ac_delim
21933F77!$F77$ac_delim
21934FFLAGS!$FFLAGS$ac_delim
21935ac_ct_F77!$ac_ct_F77$ac_delim
21936LIBTOOL!$LIBTOOL$ac_delim
21937LIBOBJS!$LIBOBJS$ac_delim
21938LTLIBOBJS!$LTLIBOBJS$ac_delim
21939_ACEOF
21940
21941 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
21942 break
21943 elif $ac_last_try; then
21944 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21945echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21946 { (exit 1); exit 1; }; }
21947 else
21948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21949 fi
21950done
21951
21952ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21953if test -n "$ac_eof"; then
21954 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21955 ac_eof=`expr $ac_eof + 1`
21956fi
d9898ee8 21957
64ff59ba 21958cat >>$CONFIG_STATUS <<_ACEOF
21959cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21960/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
d9898ee8 21961_ACEOF
64ff59ba 21962sed '
21963s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21964s/^/s,@/; s/!/@,|#_!!_#|/
21965:n
21966t n
21967s/'"$ac_delim"'$/,g/; t
21968s/$/\\/; p
21969N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21970' >>$CONFIG_STATUS <conf$$subs.sed
21971rm -f conf$$subs.sed
21972cat >>$CONFIG_STATUS <<_ACEOF
21973:end
21974s/|#_!!_#|//g
21975CEOF$ac_eof
21976_ACEOF
21977
21978
21979# VPATH may cause trouble with some makes, so we remove $(srcdir),
21980# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21981# trailing colons and then remove the whole line if VPATH becomes empty
21982# (actually we leave an empty line to preserve line numbers).
21983if test "x$srcdir" = x.; then
21984 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21985s/:*\$(srcdir):*/:/
21986s/:*\${srcdir}:*/:/
21987s/:*@srcdir@:*/:/
21988s/^\([^=]*=[ ]*\):*/\1/
21989s/:*$//
21990s/^[^=]*=[ ]*$//
21991}'
21992fi
21993
d9898ee8 21994cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 21995fi # test -n "$CONFIG_FILES"
21996
21997
21998for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21999do
22000 case $ac_tag in
22001 :[FHLC]) ac_mode=$ac_tag; continue;;
22002 esac
22003 case $ac_mode$ac_tag in
22004 :[FHL]*:*);;
22005 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22006echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22007 { (exit 1); exit 1; }; };;
22008 :[FH]-) ac_tag=-:-;;
22009 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22010 esac
22011 ac_save_IFS=$IFS
22012 IFS=:
22013 set x $ac_tag
22014 IFS=$ac_save_IFS
22015 shift
22016 ac_file=$1
22017 shift
22018
22019 case $ac_mode in
22020 :L) ac_source=$1;;
22021 :[FH])
22022 ac_file_inputs=
22023 for ac_f
22024 do
22025 case $ac_f in
22026 -) ac_f="$tmp/stdin";;
22027 *) # Look for the file first in the build tree, then in the source tree
22028 # (if the path is not absolute). The absolute path cannot be DOS-style,
22029 # because $ac_f cannot contain `:'.
22030 test -f "$ac_f" ||
22031 case $ac_f in
22032 [\\/$]*) false;;
22033 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22034 esac ||
22035 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22036echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22037 { (exit 1); exit 1; }; };;
22038 esac
22039 ac_file_inputs="$ac_file_inputs $ac_f"
22040 done
22041
22042 # Let's still pretend it is `configure' which instantiates (i.e., don't
22043 # use $as_me), people would be surprised to read:
22044 # /* config.h. Generated by config.status. */
22045 configure_input="Generated from "`IFS=:
22046 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22047 if test x"$ac_file" != x-; then
22048 configure_input="$ac_file. $configure_input"
22049 { echo "$as_me:$LINENO: creating $ac_file" >&5
22050echo "$as_me: creating $ac_file" >&6;}
22051 fi
22052
22053 case $ac_tag in
22054 *:-:* | *:-) cat >"$tmp/stdin";;
22055 esac
22056 ;;
d9898ee8 22057 esac
22058
64ff59ba 22059 ac_dir=`$as_dirname -- "$ac_file" ||
d9898ee8 22060$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22061 X"$ac_file" : 'X\(//\)[^/]' \| \
22062 X"$ac_file" : 'X\(//\)$' \| \
64ff59ba 22063 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22064echo X"$ac_file" |
64ff59ba 22065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22066 s//\1/
22067 q
22068 }
22069 /^X\(\/\/\)[^/].*/{
22070 s//\1/
22071 q
22072 }
22073 /^X\(\/\/\)$/{
22074 s//\1/
22075 q
22076 }
22077 /^X\(\/\).*/{
22078 s//\1/
22079 q
22080 }
22081 s/.*/./; q'`
22082 { as_dir="$ac_dir"
22083 case $as_dir in #(
22084 -*) as_dir=./$as_dir;;
22085 esac
22086 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 22087 as_dirs=
64ff59ba 22088 while :; do
22089 case $as_dir in #(
22090 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22091 *) as_qdir=$as_dir;;
22092 esac
22093 as_dirs="'$as_qdir' $as_dirs"
22094 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 22095$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22096 X"$as_dir" : 'X\(//\)[^/]' \| \
22097 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 22098 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22099echo X"$as_dir" |
64ff59ba 22100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22101 s//\1/
22102 q
22103 }
22104 /^X\(\/\/\)[^/].*/{
22105 s//\1/
22106 q
22107 }
22108 /^X\(\/\/\)$/{
22109 s//\1/
22110 q
22111 }
22112 /^X\(\/\).*/{
22113 s//\1/
22114 q
22115 }
22116 s/.*/./; q'`
22117 test -d "$as_dir" && break
d9898ee8 22118 done
64ff59ba 22119 test -z "$as_dirs" || eval "mkdir $as_dirs"
22120 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22121echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 22122 { (exit 1); exit 1; }; }; }
d9898ee8 22123 ac_builddir=.
22124
64ff59ba 22125case "$ac_dir" in
22126.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22127*)
d9898ee8 22128 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 22129 # A ".." for each directory in $ac_dir_suffix.
22130 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22131 case $ac_top_builddir_sub in
22132 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22133 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22134 esac ;;
22135esac
22136ac_abs_top_builddir=$ac_pwd
22137ac_abs_builddir=$ac_pwd$ac_dir_suffix
22138# for backward compatibility:
22139ac_top_builddir=$ac_top_build_prefix
d9898ee8 22140
22141case $srcdir in
64ff59ba 22142 .) # We are building in place.
d9898ee8 22143 ac_srcdir=.
64ff59ba 22144 ac_top_srcdir=$ac_top_builddir_sub
22145 ac_abs_top_srcdir=$ac_pwd ;;
22146 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 22147 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 22148 ac_top_srcdir=$srcdir
22149 ac_abs_top_srcdir=$srcdir ;;
22150 *) # Relative name.
22151 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22152 ac_top_srcdir=$ac_top_build_prefix$srcdir
22153 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 22154esac
64ff59ba 22155ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 22156
d9898ee8 22157
64ff59ba 22158 case $ac_mode in
22159 :F)
22160 #
22161 # CONFIG_FILE
22162 #
d9898ee8 22163
22164 case $INSTALL in
22165 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
64ff59ba 22166 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22167 esac
22168 ac_MKDIR_P=$MKDIR_P
22169 case $MKDIR_P in
22170 [\\/$]* | ?:[\\/]* ) ;;
22171 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d9898ee8 22172 esac
64ff59ba 22173_ACEOF
d9898ee8 22174
64ff59ba 22175cat >>$CONFIG_STATUS <<\_ACEOF
22176# If the template does not know about datarootdir, expand it.
22177# FIXME: This hack should be removed a few years after 2.60.
22178ac_datarootdir_hack=; ac_datarootdir_seen=
22179
22180case `sed -n '/datarootdir/ {
22181 p
22182 q
22183}
22184/@datadir@/p
22185/@docdir@/p
22186/@infodir@/p
22187/@localedir@/p
22188/@mandir@/p
22189' $ac_file_inputs` in
22190*datarootdir*) ac_datarootdir_seen=yes;;
22191*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22192 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22193echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 22194_ACEOF
64ff59ba 22195cat >>$CONFIG_STATUS <<_ACEOF
22196 ac_datarootdir_hack='
22197 s&@datadir@&$datadir&g
22198 s&@docdir@&$docdir&g
22199 s&@infodir@&$infodir&g
22200 s&@localedir@&$localedir&g
22201 s&@mandir@&$mandir&g
22202 s&\\\${datarootdir}&$datarootdir&g' ;;
22203esac
22204_ACEOF
22205
22206# Neutralize VPATH when `$srcdir' = `.'.
22207# Shell code in configure.ac might set extrasub.
22208# FIXME: do we really want to maintain this feature?
d9898ee8 22209cat >>$CONFIG_STATUS <<_ACEOF
22210 sed "$ac_vpsub
22211$extrasub
22212_ACEOF
22213cat >>$CONFIG_STATUS <<\_ACEOF
22214:t
22215/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
64ff59ba 22216s&@configure_input@&$configure_input&;t t
22217s&@top_builddir@&$ac_top_builddir_sub&;t t
22218s&@srcdir@&$ac_srcdir&;t t
22219s&@abs_srcdir@&$ac_abs_srcdir&;t t
22220s&@top_srcdir@&$ac_top_srcdir&;t t
22221s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22222s&@builddir@&$ac_builddir&;t t
22223s&@abs_builddir@&$ac_abs_builddir&;t t
22224s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22225s&@INSTALL@&$ac_INSTALL&;t t
22226s&@MKDIR_P@&$ac_MKDIR_P&;t t
22227$ac_datarootdir_hack
22228" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22229
22230test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22231 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22232 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22233 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22234which seems to be undefined. Please make sure it is defined." >&5
22235echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22236which seems to be undefined. Please make sure it is defined." >&2;}
22237
22238 rm -f "$tmp/stdin"
d9898ee8 22239 case $ac_file in
64ff59ba 22240 -) cat "$tmp/out"; rm -f "$tmp/out";;
22241 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
d9898ee8 22242 esac
64ff59ba 22243 ;;
22244 :H)
22245 #
22246 # CONFIG_HEADER
22247 #
d9898ee8 22248_ACEOF
22249
64ff59ba 22250# Transform confdefs.h into a sed script `conftest.defines', that
22251# substitutes the proper values into config.h.in to produce config.h.
22252rm -f conftest.defines conftest.tail
22253# First, append a space to every undef/define line, to ease matching.
22254echo 's/$/ /' >conftest.defines
22255# Then, protect against being on the right side of a sed subst, or in
22256# an unquoted here document, in config.status. If some macros were
22257# called several times there might be several #defines for the same
22258# symbol, which is useless. But do not sort them, since the last
22259# AC_DEFINE must be honored.
22260ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22261# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22262# NAME is the cpp macro being defined, VALUE is the value it is being given.
22263# PARAMS is the parameter list in the macro definition--in most cases, it's
22264# just an empty string.
22265ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22266ac_dB='\\)[ (].*,\\1define\\2'
22267ac_dC=' '
22268ac_dD=' ,'
22269
22270uniq confdefs.h |
22271 sed -n '
22272 t rset
22273 :rset
22274 s/^[ ]*#[ ]*define[ ][ ]*//
22275 t ok
22276 d
22277 :ok
22278 s/[\\&,]/\\&/g
22279 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22280 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22281 ' >>conftest.defines
22282
22283# Remove the space that was appended to ease matching.
22284# Then replace #undef with comments. This is necessary, for
d9898ee8 22285# example, in the case of _POSIX_SOURCE, which is predefined and required
22286# on some systems where configure will not decide to define it.
64ff59ba 22287# (The regexp can be short, since the line contains either #define or #undef.)
22288echo 's/ $//
22289s,^[ #]*u.*,/* & */,' >>conftest.defines
22290
22291# Break up conftest.defines:
22292ac_max_sed_lines=50
22293
22294# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22295# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22296# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22297# et cetera.
22298ac_in='$ac_file_inputs'
22299ac_out='"$tmp/out1"'
22300ac_nxt='"$tmp/out2"'
22301
22302while :
d9898ee8 22303do
64ff59ba 22304 # Write a here document:
22305 cat >>$CONFIG_STATUS <<_ACEOF
22306 # First, check the format of the line:
22307 cat >"\$tmp/defines.sed" <<\\CEOF
22308/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22309/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22310b
22311:def
22312_ACEOF
22313 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
d9898ee8 22314 echo 'CEOF
64ff59ba 22315 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22316 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22317 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22318 grep . conftest.tail >/dev/null || break
d9898ee8 22319 rm -f conftest.defines
22320 mv conftest.tail conftest.defines
22321done
64ff59ba 22322rm -f conftest.defines conftest.tail
d9898ee8 22323
64ff59ba 22324echo "ac_result=$ac_in" >>$CONFIG_STATUS
d9898ee8 22325cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 22326 if test x"$ac_file" != x-; then
64ff59ba 22327 echo "/* $configure_input */" >"$tmp/config.h"
22328 cat "$ac_result" >>"$tmp/config.h"
22329 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
d9898ee8 22330 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22331echo "$as_me: $ac_file is unchanged" >&6;}
22332 else
d9898ee8 22333 rm -f $ac_file
64ff59ba 22334 mv "$tmp/config.h" $ac_file
d9898ee8 22335 fi
22336 else
64ff59ba 22337 echo "/* $configure_input */"
22338 cat "$ac_result"
d9898ee8 22339 fi
64ff59ba 22340 rm -f "$tmp/out12"
d9898ee8 22341# Compute $ac_file's index in $config_headers.
22342_am_stamp_count=1
22343for _am_header in $config_headers :; do
22344 case $_am_header in
22345 $ac_file | $ac_file:* )
22346 break ;;
22347 * )
22348 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22349 esac
22350done
64ff59ba 22351echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
d9898ee8 22352$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22353 X$ac_file : 'X\(//\)[^/]' \| \
22354 X$ac_file : 'X\(//\)$' \| \
64ff59ba 22355 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22356echo X$ac_file |
64ff59ba 22357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22358 s//\1/
22359 q
22360 }
22361 /^X\(\/\/\)[^/].*/{
22362 s//\1/
22363 q
22364 }
22365 /^X\(\/\/\)$/{
22366 s//\1/
22367 q
22368 }
22369 /^X\(\/\).*/{
22370 s//\1/
22371 q
22372 }
22373 s/.*/./; q'`/stamp-h$_am_stamp_count
22374 ;;
d9898ee8 22375
64ff59ba 22376 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22377echo "$as_me: executing $ac_file commands" >&6;}
22378 ;;
22379 esac
d9898ee8 22380
22381
64ff59ba 22382 case $ac_file$ac_mode in
22383 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
d9898ee8 22384 # Strip MF so we end up with the name of the file.
22385 mf=`echo "$mf" | sed -e 's/:.*$//'`
22386 # Check whether this is an Automake generated Makefile or not.
22387 # We used to match only the files named `Makefile.in', but
22388 # some people rename them; so instead we look at the file content.
22389 # Grep'ing the first line is not enough: some people post-process
22390 # each Makefile.in and add a new line on top of each file to say so.
64ff59ba 22391 # Grep'ing the whole file is not good either: AIX grep has a line
22392 # limit of 2048, but all sed's we know have understand at least 4000.
22393 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22394 dirpart=`$as_dirname -- "$mf" ||
d9898ee8 22395$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22396 X"$mf" : 'X\(//\)[^/]' \| \
22397 X"$mf" : 'X\(//\)$' \| \
64ff59ba 22398 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22399echo X"$mf" |
64ff59ba 22400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22401 s//\1/
22402 q
22403 }
22404 /^X\(\/\/\)[^/].*/{
22405 s//\1/
22406 q
22407 }
22408 /^X\(\/\/\)$/{
22409 s//\1/
22410 q
22411 }
22412 /^X\(\/\).*/{
22413 s//\1/
22414 q
22415 }
22416 s/.*/./; q'`
d9898ee8 22417 else
22418 continue
22419 fi
22420 # Extract the definition of DEPDIR, am__include, and am__quote
22421 # from the Makefile without running `make'.
22422 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22423 test -z "$DEPDIR" && continue
22424 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22425 test -z "am__include" && continue
22426 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22427 # When using ansi2knr, U may be empty or an underscore; expand it
22428 U=`sed -n 's/^U = //p' < "$mf"`
22429 # Find all dependency output files, they are included files with
22430 # $(DEPDIR) in their names. We invoke sed twice because it is the
22431 # simplest approach to changing $(DEPDIR) to its actual value in the
22432 # expansion.
22433 for file in `sed -n "
22434 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22435 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22436 # Make sure the directory exists.
22437 test -f "$dirpart/$file" && continue
64ff59ba 22438 fdir=`$as_dirname -- "$file" ||
d9898ee8 22439$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22440 X"$file" : 'X\(//\)[^/]' \| \
22441 X"$file" : 'X\(//\)$' \| \
64ff59ba 22442 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22443echo X"$file" |
64ff59ba 22444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22445 s//\1/
22446 q
22447 }
22448 /^X\(\/\/\)[^/].*/{
22449 s//\1/
22450 q
22451 }
22452 /^X\(\/\/\)$/{
22453 s//\1/
22454 q
22455 }
22456 /^X\(\/\).*/{
22457 s//\1/
22458 q
22459 }
22460 s/.*/./; q'`
22461 { as_dir=$dirpart/$fdir
22462 case $as_dir in #(
22463 -*) as_dir=./$as_dir;;
22464 esac
22465 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 22466 as_dirs=
64ff59ba 22467 while :; do
22468 case $as_dir in #(
22469 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22470 *) as_qdir=$as_dir;;
22471 esac
22472 as_dirs="'$as_qdir' $as_dirs"
22473 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 22474$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22475 X"$as_dir" : 'X\(//\)[^/]' \| \
22476 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 22477 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22478echo X"$as_dir" |
64ff59ba 22479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22480 s//\1/
22481 q
22482 }
22483 /^X\(\/\/\)[^/].*/{
22484 s//\1/
22485 q
22486 }
22487 /^X\(\/\/\)$/{
22488 s//\1/
22489 q
22490 }
22491 /^X\(\/\).*/{
22492 s//\1/
22493 q
22494 }
22495 s/.*/./; q'`
22496 test -d "$as_dir" && break
d9898ee8 22497 done
64ff59ba 22498 test -z "$as_dirs" || eval "mkdir $as_dirs"
22499 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22500echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 22501 { (exit 1); exit 1; }; }; }
d9898ee8 22502 # echo "creating $dirpart/$file"
22503 echo '# dummy' > "$dirpart/$file"
22504 done
22505done
22506 ;;
64ff59ba 22507
d9898ee8 22508 esac
64ff59ba 22509done # for ac_tag
d9898ee8 22510
d9898ee8 22511
22512{ (exit 0); exit 0; }
22513_ACEOF
22514chmod +x $CONFIG_STATUS
22515ac_clean_files=$ac_clean_files_save
22516
22517
22518# configure is writing to config.log, and then calls config.status.
22519# config.status does its own redirection, appending to config.log.
22520# Unfortunately, on DOS this fails, as config.log is still kept open
22521# by configure, so config.status won't be able to write to it; its
22522# output is simply discarded. So we exec the FD to /dev/null,
22523# effectively closing config.log, so it can be properly (re)opened and
22524# appended to by config.status. When coming back to configure, we
22525# need to make the FD available again.
22526if test "$no_create" != yes; then
22527 ac_cs_success=:
22528 ac_config_status_args=
22529 test "$silent" = yes &&
22530 ac_config_status_args="$ac_config_status_args --quiet"
22531 exec 5>/dev/null
22532 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22533 exec 5>>config.log
22534 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22535 # would make configure fail if this is the last instruction.
22536 $ac_cs_success || { (exit 1); exit 1; }
22537fi
22538