Imported upstream version 0.60.2
[hcoop/debian/courier-authlib.git] / libhmac / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
dd184caf 3# Generated by GNU Autoconf 2.61 for libhmac 1.00.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
dd184caf 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
dd184caf 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+"$@"}'='"$@"'
dd184caf 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
dd184caf 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.
dd184caf 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
dd184caf 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 114 fi
115done
116
117# Required to use basename.
dd184caf 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
dd184caf 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.
dd184caf 133as_me=`$as_basename -- "$0" ||
d9898ee8 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
dd184caf 136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 137echo X/"$0" |
dd184caf 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
dd184caf 152# CDPATH.
153$as_unset CDPATH
d9898ee8 154
d9898ee8 155
dd184caf 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
dd184caf 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
dd184caf 180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
d9898ee8 187
dd184caf 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=.
dd184caf 228 case $as_dir in
d9898ee8 229 /*)
dd184caf 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" &&
dd184caf 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
dd184caf 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
dd184caf 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 '
dd184caf 445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
d9898ee8 449 N
dd184caf 450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 452 t loop
dd184caf 453 s/-\n.*//
d9898ee8 454 ' >$as_me.lineno &&
dd184caf 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
dd184caf 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
dd184caf 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
dd184caf 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
dd184caf 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
dd184caf 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
dd184caf 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
dd184caf 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
dd184caf 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
dd184caf 719ac_clean_files=
d9898ee8 720ac_config_libobj_dir=.
dd184caf 721LIBOBJS=
d9898ee8 722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
d9898ee8 728# Identity of this package.
729PACKAGE_NAME='libhmac'
730PACKAGE_TARNAME='libhmac'
731PACKAGE_VERSION='1.00'
732PACKAGE_STRING='libhmac 1.00'
733PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735ac_unique_file="hmac.h"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
dd184caf 739#ifdef HAVE_SYS_TYPES_H
d9898ee8 740# include <sys/types.h>
741#endif
dd184caf 742#ifdef HAVE_SYS_STAT_H
d9898ee8 743# include <sys/stat.h>
744#endif
dd184caf 745#ifdef STDC_HEADERS
d9898ee8 746# include <stdlib.h>
747# include <stddef.h>
748#else
dd184caf 749# ifdef HAVE_STDLIB_H
d9898ee8 750# include <stdlib.h>
751# endif
752#endif
dd184caf 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
dd184caf 759#ifdef HAVE_STRINGS_H
d9898ee8 760# include <strings.h>
761#endif
dd184caf 762#ifdef HAVE_INTTYPES_H
d9898ee8 763# include <inttypes.h>
d9898ee8 764#endif
dd184caf 765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
d9898ee8 769# include <unistd.h>
770#endif"
771
dd184caf 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
831LN_S
832CC
833CFLAGS
834LDFLAGS
835CPPFLAGS
836ac_ct_CC
837EXEEXT
838OBJEXT
839DEPDIR
840am__include
841am__quote
842AMDEP_TRUE
843AMDEP_FALSE
844AMDEPBACKSLASH
845CCDEPMODE
846am__fastdepCC_TRUE
847am__fastdepCC_FALSE
848build
849build_cpu
850build_vendor
851build_os
852host
853host_cpu
854host_vendor
855host_os
856SED
857GREP
858EGREP
859ECHO
860AR
861RANLIB
862CPP
863CXX
864CXXFLAGS
865ac_ct_CXX
866CXXDEPMODE
867am__fastdepCXX_TRUE
868am__fastdepCXX_FALSE
869CXXCPP
870F77
871FFLAGS
872ac_ct_F77
873LIBTOOL
874hashlibs
875TESTPROGS
876LIBOBJS
877LTLIBOBJS'
d9898ee8 878ac_subst_files=''
dd184caf 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.
dd184caf 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'
dd184caf 925datarootdir='${prefix}/share'
926datadir='${datarootdir}'
d9898ee8 927sysconfdir='${prefix}/etc'
928sharedstatedir='${prefix}/com'
929localstatedir='${prefix}/var'
d9898ee8 930includedir='${prefix}/include'
931oldincludedir='/usr/include'
dd184caf 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=
dd184caf 943ac_dashdash=
d9898ee8 944for ac_option
945do
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
dd184caf 948 eval $ac_prev=\$ac_option
d9898ee8 949 ac_prev=
950 continue
951 fi
952
dd184caf 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
dd184caf 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
dd184caf 984 -datadir | --datadir | --datadi | --datad)
d9898ee8 985 ac_prev=datadir ;;
dd184caf 986 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 987 datadir=$ac_optarg ;;
988
dd184caf 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.
dd184caf 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; }; }
dd184caf 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.
dd184caf 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; }; }
dd184caf 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
dd184caf 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
dd184caf 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 \
dd184caf 1085 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 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
dd184caf 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.
dd184caf 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; }; }
dd184caf 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.
dd184caf 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; }; }
dd184caf 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; }; }
dd184caf 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
dd184caf 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
dd184caf 1285 eval ac_val=\$$ac_var
d9898ee8 1286 case $ac_val in
dd184caf 1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1289 esac
dd184caf 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
dd184caf 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
dd184caf 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\(//\)$' \| \
dd184caf 1336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 1337echo X"$0" |
dd184caf 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
dd184caf 1356 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1357 srcdir=..
1358 fi
1359else
1360 ac_srcdir_defaulted=no
1361fi
dd184caf 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
dd184caf 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; }; }
dd184caf 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 libhmac 1.00 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]
dd184caf 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/libhmac]
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 libhmac 1.00:";;
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
dd184caf 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]
dd184caf 1487 --with-tags[=TAGS] include additional configurations [automatic]
d9898ee8 1488
1489Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
dd184caf 1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
d9898ee8 1497 CPP C preprocessor
1498 CXX C++ compiler command
1499 CXXFLAGS C++ compiler flags
1500 CXXCPP C++ preprocessor
1501 F77 Fortran 77 compiler command
1502 FFLAGS Fortran 77 compiler flags
1503
1504Use these variables to override the choices made by `configure' or to help
1505it to find libraries and programs with nonstandard names/locations.
1506
1507Report bugs to <courier-users@lists.sourceforge.net>.
1508_ACEOF
dd184caf 1509ac_status=$?
d9898ee8 1510fi
1511
1512if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
d9898ee8 1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
dd184caf 1515 test -d "$ac_dir" || continue
d9898ee8 1516 ac_builddir=.
1517
dd184caf 1518case "$ac_dir" in
1519.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520*)
d9898ee8 1521 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
dd184caf 1522 # A ".." for each directory in $ac_dir_suffix.
1523 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 esac ;;
1528esac
1529ac_abs_top_builddir=$ac_pwd
1530ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531# for backward compatibility:
1532ac_top_builddir=$ac_top_build_prefix
d9898ee8 1533
1534case $srcdir in
dd184caf 1535 .) # We are building in place.
d9898ee8 1536 ac_srcdir=.
dd184caf 1537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1540 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1543 *) # Relative name.
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1547esac
dd184caf 1548ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549
1550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1558 else
1559 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1560 fi || ac_status=$?
1561 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1562 done
1563fi
1564
dd184caf 1565test -n "$ac_init_help" && exit $ac_status
d9898ee8 1566if $ac_init_version; then
1567 cat <<\_ACEOF
1568libhmac configure 1.00
dd184caf 1569generated by GNU Autoconf 2.61
d9898ee8 1570
dd184caf 1571Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15722002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 1573This configure script is free software; the Free Software Foundation
1574gives unlimited permission to copy, distribute and modify it.
1575_ACEOF
dd184caf 1576 exit
d9898ee8 1577fi
dd184caf 1578cat >config.log <<_ACEOF
d9898ee8 1579This file contains any messages produced by compilers while
1580running configure, to aid debugging if configure makes a mistake.
1581
1582It was created by libhmac $as_me 1.00, which was
dd184caf 1583generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 1584
1585 $ $0 $@
1586
1587_ACEOF
dd184caf 1588exec 5>>config.log
d9898ee8 1589{
1590cat <<_ASUNAME
1591## --------- ##
1592## Platform. ##
1593## --------- ##
1594
1595hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1596uname -m = `(uname -m) 2>/dev/null || echo unknown`
1597uname -r = `(uname -r) 2>/dev/null || echo unknown`
1598uname -s = `(uname -s) 2>/dev/null || echo unknown`
1599uname -v = `(uname -v) 2>/dev/null || echo unknown`
1600
1601/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1602/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1603
1604/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1605/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1606/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1607/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1608/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1609/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1610/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1611
1612_ASUNAME
1613
1614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615for as_dir in $PATH
1616do
1617 IFS=$as_save_IFS
1618 test -z "$as_dir" && as_dir=.
1619 echo "PATH: $as_dir"
1620done
dd184caf 1621IFS=$as_save_IFS
d9898ee8 1622
1623} >&5
1624
1625cat >&5 <<_ACEOF
1626
1627
1628## ----------- ##
1629## Core tests. ##
1630## ----------- ##
1631
1632_ACEOF
1633
1634
1635# Keep a trace of the command line.
1636# Strip out --no-create and --no-recursion so they do not pile up.
1637# Strip out --silent because we don't want to record it for future runs.
1638# Also quote any args containing shell meta-characters.
1639# Make two passes to allow for proper duplicate-argument suppression.
1640ac_configure_args=
1641ac_configure_args0=
1642ac_configure_args1=
d9898ee8 1643ac_must_keep_next=false
1644for ac_pass in 1 2
1645do
1646 for ac_arg
1647 do
1648 case $ac_arg in
1649 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1651 | -silent | --silent | --silen | --sile | --sil)
1652 continue ;;
dd184caf 1653 *\'*)
d9898ee8 1654 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1655 esac
1656 case $ac_pass in
1657 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1658 2)
1659 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1660 if test $ac_must_keep_next = true; then
1661 ac_must_keep_next=false # Got value, back to normal.
1662 else
1663 case $ac_arg in
1664 *=* | --config-cache | -C | -disable-* | --disable-* \
1665 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1666 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1667 | -with-* | --with-* | -without-* | --without-* | --x)
1668 case "$ac_configure_args0 " in
1669 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670 esac
1671 ;;
1672 -* ) ac_must_keep_next=true ;;
1673 esac
1674 fi
dd184caf 1675 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1676 ;;
1677 esac
1678 done
1679done
1680$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1681$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1682
1683# When interrupted or exit'd, cleanup temporary files, and complete
1684# config.log. We remove comments because anyway the quotes in there
1685# would cause problems or look ugly.
dd184caf 1686# WARNING: Use '\'' to represent an apostrophe within the trap.
1687# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1688trap 'exit_status=$?
1689 # Save into config.log some information that might help in debugging.
1690 {
1691 echo
1692
1693 cat <<\_ASBOX
1694## ---------------- ##
1695## Cache variables. ##
1696## ---------------- ##
1697_ASBOX
1698 echo
1699 # The following way of writing the cache mishandles newlines in values,
dd184caf 1700(
1701 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1702 eval ac_val=\$$ac_var
1703 case $ac_val in #(
1704 *${as_nl}*)
1705 case $ac_var in #(
1706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1707echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1708 esac
1709 case $ac_var in #(
1710 _ | IFS | as_nl) ;; #(
1711 *) $as_unset $ac_var ;;
1712 esac ;;
1713 esac
1714 done
d9898ee8 1715 (set) 2>&1 |
dd184caf 1716 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1717 *${as_nl}ac_space=\ *)
d9898ee8 1718 sed -n \
dd184caf 1719 "s/'\''/'\''\\\\'\'''\''/g;
1720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721 ;; #(
d9898ee8 1722 *)
dd184caf 1723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1724 ;;
dd184caf 1725 esac |
1726 sort
1727)
d9898ee8 1728 echo
1729
1730 cat <<\_ASBOX
1731## ----------------- ##
1732## Output variables. ##
1733## ----------------- ##
1734_ASBOX
1735 echo
1736 for ac_var in $ac_subst_vars
1737 do
dd184caf 1738 eval ac_val=\$$ac_var
1739 case $ac_val in
1740 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1741 esac
1742 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1743 done | sort
1744 echo
1745
1746 if test -n "$ac_subst_files"; then
1747 cat <<\_ASBOX
dd184caf 1748## ------------------- ##
1749## File substitutions. ##
1750## ------------------- ##
d9898ee8 1751_ASBOX
1752 echo
1753 for ac_var in $ac_subst_files
1754 do
dd184caf 1755 eval ac_val=\$$ac_var
1756 case $ac_val in
1757 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1758 esac
1759 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1760 done | sort
1761 echo
1762 fi
1763
1764 if test -s confdefs.h; then
1765 cat <<\_ASBOX
1766## ----------- ##
1767## confdefs.h. ##
1768## ----------- ##
1769_ASBOX
1770 echo
dd184caf 1771 cat confdefs.h
d9898ee8 1772 echo
1773 fi
1774 test "$ac_signal" != 0 &&
1775 echo "$as_me: caught signal $ac_signal"
1776 echo "$as_me: exit $exit_status"
1777 } >&5
dd184caf 1778 rm -f core *.core core.conftest.* &&
1779 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1780 exit $exit_status
dd184caf 1781' 0
d9898ee8 1782for ac_signal in 1 2 13 15; do
1783 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1784done
1785ac_signal=0
1786
1787# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 1788rm -f -r conftest* confdefs.h
d9898ee8 1789
1790# Predefined preprocessor variables.
1791
1792cat >>confdefs.h <<_ACEOF
1793#define PACKAGE_NAME "$PACKAGE_NAME"
1794_ACEOF
1795
1796
1797cat >>confdefs.h <<_ACEOF
1798#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1799_ACEOF
1800
1801
1802cat >>confdefs.h <<_ACEOF
1803#define PACKAGE_VERSION "$PACKAGE_VERSION"
1804_ACEOF
1805
1806
1807cat >>confdefs.h <<_ACEOF
1808#define PACKAGE_STRING "$PACKAGE_STRING"
1809_ACEOF
1810
1811
1812cat >>confdefs.h <<_ACEOF
1813#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1814_ACEOF
1815
1816
1817# Let the site file select an alternate cache file if it wants to.
1818# Prefer explicitly selected file to automatically selected ones.
dd184caf 1819if test -n "$CONFIG_SITE"; then
1820 set x "$CONFIG_SITE"
1821elif test "x$prefix" != xNONE; then
1822 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1823else
1824 set x "$ac_default_prefix/share/config.site" \
1825 "$ac_default_prefix/etc/config.site"
d9898ee8 1826fi
dd184caf 1827shift
1828for ac_site_file
1829do
d9898ee8 1830 if test -r "$ac_site_file"; then
1831 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1832echo "$as_me: loading site script $ac_site_file" >&6;}
1833 sed 's/^/| /' "$ac_site_file" >&5
1834 . "$ac_site_file"
1835 fi
1836done
1837
1838if test -r "$cache_file"; then
1839 # Some versions of bash will fail to source /dev/null (special
1840 # files actually), so we avoid doing that.
1841 if test -f "$cache_file"; then
1842 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1843echo "$as_me: loading cache $cache_file" >&6;}
1844 case $cache_file in
dd184caf 1845 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1846 *) . "./$cache_file";;
d9898ee8 1847 esac
1848 fi
1849else
1850 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1851echo "$as_me: creating cache $cache_file" >&6;}
1852 >$cache_file
1853fi
1854
1855# Check that the precious variables saved in the cache have kept the same
1856# value.
1857ac_cache_corrupted=false
dd184caf 1858for ac_var in $ac_precious_vars; do
d9898ee8 1859 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1860 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 1861 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1862 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1863 case $ac_old_set,$ac_new_set in
1864 set,)
1865 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1866echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1867 ac_cache_corrupted=: ;;
1868 ,set)
1869 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1870echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1871 ac_cache_corrupted=: ;;
1872 ,);;
1873 *)
1874 if test "x$ac_old_val" != "x$ac_new_val"; then
1875 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1876echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1877 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1878echo "$as_me: former value: $ac_old_val" >&2;}
1879 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1880echo "$as_me: current value: $ac_new_val" >&2;}
1881 ac_cache_corrupted=:
1882 fi;;
1883 esac
1884 # Pass precious variables to config.status.
1885 if test "$ac_new_set" = set; then
1886 case $ac_new_val in
dd184caf 1887 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1888 *) ac_arg=$ac_var=$ac_new_val ;;
1889 esac
1890 case " $ac_configure_args " in
1891 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1892 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1893 esac
1894 fi
1895done
1896if $ac_cache_corrupted; then
1897 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1898echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1899 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1900echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1901 { (exit 1); exit 1; }; }
1902fi
1903
d9898ee8 1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
dd184caf 1928ac_ext=c
1929ac_cpp='$CPP $CPPFLAGS'
1930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 1933
1934
1935
1936>confdefs.h # Kill PACKAGE_ macros
1937
1938
dd184caf 1939am__api_version='1.10'
1940
d9898ee8 1941ac_aux_dir=
dd184caf 1942for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1943 if test -f "$ac_dir/install-sh"; then
d9898ee8 1944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/install-sh -c"
1946 break
dd184caf 1947 elif 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
dd184caf 1951 elif test -f "$ac_dir/shtool"; then
d9898ee8 1952 ac_aux_dir=$ac_dir
1953 ac_install_sh="$ac_aux_dir/shtool install -c"
1954 break
1955 fi
1956done
1957if test -z "$ac_aux_dir"; then
dd184caf 1958 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1959echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 1960 { (exit 1); exit 1; }; }
1961fi
dd184caf 1962
1963# These three variables are undocumented and unsupported,
1964# and are intended to be withdrawn in a future Autoconf release.
1965# They can cause serious problems if a builder's source tree is in a directory
1966# whose full name contains unusual characters.
1967ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1968ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1969ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1970
d9898ee8 1971
1972# Find a good install program. We prefer a C program (faster),
1973# so one script is as good as another. But avoid the broken or
1974# incompatible versions:
1975# SysV /etc/install, /usr/sbin/install
1976# SunOS /usr/etc/install
1977# IRIX /sbin/install
1978# AIX /bin/install
1979# AmigaOS /C/install, which installs bootblocks on floppy discs
1980# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1981# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1982# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1983# OS/2's system install, which has a completely different semantic
1984# ./install, which can be erroneously created by make from ./install.sh.
dd184caf 1985{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1986echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 1987if test -z "$INSTALL"; then
1988if test "${ac_cv_path_install+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990else
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992for as_dir in $PATH
1993do
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 # Account for people who put trailing slashes in PATH elements.
1997case $as_dir/ in
1998 ./ | .// | /cC/* | \
1999 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2000 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2001 /usr/ucb/* ) ;;
2002 *)
2003 # OSF1 and SCO ODT 3.0 have their own names for install.
2004 # Don't use installbsd from OSF since it installs stuff as root
2005 # by default.
2006 for ac_prog in ginstall scoinst install; do
2007 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2008 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2009 if test $ac_prog = install &&
2010 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2011 # AIX install. It has an incompatible calling convention.
2012 :
2013 elif test $ac_prog = install &&
2014 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # program-specific install script used by HP pwplus--don't use.
2016 :
2017 else
2018 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2019 break 3
2020 fi
2021 fi
2022 done
2023 done
2024 ;;
2025esac
2026done
dd184caf 2027IFS=$as_save_IFS
d9898ee8 2028
2029
2030fi
2031 if test "${ac_cv_path_install+set}" = set; then
2032 INSTALL=$ac_cv_path_install
2033 else
dd184caf 2034 # As a last resort, use the slow shell script. Don't cache a
2035 # value for INSTALL within a source directory, because that will
d9898ee8 2036 # break other packages using the cache if that directory is
dd184caf 2037 # removed, or if the value is a relative name.
d9898ee8 2038 INSTALL=$ac_install_sh
2039 fi
2040fi
dd184caf 2041{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2042echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 2043
2044# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2045# It thinks the first close brace ends the variable substitution.
2046test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2047
2048test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2049
2050test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2051
dd184caf 2052{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2053echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
d9898ee8 2054# Just in case
2055sleep 1
2056echo timestamp > conftest.file
2057# Do `set' in a subshell so we don't clobber the current shell's
2058# arguments. Must try -L first in case configure is actually a
2059# symlink; some systems play weird games with the mod time of symlinks
2060# (eg FreeBSD returns the mod time of the symlink's containing
2061# directory).
2062if (
2063 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2064 if test "$*" = "X"; then
2065 # -L didn't work.
2066 set X `ls -t $srcdir/configure conftest.file`
2067 fi
2068 rm -f conftest.file
2069 if test "$*" != "X $srcdir/configure conftest.file" \
2070 && test "$*" != "X conftest.file $srcdir/configure"; then
2071
2072 # If neither matched, then we have a broken ls. This can happen
2073 # if, for instance, CONFIG_SHELL is bash and it inherits a
2074 # broken ls alias from the environment. This has actually
2075 # happened. Such a system could not be considered "sane".
2076 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2077alias in your environment" >&5
2078echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2079alias in your environment" >&2;}
2080 { (exit 1); exit 1; }; }
2081 fi
2082
2083 test "$2" = conftest.file
2084 )
2085then
2086 # Ok.
2087 :
2088else
2089 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2090Check your system clock" >&5
2091echo "$as_me: error: newly created file is older than distributed files!
2092Check your system clock" >&2;}
2093 { (exit 1); exit 1; }; }
2094fi
dd184caf 2095{ echo "$as_me:$LINENO: result: yes" >&5
2096echo "${ECHO_T}yes" >&6; }
d9898ee8 2097test "$program_prefix" != NONE &&
dd184caf 2098 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2099# Use a double $ so make ignores it.
2100test "$program_suffix" != NONE &&
dd184caf 2101 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
d9898ee8 2102# Double any \ or $. echo might interpret backslashes.
2103# By default was `s,x,x', remove it if useless.
2104cat <<\_ACEOF >conftest.sed
2105s/[\\$]/&&/g;s/;s,x,x,$//
2106_ACEOF
2107program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
dd184caf 2108rm -f conftest.sed
d9898ee8 2109
2110# expand $ac_aux_dir to an absolute path
2111am_aux_dir=`cd $ac_aux_dir && pwd`
2112
2113test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2114# Use eval to expand $SHELL
2115if eval "$MISSING --run true"; then
2116 am_missing_run="$MISSING --run "
2117else
2118 am_missing_run=
2119 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2120echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2121fi
2122
dd184caf 2123{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2124echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2125if test -z "$MKDIR_P"; then
2126 if test "${ac_cv_path_mkdir+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2131do
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 for ac_prog in mkdir gmkdir; do
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2137 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2138 'mkdir (GNU coreutils) '* | \
2139 'mkdir (coreutils) '* | \
2140 'mkdir (fileutils) '4.1*)
2141 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2142 break 3;;
2143 esac
2144 done
2145 done
2146done
2147IFS=$as_save_IFS
2148
2149fi
2150
2151 if test "${ac_cv_path_mkdir+set}" = set; then
2152 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2153 else
dd184caf 2154 # As a last resort, use the slow shell script. Don't cache a
2155 # value for MKDIR_P within a source directory, because that will
2156 # break other packages using the cache if that directory is
2157 # removed, or if the value is a relative name.
2158 test -d ./--version && rmdir ./--version
2159 MKDIR_P="$ac_install_sh -d"
d9898ee8 2160 fi
2161fi
dd184caf 2162{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2163echo "${ECHO_T}$MKDIR_P" >&6; }
2164
2165mkdir_p="$MKDIR_P"
2166case $mkdir_p in
2167 [\\/$]* | ?:[\\/]*) ;;
2168 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2169esac
d9898ee8 2170
2171for ac_prog in gawk mawk nawk awk
2172do
2173 # Extract the first word of "$ac_prog", so it can be a program name with args.
2174set dummy $ac_prog; ac_word=$2
dd184caf 2175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2177if test "${ac_cv_prog_AWK+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180 if test -n "$AWK"; then
2181 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2182else
2183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184for as_dir in $PATH
2185do
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2190 ac_cv_prog_AWK="$ac_prog"
2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 break 2
2193 fi
2194done
2195done
dd184caf 2196IFS=$as_save_IFS
d9898ee8 2197
2198fi
2199fi
2200AWK=$ac_cv_prog_AWK
2201if test -n "$AWK"; then
dd184caf 2202 { echo "$as_me:$LINENO: result: $AWK" >&5
2203echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2204else
dd184caf 2205 { echo "$as_me:$LINENO: result: no" >&5
2206echo "${ECHO_T}no" >&6; }
d9898ee8 2207fi
2208
dd184caf 2209
d9898ee8 2210 test -n "$AWK" && break
2211done
2212
dd184caf 2213{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2214echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2215set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2216if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218else
2219 cat >conftest.make <<\_ACEOF
dd184caf 2220SHELL = /bin/sh
d9898ee8 2221all:
dd184caf 2222 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2223_ACEOF
2224# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
dd184caf 2225case `${MAKE-make} -f conftest.make 2>/dev/null` in
2226 *@@@%%%=?*=@@@%%%*)
2227 eval ac_cv_prog_make_${ac_make}_set=yes;;
2228 *)
2229 eval ac_cv_prog_make_${ac_make}_set=no;;
2230esac
d9898ee8 2231rm -f conftest.make
2232fi
dd184caf 2233if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2234 { echo "$as_me:$LINENO: result: yes" >&5
2235echo "${ECHO_T}yes" >&6; }
d9898ee8 2236 SET_MAKE=
2237else
dd184caf 2238 { echo "$as_me:$LINENO: result: no" >&5
2239echo "${ECHO_T}no" >&6; }
d9898ee8 2240 SET_MAKE="MAKE=${MAKE-make}"
2241fi
2242
2243rm -rf .tst 2>/dev/null
2244mkdir .tst 2>/dev/null
2245if test -d .tst; then
2246 am__leading_dot=.
2247else
2248 am__leading_dot=_
2249fi
2250rmdir .tst 2>/dev/null
2251
dd184caf 2252if test "`cd $srcdir && pwd`" != "`pwd`"; then
2253 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2254 # is not polluted with repeated "-I."
2255 am__isrc=' -I$(srcdir)'
2256 # test to see if srcdir already configured
2257 if test -f $srcdir/config.status; then
2258 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d9898ee8 2259echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2260 { (exit 1); exit 1; }; }
dd184caf 2261 fi
d9898ee8 2262fi
2263
2264# test whether we have cygpath
2265if test -z "$CYGPATH_W"; then
2266 if (cygpath --version) >/dev/null 2>/dev/null; then
2267 CYGPATH_W='cygpath -w'
2268 else
2269 CYGPATH_W=echo
2270 fi
2271fi
2272
2273
2274# Define the identity of the package.
2275 PACKAGE='libhmac'
2276 VERSION='1.00'
2277
2278
2279# Some tools Automake needs.
2280
2281ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2282
2283
2284AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2285
2286
2287AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2288
2289
2290AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2291
2292
2293MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2294
dd184caf 2295install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
d9898ee8 2296
2297# Installed binaries are usually stripped using `strip' when the user
2298# run `make install-strip'. However `strip' might not be the right
2299# tool to use in cross-compilation environments, therefore Automake
2300# will honor the `STRIP' environment variable to overrule this program.
2301if test "$cross_compiling" != no; then
2302 if test -n "$ac_tool_prefix"; then
2303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2304set dummy ${ac_tool_prefix}strip; ac_word=$2
dd184caf 2305{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2307if test "${ac_cv_prog_STRIP+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309else
2310 if test -n "$STRIP"; then
2311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2312else
2313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314for as_dir in $PATH
2315do
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2320 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 break 2
2323 fi
2324done
2325done
dd184caf 2326IFS=$as_save_IFS
d9898ee8 2327
2328fi
2329fi
2330STRIP=$ac_cv_prog_STRIP
2331if test -n "$STRIP"; then
dd184caf 2332 { echo "$as_me:$LINENO: result: $STRIP" >&5
2333echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 2334else
dd184caf 2335 { echo "$as_me:$LINENO: result: no" >&5
2336echo "${ECHO_T}no" >&6; }
d9898ee8 2337fi
2338
dd184caf 2339
d9898ee8 2340fi
2341if test -z "$ac_cv_prog_STRIP"; then
2342 ac_ct_STRIP=$STRIP
2343 # Extract the first word of "strip", so it can be a program name with args.
2344set dummy strip; ac_word=$2
dd184caf 2345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2347if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2349else
2350 if test -n "$ac_ct_STRIP"; then
2351 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2352else
2353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354for as_dir in $PATH
2355do
2356 IFS=$as_save_IFS
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2360 ac_cv_prog_ac_ct_STRIP="strip"
2361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 break 2
2363 fi
2364done
2365done
dd184caf 2366IFS=$as_save_IFS
d9898ee8 2367
d9898ee8 2368fi
2369fi
2370ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2371if test -n "$ac_ct_STRIP"; then
dd184caf 2372 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2373echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 2374else
dd184caf 2375 { echo "$as_me:$LINENO: result: no" >&5
2376echo "${ECHO_T}no" >&6; }
d9898ee8 2377fi
2378
dd184caf 2379 if test "x$ac_ct_STRIP" = x; then
2380 STRIP=":"
2381 else
2382 case $cross_compiling:$ac_tool_warned in
2383yes:)
2384{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2385whose name does not start with the host triplet. If you think this
2386configuration is useful to you, please write to autoconf@gnu.org." >&5
2387echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2388whose name does not start with the host triplet. If you think this
2389configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2390ac_tool_warned=yes ;;
2391esac
2392 STRIP=$ac_ct_STRIP
2393 fi
d9898ee8 2394else
2395 STRIP="$ac_cv_prog_STRIP"
2396fi
2397
2398fi
dd184caf 2399INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2400
2401# We need awk for the "check" target. The system "awk" is bad on
2402# some platforms.
2403# Always define AMTAR for backward compatibility.
2404
2405AMTAR=${AMTAR-"${am_missing_run}tar"}
2406
2407am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2408
2409
2410
2411
2412
2413
2414
dd184caf 2415ac_config_headers="$ac_config_headers config.h"
d9898ee8 2416
2417
2418for ac_prog in gawk mawk nawk awk
2419do
2420 # Extract the first word of "$ac_prog", so it can be a program name with args.
2421set dummy $ac_prog; ac_word=$2
dd184caf 2422{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2424if test "${ac_cv_prog_AWK+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2426else
2427 if test -n "$AWK"; then
2428 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2429else
2430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431for as_dir in $PATH
2432do
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2437 ac_cv_prog_AWK="$ac_prog"
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 break 2
2440 fi
2441done
2442done
dd184caf 2443IFS=$as_save_IFS
d9898ee8 2444
2445fi
2446fi
2447AWK=$ac_cv_prog_AWK
2448if test -n "$AWK"; then
dd184caf 2449 { echo "$as_me:$LINENO: result: $AWK" >&5
2450echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2451else
dd184caf 2452 { echo "$as_me:$LINENO: result: no" >&5
2453echo "${ECHO_T}no" >&6; }
d9898ee8 2454fi
2455
dd184caf 2456
d9898ee8 2457 test -n "$AWK" && break
2458done
2459
2460# Find a good install program. We prefer a C program (faster),
2461# so one script is as good as another. But avoid the broken or
2462# incompatible versions:
2463# SysV /etc/install, /usr/sbin/install
2464# SunOS /usr/etc/install
2465# IRIX /sbin/install
2466# AIX /bin/install
2467# AmigaOS /C/install, which installs bootblocks on floppy discs
2468# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2469# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2470# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2471# OS/2's system install, which has a completely different semantic
2472# ./install, which can be erroneously created by make from ./install.sh.
dd184caf 2473{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2474echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 2475if test -z "$INSTALL"; then
2476if test "${ac_cv_path_install+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478else
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480for as_dir in $PATH
2481do
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 # Account for people who put trailing slashes in PATH elements.
2485case $as_dir/ in
2486 ./ | .// | /cC/* | \
2487 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2488 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2489 /usr/ucb/* ) ;;
2490 *)
2491 # OSF1 and SCO ODT 3.0 have their own names for install.
2492 # Don't use installbsd from OSF since it installs stuff as root
2493 # by default.
2494 for ac_prog in ginstall scoinst install; do
2495 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2496 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2497 if test $ac_prog = install &&
2498 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2499 # AIX install. It has an incompatible calling convention.
2500 :
2501 elif test $ac_prog = install &&
2502 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2503 # program-specific install script used by HP pwplus--don't use.
2504 :
2505 else
2506 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2507 break 3
2508 fi
2509 fi
2510 done
2511 done
2512 ;;
2513esac
2514done
dd184caf 2515IFS=$as_save_IFS
d9898ee8 2516
2517
2518fi
2519 if test "${ac_cv_path_install+set}" = set; then
2520 INSTALL=$ac_cv_path_install
2521 else
dd184caf 2522 # As a last resort, use the slow shell script. Don't cache a
2523 # value for INSTALL within a source directory, because that will
d9898ee8 2524 # break other packages using the cache if that directory is
dd184caf 2525 # removed, or if the value is a relative name.
d9898ee8 2526 INSTALL=$ac_install_sh
2527 fi
2528fi
dd184caf 2529{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2530echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 2531
2532# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2533# It thinks the first close brace ends the variable substitution.
2534test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2535
2536test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2537
2538test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2539
dd184caf 2540{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
2541echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d9898ee8 2542LN_S=$as_ln_s
2543if test "$LN_S" = "ln -s"; then
dd184caf 2544 { echo "$as_me:$LINENO: result: yes" >&5
2545echo "${ECHO_T}yes" >&6; }
d9898ee8 2546else
dd184caf 2547 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2548echo "${ECHO_T}no, using $LN_S" >&6; }
d9898ee8 2549fi
2550
2551ac_ext=c
2552ac_cpp='$CPP $CPPFLAGS'
2553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2555ac_compiler_gnu=$ac_cv_c_compiler_gnu
2556if test -n "$ac_tool_prefix"; then
2557 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2558set dummy ${ac_tool_prefix}gcc; ac_word=$2
dd184caf 2559{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2561if test "${ac_cv_prog_CC+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2563else
2564 if test -n "$CC"; then
2565 ac_cv_prog_CC="$CC" # Let the user override the test.
2566else
2567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH
2569do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2574 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 break 2
2577 fi
2578done
2579done
dd184caf 2580IFS=$as_save_IFS
d9898ee8 2581
2582fi
2583fi
2584CC=$ac_cv_prog_CC
2585if test -n "$CC"; then
dd184caf 2586 { echo "$as_me:$LINENO: result: $CC" >&5
2587echo "${ECHO_T}$CC" >&6; }
d9898ee8 2588else
dd184caf 2589 { echo "$as_me:$LINENO: result: no" >&5
2590echo "${ECHO_T}no" >&6; }
d9898ee8 2591fi
2592
dd184caf 2593
d9898ee8 2594fi
2595if test -z "$ac_cv_prog_CC"; then
2596 ac_ct_CC=$CC
2597 # Extract the first word of "gcc", so it can be a program name with args.
2598set dummy gcc; ac_word=$2
dd184caf 2599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2601if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2603else
2604 if test -n "$ac_ct_CC"; then
2605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2606else
2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608for as_dir in $PATH
2609do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2614 ac_cv_prog_ac_ct_CC="gcc"
2615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2617 fi
2618done
2619done
dd184caf 2620IFS=$as_save_IFS
d9898ee8 2621
2622fi
2623fi
2624ac_ct_CC=$ac_cv_prog_ac_ct_CC
2625if test -n "$ac_ct_CC"; then
dd184caf 2626 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2627echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2628else
dd184caf 2629 { echo "$as_me:$LINENO: result: no" >&5
2630echo "${ECHO_T}no" >&6; }
d9898ee8 2631fi
2632
dd184caf 2633 if test "x$ac_ct_CC" = x; then
2634 CC=""
2635 else
2636 case $cross_compiling:$ac_tool_warned in
2637yes:)
2638{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2639whose name does not start with the host triplet. If you think this
2640configuration is useful to you, please write to autoconf@gnu.org." >&5
2641echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2642whose name does not start with the host triplet. If you think this
2643configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2644ac_tool_warned=yes ;;
2645esac
2646 CC=$ac_ct_CC
2647 fi
d9898ee8 2648else
2649 CC="$ac_cv_prog_CC"
2650fi
2651
2652if test -z "$CC"; then
dd184caf 2653 if test -n "$ac_tool_prefix"; then
2654 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2655set dummy ${ac_tool_prefix}cc; ac_word=$2
dd184caf 2656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2658if test "${ac_cv_prog_CC+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660else
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC="$CC" # Let the user override the test.
2663else
2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2671 ac_cv_prog_CC="${ac_tool_prefix}cc"
2672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2674 fi
2675done
2676done
dd184caf 2677IFS=$as_save_IFS
d9898ee8 2678
2679fi
2680fi
2681CC=$ac_cv_prog_CC
2682if test -n "$CC"; then
dd184caf 2683 { echo "$as_me:$LINENO: result: $CC" >&5
2684echo "${ECHO_T}$CC" >&6; }
d9898ee8 2685else
dd184caf 2686 { echo "$as_me:$LINENO: result: no" >&5
2687echo "${ECHO_T}no" >&6; }
d9898ee8 2688fi
2689
d9898ee8 2690
dd184caf 2691 fi
d9898ee8 2692fi
2693if test -z "$CC"; then
2694 # Extract the first word of "cc", so it can be a program name with args.
2695set dummy cc; ac_word=$2
dd184caf 2696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2698if test "${ac_cv_prog_CC+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2700else
2701 if test -n "$CC"; then
2702 ac_cv_prog_CC="$CC" # Let the user override the test.
2703else
2704 ac_prog_rejected=no
2705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706for as_dir in $PATH
2707do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2712 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2713 ac_prog_rejected=yes
2714 continue
2715 fi
2716 ac_cv_prog_CC="cc"
2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 break 2
2719 fi
2720done
2721done
dd184caf 2722IFS=$as_save_IFS
d9898ee8 2723
2724if test $ac_prog_rejected = yes; then
2725 # We found a bogon in the path, so make sure we never use it.
2726 set dummy $ac_cv_prog_CC
2727 shift
2728 if test $# != 0; then
2729 # We chose a different compiler from the bogus one.
2730 # However, it has the same basename, so the bogon will be chosen
2731 # first if we set CC to just the basename; use the full file name.
2732 shift
2733 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2734 fi
2735fi
2736fi
2737fi
2738CC=$ac_cv_prog_CC
2739if test -n "$CC"; then
dd184caf 2740 { echo "$as_me:$LINENO: result: $CC" >&5
2741echo "${ECHO_T}$CC" >&6; }
d9898ee8 2742else
dd184caf 2743 { echo "$as_me:$LINENO: result: no" >&5
2744echo "${ECHO_T}no" >&6; }
d9898ee8 2745fi
2746
dd184caf 2747
d9898ee8 2748fi
2749if test -z "$CC"; then
2750 if test -n "$ac_tool_prefix"; then
dd184caf 2751 for ac_prog in cl.exe
d9898ee8 2752 do
2753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2754set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 2755{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2757if test "${ac_cv_prog_CC+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2759else
2760 if test -n "$CC"; then
2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2762else
2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH
2765do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2770 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 break 2
2773 fi
2774done
2775done
dd184caf 2776IFS=$as_save_IFS
d9898ee8 2777
2778fi
2779fi
2780CC=$ac_cv_prog_CC
2781if test -n "$CC"; then
dd184caf 2782 { echo "$as_me:$LINENO: result: $CC" >&5
2783echo "${ECHO_T}$CC" >&6; }
d9898ee8 2784else
dd184caf 2785 { echo "$as_me:$LINENO: result: no" >&5
2786echo "${ECHO_T}no" >&6; }
d9898ee8 2787fi
2788
dd184caf 2789
d9898ee8 2790 test -n "$CC" && break
2791 done
2792fi
2793if test -z "$CC"; then
2794 ac_ct_CC=$CC
dd184caf 2795 for ac_prog in cl.exe
d9898ee8 2796do
2797 # Extract the first word of "$ac_prog", so it can be a program name with args.
2798set dummy $ac_prog; ac_word=$2
dd184caf 2799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2801if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2803else
2804 if test -n "$ac_ct_CC"; then
2805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2806else
2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH
2809do
2810 IFS=$as_save_IFS
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2814 ac_cv_prog_ac_ct_CC="$ac_prog"
2815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 break 2
2817 fi
2818done
2819done
dd184caf 2820IFS=$as_save_IFS
d9898ee8 2821
2822fi
2823fi
2824ac_ct_CC=$ac_cv_prog_ac_ct_CC
2825if test -n "$ac_ct_CC"; then
dd184caf 2826 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2827echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2828else
dd184caf 2829 { echo "$as_me:$LINENO: result: no" >&5
2830echo "${ECHO_T}no" >&6; }
d9898ee8 2831fi
2832
dd184caf 2833
d9898ee8 2834 test -n "$ac_ct_CC" && break
2835done
2836
dd184caf 2837 if test "x$ac_ct_CC" = x; then
2838 CC=""
2839 else
2840 case $cross_compiling:$ac_tool_warned in
2841yes:)
2842{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2843whose name does not start with the host triplet. If you think this
2844configuration is useful to you, please write to autoconf@gnu.org." >&5
2845echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2846whose name does not start with the host triplet. If you think this
2847configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2848ac_tool_warned=yes ;;
2849esac
2850 CC=$ac_ct_CC
2851 fi
d9898ee8 2852fi
2853
2854fi
2855
2856
2857test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2858See \`config.log' for more details." >&5
2859echo "$as_me: error: no acceptable C compiler found in \$PATH
2860See \`config.log' for more details." >&2;}
2861 { (exit 1); exit 1; }; }
2862
2863# Provide some information about the compiler.
dd184caf 2864echo "$as_me:$LINENO: checking for C compiler version" >&5
d9898ee8 2865ac_compiler=`set X $ac_compile; echo $2`
dd184caf 2866{ (ac_try="$ac_compiler --version >&5"
2867case "(($ac_try" in
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2870esac
2871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2872 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }
dd184caf 2876{ (ac_try="$ac_compiler -v >&5"
2877case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880esac
2881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }
dd184caf 2886{ (ac_try="$ac_compiler -V >&5"
2887case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890esac
2891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2896
2897cat >conftest.$ac_ext <<_ACEOF
2898/* confdefs.h. */
2899_ACEOF
2900cat confdefs.h >>conftest.$ac_ext
2901cat >>conftest.$ac_ext <<_ACEOF
2902/* end confdefs.h. */
2903
2904int
2905main ()
2906{
2907
2908 ;
2909 return 0;
2910}
2911_ACEOF
2912ac_clean_files_save=$ac_clean_files
2913ac_clean_files="$ac_clean_files a.out a.exe b.out"
2914# Try to create an executable without -o first, disregard a.out.
2915# It will help us diagnose broken compilers, and finding out an intuition
2916# of exeext.
dd184caf 2917{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2918echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
d9898ee8 2919ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
dd184caf 2920#
2921# List of possible output files, starting from the most likely.
2922# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2923# only as a last resort. b.out is created by i960 compilers.
2924ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2925#
2926# The IRIX 6 linker writes into existing files which may not be
2927# executable, retaining their permissions. Remove them first so a
2928# subsequent execution test works.
2929ac_rmfiles=
2930for ac_file in $ac_files
2931do
2932 case $ac_file in
2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2934 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2935 esac
2936done
2937rm -f $ac_rmfiles
2938
2939if { (ac_try="$ac_link_default"
2940case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943esac
2944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_link_default") 2>&5
d9898ee8 2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; then
dd184caf 2949 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2950# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2951# in a Makefile. We should not override ac_cv_exeext if it was cached,
2952# so that the user can short-circuit this test for compilers unknown to
2953# Autoconf.
2954for ac_file in $ac_files ''
d9898ee8 2955do
2956 test -f "$ac_file" || continue
2957 case $ac_file in
dd184caf 2958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
d9898ee8 2959 ;;
2960 [ab].out )
2961 # We found the default executable, but exeext='' is most
2962 # certainly right.
2963 break;;
2964 *.* )
dd184caf 2965 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2966 then :; else
2967 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2968 fi
2969 # We set ac_cv_exeext here because the later test for it is not
2970 # safe: cross compilers may not add the suffix if given an `-o'
2971 # argument, so we may need to know it at that point already.
2972 # Even if this section looks crufty: it has the advantage of
2973 # actually working.
d9898ee8 2974 break;;
2975 * )
2976 break;;
2977 esac
2978done
dd184caf 2979test "$ac_cv_exeext" = no && ac_cv_exeext=
2980
d9898ee8 2981else
dd184caf 2982 ac_file=''
2983fi
2984
2985{ echo "$as_me:$LINENO: result: $ac_file" >&5
2986echo "${ECHO_T}$ac_file" >&6; }
2987if test -z "$ac_file"; then
d9898ee8 2988 echo "$as_me: failed program was:" >&5
2989sed 's/^/| /' conftest.$ac_ext >&5
2990
2991{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2992See \`config.log' for more details." >&5
2993echo "$as_me: error: C compiler cannot create executables
2994See \`config.log' for more details." >&2;}
2995 { (exit 77); exit 77; }; }
2996fi
2997
2998ac_exeext=$ac_cv_exeext
d9898ee8 2999
dd184caf 3000# Check that the compiler produces executables we can run. If not, either
d9898ee8 3001# the compiler is broken, or we cross compile.
dd184caf 3002{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3003echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
d9898ee8 3004# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3005# If not cross compiling, check that we can run a simple program.
3006if test "$cross_compiling" != yes; then
3007 if { ac_try='./$ac_file'
dd184caf 3008 { (case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011esac
3012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_try") 2>&5
d9898ee8 3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 cross_compiling=no
3018 else
3019 if test "$cross_compiling" = maybe; then
3020 cross_compiling=yes
3021 else
3022 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3023If you meant to cross compile, use \`--host'.
3024See \`config.log' for more details." >&5
3025echo "$as_me: error: cannot run C compiled programs.
3026If you meant to cross compile, use \`--host'.
3027See \`config.log' for more details." >&2;}
3028 { (exit 1); exit 1; }; }
3029 fi
3030 fi
3031fi
dd184caf 3032{ echo "$as_me:$LINENO: result: yes" >&5
3033echo "${ECHO_T}yes" >&6; }
d9898ee8 3034
3035rm -f a.out a.exe conftest$ac_cv_exeext b.out
3036ac_clean_files=$ac_clean_files_save
dd184caf 3037# Check that the compiler produces executables we can run. If not, either
d9898ee8 3038# the compiler is broken, or we cross compile.
dd184caf 3039{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3040echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3041{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3042echo "${ECHO_T}$cross_compiling" >&6; }
3043
3044{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3045echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3046if { (ac_try="$ac_link"
3047case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050esac
3051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_link") 2>&5
d9898ee8 3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; then
3056 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3057# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3058# work properly (i.e., refer to `conftest.exe'), while it won't with
3059# `rm'.
3060for ac_file in conftest.exe conftest conftest.*; do
3061 test -f "$ac_file" || continue
3062 case $ac_file in
dd184caf 3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
d9898ee8 3064 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3065 break;;
3066 * ) break;;
3067 esac
3068done
3069else
3070 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3071See \`config.log' for more details." >&5
3072echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3073See \`config.log' for more details." >&2;}
3074 { (exit 1); exit 1; }; }
3075fi
3076
3077rm -f conftest$ac_cv_exeext
dd184caf 3078{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3079echo "${ECHO_T}$ac_cv_exeext" >&6; }
d9898ee8 3080
3081rm -f conftest.$ac_ext
3082EXEEXT=$ac_cv_exeext
3083ac_exeext=$EXEEXT
dd184caf 3084{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3085echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
d9898ee8 3086if test "${ac_cv_objext+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3088else
3089 cat >conftest.$ac_ext <<_ACEOF
3090/* confdefs.h. */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h. */
3095
3096int
3097main ()
3098{
3099
3100 ;
3101 return 0;
3102}
3103_ACEOF
3104rm -f conftest.o conftest.obj
dd184caf 3105if { (ac_try="$ac_compile"
3106case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109esac
3110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_compile") 2>&5
d9898ee8 3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; then
dd184caf 3115 for ac_file in conftest.o conftest.obj conftest.*; do
3116 test -f "$ac_file" || continue;
d9898ee8 3117 case $ac_file in
dd184caf 3118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
d9898ee8 3119 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3120 break;;
3121 esac
3122done
3123else
3124 echo "$as_me: failed program was:" >&5
3125sed 's/^/| /' conftest.$ac_ext >&5
3126
3127{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3128See \`config.log' for more details." >&5
3129echo "$as_me: error: cannot compute suffix of object files: cannot compile
3130See \`config.log' for more details." >&2;}
3131 { (exit 1); exit 1; }; }
3132fi
3133
3134rm -f conftest.$ac_cv_objext conftest.$ac_ext
3135fi
dd184caf 3136{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3137echo "${ECHO_T}$ac_cv_objext" >&6; }
d9898ee8 3138OBJEXT=$ac_cv_objext
3139ac_objext=$OBJEXT
dd184caf 3140{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3141echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d9898ee8 3142if test "${ac_cv_c_compiler_gnu+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3144else
3145 cat >conftest.$ac_ext <<_ACEOF
3146/* confdefs.h. */
3147_ACEOF
3148cat confdefs.h >>conftest.$ac_ext
3149cat >>conftest.$ac_ext <<_ACEOF
3150/* end confdefs.h. */
3151
3152int
3153main ()
3154{
3155#ifndef __GNUC__
3156 choke me
3157#endif
3158
3159 ;
3160 return 0;
3161}
3162_ACEOF
3163rm -f conftest.$ac_objext
dd184caf 3164if { (ac_try="$ac_compile"
3165case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168esac
3169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3171 ac_status=$?
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3176 (exit $ac_status); } && {
3177 test -z "$ac_c_werror_flag" ||
3178 test ! -s conftest.err
3179 } && test -s conftest.$ac_objext; then
d9898ee8 3180 ac_compiler_gnu=yes
3181else
3182 echo "$as_me: failed program was:" >&5
3183sed 's/^/| /' conftest.$ac_ext >&5
3184
dd184caf 3185 ac_compiler_gnu=no
d9898ee8 3186fi
dd184caf 3187
3188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3189ac_cv_c_compiler_gnu=$ac_compiler_gnu
3190
3191fi
dd184caf 3192{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3193echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d9898ee8 3194GCC=`test $ac_compiler_gnu = yes && echo yes`
3195ac_test_CFLAGS=${CFLAGS+set}
3196ac_save_CFLAGS=$CFLAGS
dd184caf 3197{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3198echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d9898ee8 3199if test "${ac_cv_prog_cc_g+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201else
dd184caf 3202 ac_save_c_werror_flag=$ac_c_werror_flag
3203 ac_c_werror_flag=yes
3204 ac_cv_prog_cc_g=no
3205 CFLAGS="-g"
3206 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3207/* confdefs.h. */
3208_ACEOF
3209cat confdefs.h >>conftest.$ac_ext
3210cat >>conftest.$ac_ext <<_ACEOF
3211/* end confdefs.h. */
3212
3213int
3214main ()
3215{
3216
3217 ;
3218 return 0;
3219}
3220_ACEOF
3221rm -f conftest.$ac_objext
dd184caf 3222if { (ac_try="$ac_compile"
3223case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226esac
3227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3229 ac_status=$?
3230 grep -v '^ *+' conftest.er1 >conftest.err
3231 rm -f conftest.er1
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3234 (exit $ac_status); } && {
3235 test -z "$ac_c_werror_flag" ||
3236 test ! -s conftest.err
3237 } && test -s conftest.$ac_objext; then
3238 ac_cv_prog_cc_g=yes
3239else
3240 echo "$as_me: failed program was:" >&5
3241sed 's/^/| /' conftest.$ac_ext >&5
3242
3243 CFLAGS=""
3244 cat >conftest.$ac_ext <<_ACEOF
3245/* confdefs.h. */
3246_ACEOF
3247cat confdefs.h >>conftest.$ac_ext
3248cat >>conftest.$ac_ext <<_ACEOF
3249/* end confdefs.h. */
3250
3251int
3252main ()
3253{
3254
3255 ;
3256 return 0;
3257}
3258_ACEOF
3259rm -f conftest.$ac_objext
3260if { (ac_try="$ac_compile"
3261case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264esac
3265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3267 ac_status=$?
dd184caf 3268 grep -v '^ *+' conftest.er1 >conftest.err
3269 rm -f conftest.er1
3270 cat conftest.err >&5
d9898ee8 3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3272 (exit $ac_status); } && {
3273 test -z "$ac_c_werror_flag" ||
3274 test ! -s conftest.err
3275 } && test -s conftest.$ac_objext; then
3276 :
3277else
3278 echo "$as_me: failed program was:" >&5
3279sed 's/^/| /' conftest.$ac_ext >&5
3280
3281 ac_c_werror_flag=$ac_save_c_werror_flag
3282 CFLAGS="-g"
3283 cat >conftest.$ac_ext <<_ACEOF
3284/* confdefs.h. */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
3288/* end confdefs.h. */
3289
3290int
3291main ()
3292{
3293
3294 ;
3295 return 0;
3296}
3297_ACEOF
3298rm -f conftest.$ac_objext
3299if { (ac_try="$ac_compile"
3300case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303esac
3304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3306 ac_status=$?
dd184caf 3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
d9898ee8 3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3311 (exit $ac_status); } && {
3312 test -z "$ac_c_werror_flag" ||
3313 test ! -s conftest.err
3314 } && test -s conftest.$ac_objext; then
d9898ee8 3315 ac_cv_prog_cc_g=yes
3316else
3317 echo "$as_me: failed program was:" >&5
3318sed 's/^/| /' conftest.$ac_ext >&5
3319
dd184caf 3320
3321fi
3322
3323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3324fi
dd184caf 3325
3326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327fi
3328
3329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3331fi
dd184caf 3332{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3333echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d9898ee8 3334if test "$ac_test_CFLAGS" = set; then
3335 CFLAGS=$ac_save_CFLAGS
3336elif test $ac_cv_prog_cc_g = yes; then
3337 if test "$GCC" = yes; then
3338 CFLAGS="-g -O2"
3339 else
3340 CFLAGS="-g"
3341 fi
3342else
3343 if test "$GCC" = yes; then
3344 CFLAGS="-O2"
3345 else
3346 CFLAGS=
3347 fi
3348fi
dd184caf 3349{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3350echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3351if test "${ac_cv_prog_cc_c89+set}" = set; then
d9898ee8 3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353else
dd184caf 3354 ac_cv_prog_cc_c89=no
d9898ee8 3355ac_save_CC=$CC
3356cat >conftest.$ac_ext <<_ACEOF
3357/* confdefs.h. */
3358_ACEOF
3359cat confdefs.h >>conftest.$ac_ext
3360cat >>conftest.$ac_ext <<_ACEOF
3361/* end confdefs.h. */
3362#include <stdarg.h>
3363#include <stdio.h>
3364#include <sys/types.h>
3365#include <sys/stat.h>
3366/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3367struct buf { int x; };
3368FILE * (*rcsopen) (struct buf *, struct stat *, int);
3369static char *e (p, i)
3370 char **p;
3371 int i;
3372{
3373 return p[i];
3374}
3375static char *f (char * (*g) (char **, int), char **p, ...)
3376{
3377 char *s;
3378 va_list v;
3379 va_start (v,p);
3380 s = g (p, va_arg (v,int));
3381 va_end (v);
3382 return s;
3383}
3384
3385/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3386 function prototypes and stuff, but not '\xHH' hex character constants.
3387 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3388 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3389 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3390 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3391 that's true only with -std. */
d9898ee8 3392int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3393
dd184caf 3394/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3395 inside strings and character constants. */
3396#define FOO(x) 'x'
3397int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3398
d9898ee8 3399int test (int i, double x);
3400struct s1 {int (*f) (int a);};
3401struct s2 {int (*f) (double a);};
3402int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3403int argc;
3404char **argv;
3405int
3406main ()
3407{
3408return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3409 ;
3410 return 0;
3411}
3412_ACEOF
dd184caf 3413for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3414 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3415do
3416 CC="$ac_save_CC $ac_arg"
3417 rm -f conftest.$ac_objext
dd184caf 3418if { (ac_try="$ac_compile"
3419case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422esac
3423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3425 ac_status=$?
3426 grep -v '^ *+' conftest.er1 >conftest.err
3427 rm -f conftest.er1
3428 cat conftest.err >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3430 (exit $ac_status); } && {
3431 test -z "$ac_c_werror_flag" ||
3432 test ! -s conftest.err
3433 } && test -s conftest.$ac_objext; then
3434 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3435else
3436 echo "$as_me: failed program was:" >&5
3437sed 's/^/| /' conftest.$ac_ext >&5
3438
dd184caf 3439
d9898ee8 3440fi
dd184caf 3441
3442rm -f core conftest.err conftest.$ac_objext
3443 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3444done
dd184caf 3445rm -f conftest.$ac_ext
d9898ee8 3446CC=$ac_save_CC
3447
3448fi
dd184caf 3449# AC_CACHE_VAL
3450case "x$ac_cv_prog_cc_c89" in
3451 x)
3452 { echo "$as_me:$LINENO: result: none needed" >&5
3453echo "${ECHO_T}none needed" >&6; } ;;
3454 xno)
3455 { echo "$as_me:$LINENO: result: unsupported" >&5
3456echo "${ECHO_T}unsupported" >&6; } ;;
d9898ee8 3457 *)
dd184caf 3458 CC="$CC $ac_cv_prog_cc_c89"
3459 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3460echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3461esac
3462
d9898ee8 3463
d9898ee8 3464ac_ext=c
3465ac_cpp='$CPP $CPPFLAGS'
3466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469DEPDIR="${am__leading_dot}deps"
3470
dd184caf 3471ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3472
3473
3474am_make=${MAKE-make}
3475cat > confinc << 'END'
3476am__doit:
3477 @echo done
3478.PHONY: am__doit
3479END
3480# If we don't find an include directive, just comment out the code.
dd184caf 3481{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3482echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
d9898ee8 3483am__include="#"
3484am__quote=
3485_am_result=none
3486# First try GNU make style include.
3487echo "include confinc" > confmf
3488# We grep out `Entering directory' and `Leaving directory'
3489# messages which can occur if `w' ends up in MAKEFLAGS.
3490# In particular we don't look at `^make:' because GNU make might
3491# be invoked under some other name (usually "gmake"), in which
3492# case it prints its new name instead of `make'.
3493if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3494 am__include=include
3495 am__quote=
3496 _am_result=GNU
3497fi
3498# Now try BSD make style include.
3499if test "$am__include" = "#"; then
3500 echo '.include "confinc"' > confmf
3501 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3502 am__include=.include
3503 am__quote="\""
3504 _am_result=BSD
3505 fi
3506fi
3507
3508
dd184caf 3509{ echo "$as_me:$LINENO: result: $_am_result" >&5
3510echo "${ECHO_T}$_am_result" >&6; }
d9898ee8 3511rm -f confinc confmf
3512
dd184caf 3513# Check whether --enable-dependency-tracking was given.
d9898ee8 3514if test "${enable_dependency_tracking+set}" = set; then
dd184caf 3515 enableval=$enable_dependency_tracking;
3516fi
d9898ee8 3517
d9898ee8 3518if test "x$enable_dependency_tracking" != xno; then
3519 am_depcomp="$ac_aux_dir/depcomp"
3520 AMDEPBACKSLASH='\'
3521fi
dd184caf 3522 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3523 AMDEP_TRUE=
3524 AMDEP_FALSE='#'
3525else
3526 AMDEP_TRUE='#'
3527 AMDEP_FALSE=
3528fi
3529
3530
3531
d9898ee8 3532depcc="$CC" am_compiler_list=
3533
dd184caf 3534{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3535echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 3536if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3538else
3539 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3540 # We make a subdir and do the tests there. Otherwise we can end up
3541 # making bogus files that we don't know about and never remove. For
3542 # instance it was reported that on HP-UX the gcc test will end up
3543 # making a dummy file named `D' -- because `-MD' means `put the output
3544 # in D'.
3545 mkdir conftest.dir
3546 # Copy depcomp to subdir because otherwise we won't find it if we're
3547 # using a relative directory.
3548 cp "$am_depcomp" conftest.dir
3549 cd conftest.dir
3550 # We will build objects and dependencies in a subdirectory because
3551 # it helps to detect inapplicable dependency modes. For instance
3552 # both Tru64's cc and ICC support -MD to output dependencies as a
3553 # side effect of compilation, but ICC will put the dependencies in
3554 # the current directory while Tru64 will put them in the object
3555 # directory.
3556 mkdir sub
3557
3558 am_cv_CC_dependencies_compiler_type=none
3559 if test "$am_compiler_list" = ""; then
3560 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3561 fi
3562 for depmode in $am_compiler_list; do
3563 # Setup a source with many dependencies, because some compilers
3564 # like to wrap large dependency lists on column 80 (with \), and
3565 # we should not choose a depcomp mode which is confused by this.
3566 #
3567 # We need to recreate these files for each test, as the compiler may
3568 # overwrite some of them when testing with obscure command lines.
3569 # This happens at least with the AIX C compiler.
3570 : > sub/conftest.c
3571 for i in 1 2 3 4 5 6; do
3572 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3573 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3574 # Solaris 8's {/usr,}/bin/sh.
3575 touch sub/conftst$i.h
3576 done
3577 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3578
3579 case $depmode in
3580 nosideeffect)
3581 # after this tag, mechanisms are not by side-effect, so they'll
3582 # only be used when explicitly requested
3583 if test "x$enable_dependency_tracking" = xyes; then
3584 continue
3585 else
3586 break
3587 fi
3588 ;;
3589 none) break ;;
3590 esac
3591 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3592 # mode. It turns out that the SunPro C++ compiler does not properly
3593 # handle `-M -o', and we need to detect this.
3594 if depmode=$depmode \
3595 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3596 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3597 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3598 >/dev/null 2>conftest.err &&
dd184caf 3599 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3600 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3601 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3602 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3603 # icc doesn't choke on unknown options, it will just issue warnings
3604 # or remarks (even with -Werror). So we grep stderr for any message
3605 # that says an option was ignored or not supported.
3606 # When given -MP, icc 7.0 and 7.1 complain thusly:
3607 # icc: Command line warning: ignoring option '-M'; no argument required
3608 # The diagnosis changed in icc 8.0:
3609 # icc: Command line remark: option '-MP' not supported
3610 if (grep 'ignoring option' conftest.err ||
3611 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3612 am_cv_CC_dependencies_compiler_type=$depmode
3613 break
3614 fi
3615 fi
3616 done
3617
3618 cd ..
3619 rm -rf conftest.dir
3620else
3621 am_cv_CC_dependencies_compiler_type=none
3622fi
3623
3624fi
dd184caf 3625{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3626echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3627CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3628
dd184caf 3629 if
d9898ee8 3630 test "x$enable_dependency_tracking" != xno \
3631 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3632 am__fastdepCC_TRUE=
3633 am__fastdepCC_FALSE='#'
3634else
3635 am__fastdepCC_TRUE='#'
3636 am__fastdepCC_FALSE=
3637fi
3638
3639
dd184caf 3640# Check whether --enable-shared was given.
d9898ee8 3641if test "${enable_shared+set}" = set; then
dd184caf 3642 enableval=$enable_shared; p=${PACKAGE-default}
d9898ee8 3643 case $enableval in
3644 yes) enable_shared=yes ;;
3645 no) enable_shared=no ;;
3646 *)
3647 enable_shared=no
3648 # Look at the argument we got. We use all the common list separators.
3649 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3650 for pkg in $enableval; do
3651 IFS="$lt_save_ifs"
3652 if test "X$pkg" = "X$p"; then
3653 enable_shared=yes
3654 fi
3655 done
3656 IFS="$lt_save_ifs"
3657 ;;
3658 esac
3659else
3660 enable_shared=yes
dd184caf 3661fi
3662
d9898ee8 3663
dd184caf 3664# Check whether --enable-static was given.
d9898ee8 3665if test "${enable_static+set}" = set; then
dd184caf 3666 enableval=$enable_static; p=${PACKAGE-default}
d9898ee8 3667 case $enableval in
3668 yes) enable_static=yes ;;
3669 no) enable_static=no ;;
3670 *)
3671 enable_static=no
3672 # Look at the argument we got. We use all the common list separators.
3673 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3674 for pkg in $enableval; do
3675 IFS="$lt_save_ifs"
3676 if test "X$pkg" = "X$p"; then
3677 enable_static=yes
3678 fi
3679 done
3680 IFS="$lt_save_ifs"
3681 ;;
3682 esac
3683else
3684 enable_static=yes
dd184caf 3685fi
3686
d9898ee8 3687
dd184caf 3688# Check whether --enable-fast-install was given.
d9898ee8 3689if test "${enable_fast_install+set}" = set; then
dd184caf 3690 enableval=$enable_fast_install; p=${PACKAGE-default}
d9898ee8 3691 case $enableval in
3692 yes) enable_fast_install=yes ;;
3693 no) enable_fast_install=no ;;
3694 *)
3695 enable_fast_install=no
3696 # Look at the argument we got. We use all the common list separators.
3697 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3698 for pkg in $enableval; do
3699 IFS="$lt_save_ifs"
3700 if test "X$pkg" = "X$p"; then
3701 enable_fast_install=yes
3702 fi
3703 done
3704 IFS="$lt_save_ifs"
3705 ;;
3706 esac
3707else
3708 enable_fast_install=yes
dd184caf 3709fi
3710
d9898ee8 3711
3712# Make sure we can run config.sub.
dd184caf 3713$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3714 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3715echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 3716 { (exit 1); exit 1; }; }
3717
dd184caf 3718{ echo "$as_me:$LINENO: checking build system type" >&5
3719echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
d9898ee8 3720if test "${ac_cv_build+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722else
dd184caf 3723 ac_build_alias=$build_alias
3724test "x$ac_build_alias" = x &&
3725 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3726test "x$ac_build_alias" = x &&
d9898ee8 3727 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3728echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3729 { (exit 1); exit 1; }; }
dd184caf 3730ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3731 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3732echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 3733 { (exit 1); exit 1; }; }
3734
3735fi
dd184caf 3736{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3737echo "${ECHO_T}$ac_cv_build" >&6; }
3738case $ac_cv_build in
3739*-*-*) ;;
3740*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3741echo "$as_me: error: invalid value of canonical build" >&2;}
3742 { (exit 1); exit 1; }; };;
3743esac
d9898ee8 3744build=$ac_cv_build
dd184caf 3745ac_save_IFS=$IFS; IFS='-'
3746set x $ac_cv_build
3747shift
3748build_cpu=$1
3749build_vendor=$2
3750shift; shift
3751# Remember, the first character of IFS is used to create $*,
3752# except with old shells:
3753build_os=$*
3754IFS=$ac_save_IFS
3755case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3756
3757
3758{ echo "$as_me:$LINENO: checking host system type" >&5
3759echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
d9898ee8 3760if test "${ac_cv_host+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3762else
dd184caf 3763 if test "x$host_alias" = x; then
3764 ac_cv_host=$ac_cv_build
3765else
3766 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3767 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3768echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 3769 { (exit 1); exit 1; }; }
dd184caf 3770fi
d9898ee8 3771
3772fi
dd184caf 3773{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3774echo "${ECHO_T}$ac_cv_host" >&6; }
3775case $ac_cv_host in
3776*-*-*) ;;
3777*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3778echo "$as_me: error: invalid value of canonical host" >&2;}
3779 { (exit 1); exit 1; }; };;
3780esac
d9898ee8 3781host=$ac_cv_host
dd184caf 3782ac_save_IFS=$IFS; IFS='-'
3783set x $ac_cv_host
3784shift
3785host_cpu=$1
3786host_vendor=$2
3787shift; shift
3788# Remember, the first character of IFS is used to create $*,
3789# except with old shells:
3790host_os=$*
3791IFS=$ac_save_IFS
3792case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3793
3794
3795{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3796echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
d9898ee8 3797if test "${lt_cv_path_SED+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799else
3800 # Loop through the user's path and test for sed and gsed.
3801# Then use that list of sed's as ones to test for truncation.
3802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803for as_dir in $PATH
3804do
3805 IFS=$as_save_IFS
3806 test -z "$as_dir" && as_dir=.
3807 for lt_ac_prog in sed gsed; do
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3810 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3811 fi
3812 done
3813 done
3814done
3815IFS=$as_save_IFS
3816lt_ac_max=0
3817lt_ac_count=0
3818# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3819# along with /bin/sed that truncates output.
3820for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3821 test ! -f $lt_ac_sed && continue
3822 cat /dev/null > conftest.in
3823 lt_ac_count=0
3824 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3825 # Check for GNU sed and select it if it is found.
3826 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3827 lt_cv_path_SED=$lt_ac_sed
3828 break
3829 fi
3830 while true; do
3831 cat conftest.in conftest.in >conftest.tmp
3832 mv conftest.tmp conftest.in
3833 cp conftest.in conftest.nl
3834 echo >>conftest.nl
3835 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3836 cmp -s conftest.out conftest.nl || break
3837 # 10000 chars as input seems more than enough
3838 test $lt_ac_count -gt 10 && break
3839 lt_ac_count=`expr $lt_ac_count + 1`
3840 if test $lt_ac_count -gt $lt_ac_max; then
3841 lt_ac_max=$lt_ac_count
3842 lt_cv_path_SED=$lt_ac_sed
3843 fi
3844 done
3845done
3846
3847fi
3848
3849SED=$lt_cv_path_SED
3850
dd184caf 3851{ echo "$as_me:$LINENO: result: $SED" >&5
3852echo "${ECHO_T}$SED" >&6; }
3853
3854{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3855echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3856if test "${ac_cv_path_GREP+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3858else
3859 # Extract the first word of "grep ggrep" to use in msg output
3860if test -z "$GREP"; then
3861set dummy grep ggrep; ac_prog_name=$2
3862if test "${ac_cv_path_GREP+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864else
3865 ac_path_GREP_found=false
3866# Loop through the user's path and test for each of PROGNAME-LIST
3867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3869do
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_prog in grep ggrep; do
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3875 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3876 # Check for GNU ac_path_GREP and select it if it is found.
3877 # Check for GNU $ac_path_GREP
3878case `"$ac_path_GREP" --version 2>&1` in
3879*GNU*)
3880 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3881*)
3882 ac_count=0
3883 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3884 while :
3885 do
3886 cat "conftest.in" "conftest.in" >"conftest.tmp"
3887 mv "conftest.tmp" "conftest.in"
3888 cp "conftest.in" "conftest.nl"
3889 echo 'GREP' >> "conftest.nl"
3890 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3892 ac_count=`expr $ac_count + 1`
3893 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3894 # Best one so far, save it but keep looking for a better one
3895 ac_cv_path_GREP="$ac_path_GREP"
3896 ac_path_GREP_max=$ac_count
3897 fi
3898 # 10*(2^10) chars as input seems more than enough
3899 test $ac_count -gt 10 && break
3900 done
3901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3902esac
3903
3904
3905 $ac_path_GREP_found && break 3
3906 done
3907done
3908
3909done
3910IFS=$as_save_IFS
3911
3912
3913fi
3914
3915GREP="$ac_cv_path_GREP"
3916if test -z "$GREP"; then
3917 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3918echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3919 { (exit 1); exit 1; }; }
3920fi
3921
3922else
3923 ac_cv_path_GREP=$GREP
3924fi
3925
d9898ee8 3926
dd184caf 3927fi
3928{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3929echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3930 GREP="$ac_cv_path_GREP"
3931
3932
3933{ echo "$as_me:$LINENO: checking for egrep" >&5
3934echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3935if test "${ac_cv_path_EGREP+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3937else
3938 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3939 then ac_cv_path_EGREP="$GREP -E"
3940 else
3941 # Extract the first word of "egrep" to use in msg output
3942if test -z "$EGREP"; then
3943set dummy egrep; ac_prog_name=$2
3944if test "${ac_cv_path_EGREP+set}" = set; then
d9898ee8 3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946else
dd184caf 3947 ac_path_EGREP_found=false
3948# Loop through the user's path and test for each of PROGNAME-LIST
3949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3951do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_prog in egrep; do
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3957 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3958 # Check for GNU ac_path_EGREP and select it if it is found.
3959 # Check for GNU $ac_path_EGREP
3960case `"$ac_path_EGREP" --version 2>&1` in
3961*GNU*)
3962 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3963*)
3964 ac_count=0
3965 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3966 while :
3967 do
3968 cat "conftest.in" "conftest.in" >"conftest.tmp"
3969 mv "conftest.tmp" "conftest.in"
3970 cp "conftest.in" "conftest.nl"
3971 echo 'EGREP' >> "conftest.nl"
3972 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3974 ac_count=`expr $ac_count + 1`
3975 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3976 # Best one so far, save it but keep looking for a better one
3977 ac_cv_path_EGREP="$ac_path_EGREP"
3978 ac_path_EGREP_max=$ac_count
d9898ee8 3979 fi
dd184caf 3980 # 10*(2^10) chars as input seems more than enough
3981 test $ac_count -gt 10 && break
3982 done
3983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3984esac
3985
3986
3987 $ac_path_EGREP_found && break 3
3988 done
3989done
3990
3991done
3992IFS=$as_save_IFS
3993
3994
3995fi
3996
3997EGREP="$ac_cv_path_EGREP"
3998if test -z "$EGREP"; then
3999 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4000echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4001 { (exit 1); exit 1; }; }
4002fi
4003
4004else
4005 ac_cv_path_EGREP=$EGREP
4006fi
4007
4008
4009 fi
d9898ee8 4010fi
dd184caf 4011{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4012echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4013 EGREP="$ac_cv_path_EGREP"
d9898ee8 4014
4015
4016
dd184caf 4017# Check whether --with-gnu-ld was given.
d9898ee8 4018if test "${with_gnu_ld+set}" = set; then
dd184caf 4019 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4020else
4021 with_gnu_ld=no
dd184caf 4022fi
4023
d9898ee8 4024ac_prog=ld
4025if test "$GCC" = yes; then
4026 # Check if gcc -print-prog-name=ld gives a path.
dd184caf 4027 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4028echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 4029 case $host in
4030 *-*-mingw*)
4031 # gcc leaves a trailing carriage return which upsets mingw
4032 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4033 *)
4034 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4035 esac
4036 case $ac_prog in
4037 # Accept absolute paths.
4038 [\\/]* | ?:[\\/]*)
4039 re_direlt='/[^/][^/]*/\.\./'
4040 # Canonicalize the pathname of ld
4041 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4042 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4043 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4044 done
4045 test -z "$LD" && LD="$ac_prog"
4046 ;;
4047 "")
4048 # If it fails, then pretend we aren't using GCC.
4049 ac_prog=ld
4050 ;;
4051 *)
4052 # If it is relative, then search for the first ld in PATH.
4053 with_gnu_ld=unknown
4054 ;;
4055 esac
4056elif test "$with_gnu_ld" = yes; then
dd184caf 4057 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4058echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 4059else
dd184caf 4060 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4061echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 4062fi
4063if test "${lt_cv_path_LD+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065else
4066 if test -z "$LD"; then
4067 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4068 for ac_dir in $PATH; do
4069 IFS="$lt_save_ifs"
4070 test -z "$ac_dir" && ac_dir=.
4071 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4072 lt_cv_path_LD="$ac_dir/$ac_prog"
4073 # Check to see if the program is GNU ld. I'd rather use --version,
4074 # but apparently some variants of GNU ld only accept -v.
4075 # Break only if it was the GNU/non-GNU ld that we prefer.
4076 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4077 *GNU* | *'with BFD'*)
4078 test "$with_gnu_ld" != no && break
4079 ;;
4080 *)
4081 test "$with_gnu_ld" != yes && break
4082 ;;
4083 esac
4084 fi
4085 done
4086 IFS="$lt_save_ifs"
4087else
4088 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4089fi
4090fi
4091
4092LD="$lt_cv_path_LD"
4093if test -n "$LD"; then
dd184caf 4094 { echo "$as_me:$LINENO: result: $LD" >&5
4095echo "${ECHO_T}$LD" >&6; }
d9898ee8 4096else
dd184caf 4097 { echo "$as_me:$LINENO: result: no" >&5
4098echo "${ECHO_T}no" >&6; }
d9898ee8 4099fi
4100test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4101echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4102 { (exit 1); exit 1; }; }
dd184caf 4103{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4104echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 4105if test "${lt_cv_prog_gnu_ld+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4107else
4108 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4109case `$LD -v 2>&1 </dev/null` in
4110*GNU* | *'with BFD'*)
4111 lt_cv_prog_gnu_ld=yes
4112 ;;
4113*)
4114 lt_cv_prog_gnu_ld=no
4115 ;;
4116esac
4117fi
dd184caf 4118{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4119echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4120with_gnu_ld=$lt_cv_prog_gnu_ld
4121
4122
dd184caf 4123{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4124echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d9898ee8 4125if test "${lt_cv_ld_reload_flag+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128 lt_cv_ld_reload_flag='-r'
4129fi
dd184caf 4130{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4131echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
d9898ee8 4132reload_flag=$lt_cv_ld_reload_flag
4133case $reload_flag in
4134"" | " "*) ;;
4135*) reload_flag=" $reload_flag" ;;
4136esac
4137reload_cmds='$LD$reload_flag -o $output$reload_objs'
4138case $host_os in
4139 darwin*)
4140 if test "$GCC" = yes; then
4141 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4142 else
4143 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4144 fi
4145 ;;
4146esac
4147
dd184caf 4148{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4149echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
d9898ee8 4150if test "${lt_cv_path_NM+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152else
4153 if test -n "$NM"; then
4154 # Let the user override the test.
4155 lt_cv_path_NM="$NM"
4156else
4157 lt_nm_to_check="${ac_tool_prefix}nm"
4158 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4159 lt_nm_to_check="$lt_nm_to_check nm"
4160 fi
4161 for lt_tmp_nm in $lt_nm_to_check; do
4162 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4163 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4164 IFS="$lt_save_ifs"
4165 test -z "$ac_dir" && ac_dir=.
4166 tmp_nm="$ac_dir/$lt_tmp_nm"
4167 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4168 # Check to see if the nm accepts a BSD-compat flag.
4169 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4170 # nm: unknown option "B" ignored
4171 # Tru64's nm complains that /dev/null is an invalid object file
4172 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4173 */dev/null* | *'Invalid file or object type'*)
4174 lt_cv_path_NM="$tmp_nm -B"
4175 break
4176 ;;
4177 *)
4178 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4179 */dev/null*)
4180 lt_cv_path_NM="$tmp_nm -p"
4181 break
4182 ;;
4183 *)
4184 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4185 continue # so that we can try to find one that supports BSD flags
4186 ;;
4187 esac
4188 ;;
4189 esac
4190 fi
4191 done
4192 IFS="$lt_save_ifs"
4193 done
4194 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4195fi
4196fi
dd184caf 4197{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4198echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d9898ee8 4199NM="$lt_cv_path_NM"
4200
dd184caf 4201{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4202echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
d9898ee8 4203if test "${lt_cv_deplibs_check_method+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4205else
4206 lt_cv_file_magic_cmd='$MAGIC_CMD'
4207lt_cv_file_magic_test_file=
4208lt_cv_deplibs_check_method='unknown'
4209# Need to set the preceding variable on all platforms that support
4210# interlibrary dependencies.
4211# 'none' -- dependencies not supported.
4212# `unknown' -- same as none, but documents that we really don't know.
4213# 'pass_all' -- all dependencies passed with no checks.
4214# 'test_compile' -- check by making test program.
4215# 'file_magic [[regex]]' -- check by looking for files in library path
4216# which responds to the $file_magic_cmd with a given extended regex.
4217# If you have `file' or equivalent on your system and you're not sure
4218# whether `pass_all' will *always* work, you probably want this one.
4219
4220case $host_os in
4221aix4* | aix5*)
4222 lt_cv_deplibs_check_method=pass_all
4223 ;;
4224
4225beos*)
4226 lt_cv_deplibs_check_method=pass_all
4227 ;;
4228
4229bsdi[45]*)
4230 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4231 lt_cv_file_magic_cmd='/usr/bin/file -L'
4232 lt_cv_file_magic_test_file=/shlib/libc.so
4233 ;;
4234
4235cygwin*)
4236 # func_win32_libid is a shell function defined in ltmain.sh
4237 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4238 lt_cv_file_magic_cmd='func_win32_libid'
4239 ;;
4240
4241mingw* | pw32*)
4242 # Base MSYS/MinGW do not provide the 'file' command needed by
4243 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4244 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4245 lt_cv_file_magic_cmd='$OBJDUMP -f'
4246 ;;
4247
4248darwin* | rhapsody*)
4249 lt_cv_deplibs_check_method=pass_all
4250 ;;
4251
4252freebsd* | kfreebsd*-gnu | dragonfly*)
4253 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4254 case $host_cpu in
4255 i*86 )
4256 # Not sure whether the presence of OpenBSD here was a mistake.
4257 # Let's accept both of them until this is cleared up.
4258 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4259 lt_cv_file_magic_cmd=/usr/bin/file
4260 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4261 ;;
4262 esac
4263 else
4264 lt_cv_deplibs_check_method=pass_all
4265 fi
4266 ;;
4267
4268gnu*)
4269 lt_cv_deplibs_check_method=pass_all
4270 ;;
4271
4272hpux10.20* | hpux11*)
4273 lt_cv_file_magic_cmd=/usr/bin/file
4274 case $host_cpu in
4275 ia64*)
4276 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4277 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4278 ;;
4279 hppa*64*)
4280 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]'
4281 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4282 ;;
4283 *)
4284 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4285 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4286 ;;
4287 esac
4288 ;;
4289
4290interix3*)
4291 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4293 ;;
4294
4295irix5* | irix6* | nonstopux*)
4296 case $LD in
4297 *-32|*"-32 ") libmagic=32-bit;;
4298 *-n32|*"-n32 ") libmagic=N32;;
4299 *-64|*"-64 ") libmagic=64-bit;;
4300 *) libmagic=never-match;;
4301 esac
4302 lt_cv_deplibs_check_method=pass_all
4303 ;;
4304
4305# This must be Linux ELF.
4306linux*)
4307 lt_cv_deplibs_check_method=pass_all
4308 ;;
4309
4310netbsd*)
4311 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4313 else
4314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4315 fi
4316 ;;
4317
4318newos6*)
4319 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4320 lt_cv_file_magic_cmd=/usr/bin/file
4321 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4322 ;;
4323
4324nto-qnx*)
4325 lt_cv_deplibs_check_method=unknown
4326 ;;
4327
4328openbsd*)
4329 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4331 else
4332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4333 fi
4334 ;;
4335
4336osf3* | osf4* | osf5*)
4337 lt_cv_deplibs_check_method=pass_all
4338 ;;
4339
4340solaris*)
4341 lt_cv_deplibs_check_method=pass_all
4342 ;;
4343
4344sysv4 | sysv4.3*)
4345 case $host_vendor in
4346 motorola)
4347 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]'
4348 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4349 ;;
4350 ncr)
4351 lt_cv_deplibs_check_method=pass_all
4352 ;;
4353 sequent)
4354 lt_cv_file_magic_cmd='/bin/file'
4355 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4356 ;;
4357 sni)
4358 lt_cv_file_magic_cmd='/bin/file'
4359 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4360 lt_cv_file_magic_test_file=/lib/libc.so
4361 ;;
4362 siemens)
4363 lt_cv_deplibs_check_method=pass_all
4364 ;;
4365 pc)
4366 lt_cv_deplibs_check_method=pass_all
4367 ;;
4368 esac
4369 ;;
4370
4371sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4372 lt_cv_deplibs_check_method=pass_all
4373 ;;
4374esac
4375
4376fi
dd184caf 4377{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4378echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
d9898ee8 4379file_magic_cmd=$lt_cv_file_magic_cmd
4380deplibs_check_method=$lt_cv_deplibs_check_method
4381test -z "$deplibs_check_method" && deplibs_check_method=unknown
4382
4383
4384
4385
4386# If no C compiler was specified, use CC.
4387LTCC=${LTCC-"$CC"}
4388
4389# If no C compiler flags were specified, use CFLAGS.
4390LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4391
4392# Allow CC to be a program name with arguments.
4393compiler=$CC
4394
4395
dd184caf 4396# Check whether --enable-libtool-lock was given.
d9898ee8 4397if test "${enable_libtool_lock+set}" = set; then
dd184caf 4398 enableval=$enable_libtool_lock;
4399fi
d9898ee8 4400
d9898ee8 4401test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4402
4403# Some flags need to be propagated to the compiler or linker for good
4404# libtool support.
4405case $host in
4406ia64-*-hpux*)
4407 # Find out which ABI we are using.
4408 echo 'int i;' > conftest.$ac_ext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4410 (eval $ac_compile) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; then
4414 case `/usr/bin/file conftest.$ac_objext` in
4415 *ELF-32*)
4416 HPUX_IA64_MODE="32"
4417 ;;
4418 *ELF-64*)
4419 HPUX_IA64_MODE="64"
4420 ;;
4421 esac
4422 fi
4423 rm -rf conftest*
4424 ;;
4425*-*-irix6*)
4426 # Find out which ABI we are using.
dd184caf 4427 echo '#line 4427 "configure"' > conftest.$ac_ext
d9898ee8 4428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429 (eval $ac_compile) 2>&5
4430 ac_status=$?
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; then
4433 if test "$lt_cv_prog_gnu_ld" = yes; then
4434 case `/usr/bin/file conftest.$ac_objext` in
4435 *32-bit*)
4436 LD="${LD-ld} -melf32bsmip"
4437 ;;
4438 *N32*)
4439 LD="${LD-ld} -melf32bmipn32"
4440 ;;
4441 *64-bit*)
4442 LD="${LD-ld} -melf64bmip"
4443 ;;
4444 esac
4445 else
4446 case `/usr/bin/file conftest.$ac_objext` in
4447 *32-bit*)
4448 LD="${LD-ld} -32"
4449 ;;
4450 *N32*)
4451 LD="${LD-ld} -n32"
4452 ;;
4453 *64-bit*)
4454 LD="${LD-ld} -64"
4455 ;;
4456 esac
4457 fi
4458 fi
4459 rm -rf conftest*
4460 ;;
4461
4462x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4463 # Find out which ABI we are using.
4464 echo 'int i;' > conftest.$ac_ext
4465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4466 (eval $ac_compile) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; then
4470 case `/usr/bin/file conftest.o` in
4471 *32-bit*)
4472 case $host in
4473 x86_64-*linux*)
4474 LD="${LD-ld} -m elf_i386"
4475 ;;
4476 ppc64-*linux*|powerpc64-*linux*)
4477 LD="${LD-ld} -m elf32ppclinux"
4478 ;;
4479 s390x-*linux*)
4480 LD="${LD-ld} -m elf_s390"
4481 ;;
4482 sparc64-*linux*)
4483 LD="${LD-ld} -m elf32_sparc"
4484 ;;
4485 esac
4486 ;;
4487 *64-bit*)
4488 case $host in
4489 x86_64-*linux*)
4490 LD="${LD-ld} -m elf_x86_64"
4491 ;;
4492 ppc*-*linux*|powerpc*-*linux*)
4493 LD="${LD-ld} -m elf64ppc"
4494 ;;
4495 s390*-*linux*)
4496 LD="${LD-ld} -m elf64_s390"
4497 ;;
4498 sparc*-*linux*)
4499 LD="${LD-ld} -m elf64_sparc"
4500 ;;
4501 esac
4502 ;;
4503 esac
4504 fi
4505 rm -rf conftest*
4506 ;;
4507
4508*-*-sco3.2v5*)
4509 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4510 SAVE_CFLAGS="$CFLAGS"
4511 CFLAGS="$CFLAGS -belf"
dd184caf 4512 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4513echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d9898ee8 4514if test "${lt_cv_cc_needs_belf+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516else
4517 ac_ext=c
4518ac_cpp='$CPP $CPPFLAGS'
4519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522
4523 cat >conftest.$ac_ext <<_ACEOF
4524/* confdefs.h. */
4525_ACEOF
4526cat confdefs.h >>conftest.$ac_ext
4527cat >>conftest.$ac_ext <<_ACEOF
4528/* end confdefs.h. */
4529
4530int
4531main ()
4532{
4533
4534 ;
4535 return 0;
4536}
4537_ACEOF
4538rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 4539if { (ac_try="$ac_link"
4540case "(($ac_try" in
4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542 *) ac_try_echo=$ac_try;;
4543esac
4544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4545 (eval "$ac_link") 2>conftest.er1
d9898ee8 4546 ac_status=$?
4547 grep -v '^ *+' conftest.er1 >conftest.err
4548 rm -f conftest.er1
4549 cat conftest.err >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4551 (exit $ac_status); } && {
4552 test -z "$ac_c_werror_flag" ||
4553 test ! -s conftest.err
4554 } && test -s conftest$ac_exeext &&
4555 $as_test_x conftest$ac_exeext; then
d9898ee8 4556 lt_cv_cc_needs_belf=yes
4557else
4558 echo "$as_me: failed program was:" >&5
4559sed 's/^/| /' conftest.$ac_ext >&5
4560
dd184caf 4561 lt_cv_cc_needs_belf=no
d9898ee8 4562fi
dd184caf 4563
4564rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 4565 conftest$ac_exeext conftest.$ac_ext
4566 ac_ext=c
4567ac_cpp='$CPP $CPPFLAGS'
4568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4570ac_compiler_gnu=$ac_cv_c_compiler_gnu
4571
4572fi
dd184caf 4573{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4574echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
d9898ee8 4575 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4576 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4577 CFLAGS="$SAVE_CFLAGS"
4578 fi
4579 ;;
4580sparc*-*solaris*)
4581 # Find out which ABI we are using.
4582 echo 'int i;' > conftest.$ac_ext
4583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; then
4588 case `/usr/bin/file conftest.o` in
4589 *64-bit*)
4590 case $lt_cv_prog_gnu_ld in
4591 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4592 *) LD="${LD-ld} -64" ;;
4593 esac
4594 ;;
4595 esac
4596 fi
4597 rm -rf conftest*
4598 ;;
4599
4600
4601esac
4602
4603need_locks="$enable_libtool_lock"
4604
4605
4606ac_ext=c
4607ac_cpp='$CPP $CPPFLAGS'
4608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610ac_compiler_gnu=$ac_cv_c_compiler_gnu
dd184caf 4611{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4612echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d9898ee8 4613# On Suns, sometimes $CPP names a directory.
4614if test -n "$CPP" && test -d "$CPP"; then
4615 CPP=
4616fi
4617if test -z "$CPP"; then
4618 if test "${ac_cv_prog_CPP+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4620else
4621 # Double quotes because CPP needs to be expanded
4622 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4623 do
4624 ac_preproc_ok=false
4625for ac_c_preproc_warn_flag in '' yes
4626do
4627 # Use a header file that comes with gcc, so configuring glibc
4628 # with a fresh cross-compiler works.
4629 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4630 # <limits.h> exists even on freestanding compilers.
4631 # On the NeXT, cc -E runs the code through the compiler's parser,
4632 # not just through cpp. "Syntax error" is here to catch this case.
4633 cat >conftest.$ac_ext <<_ACEOF
4634/* confdefs.h. */
4635_ACEOF
4636cat confdefs.h >>conftest.$ac_ext
4637cat >>conftest.$ac_ext <<_ACEOF
4638/* end confdefs.h. */
4639#ifdef __STDC__
4640# include <limits.h>
4641#else
4642# include <assert.h>
4643#endif
4644 Syntax error
4645_ACEOF
dd184caf 4646if { (ac_try="$ac_cpp conftest.$ac_ext"
4647case "(($ac_try" in
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4650esac
4651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4653 ac_status=$?
4654 grep -v '^ *+' conftest.er1 >conftest.err
4655 rm -f conftest.er1
4656 cat conftest.err >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4658 (exit $ac_status); } >/dev/null && {
4659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4660 test ! -s conftest.err
4661 }; then
d9898ee8 4662 :
4663else
4664 echo "$as_me: failed program was:" >&5
4665sed 's/^/| /' conftest.$ac_ext >&5
4666
4667 # Broken: fails on valid input.
4668continue
4669fi
dd184caf 4670
d9898ee8 4671rm -f conftest.err conftest.$ac_ext
4672
dd184caf 4673 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4674 # can be detected and how.
4675 cat >conftest.$ac_ext <<_ACEOF
4676/* confdefs.h. */
4677_ACEOF
4678cat confdefs.h >>conftest.$ac_ext
4679cat >>conftest.$ac_ext <<_ACEOF
4680/* end confdefs.h. */
4681#include <ac_nonexistent.h>
4682_ACEOF
dd184caf 4683if { (ac_try="$ac_cpp conftest.$ac_ext"
4684case "(($ac_try" in
4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4687esac
4688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4690 ac_status=$?
4691 grep -v '^ *+' conftest.er1 >conftest.err
4692 rm -f conftest.er1
4693 cat conftest.err >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4695 (exit $ac_status); } >/dev/null && {
4696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4697 test ! -s conftest.err
4698 }; then
d9898ee8 4699 # Broken: success on invalid input.
4700continue
4701else
4702 echo "$as_me: failed program was:" >&5
4703sed 's/^/| /' conftest.$ac_ext >&5
4704
4705 # Passes both tests.
4706ac_preproc_ok=:
4707break
4708fi
dd184caf 4709
d9898ee8 4710rm -f conftest.err conftest.$ac_ext
4711
4712done
4713# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4714rm -f conftest.err conftest.$ac_ext
4715if $ac_preproc_ok; then
4716 break
4717fi
4718
4719 done
4720 ac_cv_prog_CPP=$CPP
4721
4722fi
4723 CPP=$ac_cv_prog_CPP
4724else
4725 ac_cv_prog_CPP=$CPP
4726fi
dd184caf 4727{ echo "$as_me:$LINENO: result: $CPP" >&5
4728echo "${ECHO_T}$CPP" >&6; }
d9898ee8 4729ac_preproc_ok=false
4730for ac_c_preproc_warn_flag in '' yes
4731do
4732 # Use a header file that comes with gcc, so configuring glibc
4733 # with a fresh cross-compiler works.
4734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4735 # <limits.h> exists even on freestanding compilers.
4736 # On the NeXT, cc -E runs the code through the compiler's parser,
4737 # not just through cpp. "Syntax error" is here to catch this case.
4738 cat >conftest.$ac_ext <<_ACEOF
4739/* confdefs.h. */
4740_ACEOF
4741cat confdefs.h >>conftest.$ac_ext
4742cat >>conftest.$ac_ext <<_ACEOF
4743/* end confdefs.h. */
4744#ifdef __STDC__
4745# include <limits.h>
4746#else
4747# include <assert.h>
4748#endif
4749 Syntax error
4750_ACEOF
dd184caf 4751if { (ac_try="$ac_cpp conftest.$ac_ext"
4752case "(($ac_try" in
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4755esac
4756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4758 ac_status=$?
4759 grep -v '^ *+' conftest.er1 >conftest.err
4760 rm -f conftest.er1
4761 cat conftest.err >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4763 (exit $ac_status); } >/dev/null && {
4764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4766 }; then
d9898ee8 4767 :
4768else
4769 echo "$as_me: failed program was:" >&5
4770sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 # Broken: fails on valid input.
4773continue
4774fi
dd184caf 4775
d9898ee8 4776rm -f conftest.err conftest.$ac_ext
4777
dd184caf 4778 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4779 # can be detected and how.
4780 cat >conftest.$ac_ext <<_ACEOF
4781/* confdefs.h. */
4782_ACEOF
4783cat confdefs.h >>conftest.$ac_ext
4784cat >>conftest.$ac_ext <<_ACEOF
4785/* end confdefs.h. */
4786#include <ac_nonexistent.h>
4787_ACEOF
dd184caf 4788if { (ac_try="$ac_cpp conftest.$ac_ext"
4789case "(($ac_try" in
4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4792esac
4793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4800 (exit $ac_status); } >/dev/null && {
4801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4802 test ! -s conftest.err
4803 }; then
d9898ee8 4804 # Broken: success on invalid input.
4805continue
4806else
4807 echo "$as_me: failed program was:" >&5
4808sed 's/^/| /' conftest.$ac_ext >&5
4809
4810 # Passes both tests.
4811ac_preproc_ok=:
4812break
4813fi
dd184caf 4814
d9898ee8 4815rm -f conftest.err conftest.$ac_ext
4816
4817done
4818# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4819rm -f conftest.err conftest.$ac_ext
4820if $ac_preproc_ok; then
4821 :
4822else
4823 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4824See \`config.log' for more details." >&5
4825echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4826See \`config.log' for more details." >&2;}
4827 { (exit 1); exit 1; }; }
4828fi
4829
4830ac_ext=c
4831ac_cpp='$CPP $CPPFLAGS'
4832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834ac_compiler_gnu=$ac_cv_c_compiler_gnu
4835
4836
dd184caf 4837{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4838echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 4839if test "${ac_cv_header_stdc+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4841else
4842 cat >conftest.$ac_ext <<_ACEOF
4843/* confdefs.h. */
4844_ACEOF
4845cat confdefs.h >>conftest.$ac_ext
4846cat >>conftest.$ac_ext <<_ACEOF
4847/* end confdefs.h. */
4848#include <stdlib.h>
4849#include <stdarg.h>
4850#include <string.h>
4851#include <float.h>
4852
4853int
4854main ()
4855{
4856
4857 ;
4858 return 0;
4859}
4860_ACEOF
4861rm -f conftest.$ac_objext
dd184caf 4862if { (ac_try="$ac_compile"
4863case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866esac
4867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4874 (exit $ac_status); } && {
4875 test -z "$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4877 } && test -s conftest.$ac_objext; then
d9898ee8 4878 ac_cv_header_stdc=yes
4879else
4880 echo "$as_me: failed program was:" >&5
4881sed 's/^/| /' conftest.$ac_ext >&5
4882
dd184caf 4883 ac_cv_header_stdc=no
d9898ee8 4884fi
dd184caf 4885
4886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4887
4888if test $ac_cv_header_stdc = yes; then
4889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4890 cat >conftest.$ac_ext <<_ACEOF
4891/* confdefs.h. */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h. */
4896#include <string.h>
4897
4898_ACEOF
4899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4900 $EGREP "memchr" >/dev/null 2>&1; then
4901 :
4902else
4903 ac_cv_header_stdc=no
4904fi
4905rm -f conftest*
4906
4907fi
4908
4909if test $ac_cv_header_stdc = yes; then
4910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4911 cat >conftest.$ac_ext <<_ACEOF
4912/* confdefs.h. */
4913_ACEOF
4914cat confdefs.h >>conftest.$ac_ext
4915cat >>conftest.$ac_ext <<_ACEOF
4916/* end confdefs.h. */
4917#include <stdlib.h>
4918
4919_ACEOF
4920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4921 $EGREP "free" >/dev/null 2>&1; then
4922 :
4923else
4924 ac_cv_header_stdc=no
4925fi
4926rm -f conftest*
4927
4928fi
4929
4930if test $ac_cv_header_stdc = yes; then
4931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4932 if test "$cross_compiling" = yes; then
4933 :
4934else
4935 cat >conftest.$ac_ext <<_ACEOF
4936/* confdefs.h. */
4937_ACEOF
4938cat confdefs.h >>conftest.$ac_ext
4939cat >>conftest.$ac_ext <<_ACEOF
4940/* end confdefs.h. */
4941#include <ctype.h>
dd184caf 4942#include <stdlib.h>
d9898ee8 4943#if ((' ' & 0x0FF) == 0x020)
4944# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4945# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4946#else
4947# define ISLOWER(c) \
4948 (('a' <= (c) && (c) <= 'i') \
4949 || ('j' <= (c) && (c) <= 'r') \
4950 || ('s' <= (c) && (c) <= 'z'))
4951# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4952#endif
4953
4954#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4955int
4956main ()
4957{
4958 int i;
4959 for (i = 0; i < 256; i++)
4960 if (XOR (islower (i), ISLOWER (i))
4961 || toupper (i) != TOUPPER (i))
dd184caf 4962 return 2;
4963 return 0;
d9898ee8 4964}
4965_ACEOF
4966rm -f conftest$ac_exeext
dd184caf 4967if { (ac_try="$ac_link"
4968case "(($ac_try" in
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4971esac
4972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_link") 2>&5
d9898ee8 4974 ac_status=$?
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 4977 { (case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980esac
4981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982 (eval "$ac_try") 2>&5
d9898ee8 4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 :
4987else
4988 echo "$as_me: program exited with status $ac_status" >&5
4989echo "$as_me: failed program was:" >&5
4990sed 's/^/| /' conftest.$ac_ext >&5
4991
4992( exit $ac_status )
4993ac_cv_header_stdc=no
4994fi
dd184caf 4995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 4996fi
dd184caf 4997
4998
d9898ee8 4999fi
5000fi
dd184caf 5001{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5002echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 5003if test $ac_cv_header_stdc = yes; then
5004
5005cat >>confdefs.h <<\_ACEOF
5006#define STDC_HEADERS 1
5007_ACEOF
5008
5009fi
5010
5011# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5022 inttypes.h stdint.h unistd.h
5023do
5024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 5025{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029else
5030 cat >conftest.$ac_ext <<_ACEOF
5031/* confdefs.h. */
5032_ACEOF
5033cat confdefs.h >>conftest.$ac_ext
5034cat >>conftest.$ac_ext <<_ACEOF
5035/* end confdefs.h. */
5036$ac_includes_default
5037
5038#include <$ac_header>
5039_ACEOF
5040rm -f conftest.$ac_objext
dd184caf 5041if { (ac_try="$ac_compile"
5042case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045esac
5046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5048 ac_status=$?
5049 grep -v '^ *+' conftest.er1 >conftest.err
5050 rm -f conftest.er1
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5053 (exit $ac_status); } && {
5054 test -z "$ac_c_werror_flag" ||
5055 test ! -s conftest.err
5056 } && test -s conftest.$ac_objext; then
d9898ee8 5057 eval "$as_ac_Header=yes"
5058else
5059 echo "$as_me: failed program was:" >&5
5060sed 's/^/| /' conftest.$ac_ext >&5
5061
dd184caf 5062 eval "$as_ac_Header=no"
d9898ee8 5063fi
dd184caf 5064
5065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5066fi
dd184caf 5067ac_res=`eval echo '${'$as_ac_Header'}'`
5068 { echo "$as_me:$LINENO: result: $ac_res" >&5
5069echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5070if test `eval echo '${'$as_ac_Header'}'` = yes; then
5071 cat >>confdefs.h <<_ACEOF
5072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5073_ACEOF
5074
5075fi
5076
5077done
5078
5079
5080
5081for ac_header in dlfcn.h
5082do
5083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 5084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5087if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5089fi
dd184caf 5090ac_res=`eval echo '${'$as_ac_Header'}'`
5091 { echo "$as_me:$LINENO: result: $ac_res" >&5
5092echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5093else
5094 # Is the header compilable?
dd184caf 5095{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5096echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 5097cat >conftest.$ac_ext <<_ACEOF
5098/* confdefs.h. */
5099_ACEOF
5100cat confdefs.h >>conftest.$ac_ext
5101cat >>conftest.$ac_ext <<_ACEOF
5102/* end confdefs.h. */
5103$ac_includes_default
5104#include <$ac_header>
5105_ACEOF
5106rm -f conftest.$ac_objext
dd184caf 5107if { (ac_try="$ac_compile"
5108case "(($ac_try" in
5109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5110 *) ac_try_echo=$ac_try;;
5111esac
5112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5113 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5114 ac_status=$?
5115 grep -v '^ *+' conftest.er1 >conftest.err
5116 rm -f conftest.er1
5117 cat conftest.err >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5119 (exit $ac_status); } && {
5120 test -z "$ac_c_werror_flag" ||
5121 test ! -s conftest.err
5122 } && test -s conftest.$ac_objext; then
d9898ee8 5123 ac_header_compiler=yes
5124else
5125 echo "$as_me: failed program was:" >&5
5126sed 's/^/| /' conftest.$ac_ext >&5
5127
dd184caf 5128 ac_header_compiler=no
d9898ee8 5129fi
dd184caf 5130
5131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5133echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 5134
5135# Is the header present?
dd184caf 5136{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5137echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 5138cat >conftest.$ac_ext <<_ACEOF
5139/* confdefs.h. */
5140_ACEOF
5141cat confdefs.h >>conftest.$ac_ext
5142cat >>conftest.$ac_ext <<_ACEOF
5143/* end confdefs.h. */
5144#include <$ac_header>
5145_ACEOF
dd184caf 5146if { (ac_try="$ac_cpp conftest.$ac_ext"
5147case "(($ac_try" in
5148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149 *) ac_try_echo=$ac_try;;
5150esac
5151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5153 ac_status=$?
5154 grep -v '^ *+' conftest.er1 >conftest.err
5155 rm -f conftest.er1
5156 cat conftest.err >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5158 (exit $ac_status); } >/dev/null && {
5159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5160 test ! -s conftest.err
5161 }; then
d9898ee8 5162 ac_header_preproc=yes
5163else
5164 echo "$as_me: failed program was:" >&5
5165sed 's/^/| /' conftest.$ac_ext >&5
5166
5167 ac_header_preproc=no
5168fi
dd184caf 5169
d9898ee8 5170rm -f conftest.err conftest.$ac_ext
dd184caf 5171{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5172echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 5173
5174# So? What about this header?
5175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5176 yes:no: )
5177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5178echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5180echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5181 ac_header_preproc=yes
5182 ;;
5183 no:yes:* )
5184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5185echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5187echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5189echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5191echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5193echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5195echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dd184caf 5196 ( cat <<\_ASBOX
d9898ee8 5197## -------------------------------------------------- ##
5198## Report this to courier-users@lists.sourceforge.net ##
5199## -------------------------------------------------- ##
5200_ASBOX
dd184caf 5201 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 5202 ;;
5203esac
dd184caf 5204{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5206if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5208else
5209 eval "$as_ac_Header=\$ac_header_preproc"
5210fi
dd184caf 5211ac_res=`eval echo '${'$as_ac_Header'}'`
5212 { echo "$as_me:$LINENO: result: $ac_res" >&5
5213echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5214
5215fi
5216if test `eval echo '${'$as_ac_Header'}'` = yes; then
5217 cat >>confdefs.h <<_ACEOF
5218#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5219_ACEOF
5220
5221fi
5222
5223done
5224
dd184caf 5225ac_ext=cpp
d9898ee8 5226ac_cpp='$CXXCPP $CPPFLAGS'
5227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
dd184caf 5230if test -z "$CXX"; then
5231 if test -n "$CCC"; then
5232 CXX=$CCC
5233 else
5234 if test -n "$ac_tool_prefix"; then
5235 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5236 do
5237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5238set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 5239{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5241if test "${ac_cv_prog_CXX+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5243else
5244 if test -n "$CXX"; then
5245 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5246else
5247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248for as_dir in $PATH
5249do
5250 IFS=$as_save_IFS
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5254 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 break 2
5257 fi
5258done
5259done
dd184caf 5260IFS=$as_save_IFS
d9898ee8 5261
5262fi
5263fi
5264CXX=$ac_cv_prog_CXX
5265if test -n "$CXX"; then
dd184caf 5266 { echo "$as_me:$LINENO: result: $CXX" >&5
5267echo "${ECHO_T}$CXX" >&6; }
d9898ee8 5268else
dd184caf 5269 { echo "$as_me:$LINENO: result: no" >&5
5270echo "${ECHO_T}no" >&6; }
d9898ee8 5271fi
5272
dd184caf 5273
d9898ee8 5274 test -n "$CXX" && break
5275 done
5276fi
5277if test -z "$CXX"; then
5278 ac_ct_CXX=$CXX
dd184caf 5279 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5280do
5281 # Extract the first word of "$ac_prog", so it can be a program name with args.
5282set dummy $ac_prog; ac_word=$2
dd184caf 5283{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5285if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5287else
5288 if test -n "$ac_ct_CXX"; then
5289 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5290else
5291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292for as_dir in $PATH
5293do
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5298 ac_cv_prog_ac_ct_CXX="$ac_prog"
5299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 break 2
5301 fi
5302done
5303done
dd184caf 5304IFS=$as_save_IFS
d9898ee8 5305
5306fi
5307fi
5308ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5309if test -n "$ac_ct_CXX"; then
dd184caf 5310 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5311echo "${ECHO_T}$ac_ct_CXX" >&6; }
d9898ee8 5312else
dd184caf 5313 { echo "$as_me:$LINENO: result: no" >&5
5314echo "${ECHO_T}no" >&6; }
d9898ee8 5315fi
5316
dd184caf 5317
d9898ee8 5318 test -n "$ac_ct_CXX" && break
5319done
d9898ee8 5320
dd184caf 5321 if test "x$ac_ct_CXX" = x; then
5322 CXX="g++"
5323 else
5324 case $cross_compiling:$ac_tool_warned in
5325yes:)
5326{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5327whose name does not start with the host triplet. If you think this
5328configuration is useful to you, please write to autoconf@gnu.org." >&5
5329echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5330whose name does not start with the host triplet. If you think this
5331configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5332ac_tool_warned=yes ;;
5333esac
5334 CXX=$ac_ct_CXX
5335 fi
d9898ee8 5336fi
5337
dd184caf 5338 fi
5339fi
d9898ee8 5340# Provide some information about the compiler.
dd184caf 5341echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d9898ee8 5342ac_compiler=`set X $ac_compile; echo $2`
dd184caf 5343{ (ac_try="$ac_compiler --version >&5"
5344case "(($ac_try" in
5345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5347esac
5348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }
dd184caf 5353{ (ac_try="$ac_compiler -v >&5"
5354case "(($ac_try" in
5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356 *) ac_try_echo=$ac_try;;
5357esac
5358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 5360 ac_status=$?
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }
dd184caf 5363{ (ac_try="$ac_compiler -V >&5"
5364case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5367esac
5368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }
5373
dd184caf 5374{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5375echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d9898ee8 5376if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5378else
5379 cat >conftest.$ac_ext <<_ACEOF
5380/* confdefs.h. */
5381_ACEOF
5382cat confdefs.h >>conftest.$ac_ext
5383cat >>conftest.$ac_ext <<_ACEOF
5384/* end confdefs.h. */
5385
5386int
5387main ()
5388{
5389#ifndef __GNUC__
5390 choke me
5391#endif
5392
5393 ;
5394 return 0;
5395}
5396_ACEOF
5397rm -f conftest.$ac_objext
dd184caf 5398if { (ac_try="$ac_compile"
5399case "(($ac_try" in
5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5402esac
5403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5405 ac_status=$?
5406 grep -v '^ *+' conftest.er1 >conftest.err
5407 rm -f conftest.er1
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5410 (exit $ac_status); } && {
5411 test -z "$ac_cxx_werror_flag" ||
5412 test ! -s conftest.err
5413 } && test -s conftest.$ac_objext; then
d9898ee8 5414 ac_compiler_gnu=yes
5415else
5416 echo "$as_me: failed program was:" >&5
5417sed 's/^/| /' conftest.$ac_ext >&5
5418
dd184caf 5419 ac_compiler_gnu=no
d9898ee8 5420fi
dd184caf 5421
5422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5423ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5424
5425fi
dd184caf 5426{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5427echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d9898ee8 5428GXX=`test $ac_compiler_gnu = yes && echo yes`
5429ac_test_CXXFLAGS=${CXXFLAGS+set}
5430ac_save_CXXFLAGS=$CXXFLAGS
dd184caf 5431{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5432echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d9898ee8 5433if test "${ac_cv_prog_cxx_g+set}" = set; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5435else
dd184caf 5436 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5437 ac_cxx_werror_flag=yes
5438 ac_cv_prog_cxx_g=no
5439 CXXFLAGS="-g"
5440 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5441/* confdefs.h. */
5442_ACEOF
5443cat confdefs.h >>conftest.$ac_ext
5444cat >>conftest.$ac_ext <<_ACEOF
5445/* end confdefs.h. */
5446
5447int
5448main ()
5449{
5450
5451 ;
5452 return 0;
5453}
5454_ACEOF
5455rm -f conftest.$ac_objext
dd184caf 5456if { (ac_try="$ac_compile"
5457case "(($ac_try" in
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5460esac
5461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5463 ac_status=$?
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5468 (exit $ac_status); } && {
5469 test -z "$ac_cxx_werror_flag" ||
5470 test ! -s conftest.err
5471 } && test -s conftest.$ac_objext; then
d9898ee8 5472 ac_cv_prog_cxx_g=yes
5473else
5474 echo "$as_me: failed program was:" >&5
5475sed 's/^/| /' conftest.$ac_ext >&5
5476
dd184caf 5477 CXXFLAGS=""
5478 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5479/* confdefs.h. */
5480_ACEOF
5481cat confdefs.h >>conftest.$ac_ext
5482cat >>conftest.$ac_ext <<_ACEOF
5483/* end confdefs.h. */
dd184caf 5484
d9898ee8 5485int
5486main ()
5487{
dd184caf 5488
d9898ee8 5489 ;
5490 return 0;
5491}
5492_ACEOF
5493rm -f conftest.$ac_objext
dd184caf 5494if { (ac_try="$ac_compile"
5495case "(($ac_try" in
5496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497 *) ac_try_echo=$ac_try;;
5498esac
5499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5500 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5501 ac_status=$?
5502 grep -v '^ *+' conftest.er1 >conftest.err
5503 rm -f conftest.er1
5504 cat conftest.err >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5506 (exit $ac_status); } && {
5507 test -z "$ac_cxx_werror_flag" ||
5508 test ! -s conftest.err
5509 } && test -s conftest.$ac_objext; then
d9898ee8 5510 :
5511else
5512 echo "$as_me: failed program was:" >&5
5513sed 's/^/| /' conftest.$ac_ext >&5
5514
dd184caf 5515 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5516 CXXFLAGS="-g"
5517 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5518/* confdefs.h. */
5519_ACEOF
5520cat confdefs.h >>conftest.$ac_ext
5521cat >>conftest.$ac_ext <<_ACEOF
5522/* end confdefs.h. */
dd184caf 5523
d9898ee8 5524int
5525main ()
5526{
dd184caf 5527
d9898ee8 5528 ;
5529 return 0;
5530}
5531_ACEOF
5532rm -f conftest.$ac_objext
dd184caf 5533if { (ac_try="$ac_compile"
5534case "(($ac_try" in
5535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5536 *) ac_try_echo=$ac_try;;
5537esac
5538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5539 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5540 ac_status=$?
5541 grep -v '^ *+' conftest.er1 >conftest.err
5542 rm -f conftest.er1
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5545 (exit $ac_status); } && {
5546 test -z "$ac_cxx_werror_flag" ||
5547 test ! -s conftest.err
5548 } && test -s conftest.$ac_objext; then
5549 ac_cv_prog_cxx_g=yes
d9898ee8 5550else
5551 echo "$as_me: failed program was:" >&5
5552sed 's/^/| /' conftest.$ac_ext >&5
5553
dd184caf 5554
d9898ee8 5555fi
dd184caf 5556
5557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558fi
5559
5560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5561fi
5562
dd184caf 5563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5565fi
5566{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5567echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5568if test "$ac_test_CXXFLAGS" = set; then
5569 CXXFLAGS=$ac_save_CXXFLAGS
5570elif test $ac_cv_prog_cxx_g = yes; then
5571 if test "$GXX" = yes; then
5572 CXXFLAGS="-g -O2"
5573 else
5574 CXXFLAGS="-g"
5575 fi
5576else
5577 if test "$GXX" = yes; then
5578 CXXFLAGS="-O2"
5579 else
5580 CXXFLAGS=
5581 fi
5582fi
5583ac_ext=cpp
d9898ee8 5584ac_cpp='$CXXCPP $CPPFLAGS'
5585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5588
5589depcc="$CXX" am_compiler_list=
5590
dd184caf 5591{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5592echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 5593if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5595else
5596 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5597 # We make a subdir and do the tests there. Otherwise we can end up
5598 # making bogus files that we don't know about and never remove. For
5599 # instance it was reported that on HP-UX the gcc test will end up
5600 # making a dummy file named `D' -- because `-MD' means `put the output
5601 # in D'.
5602 mkdir conftest.dir
5603 # Copy depcomp to subdir because otherwise we won't find it if we're
5604 # using a relative directory.
5605 cp "$am_depcomp" conftest.dir
5606 cd conftest.dir
5607 # We will build objects and dependencies in a subdirectory because
5608 # it helps to detect inapplicable dependency modes. For instance
5609 # both Tru64's cc and ICC support -MD to output dependencies as a
5610 # side effect of compilation, but ICC will put the dependencies in
5611 # the current directory while Tru64 will put them in the object
5612 # directory.
5613 mkdir sub
5614
5615 am_cv_CXX_dependencies_compiler_type=none
5616 if test "$am_compiler_list" = ""; then
5617 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5618 fi
5619 for depmode in $am_compiler_list; do
5620 # Setup a source with many dependencies, because some compilers
5621 # like to wrap large dependency lists on column 80 (with \), and
5622 # we should not choose a depcomp mode which is confused by this.
5623 #
5624 # We need to recreate these files for each test, as the compiler may
5625 # overwrite some of them when testing with obscure command lines.
5626 # This happens at least with the AIX C compiler.
5627 : > sub/conftest.c
5628 for i in 1 2 3 4 5 6; do
5629 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5630 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5631 # Solaris 8's {/usr,}/bin/sh.
5632 touch sub/conftst$i.h
5633 done
5634 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5635
5636 case $depmode in
5637 nosideeffect)
5638 # after this tag, mechanisms are not by side-effect, so they'll
5639 # only be used when explicitly requested
5640 if test "x$enable_dependency_tracking" = xyes; then
5641 continue
5642 else
5643 break
5644 fi
5645 ;;
5646 none) break ;;
5647 esac
5648 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5649 # mode. It turns out that the SunPro C++ compiler does not properly
5650 # handle `-M -o', and we need to detect this.
5651 if depmode=$depmode \
5652 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5653 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5654 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5655 >/dev/null 2>conftest.err &&
dd184caf 5656 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5657 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5658 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5659 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5660 # icc doesn't choke on unknown options, it will just issue warnings
5661 # or remarks (even with -Werror). So we grep stderr for any message
5662 # that says an option was ignored or not supported.
5663 # When given -MP, icc 7.0 and 7.1 complain thusly:
5664 # icc: Command line warning: ignoring option '-M'; no argument required
5665 # The diagnosis changed in icc 8.0:
5666 # icc: Command line remark: option '-MP' not supported
5667 if (grep 'ignoring option' conftest.err ||
5668 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5669 am_cv_CXX_dependencies_compiler_type=$depmode
5670 break
5671 fi
5672 fi
5673 done
5674
5675 cd ..
5676 rm -rf conftest.dir
5677else
5678 am_cv_CXX_dependencies_compiler_type=none
5679fi
5680
5681fi
dd184caf 5682{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5683echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
d9898ee8 5684CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5685
dd184caf 5686 if
d9898ee8 5687 test "x$enable_dependency_tracking" != xno \
5688 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5689 am__fastdepCXX_TRUE=
5690 am__fastdepCXX_FALSE='#'
5691else
5692 am__fastdepCXX_TRUE='#'
5693 am__fastdepCXX_FALSE=
5694fi
5695
5696
5697
5698
5699if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5700 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5701 (test "X$CXX" != "Xg++"))) ; then
dd184caf 5702 ac_ext=cpp
d9898ee8 5703ac_cpp='$CXXCPP $CPPFLAGS'
5704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
dd184caf 5707{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5708echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d9898ee8 5709if test -z "$CXXCPP"; then
5710 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5712else
5713 # Double quotes because CXXCPP needs to be expanded
5714 for CXXCPP in "$CXX -E" "/lib/cpp"
5715 do
5716 ac_preproc_ok=false
5717for ac_cxx_preproc_warn_flag in '' yes
5718do
5719 # Use a header file that comes with gcc, so configuring glibc
5720 # with a fresh cross-compiler works.
5721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5722 # <limits.h> exists even on freestanding compilers.
5723 # On the NeXT, cc -E runs the code through the compiler's parser,
5724 # not just through cpp. "Syntax error" is here to catch this case.
5725 cat >conftest.$ac_ext <<_ACEOF
5726/* confdefs.h. */
5727_ACEOF
5728cat confdefs.h >>conftest.$ac_ext
5729cat >>conftest.$ac_ext <<_ACEOF
5730/* end confdefs.h. */
5731#ifdef __STDC__
5732# include <limits.h>
5733#else
5734# include <assert.h>
5735#endif
5736 Syntax error
5737_ACEOF
dd184caf 5738if { (ac_try="$ac_cpp conftest.$ac_ext"
5739case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742esac
5743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5750 (exit $ac_status); } >/dev/null && {
5751 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5752 test ! -s conftest.err
5753 }; then
d9898ee8 5754 :
5755else
5756 echo "$as_me: failed program was:" >&5
5757sed 's/^/| /' conftest.$ac_ext >&5
5758
5759 # Broken: fails on valid input.
5760continue
5761fi
dd184caf 5762
d9898ee8 5763rm -f conftest.err conftest.$ac_ext
5764
dd184caf 5765 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5766 # can be detected and how.
5767 cat >conftest.$ac_ext <<_ACEOF
5768/* confdefs.h. */
5769_ACEOF
5770cat confdefs.h >>conftest.$ac_ext
5771cat >>conftest.$ac_ext <<_ACEOF
5772/* end confdefs.h. */
5773#include <ac_nonexistent.h>
5774_ACEOF
dd184caf 5775if { (ac_try="$ac_cpp conftest.$ac_ext"
5776case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5779esac
5780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5782 ac_status=$?
5783 grep -v '^ *+' conftest.er1 >conftest.err
5784 rm -f conftest.er1
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5787 (exit $ac_status); } >/dev/null && {
5788 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5789 test ! -s conftest.err
5790 }; then
d9898ee8 5791 # Broken: success on invalid input.
5792continue
5793else
5794 echo "$as_me: failed program was:" >&5
5795sed 's/^/| /' conftest.$ac_ext >&5
5796
5797 # Passes both tests.
5798ac_preproc_ok=:
5799break
5800fi
dd184caf 5801
d9898ee8 5802rm -f conftest.err conftest.$ac_ext
5803
5804done
5805# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5806rm -f conftest.err conftest.$ac_ext
5807if $ac_preproc_ok; then
5808 break
5809fi
5810
5811 done
5812 ac_cv_prog_CXXCPP=$CXXCPP
5813
5814fi
5815 CXXCPP=$ac_cv_prog_CXXCPP
5816else
5817 ac_cv_prog_CXXCPP=$CXXCPP
5818fi
dd184caf 5819{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5820echo "${ECHO_T}$CXXCPP" >&6; }
d9898ee8 5821ac_preproc_ok=false
5822for ac_cxx_preproc_warn_flag in '' yes
5823do
5824 # Use a header file that comes with gcc, so configuring glibc
5825 # with a fresh cross-compiler works.
5826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5827 # <limits.h> exists even on freestanding compilers.
5828 # On the NeXT, cc -E runs the code through the compiler's parser,
5829 # not just through cpp. "Syntax error" is here to catch this case.
5830 cat >conftest.$ac_ext <<_ACEOF
5831/* confdefs.h. */
5832_ACEOF
5833cat confdefs.h >>conftest.$ac_ext
5834cat >>conftest.$ac_ext <<_ACEOF
5835/* end confdefs.h. */
5836#ifdef __STDC__
5837# include <limits.h>
5838#else
5839# include <assert.h>
5840#endif
5841 Syntax error
5842_ACEOF
dd184caf 5843if { (ac_try="$ac_cpp conftest.$ac_ext"
5844case "(($ac_try" in
5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5847esac
5848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5850 ac_status=$?
5851 grep -v '^ *+' conftest.er1 >conftest.err
5852 rm -f conftest.er1
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5855 (exit $ac_status); } >/dev/null && {
5856 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5857 test ! -s conftest.err
5858 }; then
d9898ee8 5859 :
5860else
5861 echo "$as_me: failed program was:" >&5
5862sed 's/^/| /' conftest.$ac_ext >&5
5863
5864 # Broken: fails on valid input.
5865continue
5866fi
dd184caf 5867
d9898ee8 5868rm -f conftest.err conftest.$ac_ext
5869
dd184caf 5870 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5871 # can be detected and how.
5872 cat >conftest.$ac_ext <<_ACEOF
5873/* confdefs.h. */
5874_ACEOF
5875cat confdefs.h >>conftest.$ac_ext
5876cat >>conftest.$ac_ext <<_ACEOF
5877/* end confdefs.h. */
5878#include <ac_nonexistent.h>
5879_ACEOF
dd184caf 5880if { (ac_try="$ac_cpp conftest.$ac_ext"
5881case "(($ac_try" in
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5884esac
5885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5892 (exit $ac_status); } >/dev/null && {
5893 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5894 test ! -s conftest.err
5895 }; then
d9898ee8 5896 # Broken: success on invalid input.
5897continue
5898else
5899 echo "$as_me: failed program was:" >&5
5900sed 's/^/| /' conftest.$ac_ext >&5
5901
5902 # Passes both tests.
5903ac_preproc_ok=:
5904break
5905fi
dd184caf 5906
d9898ee8 5907rm -f conftest.err conftest.$ac_ext
5908
5909done
5910# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5911rm -f conftest.err conftest.$ac_ext
5912if $ac_preproc_ok; then
5913 :
5914else
5915 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5916See \`config.log' for more details." >&5
5917echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5918See \`config.log' for more details." >&2;}
5919 { (exit 1); exit 1; }; }
5920fi
5921
dd184caf 5922ac_ext=cpp
d9898ee8 5923ac_cpp='$CXXCPP $CPPFLAGS'
5924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5927
5928fi
5929
5930
5931ac_ext=f
5932ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5933ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5934ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5935if test -n "$ac_tool_prefix"; then
dd184caf 5936 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 5937 do
5938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5939set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 5940{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5942if test "${ac_cv_prog_F77+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5944else
5945 if test -n "$F77"; then
5946 ac_cv_prog_F77="$F77" # Let the user override the test.
5947else
5948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949for as_dir in $PATH
5950do
5951 IFS=$as_save_IFS
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5955 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 break 2
5958 fi
5959done
5960done
dd184caf 5961IFS=$as_save_IFS
d9898ee8 5962
5963fi
5964fi
5965F77=$ac_cv_prog_F77
5966if test -n "$F77"; then
dd184caf 5967 { echo "$as_me:$LINENO: result: $F77" >&5
5968echo "${ECHO_T}$F77" >&6; }
d9898ee8 5969else
dd184caf 5970 { echo "$as_me:$LINENO: result: no" >&5
5971echo "${ECHO_T}no" >&6; }
d9898ee8 5972fi
5973
dd184caf 5974
d9898ee8 5975 test -n "$F77" && break
5976 done
5977fi
5978if test -z "$F77"; then
5979 ac_ct_F77=$F77
dd184caf 5980 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 5981do
5982 # Extract the first word of "$ac_prog", so it can be a program name with args.
5983set dummy $ac_prog; ac_word=$2
dd184caf 5984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5986if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5988else
5989 if test -n "$ac_ct_F77"; then
5990 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5991else
5992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993for as_dir in $PATH
5994do
5995 IFS=$as_save_IFS
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5999 ac_cv_prog_ac_ct_F77="$ac_prog"
6000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 break 2
6002 fi
6003done
6004done
dd184caf 6005IFS=$as_save_IFS
d9898ee8 6006
6007fi
6008fi
6009ac_ct_F77=$ac_cv_prog_ac_ct_F77
6010if test -n "$ac_ct_F77"; then
dd184caf 6011 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6012echo "${ECHO_T}$ac_ct_F77" >&6; }
d9898ee8 6013else
dd184caf 6014 { echo "$as_me:$LINENO: result: no" >&5
6015echo "${ECHO_T}no" >&6; }
d9898ee8 6016fi
6017
dd184caf 6018
d9898ee8 6019 test -n "$ac_ct_F77" && break
6020done
6021
dd184caf 6022 if test "x$ac_ct_F77" = x; then
6023 F77=""
6024 else
6025 case $cross_compiling:$ac_tool_warned in
6026yes:)
6027{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6028whose name does not start with the host triplet. If you think this
6029configuration is useful to you, please write to autoconf@gnu.org." >&5
6030echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6031whose name does not start with the host triplet. If you think this
6032configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6033ac_tool_warned=yes ;;
6034esac
6035 F77=$ac_ct_F77
6036 fi
d9898ee8 6037fi
6038
6039
6040# Provide some information about the compiler.
dd184caf 6041echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d9898ee8 6042ac_compiler=`set X $ac_compile; echo $2`
dd184caf 6043{ (ac_try="$ac_compiler --version >&5"
6044case "(($ac_try" in
6045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046 *) ac_try_echo=$ac_try;;
6047esac
6048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 6050 ac_status=$?
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }
dd184caf 6053{ (ac_try="$ac_compiler -v >&5"
6054case "(($ac_try" in
6055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6056 *) ac_try_echo=$ac_try;;
6057esac
6058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6059 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }
dd184caf 6063{ (ac_try="$ac_compiler -V >&5"
6064case "(($ac_try" in
6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066 *) ac_try_echo=$ac_try;;
6067esac
6068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }
6073rm -f a.out
6074
6075# If we don't use `.F' as extension, the preprocessor is not run on the
6076# input file. (Note that this only needs to work for GNU compilers.)
6077ac_save_ext=$ac_ext
6078ac_ext=F
dd184caf 6079{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6080echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d9898ee8 6081if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6083else
6084 cat >conftest.$ac_ext <<_ACEOF
6085 program main
6086#ifndef __GNUC__
6087 choke me
6088#endif
6089
6090 end
6091_ACEOF
6092rm -f conftest.$ac_objext
dd184caf 6093if { (ac_try="$ac_compile"
6094case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6097esac
6098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6100 ac_status=$?
6101 grep -v '^ *+' conftest.er1 >conftest.err
6102 rm -f conftest.er1
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 6105 (exit $ac_status); } && {
6106 test -z "$ac_f77_werror_flag" ||
6107 test ! -s conftest.err
6108 } && test -s conftest.$ac_objext; then
d9898ee8 6109 ac_compiler_gnu=yes
6110else
6111 echo "$as_me: failed program was:" >&5
6112sed 's/^/| /' conftest.$ac_ext >&5
6113
dd184caf 6114 ac_compiler_gnu=no
d9898ee8 6115fi
dd184caf 6116
6117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6118ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6119
6120fi
dd184caf 6121{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6122echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d9898ee8 6123ac_ext=$ac_save_ext
6124ac_test_FFLAGS=${FFLAGS+set}
6125ac_save_FFLAGS=$FFLAGS
6126FFLAGS=
dd184caf 6127{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6128echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d9898ee8 6129if test "${ac_cv_prog_f77_g+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131else
6132 FFLAGS=-g
6133cat >conftest.$ac_ext <<_ACEOF
6134 program main
6135
6136 end
6137_ACEOF
6138rm -f conftest.$ac_objext
dd184caf 6139if { (ac_try="$ac_compile"
6140case "(($ac_try" in
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6143esac
6144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6146 ac_status=$?
6147 grep -v '^ *+' conftest.er1 >conftest.err
6148 rm -f conftest.er1
6149 cat conftest.err >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 6151 (exit $ac_status); } && {
6152 test -z "$ac_f77_werror_flag" ||
6153 test ! -s conftest.err
6154 } && test -s conftest.$ac_objext; then
d9898ee8 6155 ac_cv_prog_f77_g=yes
6156else
6157 echo "$as_me: failed program was:" >&5
6158sed 's/^/| /' conftest.$ac_ext >&5
6159
dd184caf 6160 ac_cv_prog_f77_g=no
d9898ee8 6161fi
dd184caf 6162
6163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6164
6165fi
dd184caf 6166{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6167echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d9898ee8 6168if test "$ac_test_FFLAGS" = set; then
6169 FFLAGS=$ac_save_FFLAGS
6170elif test $ac_cv_prog_f77_g = yes; then
6171 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6172 FFLAGS="-g -O2"
6173 else
6174 FFLAGS="-g"
6175 fi
6176else
6177 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6178 FFLAGS="-O2"
6179 else
6180 FFLAGS=
6181 fi
6182fi
6183
6184G77=`test $ac_compiler_gnu = yes && echo yes`
6185ac_ext=c
6186ac_cpp='$CPP $CPPFLAGS'
6187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189ac_compiler_gnu=$ac_cv_c_compiler_gnu
6190
6191
6192
6193# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6194
6195# find the maximum length of command line arguments
dd184caf 6196{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6197echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
d9898ee8 6198if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200else
6201 i=0
6202 teststring="ABCD"
6203
6204 case $build_os in
6205 msdosdjgpp*)
6206 # On DJGPP, this test can blow up pretty badly due to problems in libc
6207 # (any single argument exceeding 2000 bytes causes a buffer overrun
6208 # during glob expansion). Even if it were fixed, the result of this
6209 # check would be larger than it should be.
6210 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6211 ;;
6212
6213 gnu*)
6214 # Under GNU Hurd, this test is not required because there is
6215 # no limit to the length of command line arguments.
6216 # Libtool will interpret -1 as no limit whatsoever
6217 lt_cv_sys_max_cmd_len=-1;
6218 ;;
6219
6220 cygwin* | mingw*)
6221 # On Win9x/ME, this test blows up -- it succeeds, but takes
6222 # about 5 minutes as the teststring grows exponentially.
6223 # Worse, since 9x/ME are not pre-emptively multitasking,
6224 # you end up with a "frozen" computer, even though with patience
6225 # the test eventually succeeds (with a max line length of 256k).
6226 # Instead, let's just punt: use the minimum linelength reported by
6227 # all of the supported platforms: 8192 (on NT/2K/XP).
6228 lt_cv_sys_max_cmd_len=8192;
6229 ;;
6230
6231 amigaos*)
6232 # On AmigaOS with pdksh, this test takes hours, literally.
6233 # So we just punt and use a minimum line length of 8192.
6234 lt_cv_sys_max_cmd_len=8192;
6235 ;;
6236
6237 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6238 # This has been around since 386BSD, at least. Likely further.
6239 if test -x /sbin/sysctl; then
6240 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6241 elif test -x /usr/sbin/sysctl; then
6242 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6243 else
6244 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6245 fi
6246 # And add a safety zone
6247 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6248 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6249 ;;
6250
6251 interix*)
6252 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6253 lt_cv_sys_max_cmd_len=196608
6254 ;;
6255
6256 osf*)
6257 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6258 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6259 # nice to cause kernel panics so lets avoid the loop below.
6260 # First set a reasonable default.
6261 lt_cv_sys_max_cmd_len=16384
6262 #
6263 if test -x /sbin/sysconfig; then
6264 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6265 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6266 esac
6267 fi
6268 ;;
6269 sco3.2v5*)
6270 lt_cv_sys_max_cmd_len=102400
6271 ;;
6272 sysv5* | sco5v6* | sysv4.2uw2*)
6273 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6274 if test -n "$kargmax"; then
6275 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6276 else
6277 lt_cv_sys_max_cmd_len=32768
6278 fi
6279 ;;
6280 *)
6281 # If test is not a shell built-in, we'll probably end up computing a
6282 # maximum length that is only half of the actual maximum length, but
6283 # we can't tell.
6284 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6285 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6286 = "XX$teststring") >/dev/null 2>&1 &&
6287 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6288 lt_cv_sys_max_cmd_len=$new_result &&
6289 test $i != 17 # 1/2 MB should be enough
6290 do
6291 i=`expr $i + 1`
6292 teststring=$teststring$teststring
6293 done
6294 teststring=
6295 # Add a significant safety factor because C++ compilers can tack on massive
6296 # amounts of additional arguments before passing them to the linker.
6297 # It appears as though 1/2 is a usable value.
6298 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6299 ;;
6300 esac
6301
6302fi
6303
6304if test -n $lt_cv_sys_max_cmd_len ; then
dd184caf 6305 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6306echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 6307else
dd184caf 6308 { echo "$as_me:$LINENO: result: none" >&5
6309echo "${ECHO_T}none" >&6; }
d9898ee8 6310fi
6311
6312
6313
6314
6315# Check for command to grab the raw symbol name followed by C symbol from nm.
dd184caf 6316{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6317echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d9898ee8 6318if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6320else
6321
6322# These are sane defaults that work on at least a few old systems.
6323# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6324
6325# Character class describing NM global symbol codes.
6326symcode='[BCDEGRST]'
6327
6328# Regexp to match symbols that can be accessed directly from C.
6329sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6330
6331# Transform an extracted symbol line into a proper C declaration
6332lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6333
6334# Transform an extracted symbol line into symbol name and symbol address
6335lt_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'"
6336
6337# Define system-specific variables.
6338case $host_os in
6339aix*)
6340 symcode='[BCDT]'
6341 ;;
6342cygwin* | mingw* | pw32*)
6343 symcode='[ABCDGISTW]'
6344 ;;
6345hpux*) # Its linker distinguishes data from code symbols
6346 if test "$host_cpu" = ia64; then
6347 symcode='[ABCDEGRST]'
6348 fi
6349 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6350 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'"
6351 ;;
6352linux*)
6353 if test "$host_cpu" = ia64; then
6354 symcode='[ABCDGIRSTW]'
6355 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6356 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'"
6357 fi
6358 ;;
6359irix* | nonstopux*)
6360 symcode='[BCDEGRST]'
6361 ;;
6362osf*)
6363 symcode='[BCDEGQRST]'
6364 ;;
6365solaris*)
6366 symcode='[BDRT]'
6367 ;;
6368sco3.2v5*)
6369 symcode='[DT]'
6370 ;;
6371sysv4.2uw2*)
6372 symcode='[DT]'
6373 ;;
6374sysv5* | sco5v6* | unixware* | OpenUNIX*)
6375 symcode='[ABDT]'
6376 ;;
6377sysv4)
6378 symcode='[DFNSTU]'
6379 ;;
6380esac
6381
6382# Handle CRLF in mingw tool chain
6383opt_cr=
6384case $build_os in
6385mingw*)
6386 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6387 ;;
6388esac
6389
6390# If we're using GNU nm, then use its standard symbol codes.
6391case `$NM -V 2>&1` in
6392*GNU* | *'with BFD'*)
6393 symcode='[ABCDGIRSTW]' ;;
6394esac
6395
6396# Try without a prefix undercore, then with it.
6397for ac_symprfx in "" "_"; do
6398
6399 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6400 symxfrm="\\1 $ac_symprfx\\2 \\2"
6401
6402 # Write the raw and C identifiers.
6403 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6404
6405 # Check to see that the pipe works correctly.
6406 pipe_works=no
6407
6408 rm -f conftest*
6409 cat > conftest.$ac_ext <<EOF
6410#ifdef __cplusplus
6411extern "C" {
6412#endif
6413char nm_test_var;
6414void nm_test_func(){}
6415#ifdef __cplusplus
6416}
6417#endif
6418int main(){nm_test_var='a';nm_test_func();return(0);}
6419EOF
6420
6421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422 (eval $ac_compile) 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; then
6426 # Now try to grab the symbols.
6427 nlist=conftest.nm
6428 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6429 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && test -s "$nlist"; then
6433 # Try sorting and uniquifying the output.
6434 if sort "$nlist" | uniq > "$nlist"T; then
6435 mv -f "$nlist"T "$nlist"
6436 else
6437 rm -f "$nlist"T
6438 fi
6439
6440 # Make sure that we snagged all the symbols we need.
6441 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6442 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6443 cat <<EOF > conftest.$ac_ext
6444#ifdef __cplusplus
6445extern "C" {
6446#endif
6447
6448EOF
6449 # Now generate the symbol file.
6450 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6451
6452 cat <<EOF >> conftest.$ac_ext
6453#if defined (__STDC__) && __STDC__
6454# define lt_ptr_t void *
6455#else
6456# define lt_ptr_t char *
6457# define const
6458#endif
6459
6460/* The mapping between symbol names and symbols. */
6461const struct {
6462 const char *name;
6463 lt_ptr_t address;
6464}
6465lt_preloaded_symbols[] =
6466{
6467EOF
6468 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6469 cat <<\EOF >> conftest.$ac_ext
6470 {0, (lt_ptr_t) 0}
6471};
6472
6473#ifdef __cplusplus
6474}
6475#endif
6476EOF
6477 # Now try linking the two files.
6478 mv conftest.$ac_objext conftstm.$ac_objext
6479 lt_save_LIBS="$LIBS"
6480 lt_save_CFLAGS="$CFLAGS"
6481 LIBS="conftstm.$ac_objext"
6482 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6484 (eval $ac_link) 2>&5
6485 ac_status=$?
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6488 pipe_works=yes
6489 fi
6490 LIBS="$lt_save_LIBS"
6491 CFLAGS="$lt_save_CFLAGS"
6492 else
6493 echo "cannot find nm_test_func in $nlist" >&5
6494 fi
6495 else
6496 echo "cannot find nm_test_var in $nlist" >&5
6497 fi
6498 else
6499 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6500 fi
6501 else
6502 echo "$progname: failed program was:" >&5
6503 cat conftest.$ac_ext >&5
6504 fi
6505 rm -f conftest* conftst*
6506
6507 # Do not use the global_symbol_pipe unless it works.
6508 if test "$pipe_works" = yes; then
6509 break
6510 else
6511 lt_cv_sys_global_symbol_pipe=
6512 fi
6513done
6514
6515fi
6516
6517if test -z "$lt_cv_sys_global_symbol_pipe"; then
6518 lt_cv_sys_global_symbol_to_cdecl=
6519fi
6520if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
dd184caf 6521 { echo "$as_me:$LINENO: result: failed" >&5
6522echo "${ECHO_T}failed" >&6; }
d9898ee8 6523else
dd184caf 6524 { echo "$as_me:$LINENO: result: ok" >&5
6525echo "${ECHO_T}ok" >&6; }
d9898ee8 6526fi
6527
dd184caf 6528{ echo "$as_me:$LINENO: checking for objdir" >&5
6529echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d9898ee8 6530if test "${lt_cv_objdir+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532else
6533 rm -f .libs 2>/dev/null
6534mkdir .libs 2>/dev/null
6535if test -d .libs; then
6536 lt_cv_objdir=.libs
6537else
6538 # MS-DOS does not allow filenames that begin with a dot.
6539 lt_cv_objdir=_libs
6540fi
6541rmdir .libs 2>/dev/null
6542fi
dd184caf 6543{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6544echo "${ECHO_T}$lt_cv_objdir" >&6; }
d9898ee8 6545objdir=$lt_cv_objdir
6546
6547
6548
6549
6550
6551case $host_os in
6552aix3*)
6553 # AIX sometimes has problems with the GCC collect2 program. For some
6554 # reason, if we set the COLLECT_NAMES environment variable, the problems
6555 # vanish in a puff of smoke.
6556 if test "X${COLLECT_NAMES+set}" != Xset; then
6557 COLLECT_NAMES=
6558 export COLLECT_NAMES
6559 fi
6560 ;;
6561esac
6562
6563# Sed substitution that helps us do robust quoting. It backslashifies
6564# metacharacters that are still active within double-quoted strings.
6565Xsed='sed -e 1s/^X//'
6566sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6567
6568# Same as above, but do not quote variable references.
6569double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6570
6571# Sed substitution to delay expansion of an escaped shell variable in a
6572# double_quote_subst'ed string.
6573delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6574
6575# Sed substitution to avoid accidental globbing in evaled expressions
6576no_glob_subst='s/\*/\\\*/g'
6577
6578# Constants:
6579rm="rm -f"
6580
6581# Global variables:
6582default_ofile=libtool
6583can_build_shared=yes
6584
6585# All known linkers require a `.a' archive for static linking (except MSVC,
6586# which needs '.lib').
6587libext=a
6588ltmain="$ac_aux_dir/ltmain.sh"
6589ofile="$default_ofile"
6590with_gnu_ld="$lt_cv_prog_gnu_ld"
6591
6592if test -n "$ac_tool_prefix"; then
6593 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6594set dummy ${ac_tool_prefix}ar; ac_word=$2
dd184caf 6595{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6597if test "${ac_cv_prog_AR+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599else
6600 if test -n "$AR"; then
6601 ac_cv_prog_AR="$AR" # Let the user override the test.
6602else
6603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604for as_dir in $PATH
6605do
6606 IFS=$as_save_IFS
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6610 ac_cv_prog_AR="${ac_tool_prefix}ar"
6611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 break 2
6613 fi
6614done
6615done
dd184caf 6616IFS=$as_save_IFS
d9898ee8 6617
6618fi
6619fi
6620AR=$ac_cv_prog_AR
6621if test -n "$AR"; then
dd184caf 6622 { echo "$as_me:$LINENO: result: $AR" >&5
6623echo "${ECHO_T}$AR" >&6; }
d9898ee8 6624else
dd184caf 6625 { echo "$as_me:$LINENO: result: no" >&5
6626echo "${ECHO_T}no" >&6; }
d9898ee8 6627fi
6628
dd184caf 6629
d9898ee8 6630fi
6631if test -z "$ac_cv_prog_AR"; then
6632 ac_ct_AR=$AR
6633 # Extract the first word of "ar", so it can be a program name with args.
6634set dummy ar; ac_word=$2
dd184caf 6635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6637if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6639else
6640 if test -n "$ac_ct_AR"; then
6641 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6642else
6643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644for as_dir in $PATH
6645do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6650 ac_cv_prog_ac_ct_AR="ar"
6651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 break 2
6653 fi
6654done
6655done
dd184caf 6656IFS=$as_save_IFS
d9898ee8 6657
d9898ee8 6658fi
6659fi
6660ac_ct_AR=$ac_cv_prog_ac_ct_AR
6661if test -n "$ac_ct_AR"; then
dd184caf 6662 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6663echo "${ECHO_T}$ac_ct_AR" >&6; }
d9898ee8 6664else
dd184caf 6665 { echo "$as_me:$LINENO: result: no" >&5
6666echo "${ECHO_T}no" >&6; }
d9898ee8 6667fi
6668
dd184caf 6669 if test "x$ac_ct_AR" = x; then
6670 AR="false"
6671 else
6672 case $cross_compiling:$ac_tool_warned in
6673yes:)
6674{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6675whose name does not start with the host triplet. If you think this
6676configuration is useful to you, please write to autoconf@gnu.org." >&5
6677echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6678whose name does not start with the host triplet. If you think this
6679configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6680ac_tool_warned=yes ;;
6681esac
6682 AR=$ac_ct_AR
6683 fi
d9898ee8 6684else
6685 AR="$ac_cv_prog_AR"
6686fi
6687
6688if test -n "$ac_tool_prefix"; then
6689 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6690set dummy ${ac_tool_prefix}ranlib; ac_word=$2
dd184caf 6691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6693if test "${ac_cv_prog_RANLIB+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695else
6696 if test -n "$RANLIB"; then
6697 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6698else
6699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700for as_dir in $PATH
6701do
6702 IFS=$as_save_IFS
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6706 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 break 2
6709 fi
6710done
6711done
dd184caf 6712IFS=$as_save_IFS
d9898ee8 6713
6714fi
6715fi
6716RANLIB=$ac_cv_prog_RANLIB
6717if test -n "$RANLIB"; then
dd184caf 6718 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6719echo "${ECHO_T}$RANLIB" >&6; }
d9898ee8 6720else
dd184caf 6721 { echo "$as_me:$LINENO: result: no" >&5
6722echo "${ECHO_T}no" >&6; }
d9898ee8 6723fi
6724
dd184caf 6725
d9898ee8 6726fi
6727if test -z "$ac_cv_prog_RANLIB"; then
6728 ac_ct_RANLIB=$RANLIB
6729 # Extract the first word of "ranlib", so it can be a program name with args.
6730set dummy ranlib; ac_word=$2
dd184caf 6731{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6733if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6735else
6736 if test -n "$ac_ct_RANLIB"; then
6737 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6738else
6739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740for as_dir in $PATH
6741do
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6746 ac_cv_prog_ac_ct_RANLIB="ranlib"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 break 2
6749 fi
6750done
6751done
dd184caf 6752IFS=$as_save_IFS
d9898ee8 6753
d9898ee8 6754fi
6755fi
6756ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6757if test -n "$ac_ct_RANLIB"; then
dd184caf 6758 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6759echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d9898ee8 6760else
dd184caf 6761 { echo "$as_me:$LINENO: result: no" >&5
6762echo "${ECHO_T}no" >&6; }
d9898ee8 6763fi
6764
dd184caf 6765 if test "x$ac_ct_RANLIB" = x; then
6766 RANLIB=":"
6767 else
6768 case $cross_compiling:$ac_tool_warned in
6769yes:)
6770{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6771whose name does not start with the host triplet. If you think this
6772configuration is useful to you, please write to autoconf@gnu.org." >&5
6773echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6774whose name does not start with the host triplet. If you think this
6775configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6776ac_tool_warned=yes ;;
6777esac
6778 RANLIB=$ac_ct_RANLIB
6779 fi
d9898ee8 6780else
6781 RANLIB="$ac_cv_prog_RANLIB"
6782fi
6783
6784if test -n "$ac_tool_prefix"; then
6785 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6786set dummy ${ac_tool_prefix}strip; ac_word=$2
dd184caf 6787{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6789if test "${ac_cv_prog_STRIP+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6791else
6792 if test -n "$STRIP"; then
6793 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6794else
6795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796for as_dir in $PATH
6797do
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6802 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 break 2
6805 fi
6806done
6807done
dd184caf 6808IFS=$as_save_IFS
d9898ee8 6809
6810fi
6811fi
6812STRIP=$ac_cv_prog_STRIP
6813if test -n "$STRIP"; then
dd184caf 6814 { echo "$as_me:$LINENO: result: $STRIP" >&5
6815echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 6816else
dd184caf 6817 { echo "$as_me:$LINENO: result: no" >&5
6818echo "${ECHO_T}no" >&6; }
d9898ee8 6819fi
6820
dd184caf 6821
d9898ee8 6822fi
6823if test -z "$ac_cv_prog_STRIP"; then
6824 ac_ct_STRIP=$STRIP
6825 # Extract the first word of "strip", so it can be a program name with args.
6826set dummy strip; ac_word=$2
dd184caf 6827{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6829if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6831else
6832 if test -n "$ac_ct_STRIP"; then
6833 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6834else
6835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836for as_dir in $PATH
6837do
6838 IFS=$as_save_IFS
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6842 ac_cv_prog_ac_ct_STRIP="strip"
6843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 break 2
6845 fi
6846done
6847done
dd184caf 6848IFS=$as_save_IFS
d9898ee8 6849
d9898ee8 6850fi
6851fi
6852ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6853if test -n "$ac_ct_STRIP"; then
dd184caf 6854 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6855echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 6856else
dd184caf 6857 { echo "$as_me:$LINENO: result: no" >&5
6858echo "${ECHO_T}no" >&6; }
d9898ee8 6859fi
6860
dd184caf 6861 if test "x$ac_ct_STRIP" = x; then
6862 STRIP=":"
6863 else
6864 case $cross_compiling:$ac_tool_warned in
6865yes:)
6866{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6867whose name does not start with the host triplet. If you think this
6868configuration is useful to you, please write to autoconf@gnu.org." >&5
6869echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6870whose name does not start with the host triplet. If you think this
6871configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6872ac_tool_warned=yes ;;
6873esac
6874 STRIP=$ac_ct_STRIP
6875 fi
d9898ee8 6876else
6877 STRIP="$ac_cv_prog_STRIP"
6878fi
6879
6880
6881old_CC="$CC"
6882old_CFLAGS="$CFLAGS"
6883
6884# Set sane defaults for various variables
6885test -z "$AR" && AR=ar
6886test -z "$AR_FLAGS" && AR_FLAGS=cru
6887test -z "$AS" && AS=as
6888test -z "$CC" && CC=cc
6889test -z "$LTCC" && LTCC=$CC
6890test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6891test -z "$DLLTOOL" && DLLTOOL=dlltool
6892test -z "$LD" && LD=ld
6893test -z "$LN_S" && LN_S="ln -s"
6894test -z "$MAGIC_CMD" && MAGIC_CMD=file
6895test -z "$NM" && NM=nm
6896test -z "$SED" && SED=sed
6897test -z "$OBJDUMP" && OBJDUMP=objdump
6898test -z "$RANLIB" && RANLIB=:
6899test -z "$STRIP" && STRIP=:
6900test -z "$ac_objext" && ac_objext=o
6901
6902# Determine commands to create old-style static archives.
6903old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6904old_postinstall_cmds='chmod 644 $oldlib'
6905old_postuninstall_cmds=
6906
6907if test -n "$RANLIB"; then
6908 case $host_os in
6909 openbsd*)
6910 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6911 ;;
6912 *)
6913 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6914 ;;
6915 esac
6916 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6917fi
6918
6919for cc_temp in $compiler""; do
6920 case $cc_temp in
6921 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6922 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6923 \-*) ;;
6924 *) break;;
6925 esac
6926done
6927cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6928
6929
6930# Only perform the check for file, if the check method requires it
6931case $deplibs_check_method in
6932file_magic*)
6933 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
dd184caf 6934 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6935echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d9898ee8 6936if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938else
6939 case $MAGIC_CMD in
6940[\\/*] | ?:[\\/]*)
6941 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6942 ;;
6943*)
6944 lt_save_MAGIC_CMD="$MAGIC_CMD"
6945 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6946 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6947 for ac_dir in $ac_dummy; do
6948 IFS="$lt_save_ifs"
6949 test -z "$ac_dir" && ac_dir=.
6950 if test -f $ac_dir/${ac_tool_prefix}file; then
6951 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6952 if test -n "$file_magic_test_file"; then
6953 case $deplibs_check_method in
6954 "file_magic "*)
6955 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6957 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6958 $EGREP "$file_magic_regex" > /dev/null; then
6959 :
6960 else
6961 cat <<EOF 1>&2
6962
6963*** Warning: the command libtool uses to detect shared libraries,
6964*** $file_magic_cmd, produces output that libtool cannot recognize.
6965*** The result is that libtool may fail to recognize shared libraries
6966*** as such. This will affect the creation of libtool libraries that
6967*** depend on shared libraries, but programs linked with such libtool
6968*** libraries will work regardless of this problem. Nevertheless, you
6969*** may want to report the problem to your system manager and/or to
6970*** bug-libtool@gnu.org
6971
6972EOF
6973 fi ;;
6974 esac
6975 fi
6976 break
6977 fi
6978 done
6979 IFS="$lt_save_ifs"
6980 MAGIC_CMD="$lt_save_MAGIC_CMD"
6981 ;;
6982esac
6983fi
6984
6985MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6986if test -n "$MAGIC_CMD"; then
dd184caf 6987 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6988echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 6989else
dd184caf 6990 { echo "$as_me:$LINENO: result: no" >&5
6991echo "${ECHO_T}no" >&6; }
d9898ee8 6992fi
6993
6994if test -z "$lt_cv_path_MAGIC_CMD"; then
6995 if test -n "$ac_tool_prefix"; then
dd184caf 6996 { echo "$as_me:$LINENO: checking for file" >&5
6997echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d9898ee8 6998if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7000else
7001 case $MAGIC_CMD in
7002[\\/*] | ?:[\\/]*)
7003 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7004 ;;
7005*)
7006 lt_save_MAGIC_CMD="$MAGIC_CMD"
7007 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7008 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7009 for ac_dir in $ac_dummy; do
7010 IFS="$lt_save_ifs"
7011 test -z "$ac_dir" && ac_dir=.
7012 if test -f $ac_dir/file; then
7013 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7014 if test -n "$file_magic_test_file"; then
7015 case $deplibs_check_method in
7016 "file_magic "*)
7017 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7018 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7019 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7020 $EGREP "$file_magic_regex" > /dev/null; then
7021 :
7022 else
7023 cat <<EOF 1>&2
7024
7025*** Warning: the command libtool uses to detect shared libraries,
7026*** $file_magic_cmd, produces output that libtool cannot recognize.
7027*** The result is that libtool may fail to recognize shared libraries
7028*** as such. This will affect the creation of libtool libraries that
7029*** depend on shared libraries, but programs linked with such libtool
7030*** libraries will work regardless of this problem. Nevertheless, you
7031*** may want to report the problem to your system manager and/or to
7032*** bug-libtool@gnu.org
7033
7034EOF
7035 fi ;;
7036 esac
7037 fi
7038 break
7039 fi
7040 done
7041 IFS="$lt_save_ifs"
7042 MAGIC_CMD="$lt_save_MAGIC_CMD"
7043 ;;
7044esac
7045fi
7046
7047MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7048if test -n "$MAGIC_CMD"; then
dd184caf 7049 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7050echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7051else
dd184caf 7052 { echo "$as_me:$LINENO: result: no" >&5
7053echo "${ECHO_T}no" >&6; }
d9898ee8 7054fi
7055
7056 else
7057 MAGIC_CMD=:
7058 fi
7059fi
7060
7061 fi
7062 ;;
7063esac
7064
7065enable_dlopen=no
7066enable_win32_dll=no
7067
dd184caf 7068# Check whether --enable-libtool-lock was given.
d9898ee8 7069if test "${enable_libtool_lock+set}" = set; then
dd184caf 7070 enableval=$enable_libtool_lock;
7071fi
d9898ee8 7072
d9898ee8 7073test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7074
7075
dd184caf 7076# Check whether --with-pic was given.
d9898ee8 7077if test "${with_pic+set}" = set; then
dd184caf 7078 withval=$with_pic; pic_mode="$withval"
d9898ee8 7079else
7080 pic_mode=default
dd184caf 7081fi
7082
d9898ee8 7083test -z "$pic_mode" && pic_mode=default
7084
7085# Use C for the default configuration in the libtool script
7086tagname=
7087lt_save_CC="$CC"
7088ac_ext=c
7089ac_cpp='$CPP $CPPFLAGS'
7090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7092ac_compiler_gnu=$ac_cv_c_compiler_gnu
7093
7094
7095# Source file extension for C test sources.
7096ac_ext=c
7097
7098# Object file extension for compiled C test sources.
7099objext=o
7100objext=$objext
7101
7102# Code to be used in simple compile tests
7103lt_simple_compile_test_code="int some_variable = 0;\n"
7104
7105# Code to be used in simple link tests
7106lt_simple_link_test_code='int main(){return(0);}\n'
7107
7108
7109# If no C compiler was specified, use CC.
7110LTCC=${LTCC-"$CC"}
7111
7112# If no C compiler flags were specified, use CFLAGS.
7113LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7114
7115# Allow CC to be a program name with arguments.
7116compiler=$CC
7117
7118
7119# save warnings/boilerplate of simple test code
7120ac_outfile=conftest.$ac_objext
7121printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7122eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7123_lt_compiler_boilerplate=`cat conftest.err`
7124$rm conftest*
7125
7126ac_outfile=conftest.$ac_objext
7127printf "$lt_simple_link_test_code" >conftest.$ac_ext
7128eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7129_lt_linker_boilerplate=`cat conftest.err`
7130$rm conftest*
7131
7132
7133
7134lt_prog_compiler_no_builtin_flag=
7135
7136if test "$GCC" = yes; then
7137 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7138
7139
dd184caf 7140{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7141echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 7142if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7144else
7145 lt_cv_prog_compiler_rtti_exceptions=no
7146 ac_outfile=conftest.$ac_objext
7147 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7148 lt_compiler_flag="-fno-rtti -fno-exceptions"
7149 # Insert the option either (1) after the last *FLAGS variable, or
7150 # (2) before a word containing "conftest.", or (3) at the end.
7151 # Note that $ac_compile itself does not contain backslashes and begins
7152 # with a dollar sign (not a hyphen), so the echo should work correctly.
7153 # The option is referenced via a variable to avoid confusing sed.
7154 lt_compile=`echo "$ac_compile" | $SED \
7155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7157 -e 's:$: $lt_compiler_flag:'`
dd184caf 7158 (eval echo "\"\$as_me:7158: $lt_compile\"" >&5)
d9898ee8 7159 (eval "$lt_compile" 2>conftest.err)
7160 ac_status=$?
7161 cat conftest.err >&5
dd184caf 7162 echo "$as_me:7162: \$? = $ac_status" >&5
d9898ee8 7163 if (exit $ac_status) && test -s "$ac_outfile"; then
7164 # The compiler can only warn and ignore the option if not recognized
7165 # So say no if there are warnings other than the usual output.
7166 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7168 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7169 lt_cv_prog_compiler_rtti_exceptions=yes
7170 fi
7171 fi
7172 $rm conftest*
7173
7174fi
dd184caf 7175{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7176echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7177
7178if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7179 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7180else
7181 :
7182fi
7183
7184fi
7185
7186lt_prog_compiler_wl=
7187lt_prog_compiler_pic=
7188lt_prog_compiler_static=
7189
dd184caf 7190{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7191echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 7192
7193 if test "$GCC" = yes; then
7194 lt_prog_compiler_wl='-Wl,'
7195 lt_prog_compiler_static='-static'
7196
7197 case $host_os in
7198 aix*)
7199 # All AIX code is PIC.
7200 if test "$host_cpu" = ia64; then
7201 # AIX 5 now supports IA64 processor
7202 lt_prog_compiler_static='-Bstatic'
7203 fi
7204 ;;
7205
7206 amigaos*)
7207 # FIXME: we need at least 68020 code to build shared libraries, but
7208 # adding the `-m68020' flag to GCC prevents building anything better,
7209 # like `-m68040'.
7210 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7211 ;;
7212
7213 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7214 # PIC is the default for these OSes.
7215 ;;
7216
7217 mingw* | pw32* | os2*)
7218 # This hack is so that the source file can tell whether it is being
7219 # built for inclusion in a dll (and should export symbols for example).
7220 lt_prog_compiler_pic='-DDLL_EXPORT'
7221 ;;
7222
7223 darwin* | rhapsody*)
7224 # PIC is the default on this platform
7225 # Common symbols not allowed in MH_DYLIB files
7226 lt_prog_compiler_pic='-fno-common'
7227 ;;
7228
7229 interix3*)
7230 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7231 # Instead, we relocate shared libraries at runtime.
7232 ;;
7233
7234 msdosdjgpp*)
7235 # Just because we use GCC doesn't mean we suddenly get shared libraries
7236 # on systems that don't support them.
7237 lt_prog_compiler_can_build_shared=no
7238 enable_shared=no
7239 ;;
7240
7241 sysv4*MP*)
7242 if test -d /usr/nec; then
7243 lt_prog_compiler_pic=-Kconform_pic
7244 fi
7245 ;;
7246
7247 hpux*)
7248 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7249 # not for PA HP-UX.
7250 case $host_cpu in
7251 hppa*64*|ia64*)
7252 # +Z the default
7253 ;;
7254 *)
7255 lt_prog_compiler_pic='-fPIC'
7256 ;;
7257 esac
7258 ;;
7259
7260 *)
7261 lt_prog_compiler_pic='-fPIC'
7262 ;;
7263 esac
7264 else
7265 # PORTME Check for flag to pass linker flags through the system compiler.
7266 case $host_os in
7267 aix*)
7268 lt_prog_compiler_wl='-Wl,'
7269 if test "$host_cpu" = ia64; then
7270 # AIX 5 now supports IA64 processor
7271 lt_prog_compiler_static='-Bstatic'
7272 else
7273 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7274 fi
7275 ;;
7276 darwin*)
7277 # PIC is the default on this platform
7278 # Common symbols not allowed in MH_DYLIB files
7279 case $cc_basename in
7280 xlc*)
7281 lt_prog_compiler_pic='-qnocommon'
7282 lt_prog_compiler_wl='-Wl,'
7283 ;;
7284 esac
7285 ;;
7286
7287 mingw* | pw32* | os2*)
7288 # This hack is so that the source file can tell whether it is being
7289 # built for inclusion in a dll (and should export symbols for example).
7290 lt_prog_compiler_pic='-DDLL_EXPORT'
7291 ;;
7292
7293 hpux9* | hpux10* | hpux11*)
7294 lt_prog_compiler_wl='-Wl,'
7295 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7296 # not for PA HP-UX.
7297 case $host_cpu in
7298 hppa*64*|ia64*)
7299 # +Z the default
7300 ;;
7301 *)
7302 lt_prog_compiler_pic='+Z'
7303 ;;
7304 esac
7305 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7306 lt_prog_compiler_static='${wl}-a ${wl}archive'
7307 ;;
7308
7309 irix5* | irix6* | nonstopux*)
7310 lt_prog_compiler_wl='-Wl,'
7311 # PIC (with -KPIC) is the default.
7312 lt_prog_compiler_static='-non_shared'
7313 ;;
7314
7315 newsos6)
7316 lt_prog_compiler_pic='-KPIC'
7317 lt_prog_compiler_static='-Bstatic'
7318 ;;
7319
7320 linux*)
7321 case $cc_basename in
7322 icc* | ecc*)
7323 lt_prog_compiler_wl='-Wl,'
7324 lt_prog_compiler_pic='-KPIC'
7325 lt_prog_compiler_static='-static'
7326 ;;
7327 pgcc* | pgf77* | pgf90* | pgf95*)
7328 # Portland Group compilers (*not* the Pentium gcc compiler,
7329 # which looks to be a dead project)
7330 lt_prog_compiler_wl='-Wl,'
7331 lt_prog_compiler_pic='-fpic'
7332 lt_prog_compiler_static='-Bstatic'
7333 ;;
7334 ccc*)
7335 lt_prog_compiler_wl='-Wl,'
7336 # All Alpha code is PIC.
7337 lt_prog_compiler_static='-non_shared'
7338 ;;
7339 esac
7340 ;;
7341
7342 osf3* | osf4* | osf5*)
7343 lt_prog_compiler_wl='-Wl,'
7344 # All OSF/1 code is PIC.
7345 lt_prog_compiler_static='-non_shared'
7346 ;;
7347
7348 solaris*)
7349 lt_prog_compiler_pic='-KPIC'
7350 lt_prog_compiler_static='-Bstatic'
7351 case $cc_basename in
7352 f77* | f90* | f95*)
7353 lt_prog_compiler_wl='-Qoption ld ';;
7354 *)
7355 lt_prog_compiler_wl='-Wl,';;
7356 esac
7357 ;;
7358
7359 sunos4*)
7360 lt_prog_compiler_wl='-Qoption ld '
7361 lt_prog_compiler_pic='-PIC'
7362 lt_prog_compiler_static='-Bstatic'
7363 ;;
7364
7365 sysv4 | sysv4.2uw2* | sysv4.3*)
7366 lt_prog_compiler_wl='-Wl,'
7367 lt_prog_compiler_pic='-KPIC'
7368 lt_prog_compiler_static='-Bstatic'
7369 ;;
7370
7371 sysv4*MP*)
7372 if test -d /usr/nec ;then
7373 lt_prog_compiler_pic='-Kconform_pic'
7374 lt_prog_compiler_static='-Bstatic'
7375 fi
7376 ;;
7377
7378 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7379 lt_prog_compiler_wl='-Wl,'
7380 lt_prog_compiler_pic='-KPIC'
7381 lt_prog_compiler_static='-Bstatic'
7382 ;;
7383
7384 unicos*)
7385 lt_prog_compiler_wl='-Wl,'
7386 lt_prog_compiler_can_build_shared=no
7387 ;;
7388
7389 uts4*)
7390 lt_prog_compiler_pic='-pic'
7391 lt_prog_compiler_static='-Bstatic'
7392 ;;
7393
7394 *)
7395 lt_prog_compiler_can_build_shared=no
7396 ;;
7397 esac
7398 fi
7399
dd184caf 7400{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7401echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d9898ee8 7402
7403#
7404# Check to make sure the PIC flag actually works.
7405#
7406if test -n "$lt_prog_compiler_pic"; then
7407
dd184caf 7408{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7409echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d9898ee8 7410if test "${lt_prog_compiler_pic_works+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7412else
7413 lt_prog_compiler_pic_works=no
7414 ac_outfile=conftest.$ac_objext
7415 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7416 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7417 # Insert the option either (1) after the last *FLAGS variable, or
7418 # (2) before a word containing "conftest.", or (3) at the end.
7419 # Note that $ac_compile itself does not contain backslashes and begins
7420 # with a dollar sign (not a hyphen), so the echo should work correctly.
7421 # The option is referenced via a variable to avoid confusing sed.
7422 lt_compile=`echo "$ac_compile" | $SED \
7423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7425 -e 's:$: $lt_compiler_flag:'`
dd184caf 7426 (eval echo "\"\$as_me:7426: $lt_compile\"" >&5)
d9898ee8 7427 (eval "$lt_compile" 2>conftest.err)
7428 ac_status=$?
7429 cat conftest.err >&5
dd184caf 7430 echo "$as_me:7430: \$? = $ac_status" >&5
d9898ee8 7431 if (exit $ac_status) && test -s "$ac_outfile"; then
7432 # The compiler can only warn and ignore the option if not recognized
7433 # So say no if there are warnings other than the usual output.
7434 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7436 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7437 lt_prog_compiler_pic_works=yes
7438 fi
7439 fi
7440 $rm conftest*
7441
7442fi
dd184caf 7443{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7444echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d9898ee8 7445
7446if test x"$lt_prog_compiler_pic_works" = xyes; then
7447 case $lt_prog_compiler_pic in
7448 "" | " "*) ;;
7449 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7450 esac
7451else
7452 lt_prog_compiler_pic=
7453 lt_prog_compiler_can_build_shared=no
7454fi
7455
7456fi
7457case $host_os in
7458 # For platforms which do not support PIC, -DPIC is meaningless:
7459 *djgpp*)
7460 lt_prog_compiler_pic=
7461 ;;
7462 *)
7463 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7464 ;;
7465esac
7466
7467#
7468# Check to make sure the static flag actually works.
7469#
7470wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
dd184caf 7471{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7472echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 7473if test "${lt_prog_compiler_static_works+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7475else
7476 lt_prog_compiler_static_works=no
7477 save_LDFLAGS="$LDFLAGS"
7478 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7479 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7480 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7481 # The linker can only warn and ignore the option if not recognized
7482 # So say no if there are warnings
7483 if test -s conftest.err; then
7484 # Append any errors to the config.log.
7485 cat conftest.err 1>&5
7486 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7488 if diff conftest.exp conftest.er2 >/dev/null; then
7489 lt_prog_compiler_static_works=yes
7490 fi
7491 else
7492 lt_prog_compiler_static_works=yes
7493 fi
7494 fi
7495 $rm conftest*
7496 LDFLAGS="$save_LDFLAGS"
7497
7498fi
dd184caf 7499{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7500echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
d9898ee8 7501
7502if test x"$lt_prog_compiler_static_works" = xyes; then
7503 :
7504else
7505 lt_prog_compiler_static=
7506fi
7507
7508
dd184caf 7509{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7510echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 7511if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7513else
7514 lt_cv_prog_compiler_c_o=no
7515 $rm -r conftest 2>/dev/null
7516 mkdir conftest
7517 cd conftest
7518 mkdir out
7519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7520
7521 lt_compiler_flag="-o out/conftest2.$ac_objext"
7522 # Insert the option either (1) after the last *FLAGS variable, or
7523 # (2) before a word containing "conftest.", or (3) at the end.
7524 # Note that $ac_compile itself does not contain backslashes and begins
7525 # with a dollar sign (not a hyphen), so the echo should work correctly.
7526 lt_compile=`echo "$ac_compile" | $SED \
7527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7529 -e 's:$: $lt_compiler_flag:'`
dd184caf 7530 (eval echo "\"\$as_me:7530: $lt_compile\"" >&5)
d9898ee8 7531 (eval "$lt_compile" 2>out/conftest.err)
7532 ac_status=$?
7533 cat out/conftest.err >&5
dd184caf 7534 echo "$as_me:7534: \$? = $ac_status" >&5
d9898ee8 7535 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7536 then
7537 # The compiler can only warn and ignore the option if not recognized
7538 # So say no if there are warnings
7539 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7540 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7541 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7542 lt_cv_prog_compiler_c_o=yes
7543 fi
7544 fi
7545 chmod u+w . 2>&5
7546 $rm conftest*
7547 # SGI C++ compiler will create directory out/ii_files/ for
7548 # template instantiation
7549 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7550 $rm out/* && rmdir out
7551 cd ..
7552 rmdir conftest
7553 $rm conftest*
7554
7555fi
dd184caf 7556{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7557echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 7558
7559
7560hard_links="nottested"
7561if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7562 # do not overwrite the value of need_locks provided by the user
dd184caf 7563 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7564echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 7565 hard_links=yes
7566 $rm conftest*
7567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7568 touch conftest.a
7569 ln conftest.a conftest.b 2>&5 || hard_links=no
7570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 7571 { echo "$as_me:$LINENO: result: $hard_links" >&5
7572echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 7573 if test "$hard_links" = no; then
7574 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7575echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7576 need_locks=warn
7577 fi
7578else
7579 need_locks=no
7580fi
7581
dd184caf 7582{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7583echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 7584
7585 runpath_var=
7586 allow_undefined_flag=
7587 enable_shared_with_static_runtimes=no
7588 archive_cmds=
7589 archive_expsym_cmds=
7590 old_archive_From_new_cmds=
7591 old_archive_from_expsyms_cmds=
7592 export_dynamic_flag_spec=
7593 whole_archive_flag_spec=
7594 thread_safe_flag_spec=
7595 hardcode_libdir_flag_spec=
7596 hardcode_libdir_flag_spec_ld=
7597 hardcode_libdir_separator=
7598 hardcode_direct=no
7599 hardcode_minus_L=no
7600 hardcode_shlibpath_var=unsupported
7601 link_all_deplibs=unknown
7602 hardcode_automatic=no
7603 module_cmds=
7604 module_expsym_cmds=
7605 always_export_symbols=no
7606 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7607 # include_expsyms should be a list of space-separated symbols to be *always*
7608 # included in the symbol list
7609 include_expsyms=
7610 # exclude_expsyms can be an extended regexp of symbols to exclude
7611 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7612 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7613 # as well as any symbol that contains `d'.
7614 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7615 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7616 # platforms (ab)use it in PIC code, but their linkers get confused if
7617 # the symbol is explicitly referenced. Since portable code cannot
7618 # rely on this symbol name, it's probably fine to never include it in
7619 # preloaded symbol tables.
7620 extract_expsyms_cmds=
7621 # Just being paranoid about ensuring that cc_basename is set.
7622 for cc_temp in $compiler""; do
7623 case $cc_temp in
7624 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7625 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7626 \-*) ;;
7627 *) break;;
7628 esac
7629done
7630cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7631
7632 case $host_os in
7633 cygwin* | mingw* | pw32*)
7634 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7635 # When not using gcc, we currently assume that we are using
7636 # Microsoft Visual C++.
7637 if test "$GCC" != yes; then
7638 with_gnu_ld=no
7639 fi
7640 ;;
7641 interix*)
7642 # we just hope/assume this is gcc and not c89 (= MSVC++)
7643 with_gnu_ld=yes
7644 ;;
7645 openbsd*)
7646 with_gnu_ld=no
7647 ;;
7648 esac
7649
7650 ld_shlibs=yes
7651 if test "$with_gnu_ld" = yes; then
7652 # If archive_cmds runs LD, not CC, wlarc should be empty
7653 wlarc='${wl}'
7654
7655 # Set some defaults for GNU ld with shared library support. These
7656 # are reset later if shared libraries are not supported. Putting them
7657 # here allows them to be overridden if necessary.
7658 runpath_var=LD_RUN_PATH
7659 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7660 export_dynamic_flag_spec='${wl}--export-dynamic'
7661 # ancient GNU ld didn't support --whole-archive et. al.
7662 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7663 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7664 else
7665 whole_archive_flag_spec=
7666 fi
7667 supports_anon_versioning=no
7668 case `$LD -v 2>/dev/null` in
7669 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7670 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7671 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7672 *\ 2.11.*) ;; # other 2.11 versions
7673 *) supports_anon_versioning=yes ;;
7674 esac
7675
7676 # See if GNU ld supports shared libraries.
7677 case $host_os in
7678 aix3* | aix4* | aix5*)
7679 # On AIX/PPC, the GNU linker is very broken
7680 if test "$host_cpu" != ia64; then
7681 ld_shlibs=no
7682 cat <<EOF 1>&2
7683
7684*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7685*** to be unable to reliably create shared libraries on AIX.
7686*** Therefore, libtool is disabling shared libraries support. If you
7687*** really care for shared libraries, you may want to modify your PATH
7688*** so that a non-GNU linker is found, and then restart.
7689
7690EOF
7691 fi
7692 ;;
7693
7694 amigaos*)
7695 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)'
7696 hardcode_libdir_flag_spec='-L$libdir'
7697 hardcode_minus_L=yes
7698
7699 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7700 # that the semantics of dynamic libraries on AmigaOS, at least up
7701 # to version 4, is to share data among multiple programs linked
7702 # with the same dynamic library. Since this doesn't match the
7703 # behavior of shared libraries on other platforms, we can't use
7704 # them.
7705 ld_shlibs=no
7706 ;;
7707
7708 beos*)
7709 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7710 allow_undefined_flag=unsupported
7711 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7712 # support --undefined. This deserves some investigation. FIXME
7713 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7714 else
7715 ld_shlibs=no
7716 fi
7717 ;;
7718
7719 cygwin* | mingw* | pw32*)
7720 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7721 # as there is no search path for DLLs.
7722 hardcode_libdir_flag_spec='-L$libdir'
7723 allow_undefined_flag=unsupported
7724 always_export_symbols=no
7725 enable_shared_with_static_runtimes=yes
7726 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7727
7728 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7730 # If the export-symbols file already is a .def file (1st line
7731 # is EXPORTS), use it as is; otherwise, prepend...
7732 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7733 cp $export_symbols $output_objdir/$soname.def;
7734 else
7735 echo EXPORTS > $output_objdir/$soname.def;
7736 cat $export_symbols >> $output_objdir/$soname.def;
7737 fi~
7738 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7739 else
7740 ld_shlibs=no
7741 fi
7742 ;;
7743
7744 interix3*)
7745 hardcode_direct=no
7746 hardcode_shlibpath_var=no
7747 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7748 export_dynamic_flag_spec='${wl}-E'
7749 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7750 # Instead, shared libraries are loaded at an image base (0x10000000 by
7751 # default) and relocated if they conflict, which is a slow very memory
7752 # consuming and fragmenting process. To avoid this, we pick a random,
7753 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7754 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7755 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7756 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'
7757 ;;
7758
7759 linux*)
7760 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7761 tmp_addflag=
7762 case $cc_basename,$host_cpu in
7763 pgcc*) # Portland Group C compiler
7764 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'
7765 tmp_addflag=' $pic_flag'
7766 ;;
7767 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7768 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'
7769 tmp_addflag=' $pic_flag -Mnomain' ;;
7770 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7771 tmp_addflag=' -i_dynamic' ;;
7772 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7773 tmp_addflag=' -i_dynamic -nofor_main' ;;
7774 ifc* | ifort*) # Intel Fortran compiler
7775 tmp_addflag=' -nofor_main' ;;
7776 esac
7777 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7778
7779 if test $supports_anon_versioning = yes; then
7780 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7782 $echo "local: *; };" >> $output_objdir/$libname.ver~
7783 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7784 fi
7785 else
7786 ld_shlibs=no
7787 fi
7788 ;;
7789
7790 netbsd*)
7791 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7792 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7793 wlarc=
7794 else
7795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7797 fi
7798 ;;
7799
7800 solaris*)
7801 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7802 ld_shlibs=no
7803 cat <<EOF 1>&2
7804
7805*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7806*** create shared libraries on Solaris systems. Therefore, libtool
7807*** is disabling shared libraries support. We urge you to upgrade GNU
7808*** binutils to release 2.9.1 or newer. Another option is to modify
7809*** your PATH or compiler configuration so that the native linker is
7810*** used, and then restart.
7811
7812EOF
7813 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7815 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7816 else
7817 ld_shlibs=no
7818 fi
7819 ;;
7820
7821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7822 case `$LD -v 2>&1` in
7823 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7824 ld_shlibs=no
7825 cat <<_LT_EOF 1>&2
7826
7827*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7828*** reliably create shared libraries on SCO systems. Therefore, libtool
7829*** is disabling shared libraries support. We urge you to upgrade GNU
7830*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7831*** your PATH or compiler configuration so that the native linker is
7832*** used, and then restart.
7833
7834_LT_EOF
7835 ;;
7836 *)
7837 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7838 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7839 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7840 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7841 else
7842 ld_shlibs=no
7843 fi
7844 ;;
7845 esac
7846 ;;
7847
7848 sunos4*)
7849 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7850 wlarc=
7851 hardcode_direct=yes
7852 hardcode_shlibpath_var=no
7853 ;;
7854
7855 *)
7856 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7857 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7858 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7859 else
7860 ld_shlibs=no
7861 fi
7862 ;;
7863 esac
7864
7865 if test "$ld_shlibs" = no; then
7866 runpath_var=
7867 hardcode_libdir_flag_spec=
7868 export_dynamic_flag_spec=
7869 whole_archive_flag_spec=
7870 fi
7871 else
7872 # PORTME fill in a description of your system's linker (not GNU ld)
7873 case $host_os in
7874 aix3*)
7875 allow_undefined_flag=unsupported
7876 always_export_symbols=yes
7877 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'
7878 # Note: this linker hardcodes the directories in LIBPATH if there
7879 # are no directories specified by -L.
7880 hardcode_minus_L=yes
7881 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7882 # Neither direct hardcoding nor static linking is supported with a
7883 # broken collect2.
7884 hardcode_direct=unsupported
7885 fi
7886 ;;
7887
7888 aix4* | aix5*)
7889 if test "$host_cpu" = ia64; then
7890 # On IA64, the linker does run time linking by default, so we don't
7891 # have to do anything special.
7892 aix_use_runtimelinking=no
7893 exp_sym_flag='-Bexport'
7894 no_entry_flag=""
7895 else
7896 # If we're using GNU nm, then we don't want the "-C" option.
7897 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7898 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7899 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'
7900 else
7901 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'
7902 fi
7903 aix_use_runtimelinking=no
7904
7905 # Test if we are trying to use run time linking or normal
7906 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7907 # need to do runtime linking.
7908 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7909 for ld_flag in $LDFLAGS; do
7910 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7911 aix_use_runtimelinking=yes
7912 break
7913 fi
7914 done
7915 ;;
7916 esac
7917
7918 exp_sym_flag='-bexport'
7919 no_entry_flag='-bnoentry'
7920 fi
7921
7922 # When large executables or shared objects are built, AIX ld can
7923 # have problems creating the table of contents. If linking a library
7924 # or program results in "error TOC overflow" add -mminimal-toc to
7925 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7926 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7927
7928 archive_cmds=''
7929 hardcode_direct=yes
7930 hardcode_libdir_separator=':'
7931 link_all_deplibs=yes
7932
7933 if test "$GCC" = yes; then
7934 case $host_os in aix4.[012]|aix4.[012].*)
7935 # We only want to do this on AIX 4.2 and lower, the check
7936 # below for broken collect2 doesn't work under 4.3+
7937 collect2name=`${CC} -print-prog-name=collect2`
7938 if test -f "$collect2name" && \
7939 strings "$collect2name" | grep resolve_lib_name >/dev/null
7940 then
7941 # We have reworked collect2
7942 hardcode_direct=yes
7943 else
7944 # We have old collect2
7945 hardcode_direct=unsupported
7946 # It fails to find uninstalled libraries when the uninstalled
7947 # path is not listed in the libpath. Setting hardcode_minus_L
7948 # to unsupported forces relinking
7949 hardcode_minus_L=yes
7950 hardcode_libdir_flag_spec='-L$libdir'
7951 hardcode_libdir_separator=
7952 fi
7953 ;;
7954 esac
7955 shared_flag='-shared'
7956 if test "$aix_use_runtimelinking" = yes; then
7957 shared_flag="$shared_flag "'${wl}-G'
7958 fi
7959 else
7960 # not using gcc
7961 if test "$host_cpu" = ia64; then
7962 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7963 # chokes on -Wl,-G. The following line is correct:
7964 shared_flag='-G'
7965 else
7966 if test "$aix_use_runtimelinking" = yes; then
7967 shared_flag='${wl}-G'
7968 else
7969 shared_flag='${wl}-bM:SRE'
7970 fi
7971 fi
7972 fi
7973
7974 # It seems that -bexpall does not export symbols beginning with
7975 # underscore (_), so it is better to generate a list of symbols to export.
7976 always_export_symbols=yes
7977 if test "$aix_use_runtimelinking" = yes; then
7978 # Warning - without using the other runtime loading flags (-brtl),
7979 # -berok will link without error, but may produce a broken library.
7980 allow_undefined_flag='-berok'
7981 # Determine the default libpath from the value encoded in an empty executable.
7982 cat >conftest.$ac_ext <<_ACEOF
7983/* confdefs.h. */
7984_ACEOF
7985cat confdefs.h >>conftest.$ac_ext
7986cat >>conftest.$ac_ext <<_ACEOF
7987/* end confdefs.h. */
7988
7989int
7990main ()
7991{
7992
7993 ;
7994 return 0;
7995}
7996_ACEOF
7997rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 7998if { (ac_try="$ac_link"
7999case "(($ac_try" in
8000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001 *) ac_try_echo=$ac_try;;
8002esac
8003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004 (eval "$ac_link") 2>conftest.er1
d9898ee8 8005 ac_status=$?
8006 grep -v '^ *+' conftest.er1 >conftest.err
8007 rm -f conftest.er1
8008 cat conftest.err >&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8010 (exit $ac_status); } && {
8011 test -z "$ac_c_werror_flag" ||
8012 test ! -s conftest.err
8013 } && test -s conftest$ac_exeext &&
8014 $as_test_x conftest$ac_exeext; then
d9898ee8 8015
8016aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8017}'`
8018# Check for a 64-bit object if we didn't find anything.
8019if 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; }
8020}'`; fi
8021else
8022 echo "$as_me: failed program was:" >&5
8023sed 's/^/| /' conftest.$ac_ext >&5
8024
dd184caf 8025
d9898ee8 8026fi
dd184caf 8027
8028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8029 conftest$ac_exeext conftest.$ac_ext
8030if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8031
8032 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8033 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"
8034 else
8035 if test "$host_cpu" = ia64; then
8036 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8037 allow_undefined_flag="-z nodefs"
8038 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"
8039 else
8040 # Determine the default libpath from the value encoded in an empty executable.
8041 cat >conftest.$ac_ext <<_ACEOF
8042/* confdefs.h. */
8043_ACEOF
8044cat confdefs.h >>conftest.$ac_ext
8045cat >>conftest.$ac_ext <<_ACEOF
8046/* end confdefs.h. */
8047
8048int
8049main ()
8050{
8051
8052 ;
8053 return 0;
8054}
8055_ACEOF
8056rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8057if { (ac_try="$ac_link"
8058case "(($ac_try" in
8059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8060 *) ac_try_echo=$ac_try;;
8061esac
8062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8063 (eval "$ac_link") 2>conftest.er1
d9898ee8 8064 ac_status=$?
8065 grep -v '^ *+' conftest.er1 >conftest.err
8066 rm -f conftest.er1
8067 cat conftest.err >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8069 (exit $ac_status); } && {
8070 test -z "$ac_c_werror_flag" ||
8071 test ! -s conftest.err
8072 } && test -s conftest$ac_exeext &&
8073 $as_test_x conftest$ac_exeext; then
d9898ee8 8074
8075aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8076}'`
8077# Check for a 64-bit object if we didn't find anything.
8078if 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; }
8079}'`; fi
8080else
8081 echo "$as_me: failed program was:" >&5
8082sed 's/^/| /' conftest.$ac_ext >&5
8083
dd184caf 8084
d9898ee8 8085fi
dd184caf 8086
8087rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8088 conftest$ac_exeext conftest.$ac_ext
8089if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8090
8091 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8092 # Warning - without using the other run time loading flags,
8093 # -berok will link without error, but may produce a broken library.
8094 no_undefined_flag=' ${wl}-bernotok'
8095 allow_undefined_flag=' ${wl}-berok'
8096 # Exported symbols can be pulled into shared objects from archives
8097 whole_archive_flag_spec='$convenience'
8098 archive_cmds_need_lc=yes
8099 # This is similar to how AIX traditionally builds its shared libraries.
8100 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'
8101 fi
8102 fi
8103 ;;
8104
8105 amigaos*)
8106 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)'
8107 hardcode_libdir_flag_spec='-L$libdir'
8108 hardcode_minus_L=yes
8109 # see comment about different semantics on the GNU ld section
8110 ld_shlibs=no
8111 ;;
8112
8113 bsdi[45]*)
8114 export_dynamic_flag_spec=-rdynamic
8115 ;;
8116
8117 cygwin* | mingw* | pw32*)
8118 # When not using gcc, we currently assume that we are using
8119 # Microsoft Visual C++.
8120 # hardcode_libdir_flag_spec is actually meaningless, as there is
8121 # no search path for DLLs.
8122 hardcode_libdir_flag_spec=' '
8123 allow_undefined_flag=unsupported
8124 # Tell ltmain to make .lib files, not .a files.
8125 libext=lib
8126 # Tell ltmain to make .dll files, not .so files.
8127 shrext_cmds=".dll"
8128 # FIXME: Setting linknames here is a bad hack.
8129 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8130 # The linker will automatically build a .lib file if we build a DLL.
8131 old_archive_From_new_cmds='true'
8132 # FIXME: Should let the user specify the lib program.
8133 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8134 fix_srcfile_path='`cygpath -w "$srcfile"`'
8135 enable_shared_with_static_runtimes=yes
8136 ;;
8137
8138 darwin* | rhapsody*)
8139 case $host_os in
8140 rhapsody* | darwin1.[012])
8141 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8142 ;;
8143 *) # Darwin 1.3 on
8144 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8145 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8146 else
8147 case ${MACOSX_DEPLOYMENT_TARGET} in
8148 10.[012])
8149 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8150 ;;
8151 10.*)
8152 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8153 ;;
8154 esac
8155 fi
8156 ;;
8157 esac
8158 archive_cmds_need_lc=no
8159 hardcode_direct=no
8160 hardcode_automatic=yes
8161 hardcode_shlibpath_var=unsupported
8162 whole_archive_flag_spec=''
8163 link_all_deplibs=yes
8164 if test "$GCC" = yes ; then
8165 output_verbose_link_cmd='echo'
8166 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8167 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8168 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8169 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}'
8170 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}'
8171 else
8172 case $cc_basename in
8173 xlc*)
8174 output_verbose_link_cmd='echo'
8175 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8176 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8177 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8178 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}'
8179 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}'
8180 ;;
8181 *)
8182 ld_shlibs=no
8183 ;;
8184 esac
8185 fi
8186 ;;
8187
8188 dgux*)
8189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8190 hardcode_libdir_flag_spec='-L$libdir'
8191 hardcode_shlibpath_var=no
8192 ;;
8193
8194 freebsd1*)
8195 ld_shlibs=no
8196 ;;
8197
8198 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8199 # support. Future versions do this automatically, but an explicit c++rt0.o
8200 # does not break anything, and helps significantly (at the cost of a little
8201 # extra space).
8202 freebsd2.2*)
8203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8204 hardcode_libdir_flag_spec='-R$libdir'
8205 hardcode_direct=yes
8206 hardcode_shlibpath_var=no
8207 ;;
8208
8209 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8210 freebsd2*)
8211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8212 hardcode_direct=yes
8213 hardcode_minus_L=yes
8214 hardcode_shlibpath_var=no
8215 ;;
8216
8217 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8218 freebsd* | kfreebsd*-gnu | dragonfly*)
8219 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8220 hardcode_libdir_flag_spec='-R$libdir'
8221 hardcode_direct=yes
8222 hardcode_shlibpath_var=no
8223 ;;
8224
8225 hpux9*)
8226 if test "$GCC" = yes; then
8227 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'
8228 else
8229 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'
8230 fi
8231 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8232 hardcode_libdir_separator=:
8233 hardcode_direct=yes
8234
8235 # hardcode_minus_L: Not really in the search PATH,
8236 # but as the default location of the library.
8237 hardcode_minus_L=yes
8238 export_dynamic_flag_spec='${wl}-E'
8239 ;;
8240
8241 hpux10*)
8242 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8243 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8244 else
8245 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8246 fi
8247 if test "$with_gnu_ld" = no; then
8248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8249 hardcode_libdir_separator=:
8250
8251 hardcode_direct=yes
8252 export_dynamic_flag_spec='${wl}-E'
8253
8254 # hardcode_minus_L: Not really in the search PATH,
8255 # but as the default location of the library.
8256 hardcode_minus_L=yes
8257 fi
8258 ;;
8259
8260 hpux11*)
8261 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8262 case $host_cpu in
8263 hppa*64*)
8264 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8265 ;;
8266 ia64*)
8267 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8268 ;;
8269 *)
8270 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8271 ;;
8272 esac
8273 else
8274 case $host_cpu in
8275 hppa*64*)
8276 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8277 ;;
8278 ia64*)
8279 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8280 ;;
8281 *)
8282 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8283 ;;
8284 esac
8285 fi
8286 if test "$with_gnu_ld" = no; then
8287 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8288 hardcode_libdir_separator=:
8289
8290 case $host_cpu in
8291 hppa*64*|ia64*)
8292 hardcode_libdir_flag_spec_ld='+b $libdir'
8293 hardcode_direct=no
8294 hardcode_shlibpath_var=no
8295 ;;
8296 *)
8297 hardcode_direct=yes
8298 export_dynamic_flag_spec='${wl}-E'
8299
8300 # hardcode_minus_L: Not really in the search PATH,
8301 # but as the default location of the library.
8302 hardcode_minus_L=yes
8303 ;;
8304 esac
8305 fi
8306 ;;
8307
8308 irix5* | irix6* | nonstopux*)
8309 if test "$GCC" = yes; then
8310 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'
8311 else
8312 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'
8313 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8314 fi
8315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8316 hardcode_libdir_separator=:
8317 link_all_deplibs=yes
8318 ;;
8319
8320 netbsd*)
8321 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8322 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8323 else
8324 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8325 fi
8326 hardcode_libdir_flag_spec='-R$libdir'
8327 hardcode_direct=yes
8328 hardcode_shlibpath_var=no
8329 ;;
8330
8331 newsos6)
8332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8333 hardcode_direct=yes
8334 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8335 hardcode_libdir_separator=:
8336 hardcode_shlibpath_var=no
8337 ;;
8338
8339 openbsd*)
8340 hardcode_direct=yes
8341 hardcode_shlibpath_var=no
8342 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8343 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8344 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8345 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8346 export_dynamic_flag_spec='${wl}-E'
8347 else
8348 case $host_os in
8349 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8351 hardcode_libdir_flag_spec='-R$libdir'
8352 ;;
8353 *)
8354 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8355 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8356 ;;
8357 esac
8358 fi
8359 ;;
8360
8361 os2*)
8362 hardcode_libdir_flag_spec='-L$libdir'
8363 hardcode_minus_L=yes
8364 allow_undefined_flag=unsupported
8365 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'
8366 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8367 ;;
8368
8369 osf3*)
8370 if test "$GCC" = yes; then
8371 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8372 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'
8373 else
8374 allow_undefined_flag=' -expect_unresolved \*'
8375 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'
8376 fi
8377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8378 hardcode_libdir_separator=:
8379 ;;
8380
8381 osf4* | osf5*) # as osf3* with the addition of -msym flag
8382 if test "$GCC" = yes; then
8383 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8384 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'
8385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8386 else
8387 allow_undefined_flag=' -expect_unresolved \*'
8388 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'
8389 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8390 $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'
8391
8392 # Both c and cxx compiler support -rpath directly
8393 hardcode_libdir_flag_spec='-rpath $libdir'
8394 fi
8395 hardcode_libdir_separator=:
8396 ;;
8397
8398 solaris*)
8399 no_undefined_flag=' -z text'
8400 if test "$GCC" = yes; then
8401 wlarc='${wl}'
8402 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8403 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8404 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8405 else
8406 wlarc=''
8407 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8408 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8409 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8410 fi
8411 hardcode_libdir_flag_spec='-R$libdir'
8412 hardcode_shlibpath_var=no
8413 case $host_os in
8414 solaris2.[0-5] | solaris2.[0-5].*) ;;
8415 *)
8416 # The compiler driver will combine linker options so we
8417 # cannot just pass the convience library names through
8418 # without $wl, iff we do not link with $LD.
8419 # Luckily, gcc supports the same syntax we need for Sun Studio.
8420 # Supported since Solaris 2.6 (maybe 2.5.1?)
8421 case $wlarc in
8422 '')
8423 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8424 *)
8425 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' ;;
8426 esac ;;
8427 esac
8428 link_all_deplibs=yes
8429 ;;
8430
8431 sunos4*)
8432 if test "x$host_vendor" = xsequent; then
8433 # Use $CC to link under sequent, because it throws in some extra .o
8434 # files that make .init and .fini sections work.
8435 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8436 else
8437 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8438 fi
8439 hardcode_libdir_flag_spec='-L$libdir'
8440 hardcode_direct=yes
8441 hardcode_minus_L=yes
8442 hardcode_shlibpath_var=no
8443 ;;
8444
8445 sysv4)
8446 case $host_vendor in
8447 sni)
8448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8449 hardcode_direct=yes # is this really true???
8450 ;;
8451 siemens)
8452 ## LD is ld it makes a PLAMLIB
8453 ## CC just makes a GrossModule.
8454 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8455 reload_cmds='$CC -r -o $output$reload_objs'
8456 hardcode_direct=no
8457 ;;
8458 motorola)
8459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8460 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8461 ;;
8462 esac
8463 runpath_var='LD_RUN_PATH'
8464 hardcode_shlibpath_var=no
8465 ;;
8466
8467 sysv4.3*)
8468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8469 hardcode_shlibpath_var=no
8470 export_dynamic_flag_spec='-Bexport'
8471 ;;
8472
8473 sysv4*MP*)
8474 if test -d /usr/nec; then
8475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8476 hardcode_shlibpath_var=no
8477 runpath_var=LD_RUN_PATH
8478 hardcode_runpath_var=yes
8479 ld_shlibs=yes
8480 fi
8481 ;;
8482
8483 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8484 no_undefined_flag='${wl}-z,text'
8485 archive_cmds_need_lc=no
8486 hardcode_shlibpath_var=no
8487 runpath_var='LD_RUN_PATH'
8488
8489 if test "$GCC" = yes; then
8490 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8491 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8492 else
8493 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8494 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8495 fi
8496 ;;
8497
8498 sysv5* | sco3.2v5* | sco5v6*)
8499 # Note: We can NOT use -z defs as we might desire, because we do not
8500 # link with -lc, and that would cause any symbols used from libc to
8501 # always be unresolved, which means just about no library would
8502 # ever link correctly. If we're not using GNU ld we use -z text
8503 # though, which does catch some bad symbols but isn't as heavy-handed
8504 # as -z defs.
8505 no_undefined_flag='${wl}-z,text'
8506 allow_undefined_flag='${wl}-z,nodefs'
8507 archive_cmds_need_lc=no
8508 hardcode_shlibpath_var=no
8509 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8510 hardcode_libdir_separator=':'
8511 link_all_deplibs=yes
8512 export_dynamic_flag_spec='${wl}-Bexport'
8513 runpath_var='LD_RUN_PATH'
8514
8515 if test "$GCC" = yes; then
8516 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8517 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8518 else
8519 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8520 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8521 fi
8522 ;;
8523
8524 uts4*)
8525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8526 hardcode_libdir_flag_spec='-L$libdir'
8527 hardcode_shlibpath_var=no
8528 ;;
8529
8530 *)
8531 ld_shlibs=no
8532 ;;
8533 esac
8534 fi
8535
dd184caf 8536{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8537echo "${ECHO_T}$ld_shlibs" >&6; }
d9898ee8 8538test "$ld_shlibs" = no && can_build_shared=no
8539
8540#
8541# Do we need to explicitly link libc?
8542#
8543case "x$archive_cmds_need_lc" in
8544x|xyes)
8545 # Assume -lc should be added
8546 archive_cmds_need_lc=yes
8547
8548 if test "$enable_shared" = yes && test "$GCC" = yes; then
8549 case $archive_cmds in
8550 *'~'*)
8551 # FIXME: we may have to deal with multi-command sequences.
8552 ;;
8553 '$CC '*)
8554 # Test whether the compiler implicitly links with -lc since on some
8555 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8556 # to ld, don't add -lc before -lgcc.
dd184caf 8557 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8558echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 8559 $rm conftest*
8560 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8561
8562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8563 (eval $ac_compile) 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } 2>conftest.err; then
8567 soname=conftest
8568 lib=conftest
8569 libobjs=conftest.$ac_objext
8570 deplibs=
8571 wl=$lt_prog_compiler_wl
8572 pic_flag=$lt_prog_compiler_pic
8573 compiler_flags=-v
8574 linker_flags=-v
8575 verstring=
8576 output_objdir=.
8577 libname=conftest
8578 lt_save_allow_undefined_flag=$allow_undefined_flag
8579 allow_undefined_flag=
8580 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8581 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8582 ac_status=$?
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }
8585 then
8586 archive_cmds_need_lc=no
8587 else
8588 archive_cmds_need_lc=yes
8589 fi
8590 allow_undefined_flag=$lt_save_allow_undefined_flag
8591 else
8592 cat conftest.err 1>&5
8593 fi
8594 $rm conftest*
dd184caf 8595 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8596echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d9898ee8 8597 ;;
8598 esac
8599 fi
8600 ;;
8601esac
8602
dd184caf 8603{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8604echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 8605library_names_spec=
8606libname_spec='lib$name'
8607soname_spec=
8608shrext_cmds=".so"
8609postinstall_cmds=
8610postuninstall_cmds=
8611finish_cmds=
8612finish_eval=
8613shlibpath_var=
8614shlibpath_overrides_runpath=unknown
8615version_type=none
8616dynamic_linker="$host_os ld.so"
8617sys_lib_dlsearch_path_spec="/lib /usr/lib"
8618if test "$GCC" = yes; then
8619 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8620 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8621 # if the path contains ";" then we assume it to be the separator
8622 # otherwise default to the standard path separator (i.e. ":") - it is
8623 # assumed that no part of a normal pathname contains ";" but that should
8624 # okay in the real world where ";" in dirpaths is itself problematic.
8625 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8626 else
8627 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8628 fi
8629else
8630 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8631fi
8632need_lib_prefix=unknown
8633hardcode_into_libs=no
8634
8635# when you set need_version to no, make sure it does not cause -set_version
8636# flags to be left without arguments
8637need_version=unknown
8638
8639case $host_os in
8640aix3*)
8641 version_type=linux
8642 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8643 shlibpath_var=LIBPATH
8644
8645 # AIX 3 has no versioning support, so we append a major version to the name.
8646 soname_spec='${libname}${release}${shared_ext}$major'
8647 ;;
8648
8649aix4* | aix5*)
8650 version_type=linux
8651 need_lib_prefix=no
8652 need_version=no
8653 hardcode_into_libs=yes
8654 if test "$host_cpu" = ia64; then
8655 # AIX 5 supports IA64
8656 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8657 shlibpath_var=LD_LIBRARY_PATH
8658 else
8659 # With GCC up to 2.95.x, collect2 would create an import file
8660 # for dependence libraries. The import file would start with
8661 # the line `#! .'. This would cause the generated library to
8662 # depend on `.', always an invalid library. This was fixed in
8663 # development snapshots of GCC prior to 3.0.
8664 case $host_os in
8665 aix4 | aix4.[01] | aix4.[01].*)
8666 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8667 echo ' yes '
8668 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8669 :
8670 else
8671 can_build_shared=no
8672 fi
8673 ;;
8674 esac
8675 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8676 # soname into executable. Probably we can add versioning support to
8677 # collect2, so additional links can be useful in future.
8678 if test "$aix_use_runtimelinking" = yes; then
8679 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8680 # instead of lib<name>.a to let people know that these are not
8681 # typical AIX shared libraries.
8682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8683 else
8684 # We preserve .a as extension for shared libraries through AIX4.2
8685 # and later when we are not doing run time linking.
8686 library_names_spec='${libname}${release}.a $libname.a'
8687 soname_spec='${libname}${release}${shared_ext}$major'
8688 fi
8689 shlibpath_var=LIBPATH
8690 fi
8691 ;;
8692
8693amigaos*)
8694 library_names_spec='$libname.ixlibrary $libname.a'
8695 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8696 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'
8697 ;;
8698
8699beos*)
8700 library_names_spec='${libname}${shared_ext}'
8701 dynamic_linker="$host_os ld.so"
8702 shlibpath_var=LIBRARY_PATH
8703 ;;
8704
8705bsdi[45]*)
8706 version_type=linux
8707 need_version=no
8708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8709 soname_spec='${libname}${release}${shared_ext}$major'
8710 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8711 shlibpath_var=LD_LIBRARY_PATH
8712 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8713 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8714 # the default ld.so.conf also contains /usr/contrib/lib and
8715 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8716 # libtool to hard-code these into programs
8717 ;;
8718
8719cygwin* | mingw* | pw32*)
8720 version_type=windows
8721 shrext_cmds=".dll"
8722 need_version=no
8723 need_lib_prefix=no
8724
8725 case $GCC,$host_os in
8726 yes,cygwin* | yes,mingw* | yes,pw32*)
8727 library_names_spec='$libname.dll.a'
8728 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8729 postinstall_cmds='base_file=`basename \${file}`~
8730 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8731 dldir=$destdir/`dirname \$dlpath`~
8732 test -d \$dldir || mkdir -p \$dldir~
8733 $install_prog $dir/$dlname \$dldir/$dlname~
8734 chmod a+x \$dldir/$dlname'
8735 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8736 dlpath=$dir/\$dldll~
8737 $rm \$dlpath'
8738 shlibpath_overrides_runpath=yes
8739
8740 case $host_os in
8741 cygwin*)
8742 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8743 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8744 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8745 ;;
8746 mingw*)
8747 # MinGW DLLs use traditional 'lib' prefix
8748 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8749 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8750 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8751 # It is most probably a Windows format PATH printed by
8752 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8753 # path with ; separators, and with drive letters. We can handle the
8754 # drive letters (cygwin fileutils understands them), so leave them,
8755 # especially as we might pass files found there to a mingw objdump,
8756 # which wouldn't understand a cygwinified path. Ahh.
8757 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8758 else
8759 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8760 fi
8761 ;;
8762 pw32*)
8763 # pw32 DLLs use 'pw' prefix rather than 'lib'
8764 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8765 ;;
8766 esac
8767 ;;
8768
8769 *)
8770 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8771 ;;
8772 esac
8773 dynamic_linker='Win32 ld.exe'
8774 # FIXME: first we should search . and the directory the executable is in
8775 shlibpath_var=PATH
8776 ;;
8777
8778darwin* | rhapsody*)
8779 dynamic_linker="$host_os dyld"
8780 version_type=darwin
8781 need_lib_prefix=no
8782 need_version=no
8783 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8784 soname_spec='${libname}${release}${major}$shared_ext'
8785 shlibpath_overrides_runpath=yes
8786 shlibpath_var=DYLD_LIBRARY_PATH
8787 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8788 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8789 if test "$GCC" = yes; then
8790 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"`
8791 else
8792 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8793 fi
8794 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8795 ;;
8796
8797dgux*)
8798 version_type=linux
8799 need_lib_prefix=no
8800 need_version=no
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8802 soname_spec='${libname}${release}${shared_ext}$major'
8803 shlibpath_var=LD_LIBRARY_PATH
8804 ;;
8805
8806freebsd1*)
8807 dynamic_linker=no
8808 ;;
8809
8810kfreebsd*-gnu)
8811 version_type=linux
8812 need_lib_prefix=no
8813 need_version=no
8814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8815 soname_spec='${libname}${release}${shared_ext}$major'
8816 shlibpath_var=LD_LIBRARY_PATH
8817 shlibpath_overrides_runpath=no
8818 hardcode_into_libs=yes
8819 dynamic_linker='GNU ld.so'
8820 ;;
8821
8822freebsd* | dragonfly*)
8823 # DragonFly does not have aout. When/if they implement a new
8824 # versioning mechanism, adjust this.
8825 if test -x /usr/bin/objformat; then
8826 objformat=`/usr/bin/objformat`
8827 else
8828 case $host_os in
8829 freebsd[123]*) objformat=aout ;;
8830 *) objformat=elf ;;
8831 esac
8832 fi
8833 version_type=freebsd-$objformat
8834 case $version_type in
8835 freebsd-elf*)
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8837 need_version=no
8838 need_lib_prefix=no
8839 ;;
8840 freebsd-*)
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8842 need_version=yes
8843 ;;
8844 esac
8845 shlibpath_var=LD_LIBRARY_PATH
8846 case $host_os in
8847 freebsd2*)
8848 shlibpath_overrides_runpath=yes
8849 ;;
8850 freebsd3.[01]* | freebsdelf3.[01]*)
8851 shlibpath_overrides_runpath=yes
8852 hardcode_into_libs=yes
8853 ;;
8854 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8855 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8856 shlibpath_overrides_runpath=no
8857 hardcode_into_libs=yes
8858 ;;
8859 freebsd*) # from 4.6 on
8860 shlibpath_overrides_runpath=yes
8861 hardcode_into_libs=yes
8862 ;;
8863 esac
8864 ;;
8865
8866gnu*)
8867 version_type=linux
8868 need_lib_prefix=no
8869 need_version=no
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8871 soname_spec='${libname}${release}${shared_ext}$major'
8872 shlibpath_var=LD_LIBRARY_PATH
8873 hardcode_into_libs=yes
8874 ;;
8875
8876hpux9* | hpux10* | hpux11*)
8877 # Give a soname corresponding to the major version so that dld.sl refuses to
8878 # link against other versions.
8879 version_type=sunos
8880 need_lib_prefix=no
8881 need_version=no
8882 case $host_cpu in
8883 ia64*)
8884 shrext_cmds='.so'
8885 hardcode_into_libs=yes
8886 dynamic_linker="$host_os dld.so"
8887 shlibpath_var=LD_LIBRARY_PATH
8888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8890 soname_spec='${libname}${release}${shared_ext}$major'
8891 if test "X$HPUX_IA64_MODE" = X32; then
8892 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8893 else
8894 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8895 fi
8896 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8897 ;;
8898 hppa*64*)
8899 shrext_cmds='.sl'
8900 hardcode_into_libs=yes
8901 dynamic_linker="$host_os dld.sl"
8902 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8903 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8908 ;;
8909 *)
8910 shrext_cmds='.sl'
8911 dynamic_linker="$host_os dld.sl"
8912 shlibpath_var=SHLIB_PATH
8913 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8915 soname_spec='${libname}${release}${shared_ext}$major'
8916 ;;
8917 esac
8918 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8919 postinstall_cmds='chmod 555 $lib'
8920 ;;
8921
8922interix3*)
8923 version_type=linux
8924 need_lib_prefix=no
8925 need_version=no
8926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8927 soname_spec='${libname}${release}${shared_ext}$major'
8928 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8929 shlibpath_var=LD_LIBRARY_PATH
8930 shlibpath_overrides_runpath=no
8931 hardcode_into_libs=yes
8932 ;;
8933
8934irix5* | irix6* | nonstopux*)
8935 case $host_os in
8936 nonstopux*) version_type=nonstopux ;;
8937 *)
8938 if test "$lt_cv_prog_gnu_ld" = yes; then
8939 version_type=linux
8940 else
8941 version_type=irix
8942 fi ;;
8943 esac
8944 need_lib_prefix=no
8945 need_version=no
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8948 case $host_os in
8949 irix5* | nonstopux*)
8950 libsuff= shlibsuff=
8951 ;;
8952 *)
8953 case $LD in # libtool.m4 will add one of these switches to LD
8954 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8955 libsuff= shlibsuff= libmagic=32-bit;;
8956 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8957 libsuff=32 shlibsuff=N32 libmagic=N32;;
8958 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8959 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8960 *) libsuff= shlibsuff= libmagic=never-match;;
8961 esac
8962 ;;
8963 esac
8964 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8965 shlibpath_overrides_runpath=no
8966 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8967 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8968 hardcode_into_libs=yes
8969 ;;
8970
8971# No shared lib support for Linux oldld, aout, or coff.
8972linux*oldld* | linux*aout* | linux*coff*)
8973 dynamic_linker=no
8974 ;;
8975
8976# This must be Linux ELF.
8977linux*)
8978 version_type=linux
8979 need_lib_prefix=no
8980 need_version=no
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8984 shlibpath_var=LD_LIBRARY_PATH
8985 shlibpath_overrides_runpath=no
8986 # This implies no fast_install, which is unacceptable.
8987 # Some rework will be needed to allow for fast_install
8988 # before this can be enabled.
8989 hardcode_into_libs=yes
8990
8991 # find out which ABI we are using
8992 libsuff=
8993 case "$host_cpu" in
8994 x86_64*|s390x*|powerpc64*)
dd184caf 8995 echo '#line 8995 "configure"' > conftest.$ac_ext
d9898ee8 8996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8997 (eval $ac_compile) 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; then
9001 case `/usr/bin/file conftest.$ac_objext` in
9002 *64-bit*)
9003 libsuff=64
9004 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9005 ;;
9006 esac
9007 fi
9008 rm -rf conftest*
9009 ;;
9010 esac
9011
9012 # Append ld.so.conf contents to the search path
9013 if test -f /etc/ld.so.conf; then
dd184caf 9014 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 9015 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9016 fi
9017
9018 # We used to test for /lib/ld.so.1 and disable shared libraries on
9019 # powerpc, because MkLinux only supported shared libraries with the
9020 # GNU dynamic linker. Since this was broken with cross compilers,
9021 # most powerpc-linux boxes support dynamic linking these days and
9022 # people can always --disable-shared, the test was removed, and we
9023 # assume the GNU/Linux dynamic linker is in use.
9024 dynamic_linker='GNU/Linux ld.so'
9025 ;;
9026
9027knetbsd*-gnu)
9028 version_type=linux
9029 need_lib_prefix=no
9030 need_version=no
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 shlibpath_var=LD_LIBRARY_PATH
9034 shlibpath_overrides_runpath=no
9035 hardcode_into_libs=yes
9036 dynamic_linker='GNU ld.so'
9037 ;;
9038
9039netbsd*)
9040 version_type=sunos
9041 need_lib_prefix=no
9042 need_version=no
9043 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9046 dynamic_linker='NetBSD (a.out) ld.so'
9047 else
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9049 soname_spec='${libname}${release}${shared_ext}$major'
9050 dynamic_linker='NetBSD ld.elf_so'
9051 fi
9052 shlibpath_var=LD_LIBRARY_PATH
9053 shlibpath_overrides_runpath=yes
9054 hardcode_into_libs=yes
9055 ;;
9056
9057newsos6)
9058 version_type=linux
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=yes
9062 ;;
9063
9064nto-qnx*)
9065 version_type=linux
9066 need_lib_prefix=no
9067 need_version=no
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9069 soname_spec='${libname}${release}${shared_ext}$major'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 shlibpath_overrides_runpath=yes
9072 ;;
9073
9074openbsd*)
9075 version_type=sunos
9076 sys_lib_dlsearch_path_spec="/usr/lib"
9077 need_lib_prefix=no
9078 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9079 case $host_os in
9080 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9081 *) need_version=no ;;
9082 esac
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9084 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9087 case $host_os in
9088 openbsd2.[89] | openbsd2.[89].*)
9089 shlibpath_overrides_runpath=no
9090 ;;
9091 *)
9092 shlibpath_overrides_runpath=yes
9093 ;;
9094 esac
9095 else
9096 shlibpath_overrides_runpath=yes
9097 fi
9098 ;;
9099
9100os2*)
9101 libname_spec='$name'
9102 shrext_cmds=".dll"
9103 need_lib_prefix=no
9104 library_names_spec='$libname${shared_ext} $libname.a'
9105 dynamic_linker='OS/2 ld.exe'
9106 shlibpath_var=LIBPATH
9107 ;;
9108
9109osf3* | osf4* | osf5*)
9110 version_type=osf
9111 need_lib_prefix=no
9112 need_version=no
9113 soname_spec='${libname}${release}${shared_ext}$major'
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9117 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9118 ;;
9119
9120solaris*)
9121 version_type=linux
9122 need_lib_prefix=no
9123 need_version=no
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9125 soname_spec='${libname}${release}${shared_ext}$major'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 shlibpath_overrides_runpath=yes
9128 hardcode_into_libs=yes
9129 # ldd complains unless libraries are executable
9130 postinstall_cmds='chmod +x $lib'
9131 ;;
9132
9133sunos4*)
9134 version_type=sunos
9135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9136 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9137 shlibpath_var=LD_LIBRARY_PATH
9138 shlibpath_overrides_runpath=yes
9139 if test "$with_gnu_ld" = yes; then
9140 need_lib_prefix=no
9141 fi
9142 need_version=yes
9143 ;;
9144
9145sysv4 | sysv4.3*)
9146 version_type=linux
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 shlibpath_var=LD_LIBRARY_PATH
9150 case $host_vendor in
9151 sni)
9152 shlibpath_overrides_runpath=no
9153 need_lib_prefix=no
9154 export_dynamic_flag_spec='${wl}-Blargedynsym'
9155 runpath_var=LD_RUN_PATH
9156 ;;
9157 siemens)
9158 need_lib_prefix=no
9159 ;;
9160 motorola)
9161 need_lib_prefix=no
9162 need_version=no
9163 shlibpath_overrides_runpath=no
9164 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9165 ;;
9166 esac
9167 ;;
9168
9169sysv4*MP*)
9170 if test -d /usr/nec ;then
9171 version_type=linux
9172 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9173 soname_spec='$libname${shared_ext}.$major'
9174 shlibpath_var=LD_LIBRARY_PATH
9175 fi
9176 ;;
9177
9178sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9179 version_type=freebsd-elf
9180 need_lib_prefix=no
9181 need_version=no
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 shlibpath_var=LD_LIBRARY_PATH
9185 hardcode_into_libs=yes
9186 if test "$with_gnu_ld" = yes; then
9187 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9188 shlibpath_overrides_runpath=no
9189 else
9190 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9191 shlibpath_overrides_runpath=yes
9192 case $host_os in
9193 sco3.2v5*)
9194 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9195 ;;
9196 esac
9197 fi
9198 sys_lib_dlsearch_path_spec='/usr/lib'
9199 ;;
9200
9201uts4*)
9202 version_type=linux
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204 soname_spec='${libname}${release}${shared_ext}$major'
9205 shlibpath_var=LD_LIBRARY_PATH
9206 ;;
9207
9208*)
9209 dynamic_linker=no
9210 ;;
9211esac
dd184caf 9212{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9213echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 9214test "$dynamic_linker" = no && can_build_shared=no
9215
9216variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9217if test "$GCC" = yes; then
9218 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9219fi
9220
dd184caf 9221{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9222echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 9223hardcode_action=
9224if test -n "$hardcode_libdir_flag_spec" || \
9225 test -n "$runpath_var" || \
9226 test "X$hardcode_automatic" = "Xyes" ; then
9227
9228 # We can hardcode non-existant directories.
9229 if test "$hardcode_direct" != no &&
9230 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9231 # have to relink, otherwise we might link with an installed library
9232 # when we should be linking with a yet-to-be-installed one
9233 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9234 test "$hardcode_minus_L" != no; then
9235 # Linking always hardcodes the temporary library directory.
9236 hardcode_action=relink
9237 else
9238 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9239 hardcode_action=immediate
9240 fi
9241else
9242 # We cannot hardcode anything, or else we can only hardcode existing
9243 # directories.
9244 hardcode_action=unsupported
9245fi
dd184caf 9246{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9247echo "${ECHO_T}$hardcode_action" >&6; }
d9898ee8 9248
9249if test "$hardcode_action" = relink; then
9250 # Fast installation is not supported
9251 enable_fast_install=no
9252elif test "$shlibpath_overrides_runpath" = yes ||
9253 test "$enable_shared" = no; then
9254 # Fast installation is not necessary
9255 enable_fast_install=needless
9256fi
9257
9258striplib=
9259old_striplib=
dd184caf 9260{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9261echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d9898ee8 9262if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9263 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9264 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
dd184caf 9265 { echo "$as_me:$LINENO: result: yes" >&5
9266echo "${ECHO_T}yes" >&6; }
d9898ee8 9267else
9268# FIXME - insert some real tests, host_os isn't really good enough
9269 case $host_os in
9270 darwin*)
9271 if test -n "$STRIP" ; then
9272 striplib="$STRIP -x"
dd184caf 9273 { echo "$as_me:$LINENO: result: yes" >&5
9274echo "${ECHO_T}yes" >&6; }
d9898ee8 9275 else
dd184caf 9276 { echo "$as_me:$LINENO: result: no" >&5
9277echo "${ECHO_T}no" >&6; }
d9898ee8 9278fi
9279 ;;
9280 *)
dd184caf 9281 { echo "$as_me:$LINENO: result: no" >&5
9282echo "${ECHO_T}no" >&6; }
d9898ee8 9283 ;;
9284 esac
9285fi
9286
9287if test "x$enable_dlopen" != xyes; then
9288 enable_dlopen=unknown
9289 enable_dlopen_self=unknown
9290 enable_dlopen_self_static=unknown
9291else
9292 lt_cv_dlopen=no
9293 lt_cv_dlopen_libs=
9294
9295 case $host_os in
9296 beos*)
9297 lt_cv_dlopen="load_add_on"
9298 lt_cv_dlopen_libs=
9299 lt_cv_dlopen_self=yes
9300 ;;
9301
9302 mingw* | pw32*)
9303 lt_cv_dlopen="LoadLibrary"
9304 lt_cv_dlopen_libs=
9305 ;;
9306
9307 cygwin*)
9308 lt_cv_dlopen="dlopen"
9309 lt_cv_dlopen_libs=
9310 ;;
9311
9312 darwin*)
9313 # if libdl is installed we need to link against it
dd184caf 9314 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9315echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9316if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9318else
9319 ac_check_lib_save_LIBS=$LIBS
9320LIBS="-ldl $LIBS"
9321cat >conftest.$ac_ext <<_ACEOF
9322/* confdefs.h. */
9323_ACEOF
9324cat confdefs.h >>conftest.$ac_ext
9325cat >>conftest.$ac_ext <<_ACEOF
9326/* end confdefs.h. */
9327
dd184caf 9328/* Override any GCC internal prototype to avoid an error.
9329 Use char because int might match the return type of a GCC
9330 builtin and then its argument prototype would still apply. */
d9898ee8 9331#ifdef __cplusplus
9332extern "C"
9333#endif
d9898ee8 9334char dlopen ();
9335int
9336main ()
9337{
dd184caf 9338return dlopen ();
d9898ee8 9339 ;
9340 return 0;
9341}
9342_ACEOF
9343rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9344if { (ac_try="$ac_link"
9345case "(($ac_try" in
9346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347 *) ac_try_echo=$ac_try;;
9348esac
9349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9350 (eval "$ac_link") 2>conftest.er1
d9898ee8 9351 ac_status=$?
9352 grep -v '^ *+' conftest.er1 >conftest.err
9353 rm -f conftest.er1
9354 cat conftest.err >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9356 (exit $ac_status); } && {
9357 test -z "$ac_c_werror_flag" ||
9358 test ! -s conftest.err
9359 } && test -s conftest$ac_exeext &&
9360 $as_test_x conftest$ac_exeext; then
d9898ee8 9361 ac_cv_lib_dl_dlopen=yes
9362else
9363 echo "$as_me: failed program was:" >&5
9364sed 's/^/| /' conftest.$ac_ext >&5
9365
dd184caf 9366 ac_cv_lib_dl_dlopen=no
d9898ee8 9367fi
dd184caf 9368
9369rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9370 conftest$ac_exeext conftest.$ac_ext
9371LIBS=$ac_check_lib_save_LIBS
9372fi
dd184caf 9373{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9374echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9375if test $ac_cv_lib_dl_dlopen = yes; then
9376 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9377else
9378
9379 lt_cv_dlopen="dyld"
9380 lt_cv_dlopen_libs=
9381 lt_cv_dlopen_self=yes
9382
9383fi
9384
9385 ;;
9386
9387 *)
dd184caf 9388 { echo "$as_me:$LINENO: checking for shl_load" >&5
9389echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9898ee8 9390if test "${ac_cv_func_shl_load+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9392else
9393 cat >conftest.$ac_ext <<_ACEOF
9394/* confdefs.h. */
9395_ACEOF
9396cat confdefs.h >>conftest.$ac_ext
9397cat >>conftest.$ac_ext <<_ACEOF
9398/* end confdefs.h. */
9399/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9401#define shl_load innocuous_shl_load
9402
9403/* System header to define __stub macros and hopefully few prototypes,
9404 which can conflict with char shl_load (); below.
9405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9406 <limits.h> exists even on freestanding compilers. */
9407
9408#ifdef __STDC__
9409# include <limits.h>
9410#else
9411# include <assert.h>
9412#endif
9413
9414#undef shl_load
9415
dd184caf 9416/* Override any GCC internal prototype to avoid an error.
9417 Use char because int might match the return type of a GCC
9418 builtin and then its argument prototype would still apply. */
d9898ee8 9419#ifdef __cplusplus
9420extern "C"
d9898ee8 9421#endif
d9898ee8 9422char shl_load ();
9423/* The GNU C library defines this for functions which it implements
9424 to always fail with ENOSYS. Some functions are actually named
9425 something starting with __ and the normal name is an alias. */
dd184caf 9426#if defined __stub_shl_load || defined __stub___shl_load
d9898ee8 9427choke me
d9898ee8 9428#endif
9429
9430int
9431main ()
9432{
dd184caf 9433return shl_load ();
d9898ee8 9434 ;
9435 return 0;
9436}
9437_ACEOF
9438rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9439if { (ac_try="$ac_link"
9440case "(($ac_try" in
9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9443esac
9444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_link") 2>conftest.er1
d9898ee8 9446 ac_status=$?
9447 grep -v '^ *+' conftest.er1 >conftest.err
9448 rm -f conftest.er1
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9451 (exit $ac_status); } && {
9452 test -z "$ac_c_werror_flag" ||
9453 test ! -s conftest.err
9454 } && test -s conftest$ac_exeext &&
9455 $as_test_x conftest$ac_exeext; then
d9898ee8 9456 ac_cv_func_shl_load=yes
9457else
9458 echo "$as_me: failed program was:" >&5
9459sed 's/^/| /' conftest.$ac_ext >&5
9460
dd184caf 9461 ac_cv_func_shl_load=no
d9898ee8 9462fi
dd184caf 9463
9464rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9465 conftest$ac_exeext conftest.$ac_ext
9466fi
dd184caf 9467{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9468echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9898ee8 9469if test $ac_cv_func_shl_load = yes; then
9470 lt_cv_dlopen="shl_load"
9471else
dd184caf 9472 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9473echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9898ee8 9474if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9476else
9477 ac_check_lib_save_LIBS=$LIBS
9478LIBS="-ldld $LIBS"
9479cat >conftest.$ac_ext <<_ACEOF
9480/* confdefs.h. */
9481_ACEOF
9482cat confdefs.h >>conftest.$ac_ext
9483cat >>conftest.$ac_ext <<_ACEOF
9484/* end confdefs.h. */
9485
dd184caf 9486/* Override any GCC internal prototype to avoid an error.
9487 Use char because int might match the return type of a GCC
9488 builtin and then its argument prototype would still apply. */
d9898ee8 9489#ifdef __cplusplus
9490extern "C"
9491#endif
d9898ee8 9492char shl_load ();
9493int
9494main ()
9495{
dd184caf 9496return shl_load ();
d9898ee8 9497 ;
9498 return 0;
9499}
9500_ACEOF
9501rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9502if { (ac_try="$ac_link"
9503case "(($ac_try" in
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9506esac
9507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_link") 2>conftest.er1
d9898ee8 9509 ac_status=$?
9510 grep -v '^ *+' conftest.er1 >conftest.err
9511 rm -f conftest.er1
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9514 (exit $ac_status); } && {
9515 test -z "$ac_c_werror_flag" ||
9516 test ! -s conftest.err
9517 } && test -s conftest$ac_exeext &&
9518 $as_test_x conftest$ac_exeext; then
d9898ee8 9519 ac_cv_lib_dld_shl_load=yes
9520else
9521 echo "$as_me: failed program was:" >&5
9522sed 's/^/| /' conftest.$ac_ext >&5
9523
dd184caf 9524 ac_cv_lib_dld_shl_load=no
d9898ee8 9525fi
dd184caf 9526
9527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9528 conftest$ac_exeext conftest.$ac_ext
9529LIBS=$ac_check_lib_save_LIBS
9530fi
dd184caf 9531{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9532echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9898ee8 9533if test $ac_cv_lib_dld_shl_load = yes; then
9534 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9535else
dd184caf 9536 { echo "$as_me:$LINENO: checking for dlopen" >&5
9537echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d9898ee8 9538if test "${ac_cv_func_dlopen+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9540else
9541 cat >conftest.$ac_ext <<_ACEOF
9542/* confdefs.h. */
9543_ACEOF
9544cat confdefs.h >>conftest.$ac_ext
9545cat >>conftest.$ac_ext <<_ACEOF
9546/* end confdefs.h. */
9547/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9549#define dlopen innocuous_dlopen
9550
9551/* System header to define __stub macros and hopefully few prototypes,
9552 which can conflict with char dlopen (); below.
9553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9554 <limits.h> exists even on freestanding compilers. */
9555
9556#ifdef __STDC__
9557# include <limits.h>
9558#else
9559# include <assert.h>
9560#endif
9561
9562#undef dlopen
9563
dd184caf 9564/* Override any GCC internal prototype to avoid an error.
9565 Use char because int might match the return type of a GCC
9566 builtin and then its argument prototype would still apply. */
d9898ee8 9567#ifdef __cplusplus
9568extern "C"
d9898ee8 9569#endif
d9898ee8 9570char dlopen ();
9571/* The GNU C library defines this for functions which it implements
9572 to always fail with ENOSYS. Some functions are actually named
9573 something starting with __ and the normal name is an alias. */
dd184caf 9574#if defined __stub_dlopen || defined __stub___dlopen
d9898ee8 9575choke me
d9898ee8 9576#endif
9577
9578int
9579main ()
9580{
dd184caf 9581return dlopen ();
d9898ee8 9582 ;
9583 return 0;
9584}
9585_ACEOF
9586rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9587if { (ac_try="$ac_link"
9588case "(($ac_try" in
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9591esac
9592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_link") 2>conftest.er1
d9898ee8 9594 ac_status=$?
9595 grep -v '^ *+' conftest.er1 >conftest.err
9596 rm -f conftest.er1
9597 cat conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9599 (exit $ac_status); } && {
9600 test -z "$ac_c_werror_flag" ||
9601 test ! -s conftest.err
9602 } && test -s conftest$ac_exeext &&
9603 $as_test_x conftest$ac_exeext; then
d9898ee8 9604 ac_cv_func_dlopen=yes
9605else
9606 echo "$as_me: failed program was:" >&5
9607sed 's/^/| /' conftest.$ac_ext >&5
9608
dd184caf 9609 ac_cv_func_dlopen=no
d9898ee8 9610fi
dd184caf 9611
9612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9613 conftest$ac_exeext conftest.$ac_ext
9614fi
dd184caf 9615{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9616echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d9898ee8 9617if test $ac_cv_func_dlopen = yes; then
9618 lt_cv_dlopen="dlopen"
9619else
dd184caf 9620 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9621echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9622if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9624else
9625 ac_check_lib_save_LIBS=$LIBS
9626LIBS="-ldl $LIBS"
9627cat >conftest.$ac_ext <<_ACEOF
9628/* confdefs.h. */
9629_ACEOF
9630cat confdefs.h >>conftest.$ac_ext
9631cat >>conftest.$ac_ext <<_ACEOF
9632/* end confdefs.h. */
9633
dd184caf 9634/* Override any GCC internal prototype to avoid an error.
9635 Use char because int might match the return type of a GCC
9636 builtin and then its argument prototype would still apply. */
d9898ee8 9637#ifdef __cplusplus
9638extern "C"
9639#endif
d9898ee8 9640char dlopen ();
9641int
9642main ()
9643{
dd184caf 9644return dlopen ();
d9898ee8 9645 ;
9646 return 0;
9647}
9648_ACEOF
9649rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9650if { (ac_try="$ac_link"
9651case "(($ac_try" in
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9654esac
9655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_link") 2>conftest.er1
d9898ee8 9657 ac_status=$?
9658 grep -v '^ *+' conftest.er1 >conftest.err
9659 rm -f conftest.er1
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9662 (exit $ac_status); } && {
9663 test -z "$ac_c_werror_flag" ||
9664 test ! -s conftest.err
9665 } && test -s conftest$ac_exeext &&
9666 $as_test_x conftest$ac_exeext; then
d9898ee8 9667 ac_cv_lib_dl_dlopen=yes
9668else
9669 echo "$as_me: failed program was:" >&5
9670sed 's/^/| /' conftest.$ac_ext >&5
9671
dd184caf 9672 ac_cv_lib_dl_dlopen=no
d9898ee8 9673fi
dd184caf 9674
9675rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9676 conftest$ac_exeext conftest.$ac_ext
9677LIBS=$ac_check_lib_save_LIBS
9678fi
dd184caf 9679{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9680echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9681if test $ac_cv_lib_dl_dlopen = yes; then
9682 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9683else
dd184caf 9684 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9685echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9898ee8 9686if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688else
9689 ac_check_lib_save_LIBS=$LIBS
9690LIBS="-lsvld $LIBS"
9691cat >conftest.$ac_ext <<_ACEOF
9692/* confdefs.h. */
9693_ACEOF
9694cat confdefs.h >>conftest.$ac_ext
9695cat >>conftest.$ac_ext <<_ACEOF
9696/* end confdefs.h. */
9697
dd184caf 9698/* Override any GCC internal prototype to avoid an error.
9699 Use char because int might match the return type of a GCC
9700 builtin and then its argument prototype would still apply. */
d9898ee8 9701#ifdef __cplusplus
9702extern "C"
9703#endif
d9898ee8 9704char dlopen ();
9705int
9706main ()
9707{
dd184caf 9708return dlopen ();
d9898ee8 9709 ;
9710 return 0;
9711}
9712_ACEOF
9713rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9714if { (ac_try="$ac_link"
9715case "(($ac_try" in
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9718esac
9719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_link") 2>conftest.er1
d9898ee8 9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9726 (exit $ac_status); } && {
9727 test -z "$ac_c_werror_flag" ||
9728 test ! -s conftest.err
9729 } && test -s conftest$ac_exeext &&
9730 $as_test_x conftest$ac_exeext; then
d9898ee8 9731 ac_cv_lib_svld_dlopen=yes
9732else
9733 echo "$as_me: failed program was:" >&5
9734sed 's/^/| /' conftest.$ac_ext >&5
9735
dd184caf 9736 ac_cv_lib_svld_dlopen=no
d9898ee8 9737fi
dd184caf 9738
9739rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9740 conftest$ac_exeext conftest.$ac_ext
9741LIBS=$ac_check_lib_save_LIBS
9742fi
dd184caf 9743{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9744echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9898ee8 9745if test $ac_cv_lib_svld_dlopen = yes; then
9746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9747else
dd184caf 9748 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9749echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9898ee8 9750if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9752else
9753 ac_check_lib_save_LIBS=$LIBS
9754LIBS="-ldld $LIBS"
9755cat >conftest.$ac_ext <<_ACEOF
9756/* confdefs.h. */
9757_ACEOF
9758cat confdefs.h >>conftest.$ac_ext
9759cat >>conftest.$ac_ext <<_ACEOF
9760/* end confdefs.h. */
9761
dd184caf 9762/* Override any GCC internal prototype to avoid an error.
9763 Use char because int might match the return type of a GCC
9764 builtin and then its argument prototype would still apply. */
d9898ee8 9765#ifdef __cplusplus
9766extern "C"
9767#endif
d9898ee8 9768char dld_link ();
9769int
9770main ()
9771{
dd184caf 9772return dld_link ();
d9898ee8 9773 ;
9774 return 0;
9775}
9776_ACEOF
9777rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9778if { (ac_try="$ac_link"
9779case "(($ac_try" in
9780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9782esac
9783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 (eval "$ac_link") 2>conftest.er1
d9898ee8 9785 ac_status=$?
9786 grep -v '^ *+' conftest.er1 >conftest.err
9787 rm -f conftest.er1
9788 cat conftest.err >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9790 (exit $ac_status); } && {
9791 test -z "$ac_c_werror_flag" ||
9792 test ! -s conftest.err
9793 } && test -s conftest$ac_exeext &&
9794 $as_test_x conftest$ac_exeext; then
d9898ee8 9795 ac_cv_lib_dld_dld_link=yes
9796else
9797 echo "$as_me: failed program was:" >&5
9798sed 's/^/| /' conftest.$ac_ext >&5
9799
dd184caf 9800 ac_cv_lib_dld_dld_link=no
d9898ee8 9801fi
dd184caf 9802
9803rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9804 conftest$ac_exeext conftest.$ac_ext
9805LIBS=$ac_check_lib_save_LIBS
9806fi
dd184caf 9807{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9808echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9898ee8 9809if test $ac_cv_lib_dld_dld_link = yes; then
9810 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9811fi
9812
9813
9814fi
9815
9816
9817fi
9818
9819
9820fi
9821
9822
9823fi
9824
9825
9826fi
9827
9828 ;;
9829 esac
9830
9831 if test "x$lt_cv_dlopen" != xno; then
9832 enable_dlopen=yes
9833 else
9834 enable_dlopen=no
9835 fi
9836
9837 case $lt_cv_dlopen in
9838 dlopen)
9839 save_CPPFLAGS="$CPPFLAGS"
9840 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9841
9842 save_LDFLAGS="$LDFLAGS"
9843 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9844
9845 save_LIBS="$LIBS"
9846 LIBS="$lt_cv_dlopen_libs $LIBS"
9847
dd184caf 9848 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9849echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 9850if test "${lt_cv_dlopen_self+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9852else
9853 if test "$cross_compiling" = yes; then :
9854 lt_cv_dlopen_self=cross
9855else
9856 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9857 lt_status=$lt_dlunknown
9858 cat > conftest.$ac_ext <<EOF
dd184caf 9859#line 9859 "configure"
d9898ee8 9860#include "confdefs.h"
9861
9862#if HAVE_DLFCN_H
9863#include <dlfcn.h>
9864#endif
9865
9866#include <stdio.h>
9867
9868#ifdef RTLD_GLOBAL
9869# define LT_DLGLOBAL RTLD_GLOBAL
9870#else
9871# ifdef DL_GLOBAL
9872# define LT_DLGLOBAL DL_GLOBAL
9873# else
9874# define LT_DLGLOBAL 0
9875# endif
9876#endif
9877
9878/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9879 find out it does not work in some platform. */
9880#ifndef LT_DLLAZY_OR_NOW
9881# ifdef RTLD_LAZY
9882# define LT_DLLAZY_OR_NOW RTLD_LAZY
9883# else
9884# ifdef DL_LAZY
9885# define LT_DLLAZY_OR_NOW DL_LAZY
9886# else
9887# ifdef RTLD_NOW
9888# define LT_DLLAZY_OR_NOW RTLD_NOW
9889# else
9890# ifdef DL_NOW
9891# define LT_DLLAZY_OR_NOW DL_NOW
9892# else
9893# define LT_DLLAZY_OR_NOW 0
9894# endif
9895# endif
9896# endif
9897# endif
9898#endif
9899
9900#ifdef __cplusplus
9901extern "C" void exit (int);
9902#endif
9903
9904void fnord() { int i=42;}
9905int main ()
9906{
9907 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9908 int status = $lt_dlunknown;
9909
9910 if (self)
9911 {
9912 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9913 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9914 /* dlclose (self); */
9915 }
9916 else
9917 puts (dlerror ());
9918
9919 exit (status);
9920}
9921EOF
9922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923 (eval $ac_link) 2>&5
9924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9927 (./conftest; exit; ) >&5 2>/dev/null
9928 lt_status=$?
9929 case x$lt_status in
9930 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9931 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9932 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9933 esac
9934 else :
9935 # compilation failed
9936 lt_cv_dlopen_self=no
9937 fi
9938fi
9939rm -fr conftest*
9940
9941
9942fi
dd184caf 9943{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9944echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d9898ee8 9945
9946 if test "x$lt_cv_dlopen_self" = xyes; then
9947 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
dd184caf 9948 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9949echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 9950if test "${lt_cv_dlopen_self_static+set}" = set; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
9952else
9953 if test "$cross_compiling" = yes; then :
9954 lt_cv_dlopen_self_static=cross
9955else
9956 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9957 lt_status=$lt_dlunknown
9958 cat > conftest.$ac_ext <<EOF
dd184caf 9959#line 9959 "configure"
d9898ee8 9960#include "confdefs.h"
9961
9962#if HAVE_DLFCN_H
9963#include <dlfcn.h>
9964#endif
9965
9966#include <stdio.h>
9967
9968#ifdef RTLD_GLOBAL
9969# define LT_DLGLOBAL RTLD_GLOBAL
9970#else
9971# ifdef DL_GLOBAL
9972# define LT_DLGLOBAL DL_GLOBAL
9973# else
9974# define LT_DLGLOBAL 0
9975# endif
9976#endif
9977
9978/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9979 find out it does not work in some platform. */
9980#ifndef LT_DLLAZY_OR_NOW
9981# ifdef RTLD_LAZY
9982# define LT_DLLAZY_OR_NOW RTLD_LAZY
9983# else
9984# ifdef DL_LAZY
9985# define LT_DLLAZY_OR_NOW DL_LAZY
9986# else
9987# ifdef RTLD_NOW
9988# define LT_DLLAZY_OR_NOW RTLD_NOW
9989# else
9990# ifdef DL_NOW
9991# define LT_DLLAZY_OR_NOW DL_NOW
9992# else
9993# define LT_DLLAZY_OR_NOW 0
9994# endif
9995# endif
9996# endif
9997# endif
9998#endif
9999
10000#ifdef __cplusplus
10001extern "C" void exit (int);
10002#endif
10003
10004void fnord() { int i=42;}
10005int main ()
10006{
10007 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10008 int status = $lt_dlunknown;
10009
10010 if (self)
10011 {
10012 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10013 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10014 /* dlclose (self); */
10015 }
10016 else
10017 puts (dlerror ());
10018
10019 exit (status);
10020}
10021EOF
10022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10023 (eval $ac_link) 2>&5
10024 ac_status=$?
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10027 (./conftest; exit; ) >&5 2>/dev/null
10028 lt_status=$?
10029 case x$lt_status in
10030 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10031 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10032 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10033 esac
10034 else :
10035 # compilation failed
10036 lt_cv_dlopen_self_static=no
10037 fi
10038fi
10039rm -fr conftest*
10040
10041
10042fi
dd184caf 10043{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10044echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d9898ee8 10045 fi
10046
10047 CPPFLAGS="$save_CPPFLAGS"
10048 LDFLAGS="$save_LDFLAGS"
10049 LIBS="$save_LIBS"
10050 ;;
10051 esac
10052
10053 case $lt_cv_dlopen_self in
10054 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10055 *) enable_dlopen_self=unknown ;;
10056 esac
10057
10058 case $lt_cv_dlopen_self_static in
10059 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10060 *) enable_dlopen_self_static=unknown ;;
10061 esac
10062fi
10063
10064
10065# Report which library types will actually be built
dd184caf 10066{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10067echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10068{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10069echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 10070
dd184caf 10071{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10072echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 10073test "$can_build_shared" = "no" && enable_shared=no
10074
10075# On AIX, shared libraries and static libraries use the same namespace, and
10076# are all built from PIC.
10077case $host_os in
10078aix3*)
10079 test "$enable_shared" = yes && enable_static=no
10080 if test -n "$RANLIB"; then
10081 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10082 postinstall_cmds='$RANLIB $lib'
10083 fi
10084 ;;
10085
10086aix4* | aix5*)
10087 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10088 test "$enable_shared" = yes && enable_static=no
10089 fi
10090 ;;
10091esac
dd184caf 10092{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10093echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 10094
dd184caf 10095{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10096echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 10097# Make sure either enable_shared or enable_static is yes.
10098test "$enable_shared" = yes || enable_static=yes
dd184caf 10099{ echo "$as_me:$LINENO: result: $enable_static" >&5
10100echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 10101
10102# The else clause should only fire when bootstrapping the
10103# libtool distribution, otherwise you forgot to ship ltmain.sh
10104# with your package, and you will get complaints that there are
10105# no rules to generate ltmain.sh.
10106if test -f "$ltmain"; then
10107 # See if we are running on zsh, and set the options which allow our commands through
10108 # without removal of \ escapes.
10109 if test -n "${ZSH_VERSION+set}" ; then
10110 setopt NO_GLOB_SUBST
10111 fi
10112 # Now quote all the things that may contain metacharacters while being
10113 # careful not to overquote the AC_SUBSTed values. We take copies of the
10114 # variables and quote the copies for generation of the libtool script.
10115 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10116 SED SHELL STRIP \
10117 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10118 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10119 deplibs_check_method reload_flag reload_cmds need_locks \
10120 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10121 lt_cv_sys_global_symbol_to_c_name_address \
10122 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10123 old_postinstall_cmds old_postuninstall_cmds \
10124 compiler \
10125 CC \
10126 LD \
10127 lt_prog_compiler_wl \
10128 lt_prog_compiler_pic \
10129 lt_prog_compiler_static \
10130 lt_prog_compiler_no_builtin_flag \
10131 export_dynamic_flag_spec \
10132 thread_safe_flag_spec \
10133 whole_archive_flag_spec \
10134 enable_shared_with_static_runtimes \
10135 old_archive_cmds \
10136 old_archive_from_new_cmds \
10137 predep_objects \
10138 postdep_objects \
10139 predeps \
10140 postdeps \
10141 compiler_lib_search_path \
10142 archive_cmds \
10143 archive_expsym_cmds \
10144 postinstall_cmds \
10145 postuninstall_cmds \
10146 old_archive_from_expsyms_cmds \
10147 allow_undefined_flag \
10148 no_undefined_flag \
10149 export_symbols_cmds \
10150 hardcode_libdir_flag_spec \
10151 hardcode_libdir_flag_spec_ld \
10152 hardcode_libdir_separator \
10153 hardcode_automatic \
10154 module_cmds \
10155 module_expsym_cmds \
10156 lt_cv_prog_compiler_c_o \
10157 exclude_expsyms \
10158 include_expsyms; do
10159
10160 case $var in
10161 old_archive_cmds | \
10162 old_archive_from_new_cmds | \
10163 archive_cmds | \
10164 archive_expsym_cmds | \
10165 module_cmds | \
10166 module_expsym_cmds | \
10167 old_archive_from_expsyms_cmds | \
10168 export_symbols_cmds | \
10169 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10170 postinstall_cmds | postuninstall_cmds | \
10171 old_postinstall_cmds | old_postuninstall_cmds | \
10172 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10173 # Double-quote double-evaled strings.
10174 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10175 ;;
10176 *)
10177 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10178 ;;
10179 esac
10180 done
10181
10182 case $lt_echo in
10183 *'\$0 --fallback-echo"')
10184 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10185 ;;
10186 esac
10187
10188cfgfile="${ofile}T"
10189 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10190 $rm -f "$cfgfile"
10191 { echo "$as_me:$LINENO: creating $ofile" >&5
10192echo "$as_me: creating $ofile" >&6;}
10193
10194 cat <<__EOF__ >> "$cfgfile"
10195#! $SHELL
10196
10197# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10198# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10199# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10200#
10201# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10202# Free Software Foundation, Inc.
10203#
10204# This file is part of GNU Libtool:
10205# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10206#
10207# This program is free software; you can redistribute it and/or modify
10208# it under the terms of the GNU General Public License as published by
10209# the Free Software Foundation; either version 2 of the License, or
10210# (at your option) any later version.
10211#
10212# This program is distributed in the hope that it will be useful, but
10213# WITHOUT ANY WARRANTY; without even the implied warranty of
10214# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10215# General Public License for more details.
10216#
10217# You should have received a copy of the GNU General Public License
10218# along with this program; if not, write to the Free Software
10219# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10220#
10221# As a special exception to the GNU General Public License, if you
10222# distribute this file as part of a program that contains a
10223# configuration script generated by Autoconf, you may include it under
10224# the same distribution terms that you use for the rest of that program.
10225
10226# A sed program that does not truncate output.
10227SED=$lt_SED
10228
10229# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10230Xsed="$SED -e 1s/^X//"
10231
10232# The HP-UX ksh and POSIX shell print the target directory to stdout
10233# if CDPATH is set.
10234(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10235
10236# The names of the tagged configurations supported by this script.
10237available_tags=
10238
10239# ### BEGIN LIBTOOL CONFIG
10240
10241# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10242
10243# Shell to use when invoking shell scripts.
10244SHELL=$lt_SHELL
10245
10246# Whether or not to build shared libraries.
10247build_libtool_libs=$enable_shared
10248
10249# Whether or not to build static libraries.
10250build_old_libs=$enable_static
10251
10252# Whether or not to add -lc for building shared libraries.
10253build_libtool_need_lc=$archive_cmds_need_lc
10254
10255# Whether or not to disallow shared libs when runtime libs are static
10256allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10257
10258# Whether or not to optimize for fast installation.
10259fast_install=$enable_fast_install
10260
10261# The host system.
10262host_alias=$host_alias
10263host=$host
10264host_os=$host_os
10265
10266# The build system.
10267build_alias=$build_alias
10268build=$build
10269build_os=$build_os
10270
10271# An echo program that does not interpret backslashes.
10272echo=$lt_echo
10273
10274# The archiver.
10275AR=$lt_AR
10276AR_FLAGS=$lt_AR_FLAGS
10277
10278# A C compiler.
10279LTCC=$lt_LTCC
10280
10281# LTCC compiler flags.
10282LTCFLAGS=$lt_LTCFLAGS
10283
10284# A language-specific compiler.
10285CC=$lt_compiler
10286
10287# Is the compiler the GNU C compiler?
10288with_gcc=$GCC
10289
d9898ee8 10290# An ERE matcher.
10291EGREP=$lt_EGREP
10292
10293# The linker used to build libraries.
10294LD=$lt_LD
10295
10296# Whether we need hard or soft links.
10297LN_S=$lt_LN_S
10298
10299# A BSD-compatible nm program.
10300NM=$lt_NM
10301
10302# A symbol stripping program
10303STRIP=$lt_STRIP
10304
10305# Used to examine libraries when file_magic_cmd begins "file"
10306MAGIC_CMD=$MAGIC_CMD
10307
10308# Used on cygwin: DLL creation program.
10309DLLTOOL="$DLLTOOL"
10310
10311# Used on cygwin: object dumper.
10312OBJDUMP="$OBJDUMP"
10313
10314# Used on cygwin: assembler.
10315AS="$AS"
10316
10317# The name of the directory that contains temporary libtool files.
10318objdir=$objdir
10319
10320# How to create reloadable object files.
10321reload_flag=$lt_reload_flag
10322reload_cmds=$lt_reload_cmds
10323
10324# How to pass a linker flag through the compiler.
10325wl=$lt_lt_prog_compiler_wl
10326
10327# Object file suffix (normally "o").
10328objext="$ac_objext"
10329
10330# Old archive suffix (normally "a").
10331libext="$libext"
10332
10333# Shared library suffix (normally ".so").
10334shrext_cmds='$shrext_cmds'
10335
10336# Executable file suffix (normally "").
10337exeext="$exeext"
10338
10339# Additional compiler flags for building library objects.
10340pic_flag=$lt_lt_prog_compiler_pic
10341pic_mode=$pic_mode
10342
10343# What is the maximum length of a command?
10344max_cmd_len=$lt_cv_sys_max_cmd_len
10345
10346# Does compiler simultaneously support -c and -o options?
10347compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10348
10349# Must we lock files when doing compilation?
10350need_locks=$lt_need_locks
10351
10352# Do we need the lib prefix for modules?
10353need_lib_prefix=$need_lib_prefix
10354
10355# Do we need a version for libraries?
10356need_version=$need_version
10357
10358# Whether dlopen is supported.
10359dlopen_support=$enable_dlopen
10360
10361# Whether dlopen of programs is supported.
10362dlopen_self=$enable_dlopen_self
10363
10364# Whether dlopen of statically linked programs is supported.
10365dlopen_self_static=$enable_dlopen_self_static
10366
10367# Compiler flag to prevent dynamic linking.
10368link_static_flag=$lt_lt_prog_compiler_static
10369
10370# Compiler flag to turn off builtin functions.
10371no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10372
10373# Compiler flag to allow reflexive dlopens.
10374export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10375
10376# Compiler flag to generate shared objects directly from archives.
10377whole_archive_flag_spec=$lt_whole_archive_flag_spec
10378
10379# Compiler flag to generate thread-safe objects.
10380thread_safe_flag_spec=$lt_thread_safe_flag_spec
10381
10382# Library versioning type.
10383version_type=$version_type
10384
10385# Format of library name prefix.
10386libname_spec=$lt_libname_spec
10387
10388# List of archive names. First name is the real one, the rest are links.
10389# The last name is the one that the linker finds with -lNAME.
10390library_names_spec=$lt_library_names_spec
10391
10392# The coded name of the library, if different from the real name.
10393soname_spec=$lt_soname_spec
10394
10395# Commands used to build and install an old-style archive.
10396RANLIB=$lt_RANLIB
10397old_archive_cmds=$lt_old_archive_cmds
10398old_postinstall_cmds=$lt_old_postinstall_cmds
10399old_postuninstall_cmds=$lt_old_postuninstall_cmds
10400
10401# Create an old-style archive from a shared archive.
10402old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10403
10404# Create a temporary old-style archive to link instead of a shared archive.
10405old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10406
10407# Commands used to build and install a shared archive.
10408archive_cmds=$lt_archive_cmds
10409archive_expsym_cmds=$lt_archive_expsym_cmds
10410postinstall_cmds=$lt_postinstall_cmds
10411postuninstall_cmds=$lt_postuninstall_cmds
10412
10413# Commands used to build a loadable module (assumed same as above if empty)
10414module_cmds=$lt_module_cmds
10415module_expsym_cmds=$lt_module_expsym_cmds
10416
10417# Commands to strip libraries.
10418old_striplib=$lt_old_striplib
10419striplib=$lt_striplib
10420
10421# Dependencies to place before the objects being linked to create a
10422# shared library.
dd184caf 10423predep_objects=$lt_predep_objects
d9898ee8 10424
10425# Dependencies to place after the objects being linked to create a
10426# shared library.
dd184caf 10427postdep_objects=$lt_postdep_objects
d9898ee8 10428
10429# Dependencies to place before the objects being linked to create a
10430# shared library.
10431predeps=$lt_predeps
10432
10433# Dependencies to place after the objects being linked to create a
10434# shared library.
10435postdeps=$lt_postdeps
10436
10437# The library search path used internally by the compiler when linking
10438# a shared library.
dd184caf 10439compiler_lib_search_path=$lt_compiler_lib_search_path
d9898ee8 10440
10441# Method to check whether dependent libraries are shared objects.
10442deplibs_check_method=$lt_deplibs_check_method
10443
10444# Command to use when deplibs_check_method == file_magic.
10445file_magic_cmd=$lt_file_magic_cmd
10446
10447# Flag that allows shared libraries with undefined symbols to be built.
10448allow_undefined_flag=$lt_allow_undefined_flag
10449
10450# Flag that forces no undefined symbols.
10451no_undefined_flag=$lt_no_undefined_flag
10452
10453# Commands used to finish a libtool library installation in a directory.
10454finish_cmds=$lt_finish_cmds
10455
10456# Same as above, but a single script fragment to be evaled but not shown.
10457finish_eval=$lt_finish_eval
10458
10459# Take the output of nm and produce a listing of raw symbols and C names.
10460global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10461
10462# Transform the output of nm in a proper C declaration
10463global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10464
10465# Transform the output of nm in a C name address pair
10466global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10467
10468# This is the shared library runtime path variable.
10469runpath_var=$runpath_var
10470
10471# This is the shared library path variable.
10472shlibpath_var=$shlibpath_var
10473
10474# Is shlibpath searched before the hard-coded library search path?
10475shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10476
10477# How to hardcode a shared library path into an executable.
10478hardcode_action=$hardcode_action
10479
10480# Whether we should hardcode library paths into libraries.
10481hardcode_into_libs=$hardcode_into_libs
10482
10483# Flag to hardcode \$libdir into a binary during linking.
10484# This must work even if \$libdir does not exist.
10485hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10486
10487# If ld is used when linking, flag to hardcode \$libdir into
10488# a binary during linking. This must work even if \$libdir does
10489# not exist.
10490hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10491
10492# Whether we need a single -rpath flag with a separated argument.
10493hardcode_libdir_separator=$lt_hardcode_libdir_separator
10494
10495# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10496# resulting binary.
10497hardcode_direct=$hardcode_direct
10498
10499# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10500# resulting binary.
10501hardcode_minus_L=$hardcode_minus_L
10502
10503# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10504# the resulting binary.
10505hardcode_shlibpath_var=$hardcode_shlibpath_var
10506
10507# Set to yes if building a shared library automatically hardcodes DIR into the library
10508# and all subsequent libraries and executables linked against it.
10509hardcode_automatic=$hardcode_automatic
10510
10511# Variables whose values should be saved in libtool wrapper scripts and
10512# restored at relink time.
10513variables_saved_for_relink="$variables_saved_for_relink"
10514
10515# Whether libtool must link a program against all its dependency libraries.
10516link_all_deplibs=$link_all_deplibs
10517
10518# Compile-time system search path for libraries
dd184caf 10519sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 10520
10521# Run-time system search path for libraries
10522sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10523
10524# Fix the shell variable \$srcfile for the compiler.
10525fix_srcfile_path="$fix_srcfile_path"
10526
10527# Set to yes if exported symbols are required.
10528always_export_symbols=$always_export_symbols
10529
10530# The commands to list exported symbols.
10531export_symbols_cmds=$lt_export_symbols_cmds
10532
10533# The commands to extract the exported symbol list from a shared archive.
10534extract_expsyms_cmds=$lt_extract_expsyms_cmds
10535
10536# Symbols that should not be listed in the preloaded symbols.
10537exclude_expsyms=$lt_exclude_expsyms
10538
10539# Symbols that must always be exported.
10540include_expsyms=$lt_include_expsyms
10541
10542# ### END LIBTOOL CONFIG
10543
10544__EOF__
10545
10546
10547 case $host_os in
10548 aix3*)
10549 cat <<\EOF >> "$cfgfile"
10550
10551# AIX sometimes has problems with the GCC collect2 program. For some
10552# reason, if we set the COLLECT_NAMES environment variable, the problems
10553# vanish in a puff of smoke.
10554if test "X${COLLECT_NAMES+set}" != Xset; then
10555 COLLECT_NAMES=
10556 export COLLECT_NAMES
10557fi
10558EOF
10559 ;;
10560 esac
10561
10562 # We use sed instead of cat because bash on DJGPP gets confused if
10563 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10564 # text mode, it properly converts lines to CR/LF. This bash problem
10565 # is reportedly fixed, but why not run on old versions too?
10566 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10567
10568 mv -f "$cfgfile" "$ofile" || \
10569 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10570 chmod +x "$ofile"
10571
10572else
10573 # If there is no Makefile yet, we rely on a make rule to execute
10574 # `config.status --recheck' to rerun these tests and create the
10575 # libtool script then.
10576 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10577 if test -f "$ltmain_in"; then
10578 test -f Makefile && make "$ltmain"
10579 fi
10580fi
10581
10582
10583ac_ext=c
10584ac_cpp='$CPP $CPPFLAGS'
10585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10587ac_compiler_gnu=$ac_cv_c_compiler_gnu
10588
10589CC="$lt_save_CC"
10590
10591
dd184caf 10592# Check whether --with-tags was given.
d9898ee8 10593if test "${with_tags+set}" = set; then
dd184caf 10594 withval=$with_tags; tagnames="$withval"
10595fi
10596
d9898ee8 10597
10598if test -f "$ltmain" && test -n "$tagnames"; then
10599 if test ! -f "${ofile}"; then
10600 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10601echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10602 fi
10603
10604 if test -z "$LTCC"; then
10605 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10606 if test -z "$LTCC"; then
10607 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10608echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10609 else
10610 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10611echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10612 fi
10613 fi
10614 if test -z "$LTCFLAGS"; then
10615 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10616 fi
10617
10618 # Extract list of available tagged configurations in $ofile.
10619 # Note that this assumes the entire list is on one line.
10620 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10621
10622 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10623 for tagname in $tagnames; do
10624 IFS="$lt_save_ifs"
10625 # Check whether tagname contains only valid characters
10626 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10627 "") ;;
10628 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10629echo "$as_me: error: invalid tag name: $tagname" >&2;}
10630 { (exit 1); exit 1; }; }
10631 ;;
10632 esac
10633
10634 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10635 then
10636 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10637echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10638 { (exit 1); exit 1; }; }
10639 fi
10640
10641 # Update the list of available tags.
10642 if test -n "$tagname"; then
10643 echo appending configuration tag \"$tagname\" to $ofile
10644
10645 case $tagname in
10646 CXX)
10647 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10648 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10649 (test "X$CXX" != "Xg++"))) ; then
dd184caf 10650 ac_ext=cpp
d9898ee8 10651ac_cpp='$CXXCPP $CPPFLAGS'
10652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10655
10656
10657
10658
10659archive_cmds_need_lc_CXX=no
10660allow_undefined_flag_CXX=
10661always_export_symbols_CXX=no
10662archive_expsym_cmds_CXX=
10663export_dynamic_flag_spec_CXX=
10664hardcode_direct_CXX=no
10665hardcode_libdir_flag_spec_CXX=
10666hardcode_libdir_flag_spec_ld_CXX=
10667hardcode_libdir_separator_CXX=
10668hardcode_minus_L_CXX=no
10669hardcode_shlibpath_var_CXX=unsupported
10670hardcode_automatic_CXX=no
10671module_cmds_CXX=
10672module_expsym_cmds_CXX=
10673link_all_deplibs_CXX=unknown
10674old_archive_cmds_CXX=$old_archive_cmds
10675no_undefined_flag_CXX=
10676whole_archive_flag_spec_CXX=
10677enable_shared_with_static_runtimes_CXX=no
10678
10679# Dependencies to place before and after the object being linked:
10680predep_objects_CXX=
10681postdep_objects_CXX=
10682predeps_CXX=
10683postdeps_CXX=
10684compiler_lib_search_path_CXX=
10685
10686# Source file extension for C++ test sources.
10687ac_ext=cpp
10688
10689# Object file extension for compiled C++ test sources.
10690objext=o
10691objext_CXX=$objext
10692
10693# Code to be used in simple compile tests
10694lt_simple_compile_test_code="int some_variable = 0;\n"
10695
10696# Code to be used in simple link tests
10697lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10698
10699# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10700
10701# If no C compiler was specified, use CC.
10702LTCC=${LTCC-"$CC"}
10703
10704# If no C compiler flags were specified, use CFLAGS.
10705LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10706
10707# Allow CC to be a program name with arguments.
10708compiler=$CC
10709
10710
10711# save warnings/boilerplate of simple test code
10712ac_outfile=conftest.$ac_objext
10713printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10714eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10715_lt_compiler_boilerplate=`cat conftest.err`
10716$rm conftest*
10717
10718ac_outfile=conftest.$ac_objext
10719printf "$lt_simple_link_test_code" >conftest.$ac_ext
10720eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10721_lt_linker_boilerplate=`cat conftest.err`
10722$rm conftest*
10723
10724
10725# Allow CC to be a program name with arguments.
10726lt_save_CC=$CC
10727lt_save_LD=$LD
10728lt_save_GCC=$GCC
10729GCC=$GXX
10730lt_save_with_gnu_ld=$with_gnu_ld
10731lt_save_path_LD=$lt_cv_path_LD
10732if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10733 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10734else
10735 $as_unset lt_cv_prog_gnu_ld
10736fi
10737if test -n "${lt_cv_path_LDCXX+set}"; then
10738 lt_cv_path_LD=$lt_cv_path_LDCXX
10739else
10740 $as_unset lt_cv_path_LD
10741fi
10742test -z "${LDCXX+set}" || LD=$LDCXX
10743CC=${CXX-"c++"}
10744compiler=$CC
10745compiler_CXX=$CC
10746for cc_temp in $compiler""; do
10747 case $cc_temp in
10748 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10749 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10750 \-*) ;;
10751 *) break;;
10752 esac
10753done
10754cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10755
10756
10757# We don't want -fno-exception wen compiling C++ code, so set the
10758# no_builtin_flag separately
10759if test "$GXX" = yes; then
10760 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10761else
10762 lt_prog_compiler_no_builtin_flag_CXX=
10763fi
10764
10765if test "$GXX" = yes; then
10766 # Set up default GNU C++ configuration
10767
10768
dd184caf 10769# Check whether --with-gnu-ld was given.
d9898ee8 10770if test "${with_gnu_ld+set}" = set; then
dd184caf 10771 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 10772else
10773 with_gnu_ld=no
dd184caf 10774fi
10775
d9898ee8 10776ac_prog=ld
10777if test "$GCC" = yes; then
10778 # Check if gcc -print-prog-name=ld gives a path.
dd184caf 10779 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10780echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 10781 case $host in
10782 *-*-mingw*)
10783 # gcc leaves a trailing carriage return which upsets mingw
10784 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10785 *)
10786 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10787 esac
10788 case $ac_prog in
10789 # Accept absolute paths.
10790 [\\/]* | ?:[\\/]*)
10791 re_direlt='/[^/][^/]*/\.\./'
10792 # Canonicalize the pathname of ld
10793 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10794 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10795 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10796 done
10797 test -z "$LD" && LD="$ac_prog"
10798 ;;
10799 "")
10800 # If it fails, then pretend we aren't using GCC.
10801 ac_prog=ld
10802 ;;
10803 *)
10804 # If it is relative, then search for the first ld in PATH.
10805 with_gnu_ld=unknown
10806 ;;
10807 esac
10808elif test "$with_gnu_ld" = yes; then
dd184caf 10809 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10810echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 10811else
dd184caf 10812 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10813echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 10814fi
10815if test "${lt_cv_path_LD+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10817else
10818 if test -z "$LD"; then
10819 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10820 for ac_dir in $PATH; do
10821 IFS="$lt_save_ifs"
10822 test -z "$ac_dir" && ac_dir=.
10823 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10824 lt_cv_path_LD="$ac_dir/$ac_prog"
10825 # Check to see if the program is GNU ld. I'd rather use --version,
10826 # but apparently some variants of GNU ld only accept -v.
10827 # Break only if it was the GNU/non-GNU ld that we prefer.
10828 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10829 *GNU* | *'with BFD'*)
10830 test "$with_gnu_ld" != no && break
10831 ;;
10832 *)
10833 test "$with_gnu_ld" != yes && break
10834 ;;
10835 esac
10836 fi
10837 done
10838 IFS="$lt_save_ifs"
10839else
10840 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10841fi
10842fi
10843
10844LD="$lt_cv_path_LD"
10845if test -n "$LD"; then
dd184caf 10846 { echo "$as_me:$LINENO: result: $LD" >&5
10847echo "${ECHO_T}$LD" >&6; }
d9898ee8 10848else
dd184caf 10849 { echo "$as_me:$LINENO: result: no" >&5
10850echo "${ECHO_T}no" >&6; }
d9898ee8 10851fi
10852test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10853echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10854 { (exit 1); exit 1; }; }
dd184caf 10855{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10856echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 10857if test "${lt_cv_prog_gnu_ld+set}" = set; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10859else
10860 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10861case `$LD -v 2>&1 </dev/null` in
10862*GNU* | *'with BFD'*)
10863 lt_cv_prog_gnu_ld=yes
10864 ;;
10865*)
10866 lt_cv_prog_gnu_ld=no
10867 ;;
10868esac
10869fi
dd184caf 10870{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10871echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 10872with_gnu_ld=$lt_cv_prog_gnu_ld
10873
10874
10875
10876 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10877 # archiving commands below assume that GNU ld is being used.
10878 if test "$with_gnu_ld" = yes; then
10879 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10880 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'
10881
10882 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10883 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10884
10885 # If archive_cmds runs LD, not CC, wlarc should be empty
10886 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10887 # investigate it a little bit more. (MM)
10888 wlarc='${wl}'
10889
10890 # ancient GNU ld didn't support --whole-archive et. al.
10891 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10892 grep 'no-whole-archive' > /dev/null; then
10893 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10894 else
10895 whole_archive_flag_spec_CXX=
10896 fi
10897 else
10898 with_gnu_ld=no
10899 wlarc=
10900
10901 # A generic and very simple default shared library creation
10902 # command for GNU C++ for the case where it uses the native
10903 # linker, instead of GNU ld. If possible, this setting should
10904 # overridden to take advantage of the native linker features on
10905 # the platform it is being used on.
10906 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10907 fi
10908
10909 # Commands to make compiler produce verbose output that lists
10910 # what "hidden" libraries, object files and flags are used when
10911 # linking a shared library.
10912 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10913
10914else
10915 GXX=no
10916 with_gnu_ld=no
10917 wlarc=
10918fi
10919
10920# PORTME: fill in a description of your system's C++ link characteristics
dd184caf 10921{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10922echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 10923ld_shlibs_CXX=yes
10924case $host_os in
10925 aix3*)
10926 # FIXME: insert proper C++ library support
10927 ld_shlibs_CXX=no
10928 ;;
10929 aix4* | aix5*)
10930 if test "$host_cpu" = ia64; then
10931 # On IA64, the linker does run time linking by default, so we don't
10932 # have to do anything special.
10933 aix_use_runtimelinking=no
10934 exp_sym_flag='-Bexport'
10935 no_entry_flag=""
10936 else
10937 aix_use_runtimelinking=no
10938
10939 # Test if we are trying to use run time linking or normal
10940 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10941 # need to do runtime linking.
10942 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10943 for ld_flag in $LDFLAGS; do
10944 case $ld_flag in
10945 *-brtl*)
10946 aix_use_runtimelinking=yes
10947 break
10948 ;;
10949 esac
10950 done
10951 ;;
10952 esac
10953
10954 exp_sym_flag='-bexport'
10955 no_entry_flag='-bnoentry'
10956 fi
10957
10958 # When large executables or shared objects are built, AIX ld can
10959 # have problems creating the table of contents. If linking a library
10960 # or program results in "error TOC overflow" add -mminimal-toc to
10961 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10962 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10963
10964 archive_cmds_CXX=''
10965 hardcode_direct_CXX=yes
10966 hardcode_libdir_separator_CXX=':'
10967 link_all_deplibs_CXX=yes
10968
10969 if test "$GXX" = yes; then
10970 case $host_os in aix4.[012]|aix4.[012].*)
10971 # We only want to do this on AIX 4.2 and lower, the check
10972 # below for broken collect2 doesn't work under 4.3+
10973 collect2name=`${CC} -print-prog-name=collect2`
10974 if test -f "$collect2name" && \
10975 strings "$collect2name" | grep resolve_lib_name >/dev/null
10976 then
10977 # We have reworked collect2
10978 hardcode_direct_CXX=yes
10979 else
10980 # We have old collect2
10981 hardcode_direct_CXX=unsupported
10982 # It fails to find uninstalled libraries when the uninstalled
10983 # path is not listed in the libpath. Setting hardcode_minus_L
10984 # to unsupported forces relinking
10985 hardcode_minus_L_CXX=yes
10986 hardcode_libdir_flag_spec_CXX='-L$libdir'
10987 hardcode_libdir_separator_CXX=
10988 fi
10989 ;;
10990 esac
10991 shared_flag='-shared'
10992 if test "$aix_use_runtimelinking" = yes; then
10993 shared_flag="$shared_flag "'${wl}-G'
10994 fi
10995 else
10996 # not using gcc
10997 if test "$host_cpu" = ia64; then
10998 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10999 # chokes on -Wl,-G. The following line is correct:
11000 shared_flag='-G'
11001 else
11002 if test "$aix_use_runtimelinking" = yes; then
11003 shared_flag='${wl}-G'
11004 else
11005 shared_flag='${wl}-bM:SRE'
11006 fi
11007 fi
11008 fi
11009
11010 # It seems that -bexpall does not export symbols beginning with
11011 # underscore (_), so it is better to generate a list of symbols to export.
11012 always_export_symbols_CXX=yes
11013 if test "$aix_use_runtimelinking" = yes; then
11014 # Warning - without using the other runtime loading flags (-brtl),
11015 # -berok will link without error, but may produce a broken library.
11016 allow_undefined_flag_CXX='-berok'
11017 # Determine the default libpath from the value encoded in an empty executable.
11018 cat >conftest.$ac_ext <<_ACEOF
11019/* confdefs.h. */
11020_ACEOF
11021cat confdefs.h >>conftest.$ac_ext
11022cat >>conftest.$ac_ext <<_ACEOF
11023/* end confdefs.h. */
11024
11025int
11026main ()
11027{
11028
11029 ;
11030 return 0;
11031}
11032_ACEOF
11033rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 11034if { (ac_try="$ac_link"
11035case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11038esac
11039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040 (eval "$ac_link") 2>conftest.er1
d9898ee8 11041 ac_status=$?
11042 grep -v '^ *+' conftest.er1 >conftest.err
11043 rm -f conftest.er1
11044 cat conftest.err >&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11046 (exit $ac_status); } && {
11047 test -z "$ac_cxx_werror_flag" ||
11048 test ! -s conftest.err
11049 } && test -s conftest$ac_exeext &&
11050 $as_test_x conftest$ac_exeext; then
d9898ee8 11051
11052aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11053}'`
11054# Check for a 64-bit object if we didn't find anything.
11055if 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; }
11056}'`; fi
11057else
11058 echo "$as_me: failed program was:" >&5
11059sed 's/^/| /' conftest.$ac_ext >&5
11060
dd184caf 11061
d9898ee8 11062fi
dd184caf 11063
11064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11065 conftest$ac_exeext conftest.$ac_ext
11066if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11067
11068 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11069
11070 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"
11071 else
11072 if test "$host_cpu" = ia64; then
11073 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11074 allow_undefined_flag_CXX="-z nodefs"
11075 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"
11076 else
11077 # Determine the default libpath from the value encoded in an empty executable.
11078 cat >conftest.$ac_ext <<_ACEOF
11079/* confdefs.h. */
11080_ACEOF
11081cat confdefs.h >>conftest.$ac_ext
11082cat >>conftest.$ac_ext <<_ACEOF
11083/* end confdefs.h. */
11084
11085int
11086main ()
11087{
11088
11089 ;
11090 return 0;
11091}
11092_ACEOF
11093rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 11094if { (ac_try="$ac_link"
11095case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11098esac
11099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_link") 2>conftest.er1
d9898ee8 11101 ac_status=$?
11102 grep -v '^ *+' conftest.er1 >conftest.err
11103 rm -f conftest.er1
11104 cat conftest.err >&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11106 (exit $ac_status); } && {
11107 test -z "$ac_cxx_werror_flag" ||
11108 test ! -s conftest.err
11109 } && test -s conftest$ac_exeext &&
11110 $as_test_x conftest$ac_exeext; then
d9898ee8 11111
11112aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11113}'`
11114# Check for a 64-bit object if we didn't find anything.
11115if 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; }
11116}'`; fi
11117else
11118 echo "$as_me: failed program was:" >&5
11119sed 's/^/| /' conftest.$ac_ext >&5
11120
dd184caf 11121
d9898ee8 11122fi
dd184caf 11123
11124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11125 conftest$ac_exeext conftest.$ac_ext
11126if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11127
11128 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11129 # Warning - without using the other run time loading flags,
11130 # -berok will link without error, but may produce a broken library.
11131 no_undefined_flag_CXX=' ${wl}-bernotok'
11132 allow_undefined_flag_CXX=' ${wl}-berok'
11133 # Exported symbols can be pulled into shared objects from archives
11134 whole_archive_flag_spec_CXX='$convenience'
11135 archive_cmds_need_lc_CXX=yes
11136 # This is similar to how AIX traditionally builds its shared libraries.
11137 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'
11138 fi
11139 fi
11140 ;;
11141
11142 beos*)
11143 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11144 allow_undefined_flag_CXX=unsupported
11145 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11146 # support --undefined. This deserves some investigation. FIXME
11147 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11148 else
11149 ld_shlibs_CXX=no
11150 fi
11151 ;;
11152
11153 chorus*)
11154 case $cc_basename in
11155 *)
11156 # FIXME: insert proper C++ library support
11157 ld_shlibs_CXX=no
11158 ;;
11159 esac
11160 ;;
11161
11162 cygwin* | mingw* | pw32*)
11163 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11164 # as there is no search path for DLLs.
11165 hardcode_libdir_flag_spec_CXX='-L$libdir'
11166 allow_undefined_flag_CXX=unsupported
11167 always_export_symbols_CXX=no
11168 enable_shared_with_static_runtimes_CXX=yes
11169
11170 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11171 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'
11172 # If the export-symbols file already is a .def file (1st line
11173 # is EXPORTS), use it as is; otherwise, prepend...
11174 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11175 cp $export_symbols $output_objdir/$soname.def;
11176 else
11177 echo EXPORTS > $output_objdir/$soname.def;
11178 cat $export_symbols >> $output_objdir/$soname.def;
11179 fi~
11180 $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'
11181 else
11182 ld_shlibs_CXX=no
11183 fi
11184 ;;
11185 darwin* | rhapsody*)
11186 case $host_os in
11187 rhapsody* | darwin1.[012])
11188 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11189 ;;
11190 *) # Darwin 1.3 on
11191 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11192 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11193 else
11194 case ${MACOSX_DEPLOYMENT_TARGET} in
11195 10.[012])
11196 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11197 ;;
11198 10.*)
11199 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11200 ;;
11201 esac
11202 fi
11203 ;;
11204 esac
11205 archive_cmds_need_lc_CXX=no
11206 hardcode_direct_CXX=no
11207 hardcode_automatic_CXX=yes
11208 hardcode_shlibpath_var_CXX=unsupported
11209 whole_archive_flag_spec_CXX=''
11210 link_all_deplibs_CXX=yes
11211
11212 if test "$GXX" = yes ; then
11213 lt_int_apple_cc_single_mod=no
11214 output_verbose_link_cmd='echo'
11215 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11216 lt_int_apple_cc_single_mod=yes
11217 fi
11218 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11219 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11220 else
11221 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'
11222 fi
11223 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11224 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11225 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11226 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}'
11227 else
11228 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}'
11229 fi
11230 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}'
11231 else
11232 case $cc_basename in
11233 xlc*)
11234 output_verbose_link_cmd='echo'
11235 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'
11236 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11237 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11238 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}'
11239 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}'
11240 ;;
11241 *)
11242 ld_shlibs_CXX=no
11243 ;;
11244 esac
11245 fi
11246 ;;
11247
11248 dgux*)
11249 case $cc_basename in
11250 ec++*)
11251 # FIXME: insert proper C++ library support
11252 ld_shlibs_CXX=no
11253 ;;
11254 ghcx*)
11255 # Green Hills C++ Compiler
11256 # FIXME: insert proper C++ library support
11257 ld_shlibs_CXX=no
11258 ;;
11259 *)
11260 # FIXME: insert proper C++ library support
11261 ld_shlibs_CXX=no
11262 ;;
11263 esac
11264 ;;
11265 freebsd[12]*)
11266 # C++ shared libraries reported to be fairly broken before switch to ELF
11267 ld_shlibs_CXX=no
11268 ;;
11269 freebsd-elf*)
11270 archive_cmds_need_lc_CXX=no
11271 ;;
11272 freebsd* | kfreebsd*-gnu | dragonfly*)
11273 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11274 # conventions
11275 ld_shlibs_CXX=yes
11276 ;;
11277 gnu*)
11278 ;;
11279 hpux9*)
11280 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11281 hardcode_libdir_separator_CXX=:
11282 export_dynamic_flag_spec_CXX='${wl}-E'
11283 hardcode_direct_CXX=yes
11284 hardcode_minus_L_CXX=yes # Not in the search PATH,
11285 # but as the default
11286 # location of the library.
11287
11288 case $cc_basename in
11289 CC*)
11290 # FIXME: insert proper C++ library support
11291 ld_shlibs_CXX=no
11292 ;;
11293 aCC*)
11294 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'
11295 # Commands to make compiler produce verbose output that lists
11296 # what "hidden" libraries, object files and flags are used when
11297 # linking a shared library.
11298 #
11299 # There doesn't appear to be a way to prevent this compiler from
11300 # explicitly linking system object files so we need to strip them
11301 # from the output so that they don't get included in the library
11302 # dependencies.
11303 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'
11304 ;;
11305 *)
11306 if test "$GXX" = yes; then
11307 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'
11308 else
11309 # FIXME: insert proper C++ library support
11310 ld_shlibs_CXX=no
11311 fi
11312 ;;
11313 esac
11314 ;;
11315 hpux10*|hpux11*)
11316 if test $with_gnu_ld = no; then
11317 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11318 hardcode_libdir_separator_CXX=:
11319
11320 case $host_cpu in
11321 hppa*64*|ia64*)
11322 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11323 ;;
11324 *)
11325 export_dynamic_flag_spec_CXX='${wl}-E'
11326 ;;
11327 esac
11328 fi
11329 case $host_cpu in
11330 hppa*64*|ia64*)
11331 hardcode_direct_CXX=no
11332 hardcode_shlibpath_var_CXX=no
11333 ;;
11334 *)
11335 hardcode_direct_CXX=yes
11336 hardcode_minus_L_CXX=yes # Not in the search PATH,
11337 # but as the default
11338 # location of the library.
11339 ;;
11340 esac
11341
11342 case $cc_basename in
11343 CC*)
11344 # FIXME: insert proper C++ library support
11345 ld_shlibs_CXX=no
11346 ;;
11347 aCC*)
11348 case $host_cpu in
11349 hppa*64*)
11350 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11351 ;;
11352 ia64*)
11353 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11354 ;;
11355 *)
11356 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11357 ;;
11358 esac
11359 # Commands to make compiler produce verbose output that lists
11360 # what "hidden" libraries, object files and flags are used when
11361 # linking a shared library.
11362 #
11363 # There doesn't appear to be a way to prevent this compiler from
11364 # explicitly linking system object files so we need to strip them
11365 # from the output so that they don't get included in the library
11366 # dependencies.
11367 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'
11368 ;;
11369 *)
11370 if test "$GXX" = yes; then
11371 if test $with_gnu_ld = no; then
11372 case $host_cpu in
11373 hppa*64*)
11374 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11375 ;;
11376 ia64*)
11377 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11378 ;;
11379 *)
11380 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'
11381 ;;
11382 esac
11383 fi
11384 else
11385 # FIXME: insert proper C++ library support
11386 ld_shlibs_CXX=no
11387 fi
11388 ;;
11389 esac
11390 ;;
11391 interix3*)
11392 hardcode_direct_CXX=no
11393 hardcode_shlibpath_var_CXX=no
11394 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11395 export_dynamic_flag_spec_CXX='${wl}-E'
11396 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11397 # Instead, shared libraries are loaded at an image base (0x10000000 by
11398 # default) and relocated if they conflict, which is a slow very memory
11399 # consuming and fragmenting process. To avoid this, we pick a random,
11400 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11401 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11402 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'
11403 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'
11404 ;;
11405 irix5* | irix6*)
11406 case $cc_basename in
11407 CC*)
11408 # SGI C++
11409 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'
11410
11411 # Archives containing C++ object files must be created using
11412 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11413 # necessary to make sure instantiated templates are included
11414 # in the archive.
11415 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11416 ;;
11417 *)
11418 if test "$GXX" = yes; then
11419 if test "$with_gnu_ld" = no; then
11420 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'
11421 else
11422 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'
11423 fi
11424 fi
11425 link_all_deplibs_CXX=yes
11426 ;;
11427 esac
11428 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11429 hardcode_libdir_separator_CXX=:
11430 ;;
11431 linux*)
11432 case $cc_basename in
11433 KCC*)
11434 # Kuck and Associates, Inc. (KAI) C++ Compiler
11435
11436 # KCC will only create a shared library if the output file
11437 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11438 # to its proper name (with version) after linking.
11439 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'
11440 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'
11441 # Commands to make compiler produce verbose output that lists
11442 # what "hidden" libraries, object files and flags are used when
11443 # linking a shared library.
11444 #
11445 # There doesn't appear to be a way to prevent this compiler from
11446 # explicitly linking system object files so we need to strip them
11447 # from the output so that they don't get included in the library
11448 # dependencies.
11449 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'
11450
11451 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11452 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11453
11454 # Archives containing C++ object files must be created using
11455 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11456 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11457 ;;
11458 icpc*)
11459 # Intel C++
11460 with_gnu_ld=yes
11461 # version 8.0 and above of icpc choke on multiply defined symbols
11462 # if we add $predep_objects and $postdep_objects, however 7.1 and
11463 # earlier do not add the objects themselves.
11464 case `$CC -V 2>&1` in
11465 *"Version 7."*)
11466 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11467 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'
11468 ;;
11469 *) # Version 8.0 or newer
11470 tmp_idyn=
11471 case $host_cpu in
11472 ia64*) tmp_idyn=' -i_dynamic';;
11473 esac
11474 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11475 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'
11476 ;;
11477 esac
11478 archive_cmds_need_lc_CXX=no
11479 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11480 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11481 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11482 ;;
11483 pgCC*)
11484 # Portland Group C++ compiler
11485 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11486 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'
11487
11488 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11489 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11490 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'
11491 ;;
11492 cxx*)
11493 # Compaq C++
11494 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11495 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'
11496
11497 runpath_var=LD_RUN_PATH
11498 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11499 hardcode_libdir_separator_CXX=:
11500
11501 # Commands to make compiler produce verbose output that lists
11502 # what "hidden" libraries, object files and flags are used when
11503 # linking a shared library.
11504 #
11505 # There doesn't appear to be a way to prevent this compiler from
11506 # explicitly linking system object files so we need to strip them
11507 # from the output so that they don't get included in the library
11508 # dependencies.
11509 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'
11510 ;;
11511 esac
11512 ;;
11513 lynxos*)
11514 # FIXME: insert proper C++ library support
11515 ld_shlibs_CXX=no
11516 ;;
11517 m88k*)
11518 # FIXME: insert proper C++ library support
11519 ld_shlibs_CXX=no
11520 ;;
11521 mvs*)
11522 case $cc_basename in
11523 cxx*)
11524 # FIXME: insert proper C++ library support
11525 ld_shlibs_CXX=no
11526 ;;
11527 *)
11528 # FIXME: insert proper C++ library support
11529 ld_shlibs_CXX=no
11530 ;;
11531 esac
11532 ;;
11533 netbsd*)
11534 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11535 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11536 wlarc=
11537 hardcode_libdir_flag_spec_CXX='-R$libdir'
11538 hardcode_direct_CXX=yes
11539 hardcode_shlibpath_var_CXX=no
11540 fi
11541 # Workaround some broken pre-1.5 toolchains
11542 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11543 ;;
11544 openbsd2*)
11545 # C++ shared libraries are fairly broken
11546 ld_shlibs_CXX=no
11547 ;;
11548 openbsd*)
11549 hardcode_direct_CXX=yes
11550 hardcode_shlibpath_var_CXX=no
11551 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11552 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11553 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11554 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11555 export_dynamic_flag_spec_CXX='${wl}-E'
11556 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11557 fi
11558 output_verbose_link_cmd='echo'
11559 ;;
11560 osf3*)
11561 case $cc_basename in
11562 KCC*)
11563 # Kuck and Associates, Inc. (KAI) C++ Compiler
11564
11565 # KCC will only create a shared library if the output file
11566 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11567 # to its proper name (with version) after linking.
11568 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'
11569
11570 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11571 hardcode_libdir_separator_CXX=:
11572
11573 # Archives containing C++ object files must be created using
11574 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11575 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11576
11577 ;;
11578 RCC*)
11579 # Rational C++ 2.4.1
11580 # FIXME: insert proper C++ library support
11581 ld_shlibs_CXX=no
11582 ;;
11583 cxx*)
11584 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11585 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'
11586
11587 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11588 hardcode_libdir_separator_CXX=:
11589
11590 # Commands to make compiler produce verbose output that lists
11591 # what "hidden" libraries, object files and flags are used when
11592 # linking a shared library.
11593 #
11594 # There doesn't appear to be a way to prevent this compiler from
11595 # explicitly linking system object files so we need to strip them
11596 # from the output so that they don't get included in the library
11597 # dependencies.
11598 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'
11599 ;;
11600 *)
11601 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11602 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11603 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'
11604
11605 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11606 hardcode_libdir_separator_CXX=:
11607
11608 # Commands to make compiler produce verbose output that lists
11609 # what "hidden" libraries, object files and flags are used when
11610 # linking a shared library.
11611 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11612
11613 else
11614 # FIXME: insert proper C++ library support
11615 ld_shlibs_CXX=no
11616 fi
11617 ;;
11618 esac
11619 ;;
11620 osf4* | osf5*)
11621 case $cc_basename in
11622 KCC*)
11623 # Kuck and Associates, Inc. (KAI) C++ Compiler
11624
11625 # KCC will only create a shared library if the output file
11626 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11627 # to its proper name (with version) after linking.
11628 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'
11629
11630 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11631 hardcode_libdir_separator_CXX=:
11632
11633 # Archives containing C++ object files must be created using
11634 # the KAI C++ compiler.
11635 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11636 ;;
11637 RCC*)
11638 # Rational C++ 2.4.1
11639 # FIXME: insert proper C++ library support
11640 ld_shlibs_CXX=no
11641 ;;
11642 cxx*)
11643 allow_undefined_flag_CXX=' -expect_unresolved \*'
11644 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'
11645 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11646 echo "-hidden">> $lib.exp~
11647 $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~
11648 $rm $lib.exp'
11649
11650 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11651 hardcode_libdir_separator_CXX=:
11652
11653 # Commands to make compiler produce verbose output that lists
11654 # what "hidden" libraries, object files and flags are used when
11655 # linking a shared library.
11656 #
11657 # There doesn't appear to be a way to prevent this compiler from
11658 # explicitly linking system object files so we need to strip them
11659 # from the output so that they don't get included in the library
11660 # dependencies.
11661 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'
11662 ;;
11663 *)
11664 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11665 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11666 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'
11667
11668 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11669 hardcode_libdir_separator_CXX=:
11670
11671 # Commands to make compiler produce verbose output that lists
11672 # what "hidden" libraries, object files and flags are used when
11673 # linking a shared library.
11674 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11675
11676 else
11677 # FIXME: insert proper C++ library support
11678 ld_shlibs_CXX=no
11679 fi
11680 ;;
11681 esac
11682 ;;
11683 psos*)
11684 # FIXME: insert proper C++ library support
11685 ld_shlibs_CXX=no
11686 ;;
11687 sunos4*)
11688 case $cc_basename in
11689 CC*)
11690 # Sun C++ 4.x
11691 # FIXME: insert proper C++ library support
11692 ld_shlibs_CXX=no
11693 ;;
11694 lcc*)
11695 # Lucid
11696 # FIXME: insert proper C++ library support
11697 ld_shlibs_CXX=no
11698 ;;
11699 *)
11700 # FIXME: insert proper C++ library support
11701 ld_shlibs_CXX=no
11702 ;;
11703 esac
11704 ;;
11705 solaris*)
11706 case $cc_basename in
11707 CC*)
11708 # Sun C++ 4.2, 5.x and Centerline C++
11709 archive_cmds_need_lc_CXX=yes
11710 no_undefined_flag_CXX=' -zdefs'
11711 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11712 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11713 $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'
11714
11715 hardcode_libdir_flag_spec_CXX='-R$libdir'
11716 hardcode_shlibpath_var_CXX=no
11717 case $host_os in
11718 solaris2.[0-5] | solaris2.[0-5].*) ;;
11719 *)
11720 # The C++ compiler is used as linker so we must use $wl
11721 # flag to pass the commands to the underlying system
11722 # linker. We must also pass each convience library through
11723 # to the system linker between allextract/defaultextract.
11724 # The C++ compiler will combine linker options so we
11725 # cannot just pass the convience library names through
11726 # without $wl.
11727 # Supported since Solaris 2.6 (maybe 2.5.1?)
11728 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'
11729 ;;
11730 esac
11731 link_all_deplibs_CXX=yes
11732
11733 output_verbose_link_cmd='echo'
11734
11735 # Archives containing C++ object files must be created using
11736 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11737 # necessary to make sure instantiated templates are included
11738 # in the archive.
11739 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11740 ;;
11741 gcx*)
11742 # Green Hills C++ Compiler
11743 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11744
11745 # The C++ compiler must be used to create the archive.
11746 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11747 ;;
11748 *)
11749 # GNU C++ compiler with Solaris linker
11750 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11751 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11752 if $CC --version | grep -v '^2\.7' > /dev/null; then
11753 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11754 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11755 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11756
11757 # Commands to make compiler produce verbose output that lists
11758 # what "hidden" libraries, object files and flags are used when
11759 # linking a shared library.
11760 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11761 else
11762 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11763 # platform.
11764 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11765 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11766 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11767
11768 # Commands to make compiler produce verbose output that lists
11769 # what "hidden" libraries, object files and flags are used when
11770 # linking a shared library.
11771 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11772 fi
11773
11774 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11775 fi
11776 ;;
11777 esac
11778 ;;
11779 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11780 no_undefined_flag_CXX='${wl}-z,text'
11781 archive_cmds_need_lc_CXX=no
11782 hardcode_shlibpath_var_CXX=no
11783 runpath_var='LD_RUN_PATH'
11784
11785 case $cc_basename in
11786 CC*)
11787 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11788 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11789 ;;
11790 *)
11791 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11792 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11793 ;;
11794 esac
11795 ;;
11796 sysv5* | sco3.2v5* | sco5v6*)
11797 # Note: We can NOT use -z defs as we might desire, because we do not
11798 # link with -lc, and that would cause any symbols used from libc to
11799 # always be unresolved, which means just about no library would
11800 # ever link correctly. If we're not using GNU ld we use -z text
11801 # though, which does catch some bad symbols but isn't as heavy-handed
11802 # as -z defs.
11803 # For security reasons, it is highly recommended that you always
11804 # use absolute paths for naming shared libraries, and exclude the
11805 # DT_RUNPATH tag from executables and libraries. But doing so
11806 # requires that you compile everything twice, which is a pain.
11807 # So that behaviour is only enabled if SCOABSPATH is set to a
11808 # non-empty value in the environment. Most likely only useful for
11809 # creating official distributions of packages.
11810 # This is a hack until libtool officially supports absolute path
11811 # names for shared libraries.
11812 no_undefined_flag_CXX='${wl}-z,text'
11813 allow_undefined_flag_CXX='${wl}-z,nodefs'
11814 archive_cmds_need_lc_CXX=no
11815 hardcode_shlibpath_var_CXX=no
11816 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11817 hardcode_libdir_separator_CXX=':'
11818 link_all_deplibs_CXX=yes
11819 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11820 runpath_var='LD_RUN_PATH'
11821
11822 case $cc_basename in
11823 CC*)
11824 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11825 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11826 ;;
11827 *)
11828 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11829 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11830 ;;
11831 esac
11832 ;;
11833 tandem*)
11834 case $cc_basename in
11835 NCC*)
11836 # NonStop-UX NCC 3.20
11837 # FIXME: insert proper C++ library support
11838 ld_shlibs_CXX=no
11839 ;;
11840 *)
11841 # FIXME: insert proper C++ library support
11842 ld_shlibs_CXX=no
11843 ;;
11844 esac
11845 ;;
11846 vxworks*)
11847 # FIXME: insert proper C++ library support
11848 ld_shlibs_CXX=no
11849 ;;
11850 *)
11851 # FIXME: insert proper C++ library support
11852 ld_shlibs_CXX=no
11853 ;;
11854esac
dd184caf 11855{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11856echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 11857test "$ld_shlibs_CXX" = no && can_build_shared=no
11858
11859GCC_CXX="$GXX"
11860LD_CXX="$LD"
11861
11862
11863cat > conftest.$ac_ext <<EOF
11864class Foo
11865{
11866public:
11867 Foo (void) { a = 0; }
11868private:
11869 int a;
11870};
11871EOF
11872
11873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11874 (eval $ac_compile) 2>&5
11875 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }; then
11878 # Parse the compiler output and extract the necessary
11879 # objects, libraries and library flags.
11880
11881 # Sentinel used to keep track of whether or not we are before
11882 # the conftest object file.
11883 pre_test_object_deps_done=no
11884
11885 # The `*' in the case matches for architectures that use `case' in
11886 # $output_verbose_cmd can trigger glob expansion during the loop
11887 # eval without this substitution.
11888 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11889
11890 for p in `eval $output_verbose_link_cmd`; do
11891 case $p in
11892
11893 -L* | -R* | -l*)
11894 # Some compilers place space between "-{L,R}" and the path.
11895 # Remove the space.
11896 if test $p = "-L" \
11897 || test $p = "-R"; then
11898 prev=$p
11899 continue
11900 else
11901 prev=
11902 fi
11903
11904 if test "$pre_test_object_deps_done" = no; then
11905 case $p in
11906 -L* | -R*)
11907 # Internal compiler library paths should come after those
11908 # provided the user. The postdeps already come after the
11909 # user supplied libs so there is no need to process them.
11910 if test -z "$compiler_lib_search_path_CXX"; then
11911 compiler_lib_search_path_CXX="${prev}${p}"
11912 else
11913 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11914 fi
11915 ;;
11916 # The "-l" case would never come before the object being
11917 # linked, so don't bother handling this case.
11918 esac
11919 else
11920 if test -z "$postdeps_CXX"; then
11921 postdeps_CXX="${prev}${p}"
11922 else
11923 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11924 fi
11925 fi
11926 ;;
11927
11928 *.$objext)
11929 # This assumes that the test object file only shows up
11930 # once in the compiler output.
11931 if test "$p" = "conftest.$objext"; then
11932 pre_test_object_deps_done=yes
11933 continue
11934 fi
11935
11936 if test "$pre_test_object_deps_done" = no; then
11937 if test -z "$predep_objects_CXX"; then
11938 predep_objects_CXX="$p"
11939 else
11940 predep_objects_CXX="$predep_objects_CXX $p"
11941 fi
11942 else
11943 if test -z "$postdep_objects_CXX"; then
11944 postdep_objects_CXX="$p"
11945 else
11946 postdep_objects_CXX="$postdep_objects_CXX $p"
11947 fi
11948 fi
11949 ;;
11950
11951 *) ;; # Ignore the rest.
11952
11953 esac
11954 done
11955
11956 # Clean up.
11957 rm -f a.out a.exe
11958else
11959 echo "libtool.m4: error: problem compiling CXX test program"
11960fi
11961
11962$rm -f confest.$objext
11963
11964# PORTME: override above test on systems where it is broken
11965case $host_os in
11966interix3*)
11967 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11968 # hack all around it, let's just trust "g++" to DTRT.
11969 predep_objects_CXX=
11970 postdep_objects_CXX=
11971 postdeps_CXX=
11972 ;;
11973
11974solaris*)
11975 case $cc_basename in
11976 CC*)
11977 # Adding this requires a known-good setup of shared libraries for
11978 # Sun compiler versions before 5.6, else PIC objects from an old
11979 # archive will be linked into the output, leading to subtle bugs.
11980 postdeps_CXX='-lCstd -lCrun'
11981 ;;
11982 esac
11983 ;;
11984esac
11985
11986
11987case " $postdeps_CXX " in
11988*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11989esac
11990
11991lt_prog_compiler_wl_CXX=
11992lt_prog_compiler_pic_CXX=
11993lt_prog_compiler_static_CXX=
11994
dd184caf 11995{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11996echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 11997
11998 # C++ specific cases for pic, static, wl, etc.
11999 if test "$GXX" = yes; then
12000 lt_prog_compiler_wl_CXX='-Wl,'
12001 lt_prog_compiler_static_CXX='-static'
12002
12003 case $host_os in
12004 aix*)
12005 # All AIX code is PIC.
12006 if test "$host_cpu" = ia64; then
12007 # AIX 5 now supports IA64 processor
12008 lt_prog_compiler_static_CXX='-Bstatic'
12009 fi
12010 ;;
12011 amigaos*)
12012 # FIXME: we need at least 68020 code to build shared libraries, but
12013 # adding the `-m68020' flag to GCC prevents building anything better,
12014 # like `-m68040'.
12015 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12016 ;;
12017 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12018 # PIC is the default for these OSes.
12019 ;;
12020 mingw* | os2* | pw32*)
12021 # This hack is so that the source file can tell whether it is being
12022 # built for inclusion in a dll (and should export symbols for example).
12023 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12024 ;;
12025 darwin* | rhapsody*)
12026 # PIC is the default on this platform
12027 # Common symbols not allowed in MH_DYLIB files
12028 lt_prog_compiler_pic_CXX='-fno-common'
12029 ;;
12030 *djgpp*)
12031 # DJGPP does not support shared libraries at all
12032 lt_prog_compiler_pic_CXX=
12033 ;;
12034 interix3*)
12035 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12036 # Instead, we relocate shared libraries at runtime.
12037 ;;
12038 sysv4*MP*)
12039 if test -d /usr/nec; then
12040 lt_prog_compiler_pic_CXX=-Kconform_pic
12041 fi
12042 ;;
12043 hpux*)
12044 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12045 # not for PA HP-UX.
12046 case $host_cpu in
12047 hppa*64*|ia64*)
12048 ;;
12049 *)
12050 lt_prog_compiler_pic_CXX='-fPIC'
12051 ;;
12052 esac
12053 ;;
12054 *)
12055 lt_prog_compiler_pic_CXX='-fPIC'
12056 ;;
12057 esac
12058 else
12059 case $host_os in
12060 aix4* | aix5*)
12061 # All AIX code is PIC.
12062 if test "$host_cpu" = ia64; then
12063 # AIX 5 now supports IA64 processor
12064 lt_prog_compiler_static_CXX='-Bstatic'
12065 else
12066 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12067 fi
12068 ;;
12069 chorus*)
12070 case $cc_basename in
12071 cxch68*)
12072 # Green Hills C++ Compiler
12073 # _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"
12074 ;;
12075 esac
12076 ;;
12077 darwin*)
12078 # PIC is the default on this platform
12079 # Common symbols not allowed in MH_DYLIB files
12080 case $cc_basename in
12081 xlc*)
12082 lt_prog_compiler_pic_CXX='-qnocommon'
12083 lt_prog_compiler_wl_CXX='-Wl,'
12084 ;;
12085 esac
12086 ;;
12087 dgux*)
12088 case $cc_basename in
12089 ec++*)
12090 lt_prog_compiler_pic_CXX='-KPIC'
12091 ;;
12092 ghcx*)
12093 # Green Hills C++ Compiler
12094 lt_prog_compiler_pic_CXX='-pic'
12095 ;;
12096 *)
12097 ;;
12098 esac
12099 ;;
12100 freebsd* | kfreebsd*-gnu | dragonfly*)
12101 # FreeBSD uses GNU C++
12102 ;;
12103 hpux9* | hpux10* | hpux11*)
12104 case $cc_basename in
12105 CC*)
12106 lt_prog_compiler_wl_CXX='-Wl,'
12107 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12108 if test "$host_cpu" != ia64; then
12109 lt_prog_compiler_pic_CXX='+Z'
12110 fi
12111 ;;
12112 aCC*)
12113 lt_prog_compiler_wl_CXX='-Wl,'
12114 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12115 case $host_cpu in
12116 hppa*64*|ia64*)
12117 # +Z the default
12118 ;;
12119 *)
12120 lt_prog_compiler_pic_CXX='+Z'
12121 ;;
12122 esac
12123 ;;
12124 *)
12125 ;;
12126 esac
12127 ;;
12128 interix*)
12129 # This is c89, which is MS Visual C++ (no shared libs)
12130 # Anyone wants to do a port?
12131 ;;
12132 irix5* | irix6* | nonstopux*)
12133 case $cc_basename in
12134 CC*)
12135 lt_prog_compiler_wl_CXX='-Wl,'
12136 lt_prog_compiler_static_CXX='-non_shared'
12137 # CC pic flag -KPIC is the default.
12138 ;;
12139 *)
12140 ;;
12141 esac
12142 ;;
12143 linux*)
12144 case $cc_basename in
12145 KCC*)
12146 # KAI C++ Compiler
12147 lt_prog_compiler_wl_CXX='--backend -Wl,'
12148 lt_prog_compiler_pic_CXX='-fPIC'
12149 ;;
12150 icpc* | ecpc*)
12151 # Intel C++
12152 lt_prog_compiler_wl_CXX='-Wl,'
12153 lt_prog_compiler_pic_CXX='-KPIC'
12154 lt_prog_compiler_static_CXX='-static'
12155 ;;
12156 pgCC*)
12157 # Portland Group C++ compiler.
12158 lt_prog_compiler_wl_CXX='-Wl,'
12159 lt_prog_compiler_pic_CXX='-fpic'
12160 lt_prog_compiler_static_CXX='-Bstatic'
12161 ;;
12162 cxx*)
12163 # Compaq C++
12164 # Make sure the PIC flag is empty. It appears that all Alpha
12165 # Linux and Compaq Tru64 Unix objects are PIC.
12166 lt_prog_compiler_pic_CXX=
12167 lt_prog_compiler_static_CXX='-non_shared'
12168 ;;
12169 *)
12170 ;;
12171 esac
12172 ;;
12173 lynxos*)
12174 ;;
12175 m88k*)
12176 ;;
12177 mvs*)
12178 case $cc_basename in
12179 cxx*)
12180 lt_prog_compiler_pic_CXX='-W c,exportall'
12181 ;;
12182 *)
12183 ;;
12184 esac
12185 ;;
12186 netbsd*)
12187 ;;
12188 osf3* | osf4* | osf5*)
12189 case $cc_basename in
12190 KCC*)
12191 lt_prog_compiler_wl_CXX='--backend -Wl,'
12192 ;;
12193 RCC*)
12194 # Rational C++ 2.4.1
12195 lt_prog_compiler_pic_CXX='-pic'
12196 ;;
12197 cxx*)
12198 # Digital/Compaq C++
12199 lt_prog_compiler_wl_CXX='-Wl,'
12200 # Make sure the PIC flag is empty. It appears that all Alpha
12201 # Linux and Compaq Tru64 Unix objects are PIC.
12202 lt_prog_compiler_pic_CXX=
12203 lt_prog_compiler_static_CXX='-non_shared'
12204 ;;
12205 *)
12206 ;;
12207 esac
12208 ;;
12209 psos*)
12210 ;;
12211 solaris*)
12212 case $cc_basename in
12213 CC*)
12214 # Sun C++ 4.2, 5.x and Centerline C++
12215 lt_prog_compiler_pic_CXX='-KPIC'
12216 lt_prog_compiler_static_CXX='-Bstatic'
12217 lt_prog_compiler_wl_CXX='-Qoption ld '
12218 ;;
12219 gcx*)
12220 # Green Hills C++ Compiler
12221 lt_prog_compiler_pic_CXX='-PIC'
12222 ;;
12223 *)
12224 ;;
12225 esac
12226 ;;
12227 sunos4*)
12228 case $cc_basename in
12229 CC*)
12230 # Sun C++ 4.x
12231 lt_prog_compiler_pic_CXX='-pic'
12232 lt_prog_compiler_static_CXX='-Bstatic'
12233 ;;
12234 lcc*)
12235 # Lucid
12236 lt_prog_compiler_pic_CXX='-pic'
12237 ;;
12238 *)
12239 ;;
12240 esac
12241 ;;
12242 tandem*)
12243 case $cc_basename in
12244 NCC*)
12245 # NonStop-UX NCC 3.20
12246 lt_prog_compiler_pic_CXX='-KPIC'
12247 ;;
12248 *)
12249 ;;
12250 esac
12251 ;;
12252 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12253 case $cc_basename in
12254 CC*)
12255 lt_prog_compiler_wl_CXX='-Wl,'
12256 lt_prog_compiler_pic_CXX='-KPIC'
12257 lt_prog_compiler_static_CXX='-Bstatic'
12258 ;;
12259 esac
12260 ;;
12261 vxworks*)
12262 ;;
12263 *)
12264 lt_prog_compiler_can_build_shared_CXX=no
12265 ;;
12266 esac
12267 fi
12268
dd184caf 12269{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12270echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d9898ee8 12271
12272#
12273# Check to make sure the PIC flag actually works.
12274#
12275if test -n "$lt_prog_compiler_pic_CXX"; then
12276
dd184caf 12277{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12278echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d9898ee8 12279if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12281else
12282 lt_prog_compiler_pic_works_CXX=no
12283 ac_outfile=conftest.$ac_objext
12284 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12285 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12286 # Insert the option either (1) after the last *FLAGS variable, or
12287 # (2) before a word containing "conftest.", or (3) at the end.
12288 # Note that $ac_compile itself does not contain backslashes and begins
12289 # with a dollar sign (not a hyphen), so the echo should work correctly.
12290 # The option is referenced via a variable to avoid confusing sed.
12291 lt_compile=`echo "$ac_compile" | $SED \
12292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12294 -e 's:$: $lt_compiler_flag:'`
dd184caf 12295 (eval echo "\"\$as_me:12295: $lt_compile\"" >&5)
d9898ee8 12296 (eval "$lt_compile" 2>conftest.err)
12297 ac_status=$?
12298 cat conftest.err >&5
dd184caf 12299 echo "$as_me:12299: \$? = $ac_status" >&5
d9898ee8 12300 if (exit $ac_status) && test -s "$ac_outfile"; then
12301 # The compiler can only warn and ignore the option if not recognized
12302 # So say no if there are warnings other than the usual output.
12303 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12305 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12306 lt_prog_compiler_pic_works_CXX=yes
12307 fi
12308 fi
12309 $rm conftest*
12310
12311fi
dd184caf 12312{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12313echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d9898ee8 12314
12315if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12316 case $lt_prog_compiler_pic_CXX in
12317 "" | " "*) ;;
12318 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12319 esac
12320else
12321 lt_prog_compiler_pic_CXX=
12322 lt_prog_compiler_can_build_shared_CXX=no
12323fi
12324
12325fi
12326case $host_os in
12327 # For platforms which do not support PIC, -DPIC is meaningless:
12328 *djgpp*)
12329 lt_prog_compiler_pic_CXX=
12330 ;;
12331 *)
12332 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12333 ;;
12334esac
12335
12336#
12337# Check to make sure the static flag actually works.
12338#
12339wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
dd184caf 12340{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12341echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 12342if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12344else
12345 lt_prog_compiler_static_works_CXX=no
12346 save_LDFLAGS="$LDFLAGS"
12347 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12348 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12349 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12350 # The linker can only warn and ignore the option if not recognized
12351 # So say no if there are warnings
12352 if test -s conftest.err; then
12353 # Append any errors to the config.log.
12354 cat conftest.err 1>&5
12355 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12356 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12357 if diff conftest.exp conftest.er2 >/dev/null; then
12358 lt_prog_compiler_static_works_CXX=yes
12359 fi
12360 else
12361 lt_prog_compiler_static_works_CXX=yes
12362 fi
12363 fi
12364 $rm conftest*
12365 LDFLAGS="$save_LDFLAGS"
12366
12367fi
dd184caf 12368{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12369echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
d9898ee8 12370
12371if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12372 :
12373else
12374 lt_prog_compiler_static_CXX=
12375fi
12376
12377
dd184caf 12378{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12379echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 12380if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12382else
12383 lt_cv_prog_compiler_c_o_CXX=no
12384 $rm -r conftest 2>/dev/null
12385 mkdir conftest
12386 cd conftest
12387 mkdir out
12388 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12389
12390 lt_compiler_flag="-o out/conftest2.$ac_objext"
12391 # Insert the option either (1) after the last *FLAGS variable, or
12392 # (2) before a word containing "conftest.", or (3) at the end.
12393 # Note that $ac_compile itself does not contain backslashes and begins
12394 # with a dollar sign (not a hyphen), so the echo should work correctly.
12395 lt_compile=`echo "$ac_compile" | $SED \
12396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12398 -e 's:$: $lt_compiler_flag:'`
dd184caf 12399 (eval echo "\"\$as_me:12399: $lt_compile\"" >&5)
d9898ee8 12400 (eval "$lt_compile" 2>out/conftest.err)
12401 ac_status=$?
12402 cat out/conftest.err >&5
dd184caf 12403 echo "$as_me:12403: \$? = $ac_status" >&5
d9898ee8 12404 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12405 then
12406 # The compiler can only warn and ignore the option if not recognized
12407 # So say no if there are warnings
12408 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12409 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12410 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12411 lt_cv_prog_compiler_c_o_CXX=yes
12412 fi
12413 fi
12414 chmod u+w . 2>&5
12415 $rm conftest*
12416 # SGI C++ compiler will create directory out/ii_files/ for
12417 # template instantiation
12418 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12419 $rm out/* && rmdir out
12420 cd ..
12421 rmdir conftest
12422 $rm conftest*
12423
12424fi
dd184caf 12425{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12426echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 12427
12428
12429hard_links="nottested"
12430if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12431 # do not overwrite the value of need_locks provided by the user
dd184caf 12432 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12433echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 12434 hard_links=yes
12435 $rm conftest*
12436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12437 touch conftest.a
12438 ln conftest.a conftest.b 2>&5 || hard_links=no
12439 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 12440 { echo "$as_me:$LINENO: result: $hard_links" >&5
12441echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 12442 if test "$hard_links" = no; then
12443 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12444echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12445 need_locks=warn
12446 fi
12447else
12448 need_locks=no
12449fi
12450
dd184caf 12451{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12452echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 12453
12454 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12455 case $host_os in
12456 aix4* | aix5*)
12457 # If we're using GNU nm, then we don't want the "-C" option.
12458 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12459 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12460 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'
12461 else
12462 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'
12463 fi
12464 ;;
12465 pw32*)
12466 export_symbols_cmds_CXX="$ltdll_cmds"
12467 ;;
12468 cygwin* | mingw*)
12469 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'
12470 ;;
12471 *)
12472 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12473 ;;
12474 esac
12475
dd184caf 12476{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12477echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12478test "$ld_shlibs_CXX" = no && can_build_shared=no
12479
12480#
12481# Do we need to explicitly link libc?
12482#
12483case "x$archive_cmds_need_lc_CXX" in
12484x|xyes)
12485 # Assume -lc should be added
12486 archive_cmds_need_lc_CXX=yes
12487
12488 if test "$enable_shared" = yes && test "$GCC" = yes; then
12489 case $archive_cmds_CXX in
12490 *'~'*)
12491 # FIXME: we may have to deal with multi-command sequences.
12492 ;;
12493 '$CC '*)
12494 # Test whether the compiler implicitly links with -lc since on some
12495 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12496 # to ld, don't add -lc before -lgcc.
dd184caf 12497 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12498echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 12499 $rm conftest*
12500 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12501
12502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12503 (eval $ac_compile) 2>&5
12504 ac_status=$?
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); } 2>conftest.err; then
12507 soname=conftest
12508 lib=conftest
12509 libobjs=conftest.$ac_objext
12510 deplibs=
12511 wl=$lt_prog_compiler_wl_CXX
12512 pic_flag=$lt_prog_compiler_pic_CXX
12513 compiler_flags=-v
12514 linker_flags=-v
12515 verstring=
12516 output_objdir=.
12517 libname=conftest
12518 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12519 allow_undefined_flag_CXX=
12520 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12521 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12522 ac_status=$?
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }
12525 then
12526 archive_cmds_need_lc_CXX=no
12527 else
12528 archive_cmds_need_lc_CXX=yes
12529 fi
12530 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12531 else
12532 cat conftest.err 1>&5
12533 fi
12534 $rm conftest*
dd184caf 12535 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12536echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d9898ee8 12537 ;;
12538 esac
12539 fi
12540 ;;
12541esac
12542
dd184caf 12543{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12544echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 12545library_names_spec=
12546libname_spec='lib$name'
12547soname_spec=
12548shrext_cmds=".so"
12549postinstall_cmds=
12550postuninstall_cmds=
12551finish_cmds=
12552finish_eval=
12553shlibpath_var=
12554shlibpath_overrides_runpath=unknown
12555version_type=none
12556dynamic_linker="$host_os ld.so"
12557sys_lib_dlsearch_path_spec="/lib /usr/lib"
12558if test "$GCC" = yes; then
12559 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12560 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12561 # if the path contains ";" then we assume it to be the separator
12562 # otherwise default to the standard path separator (i.e. ":") - it is
12563 # assumed that no part of a normal pathname contains ";" but that should
12564 # okay in the real world where ";" in dirpaths is itself problematic.
12565 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12566 else
12567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12568 fi
12569else
12570 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12571fi
12572need_lib_prefix=unknown
12573hardcode_into_libs=no
12574
12575# when you set need_version to no, make sure it does not cause -set_version
12576# flags to be left without arguments
12577need_version=unknown
12578
12579case $host_os in
12580aix3*)
12581 version_type=linux
12582 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12583 shlibpath_var=LIBPATH
12584
12585 # AIX 3 has no versioning support, so we append a major version to the name.
12586 soname_spec='${libname}${release}${shared_ext}$major'
12587 ;;
12588
12589aix4* | aix5*)
12590 version_type=linux
12591 need_lib_prefix=no
12592 need_version=no
12593 hardcode_into_libs=yes
12594 if test "$host_cpu" = ia64; then
12595 # AIX 5 supports IA64
12596 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12597 shlibpath_var=LD_LIBRARY_PATH
12598 else
12599 # With GCC up to 2.95.x, collect2 would create an import file
12600 # for dependence libraries. The import file would start with
12601 # the line `#! .'. This would cause the generated library to
12602 # depend on `.', always an invalid library. This was fixed in
12603 # development snapshots of GCC prior to 3.0.
12604 case $host_os in
12605 aix4 | aix4.[01] | aix4.[01].*)
12606 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12607 echo ' yes '
12608 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12609 :
12610 else
12611 can_build_shared=no
12612 fi
12613 ;;
12614 esac
12615 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12616 # soname into executable. Probably we can add versioning support to
12617 # collect2, so additional links can be useful in future.
12618 if test "$aix_use_runtimelinking" = yes; then
12619 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12620 # instead of lib<name>.a to let people know that these are not
12621 # typical AIX shared libraries.
12622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12623 else
12624 # We preserve .a as extension for shared libraries through AIX4.2
12625 # and later when we are not doing run time linking.
12626 library_names_spec='${libname}${release}.a $libname.a'
12627 soname_spec='${libname}${release}${shared_ext}$major'
12628 fi
12629 shlibpath_var=LIBPATH
12630 fi
12631 ;;
12632
12633amigaos*)
12634 library_names_spec='$libname.ixlibrary $libname.a'
12635 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12636 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'
12637 ;;
12638
12639beos*)
12640 library_names_spec='${libname}${shared_ext}'
12641 dynamic_linker="$host_os ld.so"
12642 shlibpath_var=LIBRARY_PATH
12643 ;;
12644
12645bsdi[45]*)
12646 version_type=linux
12647 need_version=no
12648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12649 soname_spec='${libname}${release}${shared_ext}$major'
12650 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12651 shlibpath_var=LD_LIBRARY_PATH
12652 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12653 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12654 # the default ld.so.conf also contains /usr/contrib/lib and
12655 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12656 # libtool to hard-code these into programs
12657 ;;
12658
12659cygwin* | mingw* | pw32*)
12660 version_type=windows
12661 shrext_cmds=".dll"
12662 need_version=no
12663 need_lib_prefix=no
12664
12665 case $GCC,$host_os in
12666 yes,cygwin* | yes,mingw* | yes,pw32*)
12667 library_names_spec='$libname.dll.a'
12668 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12669 postinstall_cmds='base_file=`basename \${file}`~
12670 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12671 dldir=$destdir/`dirname \$dlpath`~
12672 test -d \$dldir || mkdir -p \$dldir~
12673 $install_prog $dir/$dlname \$dldir/$dlname~
12674 chmod a+x \$dldir/$dlname'
12675 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12676 dlpath=$dir/\$dldll~
12677 $rm \$dlpath'
12678 shlibpath_overrides_runpath=yes
12679
12680 case $host_os in
12681 cygwin*)
12682 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12683 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12684 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12685 ;;
12686 mingw*)
12687 # MinGW DLLs use traditional 'lib' prefix
12688 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12689 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12690 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12691 # It is most probably a Windows format PATH printed by
12692 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12693 # path with ; separators, and with drive letters. We can handle the
12694 # drive letters (cygwin fileutils understands them), so leave them,
12695 # especially as we might pass files found there to a mingw objdump,
12696 # which wouldn't understand a cygwinified path. Ahh.
12697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12698 else
12699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12700 fi
12701 ;;
12702 pw32*)
12703 # pw32 DLLs use 'pw' prefix rather than 'lib'
12704 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12705 ;;
12706 esac
12707 ;;
12708
12709 *)
12710 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12711 ;;
12712 esac
12713 dynamic_linker='Win32 ld.exe'
12714 # FIXME: first we should search . and the directory the executable is in
12715 shlibpath_var=PATH
12716 ;;
12717
12718darwin* | rhapsody*)
12719 dynamic_linker="$host_os dyld"
12720 version_type=darwin
12721 need_lib_prefix=no
12722 need_version=no
12723 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12724 soname_spec='${libname}${release}${major}$shared_ext'
12725 shlibpath_overrides_runpath=yes
12726 shlibpath_var=DYLD_LIBRARY_PATH
12727 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12728 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12729 if test "$GCC" = yes; then
12730 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"`
12731 else
12732 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12733 fi
12734 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12735 ;;
12736
12737dgux*)
12738 version_type=linux
12739 need_lib_prefix=no
12740 need_version=no
12741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12742 soname_spec='${libname}${release}${shared_ext}$major'
12743 shlibpath_var=LD_LIBRARY_PATH
12744 ;;
12745
12746freebsd1*)
12747 dynamic_linker=no
12748 ;;
12749
12750kfreebsd*-gnu)
12751 version_type=linux
12752 need_lib_prefix=no
12753 need_version=no
12754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12755 soname_spec='${libname}${release}${shared_ext}$major'
12756 shlibpath_var=LD_LIBRARY_PATH
12757 shlibpath_overrides_runpath=no
12758 hardcode_into_libs=yes
12759 dynamic_linker='GNU ld.so'
12760 ;;
12761
12762freebsd* | dragonfly*)
12763 # DragonFly does not have aout. When/if they implement a new
12764 # versioning mechanism, adjust this.
12765 if test -x /usr/bin/objformat; then
12766 objformat=`/usr/bin/objformat`
12767 else
12768 case $host_os in
12769 freebsd[123]*) objformat=aout ;;
12770 *) objformat=elf ;;
12771 esac
12772 fi
12773 version_type=freebsd-$objformat
12774 case $version_type in
12775 freebsd-elf*)
12776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12777 need_version=no
12778 need_lib_prefix=no
12779 ;;
12780 freebsd-*)
12781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12782 need_version=yes
12783 ;;
12784 esac
12785 shlibpath_var=LD_LIBRARY_PATH
12786 case $host_os in
12787 freebsd2*)
12788 shlibpath_overrides_runpath=yes
12789 ;;
12790 freebsd3.[01]* | freebsdelf3.[01]*)
12791 shlibpath_overrides_runpath=yes
12792 hardcode_into_libs=yes
12793 ;;
12794 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12795 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12796 shlibpath_overrides_runpath=no
12797 hardcode_into_libs=yes
12798 ;;
12799 freebsd*) # from 4.6 on
12800 shlibpath_overrides_runpath=yes
12801 hardcode_into_libs=yes
12802 ;;
12803 esac
12804 ;;
12805
12806gnu*)
12807 version_type=linux
12808 need_lib_prefix=no
12809 need_version=no
12810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12811 soname_spec='${libname}${release}${shared_ext}$major'
12812 shlibpath_var=LD_LIBRARY_PATH
12813 hardcode_into_libs=yes
12814 ;;
12815
12816hpux9* | hpux10* | hpux11*)
12817 # Give a soname corresponding to the major version so that dld.sl refuses to
12818 # link against other versions.
12819 version_type=sunos
12820 need_lib_prefix=no
12821 need_version=no
12822 case $host_cpu in
12823 ia64*)
12824 shrext_cmds='.so'
12825 hardcode_into_libs=yes
12826 dynamic_linker="$host_os dld.so"
12827 shlibpath_var=LD_LIBRARY_PATH
12828 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12830 soname_spec='${libname}${release}${shared_ext}$major'
12831 if test "X$HPUX_IA64_MODE" = X32; then
12832 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12833 else
12834 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12835 fi
12836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12837 ;;
12838 hppa*64*)
12839 shrext_cmds='.sl'
12840 hardcode_into_libs=yes
12841 dynamic_linker="$host_os dld.sl"
12842 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12845 soname_spec='${libname}${release}${shared_ext}$major'
12846 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12848 ;;
12849 *)
12850 shrext_cmds='.sl'
12851 dynamic_linker="$host_os dld.sl"
12852 shlibpath_var=SHLIB_PATH
12853 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12855 soname_spec='${libname}${release}${shared_ext}$major'
12856 ;;
12857 esac
12858 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12859 postinstall_cmds='chmod 555 $lib'
12860 ;;
12861
12862interix3*)
12863 version_type=linux
12864 need_lib_prefix=no
12865 need_version=no
12866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12867 soname_spec='${libname}${release}${shared_ext}$major'
12868 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12869 shlibpath_var=LD_LIBRARY_PATH
12870 shlibpath_overrides_runpath=no
12871 hardcode_into_libs=yes
12872 ;;
12873
12874irix5* | irix6* | nonstopux*)
12875 case $host_os in
12876 nonstopux*) version_type=nonstopux ;;
12877 *)
12878 if test "$lt_cv_prog_gnu_ld" = yes; then
12879 version_type=linux
12880 else
12881 version_type=irix
12882 fi ;;
12883 esac
12884 need_lib_prefix=no
12885 need_version=no
12886 soname_spec='${libname}${release}${shared_ext}$major'
12887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12888 case $host_os in
12889 irix5* | nonstopux*)
12890 libsuff= shlibsuff=
12891 ;;
12892 *)
12893 case $LD in # libtool.m4 will add one of these switches to LD
12894 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12895 libsuff= shlibsuff= libmagic=32-bit;;
12896 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12897 libsuff=32 shlibsuff=N32 libmagic=N32;;
12898 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12899 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12900 *) libsuff= shlibsuff= libmagic=never-match;;
12901 esac
12902 ;;
12903 esac
12904 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12905 shlibpath_overrides_runpath=no
12906 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12907 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12908 hardcode_into_libs=yes
12909 ;;
12910
12911# No shared lib support for Linux oldld, aout, or coff.
12912linux*oldld* | linux*aout* | linux*coff*)
12913 dynamic_linker=no
12914 ;;
12915
12916# This must be Linux ELF.
12917linux*)
12918 version_type=linux
12919 need_lib_prefix=no
12920 need_version=no
12921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12922 soname_spec='${libname}${release}${shared_ext}$major'
12923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12924 shlibpath_var=LD_LIBRARY_PATH
12925 shlibpath_overrides_runpath=no
12926 # This implies no fast_install, which is unacceptable.
12927 # Some rework will be needed to allow for fast_install
12928 # before this can be enabled.
12929 hardcode_into_libs=yes
12930
12931 # find out which ABI we are using
12932 libsuff=
12933 case "$host_cpu" in
12934 x86_64*|s390x*|powerpc64*)
dd184caf 12935 echo '#line 12935 "configure"' > conftest.$ac_ext
d9898ee8 12936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12937 (eval $ac_compile) 2>&5
12938 ac_status=$?
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; then
12941 case `/usr/bin/file conftest.$ac_objext` in
12942 *64-bit*)
12943 libsuff=64
12944 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12945 ;;
12946 esac
12947 fi
12948 rm -rf conftest*
12949 ;;
12950 esac
12951
12952 # Append ld.so.conf contents to the search path
12953 if test -f /etc/ld.so.conf; then
dd184caf 12954 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 12955 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12956 fi
12957
12958 # We used to test for /lib/ld.so.1 and disable shared libraries on
12959 # powerpc, because MkLinux only supported shared libraries with the
12960 # GNU dynamic linker. Since this was broken with cross compilers,
12961 # most powerpc-linux boxes support dynamic linking these days and
12962 # people can always --disable-shared, the test was removed, and we
12963 # assume the GNU/Linux dynamic linker is in use.
12964 dynamic_linker='GNU/Linux ld.so'
12965 ;;
12966
12967knetbsd*-gnu)
12968 version_type=linux
12969 need_lib_prefix=no
12970 need_version=no
12971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12972 soname_spec='${libname}${release}${shared_ext}$major'
12973 shlibpath_var=LD_LIBRARY_PATH
12974 shlibpath_overrides_runpath=no
12975 hardcode_into_libs=yes
12976 dynamic_linker='GNU ld.so'
12977 ;;
12978
12979netbsd*)
12980 version_type=sunos
12981 need_lib_prefix=no
12982 need_version=no
12983 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12986 dynamic_linker='NetBSD (a.out) ld.so'
12987 else
12988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12989 soname_spec='${libname}${release}${shared_ext}$major'
12990 dynamic_linker='NetBSD ld.elf_so'
12991 fi
12992 shlibpath_var=LD_LIBRARY_PATH
12993 shlibpath_overrides_runpath=yes
12994 hardcode_into_libs=yes
12995 ;;
12996
12997newsos6)
12998 version_type=linux
12999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13000 shlibpath_var=LD_LIBRARY_PATH
13001 shlibpath_overrides_runpath=yes
13002 ;;
13003
13004nto-qnx*)
13005 version_type=linux
13006 need_lib_prefix=no
13007 need_version=no
13008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13009 soname_spec='${libname}${release}${shared_ext}$major'
13010 shlibpath_var=LD_LIBRARY_PATH
13011 shlibpath_overrides_runpath=yes
13012 ;;
13013
13014openbsd*)
13015 version_type=sunos
13016 sys_lib_dlsearch_path_spec="/usr/lib"
13017 need_lib_prefix=no
13018 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13019 case $host_os in
13020 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13021 *) need_version=no ;;
13022 esac
13023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13025 shlibpath_var=LD_LIBRARY_PATH
13026 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13027 case $host_os in
13028 openbsd2.[89] | openbsd2.[89].*)
13029 shlibpath_overrides_runpath=no
13030 ;;
13031 *)
13032 shlibpath_overrides_runpath=yes
13033 ;;
13034 esac
13035 else
13036 shlibpath_overrides_runpath=yes
13037 fi
13038 ;;
13039
13040os2*)
13041 libname_spec='$name'
13042 shrext_cmds=".dll"
13043 need_lib_prefix=no
13044 library_names_spec='$libname${shared_ext} $libname.a'
13045 dynamic_linker='OS/2 ld.exe'
13046 shlibpath_var=LIBPATH
13047 ;;
13048
13049osf3* | osf4* | osf5*)
13050 version_type=osf
13051 need_lib_prefix=no
13052 need_version=no
13053 soname_spec='${libname}${release}${shared_ext}$major'
13054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13055 shlibpath_var=LD_LIBRARY_PATH
13056 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13057 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13058 ;;
13059
13060solaris*)
13061 version_type=linux
13062 need_lib_prefix=no
13063 need_version=no
13064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13065 soname_spec='${libname}${release}${shared_ext}$major'
13066 shlibpath_var=LD_LIBRARY_PATH
13067 shlibpath_overrides_runpath=yes
13068 hardcode_into_libs=yes
13069 # ldd complains unless libraries are executable
13070 postinstall_cmds='chmod +x $lib'
13071 ;;
13072
13073sunos4*)
13074 version_type=sunos
13075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13076 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13077 shlibpath_var=LD_LIBRARY_PATH
13078 shlibpath_overrides_runpath=yes
13079 if test "$with_gnu_ld" = yes; then
13080 need_lib_prefix=no
13081 fi
13082 need_version=yes
13083 ;;
13084
13085sysv4 | sysv4.3*)
13086 version_type=linux
13087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13088 soname_spec='${libname}${release}${shared_ext}$major'
13089 shlibpath_var=LD_LIBRARY_PATH
13090 case $host_vendor in
13091 sni)
13092 shlibpath_overrides_runpath=no
13093 need_lib_prefix=no
13094 export_dynamic_flag_spec='${wl}-Blargedynsym'
13095 runpath_var=LD_RUN_PATH
13096 ;;
13097 siemens)
13098 need_lib_prefix=no
13099 ;;
13100 motorola)
13101 need_lib_prefix=no
13102 need_version=no
13103 shlibpath_overrides_runpath=no
13104 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13105 ;;
13106 esac
13107 ;;
13108
13109sysv4*MP*)
13110 if test -d /usr/nec ;then
13111 version_type=linux
13112 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13113 soname_spec='$libname${shared_ext}.$major'
13114 shlibpath_var=LD_LIBRARY_PATH
13115 fi
13116 ;;
13117
13118sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13119 version_type=freebsd-elf
13120 need_lib_prefix=no
13121 need_version=no
13122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13123 soname_spec='${libname}${release}${shared_ext}$major'
13124 shlibpath_var=LD_LIBRARY_PATH
13125 hardcode_into_libs=yes
13126 if test "$with_gnu_ld" = yes; then
13127 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13128 shlibpath_overrides_runpath=no
13129 else
13130 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13131 shlibpath_overrides_runpath=yes
13132 case $host_os in
13133 sco3.2v5*)
13134 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13135 ;;
13136 esac
13137 fi
13138 sys_lib_dlsearch_path_spec='/usr/lib'
13139 ;;
13140
13141uts4*)
13142 version_type=linux
13143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13144 soname_spec='${libname}${release}${shared_ext}$major'
13145 shlibpath_var=LD_LIBRARY_PATH
13146 ;;
13147
13148*)
13149 dynamic_linker=no
13150 ;;
13151esac
dd184caf 13152{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13153echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 13154test "$dynamic_linker" = no && can_build_shared=no
13155
13156variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13157if test "$GCC" = yes; then
13158 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13159fi
13160
dd184caf 13161{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13162echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 13163hardcode_action_CXX=
13164if test -n "$hardcode_libdir_flag_spec_CXX" || \
13165 test -n "$runpath_var_CXX" || \
13166 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13167
13168 # We can hardcode non-existant directories.
13169 if test "$hardcode_direct_CXX" != no &&
13170 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13171 # have to relink, otherwise we might link with an installed library
13172 # when we should be linking with a yet-to-be-installed one
13173 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13174 test "$hardcode_minus_L_CXX" != no; then
13175 # Linking always hardcodes the temporary library directory.
13176 hardcode_action_CXX=relink
13177 else
13178 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13179 hardcode_action_CXX=immediate
13180 fi
13181else
13182 # We cannot hardcode anything, or else we can only hardcode existing
13183 # directories.
13184 hardcode_action_CXX=unsupported
13185fi
dd184caf 13186{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13187echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d9898ee8 13188
13189if test "$hardcode_action_CXX" = relink; then
13190 # Fast installation is not supported
13191 enable_fast_install=no
13192elif test "$shlibpath_overrides_runpath" = yes ||
13193 test "$enable_shared" = no; then
13194 # Fast installation is not necessary
13195 enable_fast_install=needless
13196fi
13197
13198
13199# The else clause should only fire when bootstrapping the
13200# libtool distribution, otherwise you forgot to ship ltmain.sh
13201# with your package, and you will get complaints that there are
13202# no rules to generate ltmain.sh.
13203if test -f "$ltmain"; then
13204 # See if we are running on zsh, and set the options which allow our commands through
13205 # without removal of \ escapes.
13206 if test -n "${ZSH_VERSION+set}" ; then
13207 setopt NO_GLOB_SUBST
13208 fi
13209 # Now quote all the things that may contain metacharacters while being
13210 # careful not to overquote the AC_SUBSTed values. We take copies of the
13211 # variables and quote the copies for generation of the libtool script.
13212 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13213 SED SHELL STRIP \
13214 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13215 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13216 deplibs_check_method reload_flag reload_cmds need_locks \
13217 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13218 lt_cv_sys_global_symbol_to_c_name_address \
13219 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13220 old_postinstall_cmds old_postuninstall_cmds \
13221 compiler_CXX \
13222 CC_CXX \
13223 LD_CXX \
13224 lt_prog_compiler_wl_CXX \
13225 lt_prog_compiler_pic_CXX \
13226 lt_prog_compiler_static_CXX \
13227 lt_prog_compiler_no_builtin_flag_CXX \
13228 export_dynamic_flag_spec_CXX \
13229 thread_safe_flag_spec_CXX \
13230 whole_archive_flag_spec_CXX \
13231 enable_shared_with_static_runtimes_CXX \
13232 old_archive_cmds_CXX \
13233 old_archive_from_new_cmds_CXX \
13234 predep_objects_CXX \
13235 postdep_objects_CXX \
13236 predeps_CXX \
13237 postdeps_CXX \
13238 compiler_lib_search_path_CXX \
13239 archive_cmds_CXX \
13240 archive_expsym_cmds_CXX \
13241 postinstall_cmds_CXX \
13242 postuninstall_cmds_CXX \
13243 old_archive_from_expsyms_cmds_CXX \
13244 allow_undefined_flag_CXX \
13245 no_undefined_flag_CXX \
13246 export_symbols_cmds_CXX \
13247 hardcode_libdir_flag_spec_CXX \
13248 hardcode_libdir_flag_spec_ld_CXX \
13249 hardcode_libdir_separator_CXX \
13250 hardcode_automatic_CXX \
13251 module_cmds_CXX \
13252 module_expsym_cmds_CXX \
13253 lt_cv_prog_compiler_c_o_CXX \
13254 exclude_expsyms_CXX \
13255 include_expsyms_CXX; do
13256
13257 case $var in
13258 old_archive_cmds_CXX | \
13259 old_archive_from_new_cmds_CXX | \
13260 archive_cmds_CXX | \
13261 archive_expsym_cmds_CXX | \
13262 module_cmds_CXX | \
13263 module_expsym_cmds_CXX | \
13264 old_archive_from_expsyms_cmds_CXX | \
13265 export_symbols_cmds_CXX | \
13266 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13267 postinstall_cmds | postuninstall_cmds | \
13268 old_postinstall_cmds | old_postuninstall_cmds | \
13269 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13270 # Double-quote double-evaled strings.
13271 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13272 ;;
13273 *)
13274 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13275 ;;
13276 esac
13277 done
13278
13279 case $lt_echo in
13280 *'\$0 --fallback-echo"')
13281 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13282 ;;
13283 esac
13284
13285cfgfile="$ofile"
13286
13287 cat <<__EOF__ >> "$cfgfile"
13288# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13289
13290# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13291
13292# Shell to use when invoking shell scripts.
13293SHELL=$lt_SHELL
13294
13295# Whether or not to build shared libraries.
13296build_libtool_libs=$enable_shared
13297
13298# Whether or not to build static libraries.
13299build_old_libs=$enable_static
13300
13301# Whether or not to add -lc for building shared libraries.
13302build_libtool_need_lc=$archive_cmds_need_lc_CXX
13303
13304# Whether or not to disallow shared libs when runtime libs are static
13305allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13306
13307# Whether or not to optimize for fast installation.
13308fast_install=$enable_fast_install
13309
13310# The host system.
13311host_alias=$host_alias
13312host=$host
13313host_os=$host_os
13314
13315# The build system.
13316build_alias=$build_alias
13317build=$build
13318build_os=$build_os
13319
13320# An echo program that does not interpret backslashes.
13321echo=$lt_echo
13322
13323# The archiver.
13324AR=$lt_AR
13325AR_FLAGS=$lt_AR_FLAGS
13326
13327# A C compiler.
13328LTCC=$lt_LTCC
13329
13330# LTCC compiler flags.
13331LTCFLAGS=$lt_LTCFLAGS
13332
13333# A language-specific compiler.
13334CC=$lt_compiler_CXX
13335
13336# Is the compiler the GNU C compiler?
13337with_gcc=$GCC_CXX
13338
d9898ee8 13339# An ERE matcher.
13340EGREP=$lt_EGREP
13341
13342# The linker used to build libraries.
13343LD=$lt_LD_CXX
13344
13345# Whether we need hard or soft links.
13346LN_S=$lt_LN_S
13347
13348# A BSD-compatible nm program.
13349NM=$lt_NM
13350
13351# A symbol stripping program
13352STRIP=$lt_STRIP
13353
13354# Used to examine libraries when file_magic_cmd begins "file"
13355MAGIC_CMD=$MAGIC_CMD
13356
13357# Used on cygwin: DLL creation program.
13358DLLTOOL="$DLLTOOL"
13359
13360# Used on cygwin: object dumper.
13361OBJDUMP="$OBJDUMP"
13362
13363# Used on cygwin: assembler.
13364AS="$AS"
13365
13366# The name of the directory that contains temporary libtool files.
13367objdir=$objdir
13368
13369# How to create reloadable object files.
13370reload_flag=$lt_reload_flag
13371reload_cmds=$lt_reload_cmds
13372
13373# How to pass a linker flag through the compiler.
13374wl=$lt_lt_prog_compiler_wl_CXX
13375
13376# Object file suffix (normally "o").
13377objext="$ac_objext"
13378
13379# Old archive suffix (normally "a").
13380libext="$libext"
13381
13382# Shared library suffix (normally ".so").
13383shrext_cmds='$shrext_cmds'
13384
13385# Executable file suffix (normally "").
13386exeext="$exeext"
13387
13388# Additional compiler flags for building library objects.
13389pic_flag=$lt_lt_prog_compiler_pic_CXX
13390pic_mode=$pic_mode
13391
13392# What is the maximum length of a command?
13393max_cmd_len=$lt_cv_sys_max_cmd_len
13394
13395# Does compiler simultaneously support -c and -o options?
13396compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13397
13398# Must we lock files when doing compilation?
13399need_locks=$lt_need_locks
13400
13401# Do we need the lib prefix for modules?
13402need_lib_prefix=$need_lib_prefix
13403
13404# Do we need a version for libraries?
13405need_version=$need_version
13406
13407# Whether dlopen is supported.
13408dlopen_support=$enable_dlopen
13409
13410# Whether dlopen of programs is supported.
13411dlopen_self=$enable_dlopen_self
13412
13413# Whether dlopen of statically linked programs is supported.
13414dlopen_self_static=$enable_dlopen_self_static
13415
13416# Compiler flag to prevent dynamic linking.
13417link_static_flag=$lt_lt_prog_compiler_static_CXX
13418
13419# Compiler flag to turn off builtin functions.
13420no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13421
13422# Compiler flag to allow reflexive dlopens.
13423export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13424
13425# Compiler flag to generate shared objects directly from archives.
13426whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13427
13428# Compiler flag to generate thread-safe objects.
13429thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13430
13431# Library versioning type.
13432version_type=$version_type
13433
13434# Format of library name prefix.
13435libname_spec=$lt_libname_spec
13436
13437# List of archive names. First name is the real one, the rest are links.
13438# The last name is the one that the linker finds with -lNAME.
13439library_names_spec=$lt_library_names_spec
13440
13441# The coded name of the library, if different from the real name.
13442soname_spec=$lt_soname_spec
13443
13444# Commands used to build and install an old-style archive.
13445RANLIB=$lt_RANLIB
13446old_archive_cmds=$lt_old_archive_cmds_CXX
13447old_postinstall_cmds=$lt_old_postinstall_cmds
13448old_postuninstall_cmds=$lt_old_postuninstall_cmds
13449
13450# Create an old-style archive from a shared archive.
13451old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13452
13453# Create a temporary old-style archive to link instead of a shared archive.
13454old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13455
13456# Commands used to build and install a shared archive.
13457archive_cmds=$lt_archive_cmds_CXX
13458archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13459postinstall_cmds=$lt_postinstall_cmds
13460postuninstall_cmds=$lt_postuninstall_cmds
13461
13462# Commands used to build a loadable module (assumed same as above if empty)
13463module_cmds=$lt_module_cmds_CXX
13464module_expsym_cmds=$lt_module_expsym_cmds_CXX
13465
13466# Commands to strip libraries.
13467old_striplib=$lt_old_striplib
13468striplib=$lt_striplib
13469
13470# Dependencies to place before the objects being linked to create a
13471# shared library.
dd184caf 13472predep_objects=$lt_predep_objects_CXX
d9898ee8 13473
13474# Dependencies to place after the objects being linked to create a
13475# shared library.
dd184caf 13476postdep_objects=$lt_postdep_objects_CXX
d9898ee8 13477
13478# Dependencies to place before the objects being linked to create a
13479# shared library.
13480predeps=$lt_predeps_CXX
13481
13482# Dependencies to place after the objects being linked to create a
13483# shared library.
13484postdeps=$lt_postdeps_CXX
13485
13486# The library search path used internally by the compiler when linking
13487# a shared library.
dd184caf 13488compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d9898ee8 13489
13490# Method to check whether dependent libraries are shared objects.
13491deplibs_check_method=$lt_deplibs_check_method
13492
13493# Command to use when deplibs_check_method == file_magic.
13494file_magic_cmd=$lt_file_magic_cmd
13495
13496# Flag that allows shared libraries with undefined symbols to be built.
13497allow_undefined_flag=$lt_allow_undefined_flag_CXX
13498
13499# Flag that forces no undefined symbols.
13500no_undefined_flag=$lt_no_undefined_flag_CXX
13501
13502# Commands used to finish a libtool library installation in a directory.
13503finish_cmds=$lt_finish_cmds
13504
13505# Same as above, but a single script fragment to be evaled but not shown.
13506finish_eval=$lt_finish_eval
13507
13508# Take the output of nm and produce a listing of raw symbols and C names.
13509global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13510
13511# Transform the output of nm in a proper C declaration
13512global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13513
13514# Transform the output of nm in a C name address pair
13515global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13516
13517# This is the shared library runtime path variable.
13518runpath_var=$runpath_var
13519
13520# This is the shared library path variable.
13521shlibpath_var=$shlibpath_var
13522
13523# Is shlibpath searched before the hard-coded library search path?
13524shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13525
13526# How to hardcode a shared library path into an executable.
13527hardcode_action=$hardcode_action_CXX
13528
13529# Whether we should hardcode library paths into libraries.
13530hardcode_into_libs=$hardcode_into_libs
13531
13532# Flag to hardcode \$libdir into a binary during linking.
13533# This must work even if \$libdir does not exist.
13534hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13535
13536# If ld is used when linking, flag to hardcode \$libdir into
13537# a binary during linking. This must work even if \$libdir does
13538# not exist.
13539hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13540
13541# Whether we need a single -rpath flag with a separated argument.
13542hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13543
13544# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13545# resulting binary.
13546hardcode_direct=$hardcode_direct_CXX
13547
13548# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13549# resulting binary.
13550hardcode_minus_L=$hardcode_minus_L_CXX
13551
13552# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13553# the resulting binary.
13554hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13555
13556# Set to yes if building a shared library automatically hardcodes DIR into the library
13557# and all subsequent libraries and executables linked against it.
13558hardcode_automatic=$hardcode_automatic_CXX
13559
13560# Variables whose values should be saved in libtool wrapper scripts and
13561# restored at relink time.
13562variables_saved_for_relink="$variables_saved_for_relink"
13563
13564# Whether libtool must link a program against all its dependency libraries.
13565link_all_deplibs=$link_all_deplibs_CXX
13566
13567# Compile-time system search path for libraries
dd184caf 13568sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 13569
13570# Run-time system search path for libraries
13571sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13572
13573# Fix the shell variable \$srcfile for the compiler.
13574fix_srcfile_path="$fix_srcfile_path_CXX"
13575
13576# Set to yes if exported symbols are required.
13577always_export_symbols=$always_export_symbols_CXX
13578
13579# The commands to list exported symbols.
13580export_symbols_cmds=$lt_export_symbols_cmds_CXX
13581
13582# The commands to extract the exported symbol list from a shared archive.
13583extract_expsyms_cmds=$lt_extract_expsyms_cmds
13584
13585# Symbols that should not be listed in the preloaded symbols.
13586exclude_expsyms=$lt_exclude_expsyms_CXX
13587
13588# Symbols that must always be exported.
13589include_expsyms=$lt_include_expsyms_CXX
13590
13591# ### END LIBTOOL TAG CONFIG: $tagname
13592
13593__EOF__
13594
13595
13596else
13597 # If there is no Makefile yet, we rely on a make rule to execute
13598 # `config.status --recheck' to rerun these tests and create the
13599 # libtool script then.
13600 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13601 if test -f "$ltmain_in"; then
13602 test -f Makefile && make "$ltmain"
13603 fi
13604fi
13605
13606
13607ac_ext=c
13608ac_cpp='$CPP $CPPFLAGS'
13609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13611ac_compiler_gnu=$ac_cv_c_compiler_gnu
13612
13613CC=$lt_save_CC
13614LDCXX=$LD
13615LD=$lt_save_LD
13616GCC=$lt_save_GCC
13617with_gnu_ldcxx=$with_gnu_ld
13618with_gnu_ld=$lt_save_with_gnu_ld
13619lt_cv_path_LDCXX=$lt_cv_path_LD
13620lt_cv_path_LD=$lt_save_path_LD
13621lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13622lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13623
13624 else
13625 tagname=""
13626 fi
13627 ;;
13628
13629 F77)
13630 if test -n "$F77" && test "X$F77" != "Xno"; then
13631
13632ac_ext=f
13633ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13634ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13635ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13636
13637
13638archive_cmds_need_lc_F77=no
13639allow_undefined_flag_F77=
13640always_export_symbols_F77=no
13641archive_expsym_cmds_F77=
13642export_dynamic_flag_spec_F77=
13643hardcode_direct_F77=no
13644hardcode_libdir_flag_spec_F77=
13645hardcode_libdir_flag_spec_ld_F77=
13646hardcode_libdir_separator_F77=
13647hardcode_minus_L_F77=no
13648hardcode_automatic_F77=no
13649module_cmds_F77=
13650module_expsym_cmds_F77=
13651link_all_deplibs_F77=unknown
13652old_archive_cmds_F77=$old_archive_cmds
13653no_undefined_flag_F77=
13654whole_archive_flag_spec_F77=
13655enable_shared_with_static_runtimes_F77=no
13656
13657# Source file extension for f77 test sources.
13658ac_ext=f
13659
13660# Object file extension for compiled f77 test sources.
13661objext=o
13662objext_F77=$objext
13663
13664# Code to be used in simple compile tests
13665lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13666
13667# Code to be used in simple link tests
13668lt_simple_link_test_code=" program t\n end\n"
13669
13670# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13671
13672# If no C compiler was specified, use CC.
13673LTCC=${LTCC-"$CC"}
13674
13675# If no C compiler flags were specified, use CFLAGS.
13676LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13677
13678# Allow CC to be a program name with arguments.
13679compiler=$CC
13680
13681
13682# save warnings/boilerplate of simple test code
13683ac_outfile=conftest.$ac_objext
13684printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13685eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13686_lt_compiler_boilerplate=`cat conftest.err`
13687$rm conftest*
13688
13689ac_outfile=conftest.$ac_objext
13690printf "$lt_simple_link_test_code" >conftest.$ac_ext
13691eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13692_lt_linker_boilerplate=`cat conftest.err`
13693$rm conftest*
13694
13695
13696# Allow CC to be a program name with arguments.
13697lt_save_CC="$CC"
13698CC=${F77-"f77"}
13699compiler=$CC
13700compiler_F77=$CC
13701for cc_temp in $compiler""; do
13702 case $cc_temp in
13703 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13704 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13705 \-*) ;;
13706 *) break;;
13707 esac
13708done
13709cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13710
13711
dd184caf 13712{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13713echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13714{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13715echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 13716
dd184caf 13717{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13718echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 13719test "$can_build_shared" = "no" && enable_shared=no
13720
13721# On AIX, shared libraries and static libraries use the same namespace, and
13722# are all built from PIC.
13723case $host_os in
13724aix3*)
13725 test "$enable_shared" = yes && enable_static=no
13726 if test -n "$RANLIB"; then
13727 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13728 postinstall_cmds='$RANLIB $lib'
13729 fi
13730 ;;
13731aix4* | aix5*)
13732 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13733 test "$enable_shared" = yes && enable_static=no
13734 fi
13735 ;;
13736esac
dd184caf 13737{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13738echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 13739
dd184caf 13740{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13741echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 13742# Make sure either enable_shared or enable_static is yes.
13743test "$enable_shared" = yes || enable_static=yes
dd184caf 13744{ echo "$as_me:$LINENO: result: $enable_static" >&5
13745echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 13746
13747GCC_F77="$G77"
13748LD_F77="$LD"
13749
13750lt_prog_compiler_wl_F77=
13751lt_prog_compiler_pic_F77=
13752lt_prog_compiler_static_F77=
13753
dd184caf 13754{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13755echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 13756
13757 if test "$GCC" = yes; then
13758 lt_prog_compiler_wl_F77='-Wl,'
13759 lt_prog_compiler_static_F77='-static'
13760
13761 case $host_os in
13762 aix*)
13763 # All AIX code is PIC.
13764 if test "$host_cpu" = ia64; then
13765 # AIX 5 now supports IA64 processor
13766 lt_prog_compiler_static_F77='-Bstatic'
13767 fi
13768 ;;
13769
13770 amigaos*)
13771 # FIXME: we need at least 68020 code to build shared libraries, but
13772 # adding the `-m68020' flag to GCC prevents building anything better,
13773 # like `-m68040'.
13774 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13775 ;;
13776
13777 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13778 # PIC is the default for these OSes.
13779 ;;
13780
13781 mingw* | pw32* | os2*)
13782 # This hack is so that the source file can tell whether it is being
13783 # built for inclusion in a dll (and should export symbols for example).
13784 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13785 ;;
13786
13787 darwin* | rhapsody*)
13788 # PIC is the default on this platform
13789 # Common symbols not allowed in MH_DYLIB files
13790 lt_prog_compiler_pic_F77='-fno-common'
13791 ;;
13792
13793 interix3*)
13794 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13795 # Instead, we relocate shared libraries at runtime.
13796 ;;
13797
13798 msdosdjgpp*)
13799 # Just because we use GCC doesn't mean we suddenly get shared libraries
13800 # on systems that don't support them.
13801 lt_prog_compiler_can_build_shared_F77=no
13802 enable_shared=no
13803 ;;
13804
13805 sysv4*MP*)
13806 if test -d /usr/nec; then
13807 lt_prog_compiler_pic_F77=-Kconform_pic
13808 fi
13809 ;;
13810
13811 hpux*)
13812 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13813 # not for PA HP-UX.
13814 case $host_cpu in
13815 hppa*64*|ia64*)
13816 # +Z the default
13817 ;;
13818 *)
13819 lt_prog_compiler_pic_F77='-fPIC'
13820 ;;
13821 esac
13822 ;;
13823
13824 *)
13825 lt_prog_compiler_pic_F77='-fPIC'
13826 ;;
13827 esac
13828 else
13829 # PORTME Check for flag to pass linker flags through the system compiler.
13830 case $host_os in
13831 aix*)
13832 lt_prog_compiler_wl_F77='-Wl,'
13833 if test "$host_cpu" = ia64; then
13834 # AIX 5 now supports IA64 processor
13835 lt_prog_compiler_static_F77='-Bstatic'
13836 else
13837 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13838 fi
13839 ;;
13840 darwin*)
13841 # PIC is the default on this platform
13842 # Common symbols not allowed in MH_DYLIB files
13843 case $cc_basename in
13844 xlc*)
13845 lt_prog_compiler_pic_F77='-qnocommon'
13846 lt_prog_compiler_wl_F77='-Wl,'
13847 ;;
13848 esac
13849 ;;
13850
13851 mingw* | pw32* | os2*)
13852 # This hack is so that the source file can tell whether it is being
13853 # built for inclusion in a dll (and should export symbols for example).
13854 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13855 ;;
13856
13857 hpux9* | hpux10* | hpux11*)
13858 lt_prog_compiler_wl_F77='-Wl,'
13859 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13860 # not for PA HP-UX.
13861 case $host_cpu in
13862 hppa*64*|ia64*)
13863 # +Z the default
13864 ;;
13865 *)
13866 lt_prog_compiler_pic_F77='+Z'
13867 ;;
13868 esac
13869 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13870 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13871 ;;
13872
13873 irix5* | irix6* | nonstopux*)
13874 lt_prog_compiler_wl_F77='-Wl,'
13875 # PIC (with -KPIC) is the default.
13876 lt_prog_compiler_static_F77='-non_shared'
13877 ;;
13878
13879 newsos6)
13880 lt_prog_compiler_pic_F77='-KPIC'
13881 lt_prog_compiler_static_F77='-Bstatic'
13882 ;;
13883
13884 linux*)
13885 case $cc_basename in
13886 icc* | ecc*)
13887 lt_prog_compiler_wl_F77='-Wl,'
13888 lt_prog_compiler_pic_F77='-KPIC'
13889 lt_prog_compiler_static_F77='-static'
13890 ;;
13891 pgcc* | pgf77* | pgf90* | pgf95*)
13892 # Portland Group compilers (*not* the Pentium gcc compiler,
13893 # which looks to be a dead project)
13894 lt_prog_compiler_wl_F77='-Wl,'
13895 lt_prog_compiler_pic_F77='-fpic'
13896 lt_prog_compiler_static_F77='-Bstatic'
13897 ;;
13898 ccc*)
13899 lt_prog_compiler_wl_F77='-Wl,'
13900 # All Alpha code is PIC.
13901 lt_prog_compiler_static_F77='-non_shared'
13902 ;;
13903 esac
13904 ;;
13905
13906 osf3* | osf4* | osf5*)
13907 lt_prog_compiler_wl_F77='-Wl,'
13908 # All OSF/1 code is PIC.
13909 lt_prog_compiler_static_F77='-non_shared'
13910 ;;
13911
13912 solaris*)
13913 lt_prog_compiler_pic_F77='-KPIC'
13914 lt_prog_compiler_static_F77='-Bstatic'
13915 case $cc_basename in
13916 f77* | f90* | f95*)
13917 lt_prog_compiler_wl_F77='-Qoption ld ';;
13918 *)
13919 lt_prog_compiler_wl_F77='-Wl,';;
13920 esac
13921 ;;
13922
13923 sunos4*)
13924 lt_prog_compiler_wl_F77='-Qoption ld '
13925 lt_prog_compiler_pic_F77='-PIC'
13926 lt_prog_compiler_static_F77='-Bstatic'
13927 ;;
13928
13929 sysv4 | sysv4.2uw2* | sysv4.3*)
13930 lt_prog_compiler_wl_F77='-Wl,'
13931 lt_prog_compiler_pic_F77='-KPIC'
13932 lt_prog_compiler_static_F77='-Bstatic'
13933 ;;
13934
13935 sysv4*MP*)
13936 if test -d /usr/nec ;then
13937 lt_prog_compiler_pic_F77='-Kconform_pic'
13938 lt_prog_compiler_static_F77='-Bstatic'
13939 fi
13940 ;;
13941
13942 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13943 lt_prog_compiler_wl_F77='-Wl,'
13944 lt_prog_compiler_pic_F77='-KPIC'
13945 lt_prog_compiler_static_F77='-Bstatic'
13946 ;;
13947
13948 unicos*)
13949 lt_prog_compiler_wl_F77='-Wl,'
13950 lt_prog_compiler_can_build_shared_F77=no
13951 ;;
13952
13953 uts4*)
13954 lt_prog_compiler_pic_F77='-pic'
13955 lt_prog_compiler_static_F77='-Bstatic'
13956 ;;
13957
13958 *)
13959 lt_prog_compiler_can_build_shared_F77=no
13960 ;;
13961 esac
13962 fi
13963
dd184caf 13964{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13965echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d9898ee8 13966
13967#
13968# Check to make sure the PIC flag actually works.
13969#
13970if test -n "$lt_prog_compiler_pic_F77"; then
13971
dd184caf 13972{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13973echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
d9898ee8 13974if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13976else
13977 lt_prog_compiler_pic_works_F77=no
13978 ac_outfile=conftest.$ac_objext
13979 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13980 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13981 # Insert the option either (1) after the last *FLAGS variable, or
13982 # (2) before a word containing "conftest.", or (3) at the end.
13983 # Note that $ac_compile itself does not contain backslashes and begins
13984 # with a dollar sign (not a hyphen), so the echo should work correctly.
13985 # The option is referenced via a variable to avoid confusing sed.
13986 lt_compile=`echo "$ac_compile" | $SED \
13987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13989 -e 's:$: $lt_compiler_flag:'`
dd184caf 13990 (eval echo "\"\$as_me:13990: $lt_compile\"" >&5)
d9898ee8 13991 (eval "$lt_compile" 2>conftest.err)
13992 ac_status=$?
13993 cat conftest.err >&5
dd184caf 13994 echo "$as_me:13994: \$? = $ac_status" >&5
d9898ee8 13995 if (exit $ac_status) && test -s "$ac_outfile"; then
13996 # The compiler can only warn and ignore the option if not recognized
13997 # So say no if there are warnings other than the usual output.
13998 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14000 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14001 lt_prog_compiler_pic_works_F77=yes
14002 fi
14003 fi
14004 $rm conftest*
14005
14006fi
dd184caf 14007{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14008echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d9898ee8 14009
14010if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14011 case $lt_prog_compiler_pic_F77 in
14012 "" | " "*) ;;
14013 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14014 esac
14015else
14016 lt_prog_compiler_pic_F77=
14017 lt_prog_compiler_can_build_shared_F77=no
14018fi
14019
14020fi
14021case $host_os in
14022 # For platforms which do not support PIC, -DPIC is meaningless:
14023 *djgpp*)
14024 lt_prog_compiler_pic_F77=
14025 ;;
14026 *)
14027 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14028 ;;
14029esac
14030
14031#
14032# Check to make sure the static flag actually works.
14033#
14034wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
dd184caf 14035{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14036echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 14037if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14039else
14040 lt_prog_compiler_static_works_F77=no
14041 save_LDFLAGS="$LDFLAGS"
14042 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14043 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14044 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14045 # The linker can only warn and ignore the option if not recognized
14046 # So say no if there are warnings
14047 if test -s conftest.err; then
14048 # Append any errors to the config.log.
14049 cat conftest.err 1>&5
14050 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14051 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14052 if diff conftest.exp conftest.er2 >/dev/null; then
14053 lt_prog_compiler_static_works_F77=yes
14054 fi
14055 else
14056 lt_prog_compiler_static_works_F77=yes
14057 fi
14058 fi
14059 $rm conftest*
14060 LDFLAGS="$save_LDFLAGS"
14061
14062fi
dd184caf 14063{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14064echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
d9898ee8 14065
14066if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14067 :
14068else
14069 lt_prog_compiler_static_F77=
14070fi
14071
14072
dd184caf 14073{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14074echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 14075if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14076 echo $ECHO_N "(cached) $ECHO_C" >&6
14077else
14078 lt_cv_prog_compiler_c_o_F77=no
14079 $rm -r conftest 2>/dev/null
14080 mkdir conftest
14081 cd conftest
14082 mkdir out
14083 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14084
14085 lt_compiler_flag="-o out/conftest2.$ac_objext"
14086 # Insert the option either (1) after the last *FLAGS variable, or
14087 # (2) before a word containing "conftest.", or (3) at the end.
14088 # Note that $ac_compile itself does not contain backslashes and begins
14089 # with a dollar sign (not a hyphen), so the echo should work correctly.
14090 lt_compile=`echo "$ac_compile" | $SED \
14091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14093 -e 's:$: $lt_compiler_flag:'`
dd184caf 14094 (eval echo "\"\$as_me:14094: $lt_compile\"" >&5)
d9898ee8 14095 (eval "$lt_compile" 2>out/conftest.err)
14096 ac_status=$?
14097 cat out/conftest.err >&5
dd184caf 14098 echo "$as_me:14098: \$? = $ac_status" >&5
d9898ee8 14099 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14100 then
14101 # The compiler can only warn and ignore the option if not recognized
14102 # So say no if there are warnings
14103 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14104 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14105 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14106 lt_cv_prog_compiler_c_o_F77=yes
14107 fi
14108 fi
14109 chmod u+w . 2>&5
14110 $rm conftest*
14111 # SGI C++ compiler will create directory out/ii_files/ for
14112 # template instantiation
14113 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14114 $rm out/* && rmdir out
14115 cd ..
14116 rmdir conftest
14117 $rm conftest*
14118
14119fi
dd184caf 14120{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14121echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d9898ee8 14122
14123
14124hard_links="nottested"
14125if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14126 # do not overwrite the value of need_locks provided by the user
dd184caf 14127 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14128echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 14129 hard_links=yes
14130 $rm conftest*
14131 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14132 touch conftest.a
14133 ln conftest.a conftest.b 2>&5 || hard_links=no
14134 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 14135 { echo "$as_me:$LINENO: result: $hard_links" >&5
14136echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 14137 if test "$hard_links" = no; then
14138 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14139echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14140 need_locks=warn
14141 fi
14142else
14143 need_locks=no
14144fi
14145
dd184caf 14146{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14147echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 14148
14149 runpath_var=
14150 allow_undefined_flag_F77=
14151 enable_shared_with_static_runtimes_F77=no
14152 archive_cmds_F77=
14153 archive_expsym_cmds_F77=
14154 old_archive_From_new_cmds_F77=
14155 old_archive_from_expsyms_cmds_F77=
14156 export_dynamic_flag_spec_F77=
14157 whole_archive_flag_spec_F77=
14158 thread_safe_flag_spec_F77=
14159 hardcode_libdir_flag_spec_F77=
14160 hardcode_libdir_flag_spec_ld_F77=
14161 hardcode_libdir_separator_F77=
14162 hardcode_direct_F77=no
14163 hardcode_minus_L_F77=no
14164 hardcode_shlibpath_var_F77=unsupported
14165 link_all_deplibs_F77=unknown
14166 hardcode_automatic_F77=no
14167 module_cmds_F77=
14168 module_expsym_cmds_F77=
14169 always_export_symbols_F77=no
14170 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14171 # include_expsyms should be a list of space-separated symbols to be *always*
14172 # included in the symbol list
14173 include_expsyms_F77=
14174 # exclude_expsyms can be an extended regexp of symbols to exclude
14175 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14176 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14177 # as well as any symbol that contains `d'.
14178 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14179 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14180 # platforms (ab)use it in PIC code, but their linkers get confused if
14181 # the symbol is explicitly referenced. Since portable code cannot
14182 # rely on this symbol name, it's probably fine to never include it in
14183 # preloaded symbol tables.
14184 extract_expsyms_cmds=
14185 # Just being paranoid about ensuring that cc_basename is set.
14186 for cc_temp in $compiler""; do
14187 case $cc_temp in
14188 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14189 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14190 \-*) ;;
14191 *) break;;
14192 esac
14193done
14194cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14195
14196 case $host_os in
14197 cygwin* | mingw* | pw32*)
14198 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14199 # When not using gcc, we currently assume that we are using
14200 # Microsoft Visual C++.
14201 if test "$GCC" != yes; then
14202 with_gnu_ld=no
14203 fi
14204 ;;
14205 interix*)
14206 # we just hope/assume this is gcc and not c89 (= MSVC++)
14207 with_gnu_ld=yes
14208 ;;
14209 openbsd*)
14210 with_gnu_ld=no
14211 ;;
14212 esac
14213
14214 ld_shlibs_F77=yes
14215 if test "$with_gnu_ld" = yes; then
14216 # If archive_cmds runs LD, not CC, wlarc should be empty
14217 wlarc='${wl}'
14218
14219 # Set some defaults for GNU ld with shared library support. These
14220 # are reset later if shared libraries are not supported. Putting them
14221 # here allows them to be overridden if necessary.
14222 runpath_var=LD_RUN_PATH
14223 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14224 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14225 # ancient GNU ld didn't support --whole-archive et. al.
14226 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14227 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14228 else
14229 whole_archive_flag_spec_F77=
14230 fi
14231 supports_anon_versioning=no
14232 case `$LD -v 2>/dev/null` in
14233 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14234 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14235 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14236 *\ 2.11.*) ;; # other 2.11 versions
14237 *) supports_anon_versioning=yes ;;
14238 esac
14239
14240 # See if GNU ld supports shared libraries.
14241 case $host_os in
14242 aix3* | aix4* | aix5*)
14243 # On AIX/PPC, the GNU linker is very broken
14244 if test "$host_cpu" != ia64; then
14245 ld_shlibs_F77=no
14246 cat <<EOF 1>&2
14247
14248*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14249*** to be unable to reliably create shared libraries on AIX.
14250*** Therefore, libtool is disabling shared libraries support. If you
14251*** really care for shared libraries, you may want to modify your PATH
14252*** so that a non-GNU linker is found, and then restart.
14253
14254EOF
14255 fi
14256 ;;
14257
14258 amigaos*)
14259 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)'
14260 hardcode_libdir_flag_spec_F77='-L$libdir'
14261 hardcode_minus_L_F77=yes
14262
14263 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14264 # that the semantics of dynamic libraries on AmigaOS, at least up
14265 # to version 4, is to share data among multiple programs linked
14266 # with the same dynamic library. Since this doesn't match the
14267 # behavior of shared libraries on other platforms, we can't use
14268 # them.
14269 ld_shlibs_F77=no
14270 ;;
14271
14272 beos*)
14273 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14274 allow_undefined_flag_F77=unsupported
14275 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14276 # support --undefined. This deserves some investigation. FIXME
14277 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14278 else
14279 ld_shlibs_F77=no
14280 fi
14281 ;;
14282
14283 cygwin* | mingw* | pw32*)
14284 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14285 # as there is no search path for DLLs.
14286 hardcode_libdir_flag_spec_F77='-L$libdir'
14287 allow_undefined_flag_F77=unsupported
14288 always_export_symbols_F77=no
14289 enable_shared_with_static_runtimes_F77=yes
14290 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14291
14292 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14293 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14294 # If the export-symbols file already is a .def file (1st line
14295 # is EXPORTS), use it as is; otherwise, prepend...
14296 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14297 cp $export_symbols $output_objdir/$soname.def;
14298 else
14299 echo EXPORTS > $output_objdir/$soname.def;
14300 cat $export_symbols >> $output_objdir/$soname.def;
14301 fi~
14302 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14303 else
14304 ld_shlibs_F77=no
14305 fi
14306 ;;
14307
14308 interix3*)
14309 hardcode_direct_F77=no
14310 hardcode_shlibpath_var_F77=no
14311 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14312 export_dynamic_flag_spec_F77='${wl}-E'
14313 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14314 # Instead, shared libraries are loaded at an image base (0x10000000 by
14315 # default) and relocated if they conflict, which is a slow very memory
14316 # consuming and fragmenting process. To avoid this, we pick a random,
14317 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14318 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14319 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'
14320 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'
14321 ;;
14322
14323 linux*)
14324 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14325 tmp_addflag=
14326 case $cc_basename,$host_cpu in
14327 pgcc*) # Portland Group C compiler
14328 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'
14329 tmp_addflag=' $pic_flag'
14330 ;;
14331 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14332 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'
14333 tmp_addflag=' $pic_flag -Mnomain' ;;
14334 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14335 tmp_addflag=' -i_dynamic' ;;
14336 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14337 tmp_addflag=' -i_dynamic -nofor_main' ;;
14338 ifc* | ifort*) # Intel Fortran compiler
14339 tmp_addflag=' -nofor_main' ;;
14340 esac
14341 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14342
14343 if test $supports_anon_versioning = yes; then
14344 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14345 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14346 $echo "local: *; };" >> $output_objdir/$libname.ver~
14347 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14348 fi
14349 else
14350 ld_shlibs_F77=no
14351 fi
14352 ;;
14353
14354 netbsd*)
14355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14356 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14357 wlarc=
14358 else
14359 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14360 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14361 fi
14362 ;;
14363
14364 solaris*)
14365 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14366 ld_shlibs_F77=no
14367 cat <<EOF 1>&2
14368
14369*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14370*** create shared libraries on Solaris systems. Therefore, libtool
14371*** is disabling shared libraries support. We urge you to upgrade GNU
14372*** binutils to release 2.9.1 or newer. Another option is to modify
14373*** your PATH or compiler configuration so that the native linker is
14374*** used, and then restart.
14375
14376EOF
14377 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14378 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14379 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14380 else
14381 ld_shlibs_F77=no
14382 fi
14383 ;;
14384
14385 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14386 case `$LD -v 2>&1` in
14387 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14388 ld_shlibs_F77=no
14389 cat <<_LT_EOF 1>&2
14390
14391*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14392*** reliably create shared libraries on SCO systems. Therefore, libtool
14393*** is disabling shared libraries support. We urge you to upgrade GNU
14394*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14395*** your PATH or compiler configuration so that the native linker is
14396*** used, and then restart.
14397
14398_LT_EOF
14399 ;;
14400 *)
14401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14402 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14403 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14404 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14405 else
14406 ld_shlibs_F77=no
14407 fi
14408 ;;
14409 esac
14410 ;;
14411
14412 sunos4*)
14413 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14414 wlarc=
14415 hardcode_direct_F77=yes
14416 hardcode_shlibpath_var_F77=no
14417 ;;
14418
14419 *)
14420 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14421 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14422 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14423 else
14424 ld_shlibs_F77=no
14425 fi
14426 ;;
14427 esac
14428
14429 if test "$ld_shlibs_F77" = no; then
14430 runpath_var=
14431 hardcode_libdir_flag_spec_F77=
14432 export_dynamic_flag_spec_F77=
14433 whole_archive_flag_spec_F77=
14434 fi
14435 else
14436 # PORTME fill in a description of your system's linker (not GNU ld)
14437 case $host_os in
14438 aix3*)
14439 allow_undefined_flag_F77=unsupported
14440 always_export_symbols_F77=yes
14441 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'
14442 # Note: this linker hardcodes the directories in LIBPATH if there
14443 # are no directories specified by -L.
14444 hardcode_minus_L_F77=yes
14445 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14446 # Neither direct hardcoding nor static linking is supported with a
14447 # broken collect2.
14448 hardcode_direct_F77=unsupported
14449 fi
14450 ;;
14451
14452 aix4* | aix5*)
14453 if test "$host_cpu" = ia64; then
14454 # On IA64, the linker does run time linking by default, so we don't
14455 # have to do anything special.
14456 aix_use_runtimelinking=no
14457 exp_sym_flag='-Bexport'
14458 no_entry_flag=""
14459 else
14460 # If we're using GNU nm, then we don't want the "-C" option.
14461 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14462 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14463 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'
14464 else
14465 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'
14466 fi
14467 aix_use_runtimelinking=no
14468
14469 # Test if we are trying to use run time linking or normal
14470 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14471 # need to do runtime linking.
14472 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14473 for ld_flag in $LDFLAGS; do
14474 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14475 aix_use_runtimelinking=yes
14476 break
14477 fi
14478 done
14479 ;;
14480 esac
14481
14482 exp_sym_flag='-bexport'
14483 no_entry_flag='-bnoentry'
14484 fi
14485
14486 # When large executables or shared objects are built, AIX ld can
14487 # have problems creating the table of contents. If linking a library
14488 # or program results in "error TOC overflow" add -mminimal-toc to
14489 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14490 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14491
14492 archive_cmds_F77=''
14493 hardcode_direct_F77=yes
14494 hardcode_libdir_separator_F77=':'
14495 link_all_deplibs_F77=yes
14496
14497 if test "$GCC" = yes; then
14498 case $host_os in aix4.[012]|aix4.[012].*)
14499 # We only want to do this on AIX 4.2 and lower, the check
14500 # below for broken collect2 doesn't work under 4.3+
14501 collect2name=`${CC} -print-prog-name=collect2`
14502 if test -f "$collect2name" && \
14503 strings "$collect2name" | grep resolve_lib_name >/dev/null
14504 then
14505 # We have reworked collect2
14506 hardcode_direct_F77=yes
14507 else
14508 # We have old collect2
14509 hardcode_direct_F77=unsupported
14510 # It fails to find uninstalled libraries when the uninstalled
14511 # path is not listed in the libpath. Setting hardcode_minus_L
14512 # to unsupported forces relinking
14513 hardcode_minus_L_F77=yes
14514 hardcode_libdir_flag_spec_F77='-L$libdir'
14515 hardcode_libdir_separator_F77=
14516 fi
14517 ;;
14518 esac
14519 shared_flag='-shared'
14520 if test "$aix_use_runtimelinking" = yes; then
14521 shared_flag="$shared_flag "'${wl}-G'
14522 fi
14523 else
14524 # not using gcc
14525 if test "$host_cpu" = ia64; then
14526 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14527 # chokes on -Wl,-G. The following line is correct:
14528 shared_flag='-G'
14529 else
14530 if test "$aix_use_runtimelinking" = yes; then
14531 shared_flag='${wl}-G'
14532 else
14533 shared_flag='${wl}-bM:SRE'
14534 fi
14535 fi
14536 fi
14537
14538 # It seems that -bexpall does not export symbols beginning with
14539 # underscore (_), so it is better to generate a list of symbols to export.
14540 always_export_symbols_F77=yes
14541 if test "$aix_use_runtimelinking" = yes; then
14542 # Warning - without using the other runtime loading flags (-brtl),
14543 # -berok will link without error, but may produce a broken library.
14544 allow_undefined_flag_F77='-berok'
14545 # Determine the default libpath from the value encoded in an empty executable.
14546 cat >conftest.$ac_ext <<_ACEOF
14547 program main
14548
14549 end
14550_ACEOF
14551rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14552if { (ac_try="$ac_link"
14553case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14556esac
14557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_link") 2>conftest.er1
d9898ee8 14559 ac_status=$?
14560 grep -v '^ *+' conftest.er1 >conftest.err
14561 rm -f conftest.er1
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14564 (exit $ac_status); } && {
14565 test -z "$ac_f77_werror_flag" ||
14566 test ! -s conftest.err
14567 } && test -s conftest$ac_exeext &&
14568 $as_test_x conftest$ac_exeext; then
d9898ee8 14569
14570aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14571}'`
14572# Check for a 64-bit object if we didn't find anything.
14573if 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; }
14574}'`; fi
14575else
14576 echo "$as_me: failed program was:" >&5
14577sed 's/^/| /' conftest.$ac_ext >&5
14578
dd184caf 14579
d9898ee8 14580fi
dd184caf 14581
14582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14583 conftest$ac_exeext conftest.$ac_ext
14584if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14585
14586 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14587 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"
14588 else
14589 if test "$host_cpu" = ia64; then
14590 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14591 allow_undefined_flag_F77="-z nodefs"
14592 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"
14593 else
14594 # Determine the default libpath from the value encoded in an empty executable.
14595 cat >conftest.$ac_ext <<_ACEOF
14596 program main
14597
14598 end
14599_ACEOF
14600rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14601if { (ac_try="$ac_link"
14602case "(($ac_try" in
14603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14604 *) ac_try_echo=$ac_try;;
14605esac
14606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14607 (eval "$ac_link") 2>conftest.er1
d9898ee8 14608 ac_status=$?
14609 grep -v '^ *+' conftest.er1 >conftest.err
14610 rm -f conftest.er1
14611 cat conftest.err >&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14613 (exit $ac_status); } && {
14614 test -z "$ac_f77_werror_flag" ||
14615 test ! -s conftest.err
14616 } && test -s conftest$ac_exeext &&
14617 $as_test_x conftest$ac_exeext; then
d9898ee8 14618
14619aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14620}'`
14621# Check for a 64-bit object if we didn't find anything.
14622if 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; }
14623}'`; fi
14624else
14625 echo "$as_me: failed program was:" >&5
14626sed 's/^/| /' conftest.$ac_ext >&5
14627
dd184caf 14628
d9898ee8 14629fi
dd184caf 14630
14631rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14632 conftest$ac_exeext conftest.$ac_ext
14633if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14634
14635 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14636 # Warning - without using the other run time loading flags,
14637 # -berok will link without error, but may produce a broken library.
14638 no_undefined_flag_F77=' ${wl}-bernotok'
14639 allow_undefined_flag_F77=' ${wl}-berok'
14640 # Exported symbols can be pulled into shared objects from archives
14641 whole_archive_flag_spec_F77='$convenience'
14642 archive_cmds_need_lc_F77=yes
14643 # This is similar to how AIX traditionally builds its shared libraries.
14644 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'
14645 fi
14646 fi
14647 ;;
14648
14649 amigaos*)
14650 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)'
14651 hardcode_libdir_flag_spec_F77='-L$libdir'
14652 hardcode_minus_L_F77=yes
14653 # see comment about different semantics on the GNU ld section
14654 ld_shlibs_F77=no
14655 ;;
14656
14657 bsdi[45]*)
14658 export_dynamic_flag_spec_F77=-rdynamic
14659 ;;
14660
14661 cygwin* | mingw* | pw32*)
14662 # When not using gcc, we currently assume that we are using
14663 # Microsoft Visual C++.
14664 # hardcode_libdir_flag_spec is actually meaningless, as there is
14665 # no search path for DLLs.
14666 hardcode_libdir_flag_spec_F77=' '
14667 allow_undefined_flag_F77=unsupported
14668 # Tell ltmain to make .lib files, not .a files.
14669 libext=lib
14670 # Tell ltmain to make .dll files, not .so files.
14671 shrext_cmds=".dll"
14672 # FIXME: Setting linknames here is a bad hack.
14673 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14674 # The linker will automatically build a .lib file if we build a DLL.
14675 old_archive_From_new_cmds_F77='true'
14676 # FIXME: Should let the user specify the lib program.
14677 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14678 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14679 enable_shared_with_static_runtimes_F77=yes
14680 ;;
14681
14682 darwin* | rhapsody*)
14683 case $host_os in
14684 rhapsody* | darwin1.[012])
14685 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14686 ;;
14687 *) # Darwin 1.3 on
14688 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14689 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14690 else
14691 case ${MACOSX_DEPLOYMENT_TARGET} in
14692 10.[012])
14693 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14694 ;;
14695 10.*)
14696 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14697 ;;
14698 esac
14699 fi
14700 ;;
14701 esac
14702 archive_cmds_need_lc_F77=no
14703 hardcode_direct_F77=no
14704 hardcode_automatic_F77=yes
14705 hardcode_shlibpath_var_F77=unsupported
14706 whole_archive_flag_spec_F77=''
14707 link_all_deplibs_F77=yes
14708 if test "$GCC" = yes ; then
14709 output_verbose_link_cmd='echo'
14710 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14711 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14712 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14713 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}'
14714 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}'
14715 else
14716 case $cc_basename in
14717 xlc*)
14718 output_verbose_link_cmd='echo'
14719 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14720 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14721 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14722 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}'
14723 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}'
14724 ;;
14725 *)
14726 ld_shlibs_F77=no
14727 ;;
14728 esac
14729 fi
14730 ;;
14731
14732 dgux*)
14733 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14734 hardcode_libdir_flag_spec_F77='-L$libdir'
14735 hardcode_shlibpath_var_F77=no
14736 ;;
14737
14738 freebsd1*)
14739 ld_shlibs_F77=no
14740 ;;
14741
14742 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14743 # support. Future versions do this automatically, but an explicit c++rt0.o
14744 # does not break anything, and helps significantly (at the cost of a little
14745 # extra space).
14746 freebsd2.2*)
14747 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14748 hardcode_libdir_flag_spec_F77='-R$libdir'
14749 hardcode_direct_F77=yes
14750 hardcode_shlibpath_var_F77=no
14751 ;;
14752
14753 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14754 freebsd2*)
14755 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14756 hardcode_direct_F77=yes
14757 hardcode_minus_L_F77=yes
14758 hardcode_shlibpath_var_F77=no
14759 ;;
14760
14761 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14762 freebsd* | kfreebsd*-gnu | dragonfly*)
14763 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14764 hardcode_libdir_flag_spec_F77='-R$libdir'
14765 hardcode_direct_F77=yes
14766 hardcode_shlibpath_var_F77=no
14767 ;;
14768
14769 hpux9*)
14770 if test "$GCC" = yes; then
14771 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'
14772 else
14773 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'
14774 fi
14775 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14776 hardcode_libdir_separator_F77=:
14777 hardcode_direct_F77=yes
14778
14779 # hardcode_minus_L: Not really in the search PATH,
14780 # but as the default location of the library.
14781 hardcode_minus_L_F77=yes
14782 export_dynamic_flag_spec_F77='${wl}-E'
14783 ;;
14784
14785 hpux10*)
14786 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14787 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14788 else
14789 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14790 fi
14791 if test "$with_gnu_ld" = no; then
14792 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14793 hardcode_libdir_separator_F77=:
14794
14795 hardcode_direct_F77=yes
14796 export_dynamic_flag_spec_F77='${wl}-E'
14797
14798 # hardcode_minus_L: Not really in the search PATH,
14799 # but as the default location of the library.
14800 hardcode_minus_L_F77=yes
14801 fi
14802 ;;
14803
14804 hpux11*)
14805 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14806 case $host_cpu in
14807 hppa*64*)
14808 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14809 ;;
14810 ia64*)
14811 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14812 ;;
14813 *)
14814 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14815 ;;
14816 esac
14817 else
14818 case $host_cpu in
14819 hppa*64*)
14820 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14821 ;;
14822 ia64*)
14823 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14824 ;;
14825 *)
14826 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14827 ;;
14828 esac
14829 fi
14830 if test "$with_gnu_ld" = no; then
14831 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14832 hardcode_libdir_separator_F77=:
14833
14834 case $host_cpu in
14835 hppa*64*|ia64*)
14836 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14837 hardcode_direct_F77=no
14838 hardcode_shlibpath_var_F77=no
14839 ;;
14840 *)
14841 hardcode_direct_F77=yes
14842 export_dynamic_flag_spec_F77='${wl}-E'
14843
14844 # hardcode_minus_L: Not really in the search PATH,
14845 # but as the default location of the library.
14846 hardcode_minus_L_F77=yes
14847 ;;
14848 esac
14849 fi
14850 ;;
14851
14852 irix5* | irix6* | nonstopux*)
14853 if test "$GCC" = yes; then
14854 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'
14855 else
14856 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'
14857 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14858 fi
14859 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14860 hardcode_libdir_separator_F77=:
14861 link_all_deplibs_F77=yes
14862 ;;
14863
14864 netbsd*)
14865 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14866 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14867 else
14868 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14869 fi
14870 hardcode_libdir_flag_spec_F77='-R$libdir'
14871 hardcode_direct_F77=yes
14872 hardcode_shlibpath_var_F77=no
14873 ;;
14874
14875 newsos6)
14876 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14877 hardcode_direct_F77=yes
14878 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14879 hardcode_libdir_separator_F77=:
14880 hardcode_shlibpath_var_F77=no
14881 ;;
14882
14883 openbsd*)
14884 hardcode_direct_F77=yes
14885 hardcode_shlibpath_var_F77=no
14886 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14887 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14888 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14889 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14890 export_dynamic_flag_spec_F77='${wl}-E'
14891 else
14892 case $host_os in
14893 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14894 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14895 hardcode_libdir_flag_spec_F77='-R$libdir'
14896 ;;
14897 *)
14898 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14899 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14900 ;;
14901 esac
14902 fi
14903 ;;
14904
14905 os2*)
14906 hardcode_libdir_flag_spec_F77='-L$libdir'
14907 hardcode_minus_L_F77=yes
14908 allow_undefined_flag_F77=unsupported
14909 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'
14910 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14911 ;;
14912
14913 osf3*)
14914 if test "$GCC" = yes; then
14915 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14916 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'
14917 else
14918 allow_undefined_flag_F77=' -expect_unresolved \*'
14919 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'
14920 fi
14921 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14922 hardcode_libdir_separator_F77=:
14923 ;;
14924
14925 osf4* | osf5*) # as osf3* with the addition of -msym flag
14926 if test "$GCC" = yes; then
14927 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14928 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'
14929 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14930 else
14931 allow_undefined_flag_F77=' -expect_unresolved \*'
14932 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'
14933 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~
14934 $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'
14935
14936 # Both c and cxx compiler support -rpath directly
14937 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14938 fi
14939 hardcode_libdir_separator_F77=:
14940 ;;
14941
14942 solaris*)
14943 no_undefined_flag_F77=' -z text'
14944 if test "$GCC" = yes; then
14945 wlarc='${wl}'
14946 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14947 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14948 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14949 else
14950 wlarc=''
14951 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14952 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14953 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14954 fi
14955 hardcode_libdir_flag_spec_F77='-R$libdir'
14956 hardcode_shlibpath_var_F77=no
14957 case $host_os in
14958 solaris2.[0-5] | solaris2.[0-5].*) ;;
14959 *)
14960 # The compiler driver will combine linker options so we
14961 # cannot just pass the convience library names through
14962 # without $wl, iff we do not link with $LD.
14963 # Luckily, gcc supports the same syntax we need for Sun Studio.
14964 # Supported since Solaris 2.6 (maybe 2.5.1?)
14965 case $wlarc in
14966 '')
14967 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14968 *)
14969 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' ;;
14970 esac ;;
14971 esac
14972 link_all_deplibs_F77=yes
14973 ;;
14974
14975 sunos4*)
14976 if test "x$host_vendor" = xsequent; then
14977 # Use $CC to link under sequent, because it throws in some extra .o
14978 # files that make .init and .fini sections work.
14979 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14980 else
14981 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14982 fi
14983 hardcode_libdir_flag_spec_F77='-L$libdir'
14984 hardcode_direct_F77=yes
14985 hardcode_minus_L_F77=yes
14986 hardcode_shlibpath_var_F77=no
14987 ;;
14988
14989 sysv4)
14990 case $host_vendor in
14991 sni)
14992 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14993 hardcode_direct_F77=yes # is this really true???
14994 ;;
14995 siemens)
14996 ## LD is ld it makes a PLAMLIB
14997 ## CC just makes a GrossModule.
14998 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14999 reload_cmds_F77='$CC -r -o $output$reload_objs'
15000 hardcode_direct_F77=no
15001 ;;
15002 motorola)
15003 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15004 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15005 ;;
15006 esac
15007 runpath_var='LD_RUN_PATH'
15008 hardcode_shlibpath_var_F77=no
15009 ;;
15010
15011 sysv4.3*)
15012 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15013 hardcode_shlibpath_var_F77=no
15014 export_dynamic_flag_spec_F77='-Bexport'
15015 ;;
15016
15017 sysv4*MP*)
15018 if test -d /usr/nec; then
15019 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15020 hardcode_shlibpath_var_F77=no
15021 runpath_var=LD_RUN_PATH
15022 hardcode_runpath_var=yes
15023 ld_shlibs_F77=yes
15024 fi
15025 ;;
15026
15027 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15028 no_undefined_flag_F77='${wl}-z,text'
15029 archive_cmds_need_lc_F77=no
15030 hardcode_shlibpath_var_F77=no
15031 runpath_var='LD_RUN_PATH'
15032
15033 if test "$GCC" = yes; then
15034 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15035 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15036 else
15037 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15038 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15039 fi
15040 ;;
15041
15042 sysv5* | sco3.2v5* | sco5v6*)
15043 # Note: We can NOT use -z defs as we might desire, because we do not
15044 # link with -lc, and that would cause any symbols used from libc to
15045 # always be unresolved, which means just about no library would
15046 # ever link correctly. If we're not using GNU ld we use -z text
15047 # though, which does catch some bad symbols but isn't as heavy-handed
15048 # as -z defs.
15049 no_undefined_flag_F77='${wl}-z,text'
15050 allow_undefined_flag_F77='${wl}-z,nodefs'
15051 archive_cmds_need_lc_F77=no
15052 hardcode_shlibpath_var_F77=no
15053 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15054 hardcode_libdir_separator_F77=':'
15055 link_all_deplibs_F77=yes
15056 export_dynamic_flag_spec_F77='${wl}-Bexport'
15057 runpath_var='LD_RUN_PATH'
15058
15059 if test "$GCC" = yes; then
15060 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15061 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15062 else
15063 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15064 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15065 fi
15066 ;;
15067
15068 uts4*)
15069 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15070 hardcode_libdir_flag_spec_F77='-L$libdir'
15071 hardcode_shlibpath_var_F77=no
15072 ;;
15073
15074 *)
15075 ld_shlibs_F77=no
15076 ;;
15077 esac
15078 fi
15079
dd184caf 15080{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15081echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d9898ee8 15082test "$ld_shlibs_F77" = no && can_build_shared=no
15083
15084#
15085# Do we need to explicitly link libc?
15086#
15087case "x$archive_cmds_need_lc_F77" in
15088x|xyes)
15089 # Assume -lc should be added
15090 archive_cmds_need_lc_F77=yes
15091
15092 if test "$enable_shared" = yes && test "$GCC" = yes; then
15093 case $archive_cmds_F77 in
15094 *'~'*)
15095 # FIXME: we may have to deal with multi-command sequences.
15096 ;;
15097 '$CC '*)
15098 # Test whether the compiler implicitly links with -lc since on some
15099 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15100 # to ld, don't add -lc before -lgcc.
dd184caf 15101 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15102echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 15103 $rm conftest*
15104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15105
15106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15107 (eval $ac_compile) 2>&5
15108 ac_status=$?
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); } 2>conftest.err; then
15111 soname=conftest
15112 lib=conftest
15113 libobjs=conftest.$ac_objext
15114 deplibs=
15115 wl=$lt_prog_compiler_wl_F77
15116 pic_flag=$lt_prog_compiler_pic_F77
15117 compiler_flags=-v
15118 linker_flags=-v
15119 verstring=
15120 output_objdir=.
15121 libname=conftest
15122 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15123 allow_undefined_flag_F77=
15124 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15125 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }
15129 then
15130 archive_cmds_need_lc_F77=no
15131 else
15132 archive_cmds_need_lc_F77=yes
15133 fi
15134 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15135 else
15136 cat conftest.err 1>&5
15137 fi
15138 $rm conftest*
dd184caf 15139 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15140echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d9898ee8 15141 ;;
15142 esac
15143 fi
15144 ;;
15145esac
15146
dd184caf 15147{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15148echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 15149library_names_spec=
15150libname_spec='lib$name'
15151soname_spec=
15152shrext_cmds=".so"
15153postinstall_cmds=
15154postuninstall_cmds=
15155finish_cmds=
15156finish_eval=
15157shlibpath_var=
15158shlibpath_overrides_runpath=unknown
15159version_type=none
15160dynamic_linker="$host_os ld.so"
15161sys_lib_dlsearch_path_spec="/lib /usr/lib"
15162if test "$GCC" = yes; then
15163 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15164 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15165 # if the path contains ";" then we assume it to be the separator
15166 # otherwise default to the standard path separator (i.e. ":") - it is
15167 # assumed that no part of a normal pathname contains ";" but that should
15168 # okay in the real world where ";" in dirpaths is itself problematic.
15169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15170 else
15171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15172 fi
15173else
15174 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15175fi
15176need_lib_prefix=unknown
15177hardcode_into_libs=no
15178
15179# when you set need_version to no, make sure it does not cause -set_version
15180# flags to be left without arguments
15181need_version=unknown
15182
15183case $host_os in
15184aix3*)
15185 version_type=linux
15186 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15187 shlibpath_var=LIBPATH
15188
15189 # AIX 3 has no versioning support, so we append a major version to the name.
15190 soname_spec='${libname}${release}${shared_ext}$major'
15191 ;;
15192
15193aix4* | aix5*)
15194 version_type=linux
15195 need_lib_prefix=no
15196 need_version=no
15197 hardcode_into_libs=yes
15198 if test "$host_cpu" = ia64; then
15199 # AIX 5 supports IA64
15200 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15201 shlibpath_var=LD_LIBRARY_PATH
15202 else
15203 # With GCC up to 2.95.x, collect2 would create an import file
15204 # for dependence libraries. The import file would start with
15205 # the line `#! .'. This would cause the generated library to
15206 # depend on `.', always an invalid library. This was fixed in
15207 # development snapshots of GCC prior to 3.0.
15208 case $host_os in
15209 aix4 | aix4.[01] | aix4.[01].*)
15210 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15211 echo ' yes '
15212 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15213 :
15214 else
15215 can_build_shared=no
15216 fi
15217 ;;
15218 esac
15219 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15220 # soname into executable. Probably we can add versioning support to
15221 # collect2, so additional links can be useful in future.
15222 if test "$aix_use_runtimelinking" = yes; then
15223 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15224 # instead of lib<name>.a to let people know that these are not
15225 # typical AIX shared libraries.
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227 else
15228 # We preserve .a as extension for shared libraries through AIX4.2
15229 # and later when we are not doing run time linking.
15230 library_names_spec='${libname}${release}.a $libname.a'
15231 soname_spec='${libname}${release}${shared_ext}$major'
15232 fi
15233 shlibpath_var=LIBPATH
15234 fi
15235 ;;
15236
15237amigaos*)
15238 library_names_spec='$libname.ixlibrary $libname.a'
15239 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15240 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'
15241 ;;
15242
15243beos*)
15244 library_names_spec='${libname}${shared_ext}'
15245 dynamic_linker="$host_os ld.so"
15246 shlibpath_var=LIBRARY_PATH
15247 ;;
15248
15249bsdi[45]*)
15250 version_type=linux
15251 need_version=no
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253 soname_spec='${libname}${release}${shared_ext}$major'
15254 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15255 shlibpath_var=LD_LIBRARY_PATH
15256 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15257 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15258 # the default ld.so.conf also contains /usr/contrib/lib and
15259 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15260 # libtool to hard-code these into programs
15261 ;;
15262
15263cygwin* | mingw* | pw32*)
15264 version_type=windows
15265 shrext_cmds=".dll"
15266 need_version=no
15267 need_lib_prefix=no
15268
15269 case $GCC,$host_os in
15270 yes,cygwin* | yes,mingw* | yes,pw32*)
15271 library_names_spec='$libname.dll.a'
15272 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15273 postinstall_cmds='base_file=`basename \${file}`~
15274 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15275 dldir=$destdir/`dirname \$dlpath`~
15276 test -d \$dldir || mkdir -p \$dldir~
15277 $install_prog $dir/$dlname \$dldir/$dlname~
15278 chmod a+x \$dldir/$dlname'
15279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15280 dlpath=$dir/\$dldll~
15281 $rm \$dlpath'
15282 shlibpath_overrides_runpath=yes
15283
15284 case $host_os in
15285 cygwin*)
15286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15287 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15288 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15289 ;;
15290 mingw*)
15291 # MinGW DLLs use traditional 'lib' prefix
15292 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15294 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15295 # It is most probably a Windows format PATH printed by
15296 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15297 # path with ; separators, and with drive letters. We can handle the
15298 # drive letters (cygwin fileutils understands them), so leave them,
15299 # especially as we might pass files found there to a mingw objdump,
15300 # which wouldn't understand a cygwinified path. Ahh.
15301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15302 else
15303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15304 fi
15305 ;;
15306 pw32*)
15307 # pw32 DLLs use 'pw' prefix rather than 'lib'
15308 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15309 ;;
15310 esac
15311 ;;
15312
15313 *)
15314 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15315 ;;
15316 esac
15317 dynamic_linker='Win32 ld.exe'
15318 # FIXME: first we should search . and the directory the executable is in
15319 shlibpath_var=PATH
15320 ;;
15321
15322darwin* | rhapsody*)
15323 dynamic_linker="$host_os dyld"
15324 version_type=darwin
15325 need_lib_prefix=no
15326 need_version=no
15327 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15328 soname_spec='${libname}${release}${major}$shared_ext'
15329 shlibpath_overrides_runpath=yes
15330 shlibpath_var=DYLD_LIBRARY_PATH
15331 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15332 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15333 if test "$GCC" = yes; then
15334 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"`
15335 else
15336 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15337 fi
15338 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15339 ;;
15340
15341dgux*)
15342 version_type=linux
15343 need_lib_prefix=no
15344 need_version=no
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15346 soname_spec='${libname}${release}${shared_ext}$major'
15347 shlibpath_var=LD_LIBRARY_PATH
15348 ;;
15349
15350freebsd1*)
15351 dynamic_linker=no
15352 ;;
15353
15354kfreebsd*-gnu)
15355 version_type=linux
15356 need_lib_prefix=no
15357 need_version=no
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 shlibpath_var=LD_LIBRARY_PATH
15361 shlibpath_overrides_runpath=no
15362 hardcode_into_libs=yes
15363 dynamic_linker='GNU ld.so'
15364 ;;
15365
15366freebsd* | dragonfly*)
15367 # DragonFly does not have aout. When/if they implement a new
15368 # versioning mechanism, adjust this.
15369 if test -x /usr/bin/objformat; then
15370 objformat=`/usr/bin/objformat`
15371 else
15372 case $host_os in
15373 freebsd[123]*) objformat=aout ;;
15374 *) objformat=elf ;;
15375 esac
15376 fi
15377 version_type=freebsd-$objformat
15378 case $version_type in
15379 freebsd-elf*)
15380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15381 need_version=no
15382 need_lib_prefix=no
15383 ;;
15384 freebsd-*)
15385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15386 need_version=yes
15387 ;;
15388 esac
15389 shlibpath_var=LD_LIBRARY_PATH
15390 case $host_os in
15391 freebsd2*)
15392 shlibpath_overrides_runpath=yes
15393 ;;
15394 freebsd3.[01]* | freebsdelf3.[01]*)
15395 shlibpath_overrides_runpath=yes
15396 hardcode_into_libs=yes
15397 ;;
15398 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15399 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15400 shlibpath_overrides_runpath=no
15401 hardcode_into_libs=yes
15402 ;;
15403 freebsd*) # from 4.6 on
15404 shlibpath_overrides_runpath=yes
15405 hardcode_into_libs=yes
15406 ;;
15407 esac
15408 ;;
15409
15410gnu*)
15411 version_type=linux
15412 need_lib_prefix=no
15413 need_version=no
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15415 soname_spec='${libname}${release}${shared_ext}$major'
15416 shlibpath_var=LD_LIBRARY_PATH
15417 hardcode_into_libs=yes
15418 ;;
15419
15420hpux9* | hpux10* | hpux11*)
15421 # Give a soname corresponding to the major version so that dld.sl refuses to
15422 # link against other versions.
15423 version_type=sunos
15424 need_lib_prefix=no
15425 need_version=no
15426 case $host_cpu in
15427 ia64*)
15428 shrext_cmds='.so'
15429 hardcode_into_libs=yes
15430 dynamic_linker="$host_os dld.so"
15431 shlibpath_var=LD_LIBRARY_PATH
15432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434 soname_spec='${libname}${release}${shared_ext}$major'
15435 if test "X$HPUX_IA64_MODE" = X32; then
15436 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15437 else
15438 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15439 fi
15440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15441 ;;
15442 hppa*64*)
15443 shrext_cmds='.sl'
15444 hardcode_into_libs=yes
15445 dynamic_linker="$host_os dld.sl"
15446 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449 soname_spec='${libname}${release}${shared_ext}$major'
15450 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15452 ;;
15453 *)
15454 shrext_cmds='.sl'
15455 dynamic_linker="$host_os dld.sl"
15456 shlibpath_var=SHLIB_PATH
15457 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459 soname_spec='${libname}${release}${shared_ext}$major'
15460 ;;
15461 esac
15462 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15463 postinstall_cmds='chmod 555 $lib'
15464 ;;
15465
15466interix3*)
15467 version_type=linux
15468 need_lib_prefix=no
15469 need_version=no
15470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15471 soname_spec='${libname}${release}${shared_ext}$major'
15472 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15473 shlibpath_var=LD_LIBRARY_PATH
15474 shlibpath_overrides_runpath=no
15475 hardcode_into_libs=yes
15476 ;;
15477
15478irix5* | irix6* | nonstopux*)
15479 case $host_os in
15480 nonstopux*) version_type=nonstopux ;;
15481 *)
15482 if test "$lt_cv_prog_gnu_ld" = yes; then
15483 version_type=linux
15484 else
15485 version_type=irix
15486 fi ;;
15487 esac
15488 need_lib_prefix=no
15489 need_version=no
15490 soname_spec='${libname}${release}${shared_ext}$major'
15491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15492 case $host_os in
15493 irix5* | nonstopux*)
15494 libsuff= shlibsuff=
15495 ;;
15496 *)
15497 case $LD in # libtool.m4 will add one of these switches to LD
15498 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15499 libsuff= shlibsuff= libmagic=32-bit;;
15500 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15501 libsuff=32 shlibsuff=N32 libmagic=N32;;
15502 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15503 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15504 *) libsuff= shlibsuff= libmagic=never-match;;
15505 esac
15506 ;;
15507 esac
15508 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15509 shlibpath_overrides_runpath=no
15510 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15511 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15512 hardcode_into_libs=yes
15513 ;;
15514
15515# No shared lib support for Linux oldld, aout, or coff.
15516linux*oldld* | linux*aout* | linux*coff*)
15517 dynamic_linker=no
15518 ;;
15519
15520# This must be Linux ELF.
15521linux*)
15522 version_type=linux
15523 need_lib_prefix=no
15524 need_version=no
15525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15526 soname_spec='${libname}${release}${shared_ext}$major'
15527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15528 shlibpath_var=LD_LIBRARY_PATH
15529 shlibpath_overrides_runpath=no
15530 # This implies no fast_install, which is unacceptable.
15531 # Some rework will be needed to allow for fast_install
15532 # before this can be enabled.
15533 hardcode_into_libs=yes
15534
15535 # find out which ABI we are using
15536 libsuff=
15537 case "$host_cpu" in
15538 x86_64*|s390x*|powerpc64*)
dd184caf 15539 echo '#line 15539 "configure"' > conftest.$ac_ext
d9898ee8 15540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15541 (eval $ac_compile) 2>&5
15542 ac_status=$?
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; then
15545 case `/usr/bin/file conftest.$ac_objext` in
15546 *64-bit*)
15547 libsuff=64
15548 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15549 ;;
15550 esac
15551 fi
15552 rm -rf conftest*
15553 ;;
15554 esac
15555
15556 # Append ld.so.conf contents to the search path
15557 if test -f /etc/ld.so.conf; then
dd184caf 15558 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 15559 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15560 fi
15561
15562 # We used to test for /lib/ld.so.1 and disable shared libraries on
15563 # powerpc, because MkLinux only supported shared libraries with the
15564 # GNU dynamic linker. Since this was broken with cross compilers,
15565 # most powerpc-linux boxes support dynamic linking these days and
15566 # people can always --disable-shared, the test was removed, and we
15567 # assume the GNU/Linux dynamic linker is in use.
15568 dynamic_linker='GNU/Linux ld.so'
15569 ;;
15570
15571knetbsd*-gnu)
15572 version_type=linux
15573 need_lib_prefix=no
15574 need_version=no
15575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15576 soname_spec='${libname}${release}${shared_ext}$major'
15577 shlibpath_var=LD_LIBRARY_PATH
15578 shlibpath_overrides_runpath=no
15579 hardcode_into_libs=yes
15580 dynamic_linker='GNU ld.so'
15581 ;;
15582
15583netbsd*)
15584 version_type=sunos
15585 need_lib_prefix=no
15586 need_version=no
15587 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15590 dynamic_linker='NetBSD (a.out) ld.so'
15591 else
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15593 soname_spec='${libname}${release}${shared_ext}$major'
15594 dynamic_linker='NetBSD ld.elf_so'
15595 fi
15596 shlibpath_var=LD_LIBRARY_PATH
15597 shlibpath_overrides_runpath=yes
15598 hardcode_into_libs=yes
15599 ;;
15600
15601newsos6)
15602 version_type=linux
15603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15604 shlibpath_var=LD_LIBRARY_PATH
15605 shlibpath_overrides_runpath=yes
15606 ;;
15607
15608nto-qnx*)
15609 version_type=linux
15610 need_lib_prefix=no
15611 need_version=no
15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15613 soname_spec='${libname}${release}${shared_ext}$major'
15614 shlibpath_var=LD_LIBRARY_PATH
15615 shlibpath_overrides_runpath=yes
15616 ;;
15617
15618openbsd*)
15619 version_type=sunos
15620 sys_lib_dlsearch_path_spec="/usr/lib"
15621 need_lib_prefix=no
15622 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15623 case $host_os in
15624 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15625 *) need_version=no ;;
15626 esac
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15629 shlibpath_var=LD_LIBRARY_PATH
15630 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15631 case $host_os in
15632 openbsd2.[89] | openbsd2.[89].*)
15633 shlibpath_overrides_runpath=no
15634 ;;
15635 *)
15636 shlibpath_overrides_runpath=yes
15637 ;;
15638 esac
15639 else
15640 shlibpath_overrides_runpath=yes
15641 fi
15642 ;;
15643
15644os2*)
15645 libname_spec='$name'
15646 shrext_cmds=".dll"
15647 need_lib_prefix=no
15648 library_names_spec='$libname${shared_ext} $libname.a'
15649 dynamic_linker='OS/2 ld.exe'
15650 shlibpath_var=LIBPATH
15651 ;;
15652
15653osf3* | osf4* | osf5*)
15654 version_type=osf
15655 need_lib_prefix=no
15656 need_version=no
15657 soname_spec='${libname}${release}${shared_ext}$major'
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15661 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15662 ;;
15663
15664solaris*)
15665 version_type=linux
15666 need_lib_prefix=no
15667 need_version=no
15668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15669 soname_spec='${libname}${release}${shared_ext}$major'
15670 shlibpath_var=LD_LIBRARY_PATH
15671 shlibpath_overrides_runpath=yes
15672 hardcode_into_libs=yes
15673 # ldd complains unless libraries are executable
15674 postinstall_cmds='chmod +x $lib'
15675 ;;
15676
15677sunos4*)
15678 version_type=sunos
15679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15680 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15681 shlibpath_var=LD_LIBRARY_PATH
15682 shlibpath_overrides_runpath=yes
15683 if test "$with_gnu_ld" = yes; then
15684 need_lib_prefix=no
15685 fi
15686 need_version=yes
15687 ;;
15688
15689sysv4 | sysv4.3*)
15690 version_type=linux
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15692 soname_spec='${libname}${release}${shared_ext}$major'
15693 shlibpath_var=LD_LIBRARY_PATH
15694 case $host_vendor in
15695 sni)
15696 shlibpath_overrides_runpath=no
15697 need_lib_prefix=no
15698 export_dynamic_flag_spec='${wl}-Blargedynsym'
15699 runpath_var=LD_RUN_PATH
15700 ;;
15701 siemens)
15702 need_lib_prefix=no
15703 ;;
15704 motorola)
15705 need_lib_prefix=no
15706 need_version=no
15707 shlibpath_overrides_runpath=no
15708 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15709 ;;
15710 esac
15711 ;;
15712
15713sysv4*MP*)
15714 if test -d /usr/nec ;then
15715 version_type=linux
15716 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15717 soname_spec='$libname${shared_ext}.$major'
15718 shlibpath_var=LD_LIBRARY_PATH
15719 fi
15720 ;;
15721
15722sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15723 version_type=freebsd-elf
15724 need_lib_prefix=no
15725 need_version=no
15726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15727 soname_spec='${libname}${release}${shared_ext}$major'
15728 shlibpath_var=LD_LIBRARY_PATH
15729 hardcode_into_libs=yes
15730 if test "$with_gnu_ld" = yes; then
15731 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15732 shlibpath_overrides_runpath=no
15733 else
15734 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15735 shlibpath_overrides_runpath=yes
15736 case $host_os in
15737 sco3.2v5*)
15738 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15739 ;;
15740 esac
15741 fi
15742 sys_lib_dlsearch_path_spec='/usr/lib'
15743 ;;
15744
15745uts4*)
15746 version_type=linux
15747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15748 soname_spec='${libname}${release}${shared_ext}$major'
15749 shlibpath_var=LD_LIBRARY_PATH
15750 ;;
15751
15752*)
15753 dynamic_linker=no
15754 ;;
15755esac
dd184caf 15756{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15757echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 15758test "$dynamic_linker" = no && can_build_shared=no
15759
15760variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15761if test "$GCC" = yes; then
15762 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15763fi
15764
dd184caf 15765{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15766echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 15767hardcode_action_F77=
15768if test -n "$hardcode_libdir_flag_spec_F77" || \
15769 test -n "$runpath_var_F77" || \
15770 test "X$hardcode_automatic_F77" = "Xyes" ; then
15771
15772 # We can hardcode non-existant directories.
15773 if test "$hardcode_direct_F77" != no &&
15774 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15775 # have to relink, otherwise we might link with an installed library
15776 # when we should be linking with a yet-to-be-installed one
15777 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15778 test "$hardcode_minus_L_F77" != no; then
15779 # Linking always hardcodes the temporary library directory.
15780 hardcode_action_F77=relink
15781 else
15782 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15783 hardcode_action_F77=immediate
15784 fi
15785else
15786 # We cannot hardcode anything, or else we can only hardcode existing
15787 # directories.
15788 hardcode_action_F77=unsupported
15789fi
dd184caf 15790{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15791echo "${ECHO_T}$hardcode_action_F77" >&6; }
d9898ee8 15792
15793if test "$hardcode_action_F77" = relink; then
15794 # Fast installation is not supported
15795 enable_fast_install=no
15796elif test "$shlibpath_overrides_runpath" = yes ||
15797 test "$enable_shared" = no; then
15798 # Fast installation is not necessary
15799 enable_fast_install=needless
15800fi
15801
15802
15803# The else clause should only fire when bootstrapping the
15804# libtool distribution, otherwise you forgot to ship ltmain.sh
15805# with your package, and you will get complaints that there are
15806# no rules to generate ltmain.sh.
15807if test -f "$ltmain"; then
15808 # See if we are running on zsh, and set the options which allow our commands through
15809 # without removal of \ escapes.
15810 if test -n "${ZSH_VERSION+set}" ; then
15811 setopt NO_GLOB_SUBST
15812 fi
15813 # Now quote all the things that may contain metacharacters while being
15814 # careful not to overquote the AC_SUBSTed values. We take copies of the
15815 # variables and quote the copies for generation of the libtool script.
15816 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15817 SED SHELL STRIP \
15818 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15819 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15820 deplibs_check_method reload_flag reload_cmds need_locks \
15821 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15822 lt_cv_sys_global_symbol_to_c_name_address \
15823 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15824 old_postinstall_cmds old_postuninstall_cmds \
15825 compiler_F77 \
15826 CC_F77 \
15827 LD_F77 \
15828 lt_prog_compiler_wl_F77 \
15829 lt_prog_compiler_pic_F77 \
15830 lt_prog_compiler_static_F77 \
15831 lt_prog_compiler_no_builtin_flag_F77 \
15832 export_dynamic_flag_spec_F77 \
15833 thread_safe_flag_spec_F77 \
15834 whole_archive_flag_spec_F77 \
15835 enable_shared_with_static_runtimes_F77 \
15836 old_archive_cmds_F77 \
15837 old_archive_from_new_cmds_F77 \
15838 predep_objects_F77 \
15839 postdep_objects_F77 \
15840 predeps_F77 \
15841 postdeps_F77 \
15842 compiler_lib_search_path_F77 \
15843 archive_cmds_F77 \
15844 archive_expsym_cmds_F77 \
15845 postinstall_cmds_F77 \
15846 postuninstall_cmds_F77 \
15847 old_archive_from_expsyms_cmds_F77 \
15848 allow_undefined_flag_F77 \
15849 no_undefined_flag_F77 \
15850 export_symbols_cmds_F77 \
15851 hardcode_libdir_flag_spec_F77 \
15852 hardcode_libdir_flag_spec_ld_F77 \
15853 hardcode_libdir_separator_F77 \
15854 hardcode_automatic_F77 \
15855 module_cmds_F77 \
15856 module_expsym_cmds_F77 \
15857 lt_cv_prog_compiler_c_o_F77 \
15858 exclude_expsyms_F77 \
15859 include_expsyms_F77; do
15860
15861 case $var in
15862 old_archive_cmds_F77 | \
15863 old_archive_from_new_cmds_F77 | \
15864 archive_cmds_F77 | \
15865 archive_expsym_cmds_F77 | \
15866 module_cmds_F77 | \
15867 module_expsym_cmds_F77 | \
15868 old_archive_from_expsyms_cmds_F77 | \
15869 export_symbols_cmds_F77 | \
15870 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15871 postinstall_cmds | postuninstall_cmds | \
15872 old_postinstall_cmds | old_postuninstall_cmds | \
15873 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15874 # Double-quote double-evaled strings.
15875 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15876 ;;
15877 *)
15878 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15879 ;;
15880 esac
15881 done
15882
15883 case $lt_echo in
15884 *'\$0 --fallback-echo"')
15885 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15886 ;;
15887 esac
15888
15889cfgfile="$ofile"
15890
15891 cat <<__EOF__ >> "$cfgfile"
15892# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15893
15894# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15895
15896# Shell to use when invoking shell scripts.
15897SHELL=$lt_SHELL
15898
15899# Whether or not to build shared libraries.
15900build_libtool_libs=$enable_shared
15901
15902# Whether or not to build static libraries.
15903build_old_libs=$enable_static
15904
15905# Whether or not to add -lc for building shared libraries.
15906build_libtool_need_lc=$archive_cmds_need_lc_F77
15907
15908# Whether or not to disallow shared libs when runtime libs are static
15909allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15910
15911# Whether or not to optimize for fast installation.
15912fast_install=$enable_fast_install
15913
15914# The host system.
15915host_alias=$host_alias
15916host=$host
15917host_os=$host_os
15918
15919# The build system.
15920build_alias=$build_alias
15921build=$build
15922build_os=$build_os
15923
15924# An echo program that does not interpret backslashes.
15925echo=$lt_echo
15926
15927# The archiver.
15928AR=$lt_AR
15929AR_FLAGS=$lt_AR_FLAGS
15930
15931# A C compiler.
15932LTCC=$lt_LTCC
15933
15934# LTCC compiler flags.
15935LTCFLAGS=$lt_LTCFLAGS
15936
15937# A language-specific compiler.
15938CC=$lt_compiler_F77
15939
15940# Is the compiler the GNU C compiler?
15941with_gcc=$GCC_F77
15942
d9898ee8 15943# An ERE matcher.
15944EGREP=$lt_EGREP
15945
15946# The linker used to build libraries.
15947LD=$lt_LD_F77
15948
15949# Whether we need hard or soft links.
15950LN_S=$lt_LN_S
15951
15952# A BSD-compatible nm program.
15953NM=$lt_NM
15954
15955# A symbol stripping program
15956STRIP=$lt_STRIP
15957
15958# Used to examine libraries when file_magic_cmd begins "file"
15959MAGIC_CMD=$MAGIC_CMD
15960
15961# Used on cygwin: DLL creation program.
15962DLLTOOL="$DLLTOOL"
15963
15964# Used on cygwin: object dumper.
15965OBJDUMP="$OBJDUMP"
15966
15967# Used on cygwin: assembler.
15968AS="$AS"
15969
15970# The name of the directory that contains temporary libtool files.
15971objdir=$objdir
15972
15973# How to create reloadable object files.
15974reload_flag=$lt_reload_flag
15975reload_cmds=$lt_reload_cmds
15976
15977# How to pass a linker flag through the compiler.
15978wl=$lt_lt_prog_compiler_wl_F77
15979
15980# Object file suffix (normally "o").
15981objext="$ac_objext"
15982
15983# Old archive suffix (normally "a").
15984libext="$libext"
15985
15986# Shared library suffix (normally ".so").
15987shrext_cmds='$shrext_cmds'
15988
15989# Executable file suffix (normally "").
15990exeext="$exeext"
15991
15992# Additional compiler flags for building library objects.
15993pic_flag=$lt_lt_prog_compiler_pic_F77
15994pic_mode=$pic_mode
15995
15996# What is the maximum length of a command?
15997max_cmd_len=$lt_cv_sys_max_cmd_len
15998
15999# Does compiler simultaneously support -c and -o options?
16000compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16001
16002# Must we lock files when doing compilation?
16003need_locks=$lt_need_locks
16004
16005# Do we need the lib prefix for modules?
16006need_lib_prefix=$need_lib_prefix
16007
16008# Do we need a version for libraries?
16009need_version=$need_version
16010
16011# Whether dlopen is supported.
16012dlopen_support=$enable_dlopen
16013
16014# Whether dlopen of programs is supported.
16015dlopen_self=$enable_dlopen_self
16016
16017# Whether dlopen of statically linked programs is supported.
16018dlopen_self_static=$enable_dlopen_self_static
16019
16020# Compiler flag to prevent dynamic linking.
16021link_static_flag=$lt_lt_prog_compiler_static_F77
16022
16023# Compiler flag to turn off builtin functions.
16024no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16025
16026# Compiler flag to allow reflexive dlopens.
16027export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16028
16029# Compiler flag to generate shared objects directly from archives.
16030whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16031
16032# Compiler flag to generate thread-safe objects.
16033thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16034
16035# Library versioning type.
16036version_type=$version_type
16037
16038# Format of library name prefix.
16039libname_spec=$lt_libname_spec
16040
16041# List of archive names. First name is the real one, the rest are links.
16042# The last name is the one that the linker finds with -lNAME.
16043library_names_spec=$lt_library_names_spec
16044
16045# The coded name of the library, if different from the real name.
16046soname_spec=$lt_soname_spec
16047
16048# Commands used to build and install an old-style archive.
16049RANLIB=$lt_RANLIB
16050old_archive_cmds=$lt_old_archive_cmds_F77
16051old_postinstall_cmds=$lt_old_postinstall_cmds
16052old_postuninstall_cmds=$lt_old_postuninstall_cmds
16053
16054# Create an old-style archive from a shared archive.
16055old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16056
16057# Create a temporary old-style archive to link instead of a shared archive.
16058old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16059
16060# Commands used to build and install a shared archive.
16061archive_cmds=$lt_archive_cmds_F77
16062archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16063postinstall_cmds=$lt_postinstall_cmds
16064postuninstall_cmds=$lt_postuninstall_cmds
16065
16066# Commands used to build a loadable module (assumed same as above if empty)
16067module_cmds=$lt_module_cmds_F77
16068module_expsym_cmds=$lt_module_expsym_cmds_F77
16069
16070# Commands to strip libraries.
16071old_striplib=$lt_old_striplib
16072striplib=$lt_striplib
16073
16074# Dependencies to place before the objects being linked to create a
16075# shared library.
dd184caf 16076predep_objects=$lt_predep_objects_F77
d9898ee8 16077
16078# Dependencies to place after the objects being linked to create a
16079# shared library.
dd184caf 16080postdep_objects=$lt_postdep_objects_F77
d9898ee8 16081
16082# Dependencies to place before the objects being linked to create a
16083# shared library.
16084predeps=$lt_predeps_F77
16085
16086# Dependencies to place after the objects being linked to create a
16087# shared library.
16088postdeps=$lt_postdeps_F77
16089
16090# The library search path used internally by the compiler when linking
16091# a shared library.
dd184caf 16092compiler_lib_search_path=$lt_compiler_lib_search_path_F77
d9898ee8 16093
16094# Method to check whether dependent libraries are shared objects.
16095deplibs_check_method=$lt_deplibs_check_method
16096
16097# Command to use when deplibs_check_method == file_magic.
16098file_magic_cmd=$lt_file_magic_cmd
16099
16100# Flag that allows shared libraries with undefined symbols to be built.
16101allow_undefined_flag=$lt_allow_undefined_flag_F77
16102
16103# Flag that forces no undefined symbols.
16104no_undefined_flag=$lt_no_undefined_flag_F77
16105
16106# Commands used to finish a libtool library installation in a directory.
16107finish_cmds=$lt_finish_cmds
16108
16109# Same as above, but a single script fragment to be evaled but not shown.
16110finish_eval=$lt_finish_eval
16111
16112# Take the output of nm and produce a listing of raw symbols and C names.
16113global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16114
16115# Transform the output of nm in a proper C declaration
16116global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16117
16118# Transform the output of nm in a C name address pair
16119global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16120
16121# This is the shared library runtime path variable.
16122runpath_var=$runpath_var
16123
16124# This is the shared library path variable.
16125shlibpath_var=$shlibpath_var
16126
16127# Is shlibpath searched before the hard-coded library search path?
16128shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16129
16130# How to hardcode a shared library path into an executable.
16131hardcode_action=$hardcode_action_F77
16132
16133# Whether we should hardcode library paths into libraries.
16134hardcode_into_libs=$hardcode_into_libs
16135
16136# Flag to hardcode \$libdir into a binary during linking.
16137# This must work even if \$libdir does not exist.
16138hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16139
16140# If ld is used when linking, flag to hardcode \$libdir into
16141# a binary during linking. This must work even if \$libdir does
16142# not exist.
16143hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16144
16145# Whether we need a single -rpath flag with a separated argument.
16146hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16147
16148# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16149# resulting binary.
16150hardcode_direct=$hardcode_direct_F77
16151
16152# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16153# resulting binary.
16154hardcode_minus_L=$hardcode_minus_L_F77
16155
16156# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16157# the resulting binary.
16158hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16159
16160# Set to yes if building a shared library automatically hardcodes DIR into the library
16161# and all subsequent libraries and executables linked against it.
16162hardcode_automatic=$hardcode_automatic_F77
16163
16164# Variables whose values should be saved in libtool wrapper scripts and
16165# restored at relink time.
16166variables_saved_for_relink="$variables_saved_for_relink"
16167
16168# Whether libtool must link a program against all its dependency libraries.
16169link_all_deplibs=$link_all_deplibs_F77
16170
16171# Compile-time system search path for libraries
dd184caf 16172sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 16173
16174# Run-time system search path for libraries
16175sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16176
16177# Fix the shell variable \$srcfile for the compiler.
16178fix_srcfile_path="$fix_srcfile_path_F77"
16179
16180# Set to yes if exported symbols are required.
16181always_export_symbols=$always_export_symbols_F77
16182
16183# The commands to list exported symbols.
16184export_symbols_cmds=$lt_export_symbols_cmds_F77
16185
16186# The commands to extract the exported symbol list from a shared archive.
16187extract_expsyms_cmds=$lt_extract_expsyms_cmds
16188
16189# Symbols that should not be listed in the preloaded symbols.
16190exclude_expsyms=$lt_exclude_expsyms_F77
16191
16192# Symbols that must always be exported.
16193include_expsyms=$lt_include_expsyms_F77
16194
16195# ### END LIBTOOL TAG CONFIG: $tagname
16196
16197__EOF__
16198
16199
16200else
16201 # If there is no Makefile yet, we rely on a make rule to execute
16202 # `config.status --recheck' to rerun these tests and create the
16203 # libtool script then.
16204 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16205 if test -f "$ltmain_in"; then
16206 test -f Makefile && make "$ltmain"
16207 fi
16208fi
16209
16210
16211ac_ext=c
16212ac_cpp='$CPP $CPPFLAGS'
16213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16215ac_compiler_gnu=$ac_cv_c_compiler_gnu
16216
16217CC="$lt_save_CC"
16218
16219 else
16220 tagname=""
16221 fi
16222 ;;
16223
16224 GCJ)
16225 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16226
16227
d9898ee8 16228# Source file extension for Java test sources.
16229ac_ext=java
16230
16231# Object file extension for compiled Java test sources.
16232objext=o
16233objext_GCJ=$objext
16234
16235# Code to be used in simple compile tests
16236lt_simple_compile_test_code="class foo {}\n"
16237
16238# Code to be used in simple link tests
16239lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16240
16241# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16242
16243# If no C compiler was specified, use CC.
16244LTCC=${LTCC-"$CC"}
16245
16246# If no C compiler flags were specified, use CFLAGS.
16247LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16248
16249# Allow CC to be a program name with arguments.
16250compiler=$CC
16251
16252
16253# save warnings/boilerplate of simple test code
16254ac_outfile=conftest.$ac_objext
16255printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16256eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16257_lt_compiler_boilerplate=`cat conftest.err`
16258$rm conftest*
16259
16260ac_outfile=conftest.$ac_objext
16261printf "$lt_simple_link_test_code" >conftest.$ac_ext
16262eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16263_lt_linker_boilerplate=`cat conftest.err`
16264$rm conftest*
16265
16266
16267# Allow CC to be a program name with arguments.
16268lt_save_CC="$CC"
16269CC=${GCJ-"gcj"}
16270compiler=$CC
16271compiler_GCJ=$CC
16272for cc_temp in $compiler""; do
16273 case $cc_temp in
16274 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16275 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16276 \-*) ;;
16277 *) break;;
16278 esac
16279done
16280cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16281
16282
16283# GCJ did not exist at the time GCC didn't implicitly link libc in.
16284archive_cmds_need_lc_GCJ=no
16285
16286old_archive_cmds_GCJ=$old_archive_cmds
16287
16288
16289lt_prog_compiler_no_builtin_flag_GCJ=
16290
16291if test "$GCC" = yes; then
16292 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16293
16294
dd184caf 16295{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16296echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 16297if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16298 echo $ECHO_N "(cached) $ECHO_C" >&6
16299else
16300 lt_cv_prog_compiler_rtti_exceptions=no
16301 ac_outfile=conftest.$ac_objext
16302 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16303 lt_compiler_flag="-fno-rtti -fno-exceptions"
16304 # Insert the option either (1) after the last *FLAGS variable, or
16305 # (2) before a word containing "conftest.", or (3) at the end.
16306 # Note that $ac_compile itself does not contain backslashes and begins
16307 # with a dollar sign (not a hyphen), so the echo should work correctly.
16308 # The option is referenced via a variable to avoid confusing sed.
16309 lt_compile=`echo "$ac_compile" | $SED \
16310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16312 -e 's:$: $lt_compiler_flag:'`
dd184caf 16313 (eval echo "\"\$as_me:16313: $lt_compile\"" >&5)
d9898ee8 16314 (eval "$lt_compile" 2>conftest.err)
16315 ac_status=$?
16316 cat conftest.err >&5
dd184caf 16317 echo "$as_me:16317: \$? = $ac_status" >&5
d9898ee8 16318 if (exit $ac_status) && test -s "$ac_outfile"; then
16319 # The compiler can only warn and ignore the option if not recognized
16320 # So say no if there are warnings other than the usual output.
16321 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16322 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16323 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16324 lt_cv_prog_compiler_rtti_exceptions=yes
16325 fi
16326 fi
16327 $rm conftest*
16328
16329fi
dd184caf 16330{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16331echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 16332
16333if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16334 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16335else
16336 :
16337fi
16338
16339fi
16340
16341lt_prog_compiler_wl_GCJ=
16342lt_prog_compiler_pic_GCJ=
16343lt_prog_compiler_static_GCJ=
16344
dd184caf 16345{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16346echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 16347
16348 if test "$GCC" = yes; then
16349 lt_prog_compiler_wl_GCJ='-Wl,'
16350 lt_prog_compiler_static_GCJ='-static'
16351
16352 case $host_os in
16353 aix*)
16354 # All AIX code is PIC.
16355 if test "$host_cpu" = ia64; then
16356 # AIX 5 now supports IA64 processor
16357 lt_prog_compiler_static_GCJ='-Bstatic'
16358 fi
16359 ;;
16360
16361 amigaos*)
16362 # FIXME: we need at least 68020 code to build shared libraries, but
16363 # adding the `-m68020' flag to GCC prevents building anything better,
16364 # like `-m68040'.
16365 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16366 ;;
16367
16368 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16369 # PIC is the default for these OSes.
16370 ;;
16371
16372 mingw* | pw32* | os2*)
16373 # This hack is so that the source file can tell whether it is being
16374 # built for inclusion in a dll (and should export symbols for example).
16375 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16376 ;;
16377
16378 darwin* | rhapsody*)
16379 # PIC is the default on this platform
16380 # Common symbols not allowed in MH_DYLIB files
16381 lt_prog_compiler_pic_GCJ='-fno-common'
16382 ;;
16383
16384 interix3*)
16385 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16386 # Instead, we relocate shared libraries at runtime.
16387 ;;
16388
16389 msdosdjgpp*)
16390 # Just because we use GCC doesn't mean we suddenly get shared libraries
16391 # on systems that don't support them.
16392 lt_prog_compiler_can_build_shared_GCJ=no
16393 enable_shared=no
16394 ;;
16395
16396 sysv4*MP*)
16397 if test -d /usr/nec; then
16398 lt_prog_compiler_pic_GCJ=-Kconform_pic
16399 fi
16400 ;;
16401
16402 hpux*)
16403 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16404 # not for PA HP-UX.
16405 case $host_cpu in
16406 hppa*64*|ia64*)
16407 # +Z the default
16408 ;;
16409 *)
16410 lt_prog_compiler_pic_GCJ='-fPIC'
16411 ;;
16412 esac
16413 ;;
16414
16415 *)
16416 lt_prog_compiler_pic_GCJ='-fPIC'
16417 ;;
16418 esac
16419 else
16420 # PORTME Check for flag to pass linker flags through the system compiler.
16421 case $host_os in
16422 aix*)
16423 lt_prog_compiler_wl_GCJ='-Wl,'
16424 if test "$host_cpu" = ia64; then
16425 # AIX 5 now supports IA64 processor
16426 lt_prog_compiler_static_GCJ='-Bstatic'
16427 else
16428 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16429 fi
16430 ;;
16431 darwin*)
16432 # PIC is the default on this platform
16433 # Common symbols not allowed in MH_DYLIB files
16434 case $cc_basename in
16435 xlc*)
16436 lt_prog_compiler_pic_GCJ='-qnocommon'
16437 lt_prog_compiler_wl_GCJ='-Wl,'
16438 ;;
16439 esac
16440 ;;
16441
16442 mingw* | pw32* | os2*)
16443 # This hack is so that the source file can tell whether it is being
16444 # built for inclusion in a dll (and should export symbols for example).
16445 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16446 ;;
16447
16448 hpux9* | hpux10* | hpux11*)
16449 lt_prog_compiler_wl_GCJ='-Wl,'
16450 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16451 # not for PA HP-UX.
16452 case $host_cpu in
16453 hppa*64*|ia64*)
16454 # +Z the default
16455 ;;
16456 *)
16457 lt_prog_compiler_pic_GCJ='+Z'
16458 ;;
16459 esac
16460 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16461 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16462 ;;
16463
16464 irix5* | irix6* | nonstopux*)
16465 lt_prog_compiler_wl_GCJ='-Wl,'
16466 # PIC (with -KPIC) is the default.
16467 lt_prog_compiler_static_GCJ='-non_shared'
16468 ;;
16469
16470 newsos6)
16471 lt_prog_compiler_pic_GCJ='-KPIC'
16472 lt_prog_compiler_static_GCJ='-Bstatic'
16473 ;;
16474
16475 linux*)
16476 case $cc_basename in
16477 icc* | ecc*)
16478 lt_prog_compiler_wl_GCJ='-Wl,'
16479 lt_prog_compiler_pic_GCJ='-KPIC'
16480 lt_prog_compiler_static_GCJ='-static'
16481 ;;
16482 pgcc* | pgf77* | pgf90* | pgf95*)
16483 # Portland Group compilers (*not* the Pentium gcc compiler,
16484 # which looks to be a dead project)
16485 lt_prog_compiler_wl_GCJ='-Wl,'
16486 lt_prog_compiler_pic_GCJ='-fpic'
16487 lt_prog_compiler_static_GCJ='-Bstatic'
16488 ;;
16489 ccc*)
16490 lt_prog_compiler_wl_GCJ='-Wl,'
16491 # All Alpha code is PIC.
16492 lt_prog_compiler_static_GCJ='-non_shared'
16493 ;;
16494 esac
16495 ;;
16496
16497 osf3* | osf4* | osf5*)
16498 lt_prog_compiler_wl_GCJ='-Wl,'
16499 # All OSF/1 code is PIC.
16500 lt_prog_compiler_static_GCJ='-non_shared'
16501 ;;
16502
16503 solaris*)
16504 lt_prog_compiler_pic_GCJ='-KPIC'
16505 lt_prog_compiler_static_GCJ='-Bstatic'
16506 case $cc_basename in
16507 f77* | f90* | f95*)
16508 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16509 *)
16510 lt_prog_compiler_wl_GCJ='-Wl,';;
16511 esac
16512 ;;
16513
16514 sunos4*)
16515 lt_prog_compiler_wl_GCJ='-Qoption ld '
16516 lt_prog_compiler_pic_GCJ='-PIC'
16517 lt_prog_compiler_static_GCJ='-Bstatic'
16518 ;;
16519
16520 sysv4 | sysv4.2uw2* | sysv4.3*)
16521 lt_prog_compiler_wl_GCJ='-Wl,'
16522 lt_prog_compiler_pic_GCJ='-KPIC'
16523 lt_prog_compiler_static_GCJ='-Bstatic'
16524 ;;
16525
16526 sysv4*MP*)
16527 if test -d /usr/nec ;then
16528 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16529 lt_prog_compiler_static_GCJ='-Bstatic'
16530 fi
16531 ;;
16532
16533 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16534 lt_prog_compiler_wl_GCJ='-Wl,'
16535 lt_prog_compiler_pic_GCJ='-KPIC'
16536 lt_prog_compiler_static_GCJ='-Bstatic'
16537 ;;
16538
16539 unicos*)
16540 lt_prog_compiler_wl_GCJ='-Wl,'
16541 lt_prog_compiler_can_build_shared_GCJ=no
16542 ;;
16543
16544 uts4*)
16545 lt_prog_compiler_pic_GCJ='-pic'
16546 lt_prog_compiler_static_GCJ='-Bstatic'
16547 ;;
16548
16549 *)
16550 lt_prog_compiler_can_build_shared_GCJ=no
16551 ;;
16552 esac
16553 fi
16554
dd184caf 16555{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16556echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d9898ee8 16557
16558#
16559# Check to make sure the PIC flag actually works.
16560#
16561if test -n "$lt_prog_compiler_pic_GCJ"; then
16562
dd184caf 16563{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16564echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d9898ee8 16565if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16567else
16568 lt_prog_compiler_pic_works_GCJ=no
16569 ac_outfile=conftest.$ac_objext
16570 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16571 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16572 # Insert the option either (1) after the last *FLAGS variable, or
16573 # (2) before a word containing "conftest.", or (3) at the end.
16574 # Note that $ac_compile itself does not contain backslashes and begins
16575 # with a dollar sign (not a hyphen), so the echo should work correctly.
16576 # The option is referenced via a variable to avoid confusing sed.
16577 lt_compile=`echo "$ac_compile" | $SED \
16578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16580 -e 's:$: $lt_compiler_flag:'`
dd184caf 16581 (eval echo "\"\$as_me:16581: $lt_compile\"" >&5)
d9898ee8 16582 (eval "$lt_compile" 2>conftest.err)
16583 ac_status=$?
16584 cat conftest.err >&5
dd184caf 16585 echo "$as_me:16585: \$? = $ac_status" >&5
d9898ee8 16586 if (exit $ac_status) && test -s "$ac_outfile"; then
16587 # The compiler can only warn and ignore the option if not recognized
16588 # So say no if there are warnings other than the usual output.
16589 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16591 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16592 lt_prog_compiler_pic_works_GCJ=yes
16593 fi
16594 fi
16595 $rm conftest*
16596
16597fi
dd184caf 16598{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16599echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d9898ee8 16600
16601if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16602 case $lt_prog_compiler_pic_GCJ in
16603 "" | " "*) ;;
16604 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16605 esac
16606else
16607 lt_prog_compiler_pic_GCJ=
16608 lt_prog_compiler_can_build_shared_GCJ=no
16609fi
16610
16611fi
16612case $host_os in
16613 # For platforms which do not support PIC, -DPIC is meaningless:
16614 *djgpp*)
16615 lt_prog_compiler_pic_GCJ=
16616 ;;
16617 *)
16618 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16619 ;;
16620esac
16621
16622#
16623# Check to make sure the static flag actually works.
16624#
16625wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
dd184caf 16626{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16627echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 16628if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16630else
16631 lt_prog_compiler_static_works_GCJ=no
16632 save_LDFLAGS="$LDFLAGS"
16633 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16634 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16636 # The linker can only warn and ignore the option if not recognized
16637 # So say no if there are warnings
16638 if test -s conftest.err; then
16639 # Append any errors to the config.log.
16640 cat conftest.err 1>&5
16641 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16643 if diff conftest.exp conftest.er2 >/dev/null; then
16644 lt_prog_compiler_static_works_GCJ=yes
16645 fi
16646 else
16647 lt_prog_compiler_static_works_GCJ=yes
16648 fi
16649 fi
16650 $rm conftest*
16651 LDFLAGS="$save_LDFLAGS"
16652
16653fi
dd184caf 16654{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16655echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
d9898ee8 16656
16657if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16658 :
16659else
16660 lt_prog_compiler_static_GCJ=
16661fi
16662
16663
dd184caf 16664{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16665echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 16666if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16667 echo $ECHO_N "(cached) $ECHO_C" >&6
16668else
16669 lt_cv_prog_compiler_c_o_GCJ=no
16670 $rm -r conftest 2>/dev/null
16671 mkdir conftest
16672 cd conftest
16673 mkdir out
16674 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16675
16676 lt_compiler_flag="-o out/conftest2.$ac_objext"
16677 # Insert the option either (1) after the last *FLAGS variable, or
16678 # (2) before a word containing "conftest.", or (3) at the end.
16679 # Note that $ac_compile itself does not contain backslashes and begins
16680 # with a dollar sign (not a hyphen), so the echo should work correctly.
16681 lt_compile=`echo "$ac_compile" | $SED \
16682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16684 -e 's:$: $lt_compiler_flag:'`
dd184caf 16685 (eval echo "\"\$as_me:16685: $lt_compile\"" >&5)
d9898ee8 16686 (eval "$lt_compile" 2>out/conftest.err)
16687 ac_status=$?
16688 cat out/conftest.err >&5
dd184caf 16689 echo "$as_me:16689: \$? = $ac_status" >&5
d9898ee8 16690 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16691 then
16692 # The compiler can only warn and ignore the option if not recognized
16693 # So say no if there are warnings
16694 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16695 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16696 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16697 lt_cv_prog_compiler_c_o_GCJ=yes
16698 fi
16699 fi
16700 chmod u+w . 2>&5
16701 $rm conftest*
16702 # SGI C++ compiler will create directory out/ii_files/ for
16703 # template instantiation
16704 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16705 $rm out/* && rmdir out
16706 cd ..
16707 rmdir conftest
16708 $rm conftest*
16709
16710fi
dd184caf 16711{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16712echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d9898ee8 16713
16714
16715hard_links="nottested"
16716if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16717 # do not overwrite the value of need_locks provided by the user
dd184caf 16718 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16719echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 16720 hard_links=yes
16721 $rm conftest*
16722 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16723 touch conftest.a
16724 ln conftest.a conftest.b 2>&5 || hard_links=no
16725 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 16726 { echo "$as_me:$LINENO: result: $hard_links" >&5
16727echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 16728 if test "$hard_links" = no; then
16729 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16730echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16731 need_locks=warn
16732 fi
16733else
16734 need_locks=no
16735fi
16736
dd184caf 16737{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16738echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 16739
16740 runpath_var=
16741 allow_undefined_flag_GCJ=
16742 enable_shared_with_static_runtimes_GCJ=no
16743 archive_cmds_GCJ=
16744 archive_expsym_cmds_GCJ=
16745 old_archive_From_new_cmds_GCJ=
16746 old_archive_from_expsyms_cmds_GCJ=
16747 export_dynamic_flag_spec_GCJ=
16748 whole_archive_flag_spec_GCJ=
16749 thread_safe_flag_spec_GCJ=
16750 hardcode_libdir_flag_spec_GCJ=
16751 hardcode_libdir_flag_spec_ld_GCJ=
16752 hardcode_libdir_separator_GCJ=
16753 hardcode_direct_GCJ=no
16754 hardcode_minus_L_GCJ=no
16755 hardcode_shlibpath_var_GCJ=unsupported
16756 link_all_deplibs_GCJ=unknown
16757 hardcode_automatic_GCJ=no
16758 module_cmds_GCJ=
16759 module_expsym_cmds_GCJ=
16760 always_export_symbols_GCJ=no
16761 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16762 # include_expsyms should be a list of space-separated symbols to be *always*
16763 # included in the symbol list
16764 include_expsyms_GCJ=
16765 # exclude_expsyms can be an extended regexp of symbols to exclude
16766 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16767 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16768 # as well as any symbol that contains `d'.
16769 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16770 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16771 # platforms (ab)use it in PIC code, but their linkers get confused if
16772 # the symbol is explicitly referenced. Since portable code cannot
16773 # rely on this symbol name, it's probably fine to never include it in
16774 # preloaded symbol tables.
16775 extract_expsyms_cmds=
16776 # Just being paranoid about ensuring that cc_basename is set.
16777 for cc_temp in $compiler""; do
16778 case $cc_temp in
16779 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16780 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16781 \-*) ;;
16782 *) break;;
16783 esac
16784done
16785cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16786
16787 case $host_os in
16788 cygwin* | mingw* | pw32*)
16789 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16790 # When not using gcc, we currently assume that we are using
16791 # Microsoft Visual C++.
16792 if test "$GCC" != yes; then
16793 with_gnu_ld=no
16794 fi
16795 ;;
16796 interix*)
16797 # we just hope/assume this is gcc and not c89 (= MSVC++)
16798 with_gnu_ld=yes
16799 ;;
16800 openbsd*)
16801 with_gnu_ld=no
16802 ;;
16803 esac
16804
16805 ld_shlibs_GCJ=yes
16806 if test "$with_gnu_ld" = yes; then
16807 # If archive_cmds runs LD, not CC, wlarc should be empty
16808 wlarc='${wl}'
16809
16810 # Set some defaults for GNU ld with shared library support. These
16811 # are reset later if shared libraries are not supported. Putting them
16812 # here allows them to be overridden if necessary.
16813 runpath_var=LD_RUN_PATH
16814 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16815 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16816 # ancient GNU ld didn't support --whole-archive et. al.
16817 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16818 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16819 else
16820 whole_archive_flag_spec_GCJ=
16821 fi
16822 supports_anon_versioning=no
16823 case `$LD -v 2>/dev/null` in
16824 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16825 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16826 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16827 *\ 2.11.*) ;; # other 2.11 versions
16828 *) supports_anon_versioning=yes ;;
16829 esac
16830
16831 # See if GNU ld supports shared libraries.
16832 case $host_os in
16833 aix3* | aix4* | aix5*)
16834 # On AIX/PPC, the GNU linker is very broken
16835 if test "$host_cpu" != ia64; then
16836 ld_shlibs_GCJ=no
16837 cat <<EOF 1>&2
16838
16839*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16840*** to be unable to reliably create shared libraries on AIX.
16841*** Therefore, libtool is disabling shared libraries support. If you
16842*** really care for shared libraries, you may want to modify your PATH
16843*** so that a non-GNU linker is found, and then restart.
16844
16845EOF
16846 fi
16847 ;;
16848
16849 amigaos*)
16850 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)'
16851 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16852 hardcode_minus_L_GCJ=yes
16853
16854 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16855 # that the semantics of dynamic libraries on AmigaOS, at least up
16856 # to version 4, is to share data among multiple programs linked
16857 # with the same dynamic library. Since this doesn't match the
16858 # behavior of shared libraries on other platforms, we can't use
16859 # them.
16860 ld_shlibs_GCJ=no
16861 ;;
16862
16863 beos*)
16864 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16865 allow_undefined_flag_GCJ=unsupported
16866 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16867 # support --undefined. This deserves some investigation. FIXME
16868 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16869 else
16870 ld_shlibs_GCJ=no
16871 fi
16872 ;;
16873
16874 cygwin* | mingw* | pw32*)
16875 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16876 # as there is no search path for DLLs.
16877 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16878 allow_undefined_flag_GCJ=unsupported
16879 always_export_symbols_GCJ=no
16880 enable_shared_with_static_runtimes_GCJ=yes
16881 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16882
16883 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16884 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16885 # If the export-symbols file already is a .def file (1st line
16886 # is EXPORTS), use it as is; otherwise, prepend...
16887 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16888 cp $export_symbols $output_objdir/$soname.def;
16889 else
16890 echo EXPORTS > $output_objdir/$soname.def;
16891 cat $export_symbols >> $output_objdir/$soname.def;
16892 fi~
16893 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16894 else
16895 ld_shlibs_GCJ=no
16896 fi
16897 ;;
16898
16899 interix3*)
16900 hardcode_direct_GCJ=no
16901 hardcode_shlibpath_var_GCJ=no
16902 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16903 export_dynamic_flag_spec_GCJ='${wl}-E'
16904 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16905 # Instead, shared libraries are loaded at an image base (0x10000000 by
16906 # default) and relocated if they conflict, which is a slow very memory
16907 # consuming and fragmenting process. To avoid this, we pick a random,
16908 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16909 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16910 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'
16911 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'
16912 ;;
16913
16914 linux*)
16915 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16916 tmp_addflag=
16917 case $cc_basename,$host_cpu in
16918 pgcc*) # Portland Group C compiler
16919 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'
16920 tmp_addflag=' $pic_flag'
16921 ;;
16922 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16923 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'
16924 tmp_addflag=' $pic_flag -Mnomain' ;;
16925 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16926 tmp_addflag=' -i_dynamic' ;;
16927 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16928 tmp_addflag=' -i_dynamic -nofor_main' ;;
16929 ifc* | ifort*) # Intel Fortran compiler
16930 tmp_addflag=' -nofor_main' ;;
16931 esac
16932 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16933
16934 if test $supports_anon_versioning = yes; then
16935 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16936 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16937 $echo "local: *; };" >> $output_objdir/$libname.ver~
16938 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16939 fi
16940 else
16941 ld_shlibs_GCJ=no
16942 fi
16943 ;;
16944
16945 netbsd*)
16946 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16947 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16948 wlarc=
16949 else
16950 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16951 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16952 fi
16953 ;;
16954
16955 solaris*)
16956 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16957 ld_shlibs_GCJ=no
16958 cat <<EOF 1>&2
16959
16960*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16961*** create shared libraries on Solaris systems. Therefore, libtool
16962*** is disabling shared libraries support. We urge you to upgrade GNU
16963*** binutils to release 2.9.1 or newer. Another option is to modify
16964*** your PATH or compiler configuration so that the native linker is
16965*** used, and then restart.
16966
16967EOF
16968 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16969 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16970 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16971 else
16972 ld_shlibs_GCJ=no
16973 fi
16974 ;;
16975
16976 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16977 case `$LD -v 2>&1` in
16978 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16979 ld_shlibs_GCJ=no
16980 cat <<_LT_EOF 1>&2
16981
16982*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16983*** reliably create shared libraries on SCO systems. Therefore, libtool
16984*** is disabling shared libraries support. We urge you to upgrade GNU
16985*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16986*** your PATH or compiler configuration so that the native linker is
16987*** used, and then restart.
16988
16989_LT_EOF
16990 ;;
16991 *)
16992 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16993 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16994 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16995 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16996 else
16997 ld_shlibs_GCJ=no
16998 fi
16999 ;;
17000 esac
17001 ;;
17002
17003 sunos4*)
17004 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17005 wlarc=
17006 hardcode_direct_GCJ=yes
17007 hardcode_shlibpath_var_GCJ=no
17008 ;;
17009
17010 *)
17011 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17012 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17013 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17014 else
17015 ld_shlibs_GCJ=no
17016 fi
17017 ;;
17018 esac
17019
17020 if test "$ld_shlibs_GCJ" = no; then
17021 runpath_var=
17022 hardcode_libdir_flag_spec_GCJ=
17023 export_dynamic_flag_spec_GCJ=
17024 whole_archive_flag_spec_GCJ=
17025 fi
17026 else
17027 # PORTME fill in a description of your system's linker (not GNU ld)
17028 case $host_os in
17029 aix3*)
17030 allow_undefined_flag_GCJ=unsupported
17031 always_export_symbols_GCJ=yes
17032 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'
17033 # Note: this linker hardcodes the directories in LIBPATH if there
17034 # are no directories specified by -L.
17035 hardcode_minus_L_GCJ=yes
17036 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17037 # Neither direct hardcoding nor static linking is supported with a
17038 # broken collect2.
17039 hardcode_direct_GCJ=unsupported
17040 fi
17041 ;;
17042
17043 aix4* | aix5*)
17044 if test "$host_cpu" = ia64; then
17045 # On IA64, the linker does run time linking by default, so we don't
17046 # have to do anything special.
17047 aix_use_runtimelinking=no
17048 exp_sym_flag='-Bexport'
17049 no_entry_flag=""
17050 else
17051 # If we're using GNU nm, then we don't want the "-C" option.
17052 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17053 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17054 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'
17055 else
17056 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'
17057 fi
17058 aix_use_runtimelinking=no
17059
17060 # Test if we are trying to use run time linking or normal
17061 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17062 # need to do runtime linking.
17063 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17064 for ld_flag in $LDFLAGS; do
17065 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17066 aix_use_runtimelinking=yes
17067 break
17068 fi
17069 done
17070 ;;
17071 esac
17072
17073 exp_sym_flag='-bexport'
17074 no_entry_flag='-bnoentry'
17075 fi
17076
17077 # When large executables or shared objects are built, AIX ld can
17078 # have problems creating the table of contents. If linking a library
17079 # or program results in "error TOC overflow" add -mminimal-toc to
17080 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17081 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17082
17083 archive_cmds_GCJ=''
17084 hardcode_direct_GCJ=yes
17085 hardcode_libdir_separator_GCJ=':'
17086 link_all_deplibs_GCJ=yes
17087
17088 if test "$GCC" = yes; then
17089 case $host_os in aix4.[012]|aix4.[012].*)
17090 # We only want to do this on AIX 4.2 and lower, the check
17091 # below for broken collect2 doesn't work under 4.3+
17092 collect2name=`${CC} -print-prog-name=collect2`
17093 if test -f "$collect2name" && \
17094 strings "$collect2name" | grep resolve_lib_name >/dev/null
17095 then
17096 # We have reworked collect2
17097 hardcode_direct_GCJ=yes
17098 else
17099 # We have old collect2
17100 hardcode_direct_GCJ=unsupported
17101 # It fails to find uninstalled libraries when the uninstalled
17102 # path is not listed in the libpath. Setting hardcode_minus_L
17103 # to unsupported forces relinking
17104 hardcode_minus_L_GCJ=yes
17105 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17106 hardcode_libdir_separator_GCJ=
17107 fi
17108 ;;
17109 esac
17110 shared_flag='-shared'
17111 if test "$aix_use_runtimelinking" = yes; then
17112 shared_flag="$shared_flag "'${wl}-G'
17113 fi
17114 else
17115 # not using gcc
17116 if test "$host_cpu" = ia64; then
17117 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17118 # chokes on -Wl,-G. The following line is correct:
17119 shared_flag='-G'
17120 else
17121 if test "$aix_use_runtimelinking" = yes; then
17122 shared_flag='${wl}-G'
17123 else
17124 shared_flag='${wl}-bM:SRE'
17125 fi
17126 fi
17127 fi
17128
17129 # It seems that -bexpall does not export symbols beginning with
17130 # underscore (_), so it is better to generate a list of symbols to export.
17131 always_export_symbols_GCJ=yes
17132 if test "$aix_use_runtimelinking" = yes; then
17133 # Warning - without using the other runtime loading flags (-brtl),
17134 # -berok will link without error, but may produce a broken library.
17135 allow_undefined_flag_GCJ='-berok'
17136 # Determine the default libpath from the value encoded in an empty executable.
17137 cat >conftest.$ac_ext <<_ACEOF
17138/* confdefs.h. */
17139_ACEOF
17140cat confdefs.h >>conftest.$ac_ext
17141cat >>conftest.$ac_ext <<_ACEOF
17142/* end confdefs.h. */
17143
17144int
17145main ()
17146{
17147
17148 ;
17149 return 0;
17150}
17151_ACEOF
17152rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17153if { (ac_try="$ac_link"
17154case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157esac
17158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_link") 2>conftest.er1
d9898ee8 17160 ac_status=$?
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17165 (exit $ac_status); } && {
17166 test -z "$ac_c_werror_flag" ||
17167 test ! -s conftest.err
17168 } && test -s conftest$ac_exeext &&
17169 $as_test_x conftest$ac_exeext; then
d9898ee8 17170
17171aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17172}'`
17173# Check for a 64-bit object if we didn't find anything.
17174if 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; }
17175}'`; fi
17176else
17177 echo "$as_me: failed program was:" >&5
17178sed 's/^/| /' conftest.$ac_ext >&5
17179
dd184caf 17180
d9898ee8 17181fi
dd184caf 17182
17183rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17184 conftest$ac_exeext conftest.$ac_ext
17185if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17186
17187 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17188 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"
17189 else
17190 if test "$host_cpu" = ia64; then
17191 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17192 allow_undefined_flag_GCJ="-z nodefs"
17193 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"
17194 else
17195 # Determine the default libpath from the value encoded in an empty executable.
17196 cat >conftest.$ac_ext <<_ACEOF
17197/* confdefs.h. */
17198_ACEOF
17199cat confdefs.h >>conftest.$ac_ext
17200cat >>conftest.$ac_ext <<_ACEOF
17201/* end confdefs.h. */
17202
17203int
17204main ()
17205{
17206
17207 ;
17208 return 0;
17209}
17210_ACEOF
17211rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17212if { (ac_try="$ac_link"
17213case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17216esac
17217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218 (eval "$ac_link") 2>conftest.er1
d9898ee8 17219 ac_status=$?
17220 grep -v '^ *+' conftest.er1 >conftest.err
17221 rm -f conftest.er1
17222 cat conftest.err >&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17224 (exit $ac_status); } && {
17225 test -z "$ac_c_werror_flag" ||
17226 test ! -s conftest.err
17227 } && test -s conftest$ac_exeext &&
17228 $as_test_x conftest$ac_exeext; then
d9898ee8 17229
17230aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17231}'`
17232# Check for a 64-bit object if we didn't find anything.
17233if 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; }
17234}'`; fi
17235else
17236 echo "$as_me: failed program was:" >&5
17237sed 's/^/| /' conftest.$ac_ext >&5
17238
dd184caf 17239
d9898ee8 17240fi
dd184caf 17241
17242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17243 conftest$ac_exeext conftest.$ac_ext
17244if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17245
17246 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17247 # Warning - without using the other run time loading flags,
17248 # -berok will link without error, but may produce a broken library.
17249 no_undefined_flag_GCJ=' ${wl}-bernotok'
17250 allow_undefined_flag_GCJ=' ${wl}-berok'
17251 # Exported symbols can be pulled into shared objects from archives
17252 whole_archive_flag_spec_GCJ='$convenience'
17253 archive_cmds_need_lc_GCJ=yes
17254 # This is similar to how AIX traditionally builds its shared libraries.
17255 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'
17256 fi
17257 fi
17258 ;;
17259
17260 amigaos*)
17261 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)'
17262 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17263 hardcode_minus_L_GCJ=yes
17264 # see comment about different semantics on the GNU ld section
17265 ld_shlibs_GCJ=no
17266 ;;
17267
17268 bsdi[45]*)
17269 export_dynamic_flag_spec_GCJ=-rdynamic
17270 ;;
17271
17272 cygwin* | mingw* | pw32*)
17273 # When not using gcc, we currently assume that we are using
17274 # Microsoft Visual C++.
17275 # hardcode_libdir_flag_spec is actually meaningless, as there is
17276 # no search path for DLLs.
17277 hardcode_libdir_flag_spec_GCJ=' '
17278 allow_undefined_flag_GCJ=unsupported
17279 # Tell ltmain to make .lib files, not .a files.
17280 libext=lib
17281 # Tell ltmain to make .dll files, not .so files.
17282 shrext_cmds=".dll"
17283 # FIXME: Setting linknames here is a bad hack.
17284 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17285 # The linker will automatically build a .lib file if we build a DLL.
17286 old_archive_From_new_cmds_GCJ='true'
17287 # FIXME: Should let the user specify the lib program.
17288 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17289 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17290 enable_shared_with_static_runtimes_GCJ=yes
17291 ;;
17292
17293 darwin* | rhapsody*)
17294 case $host_os in
17295 rhapsody* | darwin1.[012])
17296 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17297 ;;
17298 *) # Darwin 1.3 on
17299 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17300 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17301 else
17302 case ${MACOSX_DEPLOYMENT_TARGET} in
17303 10.[012])
17304 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17305 ;;
17306 10.*)
17307 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17308 ;;
17309 esac
17310 fi
17311 ;;
17312 esac
17313 archive_cmds_need_lc_GCJ=no
17314 hardcode_direct_GCJ=no
17315 hardcode_automatic_GCJ=yes
17316 hardcode_shlibpath_var_GCJ=unsupported
17317 whole_archive_flag_spec_GCJ=''
17318 link_all_deplibs_GCJ=yes
17319 if test "$GCC" = yes ; then
17320 output_verbose_link_cmd='echo'
17321 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17322 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17323 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17324 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}'
17325 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}'
17326 else
17327 case $cc_basename in
17328 xlc*)
17329 output_verbose_link_cmd='echo'
17330 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17331 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17332 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17333 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}'
17334 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}'
17335 ;;
17336 *)
17337 ld_shlibs_GCJ=no
17338 ;;
17339 esac
17340 fi
17341 ;;
17342
17343 dgux*)
17344 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17345 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17346 hardcode_shlibpath_var_GCJ=no
17347 ;;
17348
17349 freebsd1*)
17350 ld_shlibs_GCJ=no
17351 ;;
17352
17353 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17354 # support. Future versions do this automatically, but an explicit c++rt0.o
17355 # does not break anything, and helps significantly (at the cost of a little
17356 # extra space).
17357 freebsd2.2*)
17358 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17359 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17360 hardcode_direct_GCJ=yes
17361 hardcode_shlibpath_var_GCJ=no
17362 ;;
17363
17364 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17365 freebsd2*)
17366 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17367 hardcode_direct_GCJ=yes
17368 hardcode_minus_L_GCJ=yes
17369 hardcode_shlibpath_var_GCJ=no
17370 ;;
17371
17372 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17373 freebsd* | kfreebsd*-gnu | dragonfly*)
17374 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17375 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17376 hardcode_direct_GCJ=yes
17377 hardcode_shlibpath_var_GCJ=no
17378 ;;
17379
17380 hpux9*)
17381 if test "$GCC" = yes; then
17382 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'
17383 else
17384 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'
17385 fi
17386 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17387 hardcode_libdir_separator_GCJ=:
17388 hardcode_direct_GCJ=yes
17389
17390 # hardcode_minus_L: Not really in the search PATH,
17391 # but as the default location of the library.
17392 hardcode_minus_L_GCJ=yes
17393 export_dynamic_flag_spec_GCJ='${wl}-E'
17394 ;;
17395
17396 hpux10*)
17397 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17398 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17399 else
17400 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17401 fi
17402 if test "$with_gnu_ld" = no; then
17403 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17404 hardcode_libdir_separator_GCJ=:
17405
17406 hardcode_direct_GCJ=yes
17407 export_dynamic_flag_spec_GCJ='${wl}-E'
17408
17409 # hardcode_minus_L: Not really in the search PATH,
17410 # but as the default location of the library.
17411 hardcode_minus_L_GCJ=yes
17412 fi
17413 ;;
17414
17415 hpux11*)
17416 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17417 case $host_cpu in
17418 hppa*64*)
17419 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17420 ;;
17421 ia64*)
17422 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17423 ;;
17424 *)
17425 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17426 ;;
17427 esac
17428 else
17429 case $host_cpu in
17430 hppa*64*)
17431 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17432 ;;
17433 ia64*)
17434 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17435 ;;
17436 *)
17437 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17438 ;;
17439 esac
17440 fi
17441 if test "$with_gnu_ld" = no; then
17442 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17443 hardcode_libdir_separator_GCJ=:
17444
17445 case $host_cpu in
17446 hppa*64*|ia64*)
17447 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17448 hardcode_direct_GCJ=no
17449 hardcode_shlibpath_var_GCJ=no
17450 ;;
17451 *)
17452 hardcode_direct_GCJ=yes
17453 export_dynamic_flag_spec_GCJ='${wl}-E'
17454
17455 # hardcode_minus_L: Not really in the search PATH,
17456 # but as the default location of the library.
17457 hardcode_minus_L_GCJ=yes
17458 ;;
17459 esac
17460 fi
17461 ;;
17462
17463 irix5* | irix6* | nonstopux*)
17464 if test "$GCC" = yes; then
17465 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'
17466 else
17467 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'
17468 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17469 fi
17470 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17471 hardcode_libdir_separator_GCJ=:
17472 link_all_deplibs_GCJ=yes
17473 ;;
17474
17475 netbsd*)
17476 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17477 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17478 else
17479 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17480 fi
17481 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17482 hardcode_direct_GCJ=yes
17483 hardcode_shlibpath_var_GCJ=no
17484 ;;
17485
17486 newsos6)
17487 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17488 hardcode_direct_GCJ=yes
17489 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17490 hardcode_libdir_separator_GCJ=:
17491 hardcode_shlibpath_var_GCJ=no
17492 ;;
17493
17494 openbsd*)
17495 hardcode_direct_GCJ=yes
17496 hardcode_shlibpath_var_GCJ=no
17497 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17498 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17499 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17500 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17501 export_dynamic_flag_spec_GCJ='${wl}-E'
17502 else
17503 case $host_os in
17504 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17505 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17506 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17507 ;;
17508 *)
17509 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17510 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17511 ;;
17512 esac
17513 fi
17514 ;;
17515
17516 os2*)
17517 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17518 hardcode_minus_L_GCJ=yes
17519 allow_undefined_flag_GCJ=unsupported
17520 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'
17521 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17522 ;;
17523
17524 osf3*)
17525 if test "$GCC" = yes; then
17526 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17527 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'
17528 else
17529 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17530 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'
17531 fi
17532 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17533 hardcode_libdir_separator_GCJ=:
17534 ;;
17535
17536 osf4* | osf5*) # as osf3* with the addition of -msym flag
17537 if test "$GCC" = yes; then
17538 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17539 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'
17540 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17541 else
17542 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17543 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'
17544 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~
17545 $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'
17546
17547 # Both c and cxx compiler support -rpath directly
17548 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17549 fi
17550 hardcode_libdir_separator_GCJ=:
17551 ;;
17552
17553 solaris*)
17554 no_undefined_flag_GCJ=' -z text'
17555 if test "$GCC" = yes; then
17556 wlarc='${wl}'
17557 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17558 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17559 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17560 else
17561 wlarc=''
17562 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17563 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17564 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17565 fi
17566 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17567 hardcode_shlibpath_var_GCJ=no
17568 case $host_os in
17569 solaris2.[0-5] | solaris2.[0-5].*) ;;
17570 *)
17571 # The compiler driver will combine linker options so we
17572 # cannot just pass the convience library names through
17573 # without $wl, iff we do not link with $LD.
17574 # Luckily, gcc supports the same syntax we need for Sun Studio.
17575 # Supported since Solaris 2.6 (maybe 2.5.1?)
17576 case $wlarc in
17577 '')
17578 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17579 *)
17580 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' ;;
17581 esac ;;
17582 esac
17583 link_all_deplibs_GCJ=yes
17584 ;;
17585
17586 sunos4*)
17587 if test "x$host_vendor" = xsequent; then
17588 # Use $CC to link under sequent, because it throws in some extra .o
17589 # files that make .init and .fini sections work.
17590 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17591 else
17592 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17593 fi
17594 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17595 hardcode_direct_GCJ=yes
17596 hardcode_minus_L_GCJ=yes
17597 hardcode_shlibpath_var_GCJ=no
17598 ;;
17599
17600 sysv4)
17601 case $host_vendor in
17602 sni)
17603 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17604 hardcode_direct_GCJ=yes # is this really true???
17605 ;;
17606 siemens)
17607 ## LD is ld it makes a PLAMLIB
17608 ## CC just makes a GrossModule.
17609 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17610 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17611 hardcode_direct_GCJ=no
17612 ;;
17613 motorola)
17614 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17615 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17616 ;;
17617 esac
17618 runpath_var='LD_RUN_PATH'
17619 hardcode_shlibpath_var_GCJ=no
17620 ;;
17621
17622 sysv4.3*)
17623 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17624 hardcode_shlibpath_var_GCJ=no
17625 export_dynamic_flag_spec_GCJ='-Bexport'
17626 ;;
17627
17628 sysv4*MP*)
17629 if test -d /usr/nec; then
17630 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17631 hardcode_shlibpath_var_GCJ=no
17632 runpath_var=LD_RUN_PATH
17633 hardcode_runpath_var=yes
17634 ld_shlibs_GCJ=yes
17635 fi
17636 ;;
17637
17638 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17639 no_undefined_flag_GCJ='${wl}-z,text'
17640 archive_cmds_need_lc_GCJ=no
17641 hardcode_shlibpath_var_GCJ=no
17642 runpath_var='LD_RUN_PATH'
17643
17644 if test "$GCC" = yes; then
17645 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17646 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17647 else
17648 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17649 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17650 fi
17651 ;;
17652
17653 sysv5* | sco3.2v5* | sco5v6*)
17654 # Note: We can NOT use -z defs as we might desire, because we do not
17655 # link with -lc, and that would cause any symbols used from libc to
17656 # always be unresolved, which means just about no library would
17657 # ever link correctly. If we're not using GNU ld we use -z text
17658 # though, which does catch some bad symbols but isn't as heavy-handed
17659 # as -z defs.
17660 no_undefined_flag_GCJ='${wl}-z,text'
17661 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17662 archive_cmds_need_lc_GCJ=no
17663 hardcode_shlibpath_var_GCJ=no
17664 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17665 hardcode_libdir_separator_GCJ=':'
17666 link_all_deplibs_GCJ=yes
17667 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17668 runpath_var='LD_RUN_PATH'
17669
17670 if test "$GCC" = yes; then
17671 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17672 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17673 else
17674 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17675 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17676 fi
17677 ;;
17678
17679 uts4*)
17680 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17681 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17682 hardcode_shlibpath_var_GCJ=no
17683 ;;
17684
17685 *)
17686 ld_shlibs_GCJ=no
17687 ;;
17688 esac
17689 fi
17690
dd184caf 17691{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17692echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d9898ee8 17693test "$ld_shlibs_GCJ" = no && can_build_shared=no
17694
17695#
17696# Do we need to explicitly link libc?
17697#
17698case "x$archive_cmds_need_lc_GCJ" in
17699x|xyes)
17700 # Assume -lc should be added
17701 archive_cmds_need_lc_GCJ=yes
17702
17703 if test "$enable_shared" = yes && test "$GCC" = yes; then
17704 case $archive_cmds_GCJ in
17705 *'~'*)
17706 # FIXME: we may have to deal with multi-command sequences.
17707 ;;
17708 '$CC '*)
17709 # Test whether the compiler implicitly links with -lc since on some
17710 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17711 # to ld, don't add -lc before -lgcc.
dd184caf 17712 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17713echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 17714 $rm conftest*
17715 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17716
17717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17718 (eval $ac_compile) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } 2>conftest.err; then
17722 soname=conftest
17723 lib=conftest
17724 libobjs=conftest.$ac_objext
17725 deplibs=
17726 wl=$lt_prog_compiler_wl_GCJ
17727 pic_flag=$lt_prog_compiler_pic_GCJ
17728 compiler_flags=-v
17729 linker_flags=-v
17730 verstring=
17731 output_objdir=.
17732 libname=conftest
17733 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17734 allow_undefined_flag_GCJ=
17735 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17736 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17737 ac_status=$?
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }
17740 then
17741 archive_cmds_need_lc_GCJ=no
17742 else
17743 archive_cmds_need_lc_GCJ=yes
17744 fi
17745 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17746 else
17747 cat conftest.err 1>&5
17748 fi
17749 $rm conftest*
dd184caf 17750 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17751echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d9898ee8 17752 ;;
17753 esac
17754 fi
17755 ;;
17756esac
17757
dd184caf 17758{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17759echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 17760library_names_spec=
17761libname_spec='lib$name'
17762soname_spec=
17763shrext_cmds=".so"
17764postinstall_cmds=
17765postuninstall_cmds=
17766finish_cmds=
17767finish_eval=
17768shlibpath_var=
17769shlibpath_overrides_runpath=unknown
17770version_type=none
17771dynamic_linker="$host_os ld.so"
17772sys_lib_dlsearch_path_spec="/lib /usr/lib"
17773if test "$GCC" = yes; then
17774 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17775 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17776 # if the path contains ";" then we assume it to be the separator
17777 # otherwise default to the standard path separator (i.e. ":") - it is
17778 # assumed that no part of a normal pathname contains ";" but that should
17779 # okay in the real world where ";" in dirpaths is itself problematic.
17780 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17781 else
17782 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17783 fi
17784else
17785 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17786fi
17787need_lib_prefix=unknown
17788hardcode_into_libs=no
17789
17790# when you set need_version to no, make sure it does not cause -set_version
17791# flags to be left without arguments
17792need_version=unknown
17793
17794case $host_os in
17795aix3*)
17796 version_type=linux
17797 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17798 shlibpath_var=LIBPATH
17799
17800 # AIX 3 has no versioning support, so we append a major version to the name.
17801 soname_spec='${libname}${release}${shared_ext}$major'
17802 ;;
17803
17804aix4* | aix5*)
17805 version_type=linux
17806 need_lib_prefix=no
17807 need_version=no
17808 hardcode_into_libs=yes
17809 if test "$host_cpu" = ia64; then
17810 # AIX 5 supports IA64
17811 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17812 shlibpath_var=LD_LIBRARY_PATH
17813 else
17814 # With GCC up to 2.95.x, collect2 would create an import file
17815 # for dependence libraries. The import file would start with
17816 # the line `#! .'. This would cause the generated library to
17817 # depend on `.', always an invalid library. This was fixed in
17818 # development snapshots of GCC prior to 3.0.
17819 case $host_os in
17820 aix4 | aix4.[01] | aix4.[01].*)
17821 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17822 echo ' yes '
17823 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17824 :
17825 else
17826 can_build_shared=no
17827 fi
17828 ;;
17829 esac
17830 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17831 # soname into executable. Probably we can add versioning support to
17832 # collect2, so additional links can be useful in future.
17833 if test "$aix_use_runtimelinking" = yes; then
17834 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17835 # instead of lib<name>.a to let people know that these are not
17836 # typical AIX shared libraries.
17837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17838 else
17839 # We preserve .a as extension for shared libraries through AIX4.2
17840 # and later when we are not doing run time linking.
17841 library_names_spec='${libname}${release}.a $libname.a'
17842 soname_spec='${libname}${release}${shared_ext}$major'
17843 fi
17844 shlibpath_var=LIBPATH
17845 fi
17846 ;;
17847
17848amigaos*)
17849 library_names_spec='$libname.ixlibrary $libname.a'
17850 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17851 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'
17852 ;;
17853
17854beos*)
17855 library_names_spec='${libname}${shared_ext}'
17856 dynamic_linker="$host_os ld.so"
17857 shlibpath_var=LIBRARY_PATH
17858 ;;
17859
17860bsdi[45]*)
17861 version_type=linux
17862 need_version=no
17863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17864 soname_spec='${libname}${release}${shared_ext}$major'
17865 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17866 shlibpath_var=LD_LIBRARY_PATH
17867 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17868 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17869 # the default ld.so.conf also contains /usr/contrib/lib and
17870 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17871 # libtool to hard-code these into programs
17872 ;;
17873
17874cygwin* | mingw* | pw32*)
17875 version_type=windows
17876 shrext_cmds=".dll"
17877 need_version=no
17878 need_lib_prefix=no
17879
17880 case $GCC,$host_os in
17881 yes,cygwin* | yes,mingw* | yes,pw32*)
17882 library_names_spec='$libname.dll.a'
17883 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17884 postinstall_cmds='base_file=`basename \${file}`~
17885 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17886 dldir=$destdir/`dirname \$dlpath`~
17887 test -d \$dldir || mkdir -p \$dldir~
17888 $install_prog $dir/$dlname \$dldir/$dlname~
17889 chmod a+x \$dldir/$dlname'
17890 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17891 dlpath=$dir/\$dldll~
17892 $rm \$dlpath'
17893 shlibpath_overrides_runpath=yes
17894
17895 case $host_os in
17896 cygwin*)
17897 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17898 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17899 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17900 ;;
17901 mingw*)
17902 # MinGW DLLs use traditional 'lib' prefix
17903 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17904 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17905 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17906 # It is most probably a Windows format PATH printed by
17907 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17908 # path with ; separators, and with drive letters. We can handle the
17909 # drive letters (cygwin fileutils understands them), so leave them,
17910 # especially as we might pass files found there to a mingw objdump,
17911 # which wouldn't understand a cygwinified path. Ahh.
17912 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17913 else
17914 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17915 fi
17916 ;;
17917 pw32*)
17918 # pw32 DLLs use 'pw' prefix rather than 'lib'
17919 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17920 ;;
17921 esac
17922 ;;
17923
17924 *)
17925 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17926 ;;
17927 esac
17928 dynamic_linker='Win32 ld.exe'
17929 # FIXME: first we should search . and the directory the executable is in
17930 shlibpath_var=PATH
17931 ;;
17932
17933darwin* | rhapsody*)
17934 dynamic_linker="$host_os dyld"
17935 version_type=darwin
17936 need_lib_prefix=no
17937 need_version=no
17938 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17939 soname_spec='${libname}${release}${major}$shared_ext'
17940 shlibpath_overrides_runpath=yes
17941 shlibpath_var=DYLD_LIBRARY_PATH
17942 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17943 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17944 if test "$GCC" = yes; then
17945 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"`
17946 else
17947 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17948 fi
17949 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17950 ;;
17951
17952dgux*)
17953 version_type=linux
17954 need_lib_prefix=no
17955 need_version=no
17956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17957 soname_spec='${libname}${release}${shared_ext}$major'
17958 shlibpath_var=LD_LIBRARY_PATH
17959 ;;
17960
17961freebsd1*)
17962 dynamic_linker=no
17963 ;;
17964
17965kfreebsd*-gnu)
17966 version_type=linux
17967 need_lib_prefix=no
17968 need_version=no
17969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17970 soname_spec='${libname}${release}${shared_ext}$major'
17971 shlibpath_var=LD_LIBRARY_PATH
17972 shlibpath_overrides_runpath=no
17973 hardcode_into_libs=yes
17974 dynamic_linker='GNU ld.so'
17975 ;;
17976
17977freebsd* | dragonfly*)
17978 # DragonFly does not have aout. When/if they implement a new
17979 # versioning mechanism, adjust this.
17980 if test -x /usr/bin/objformat; then
17981 objformat=`/usr/bin/objformat`
17982 else
17983 case $host_os in
17984 freebsd[123]*) objformat=aout ;;
17985 *) objformat=elf ;;
17986 esac
17987 fi
17988 version_type=freebsd-$objformat
17989 case $version_type in
17990 freebsd-elf*)
17991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17992 need_version=no
17993 need_lib_prefix=no
17994 ;;
17995 freebsd-*)
17996 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17997 need_version=yes
17998 ;;
17999 esac
18000 shlibpath_var=LD_LIBRARY_PATH
18001 case $host_os in
18002 freebsd2*)
18003 shlibpath_overrides_runpath=yes
18004 ;;
18005 freebsd3.[01]* | freebsdelf3.[01]*)
18006 shlibpath_overrides_runpath=yes
18007 hardcode_into_libs=yes
18008 ;;
18009 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18010 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18011 shlibpath_overrides_runpath=no
18012 hardcode_into_libs=yes
18013 ;;
18014 freebsd*) # from 4.6 on
18015 shlibpath_overrides_runpath=yes
18016 hardcode_into_libs=yes
18017 ;;
18018 esac
18019 ;;
18020
18021gnu*)
18022 version_type=linux
18023 need_lib_prefix=no
18024 need_version=no
18025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18026 soname_spec='${libname}${release}${shared_ext}$major'
18027 shlibpath_var=LD_LIBRARY_PATH
18028 hardcode_into_libs=yes
18029 ;;
18030
18031hpux9* | hpux10* | hpux11*)
18032 # Give a soname corresponding to the major version so that dld.sl refuses to
18033 # link against other versions.
18034 version_type=sunos
18035 need_lib_prefix=no
18036 need_version=no
18037 case $host_cpu in
18038 ia64*)
18039 shrext_cmds='.so'
18040 hardcode_into_libs=yes
18041 dynamic_linker="$host_os dld.so"
18042 shlibpath_var=LD_LIBRARY_PATH
18043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18045 soname_spec='${libname}${release}${shared_ext}$major'
18046 if test "X$HPUX_IA64_MODE" = X32; then
18047 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18048 else
18049 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18050 fi
18051 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18052 ;;
18053 hppa*64*)
18054 shrext_cmds='.sl'
18055 hardcode_into_libs=yes
18056 dynamic_linker="$host_os dld.sl"
18057 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18058 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18060 soname_spec='${libname}${release}${shared_ext}$major'
18061 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18063 ;;
18064 *)
18065 shrext_cmds='.sl'
18066 dynamic_linker="$host_os dld.sl"
18067 shlibpath_var=SHLIB_PATH
18068 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18070 soname_spec='${libname}${release}${shared_ext}$major'
18071 ;;
18072 esac
18073 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18074 postinstall_cmds='chmod 555 $lib'
18075 ;;
18076
18077interix3*)
18078 version_type=linux
18079 need_lib_prefix=no
18080 need_version=no
18081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18082 soname_spec='${libname}${release}${shared_ext}$major'
18083 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18084 shlibpath_var=LD_LIBRARY_PATH
18085 shlibpath_overrides_runpath=no
18086 hardcode_into_libs=yes
18087 ;;
18088
18089irix5* | irix6* | nonstopux*)
18090 case $host_os in
18091 nonstopux*) version_type=nonstopux ;;
18092 *)
18093 if test "$lt_cv_prog_gnu_ld" = yes; then
18094 version_type=linux
18095 else
18096 version_type=irix
18097 fi ;;
18098 esac
18099 need_lib_prefix=no
18100 need_version=no
18101 soname_spec='${libname}${release}${shared_ext}$major'
18102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18103 case $host_os in
18104 irix5* | nonstopux*)
18105 libsuff= shlibsuff=
18106 ;;
18107 *)
18108 case $LD in # libtool.m4 will add one of these switches to LD
18109 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18110 libsuff= shlibsuff= libmagic=32-bit;;
18111 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18112 libsuff=32 shlibsuff=N32 libmagic=N32;;
18113 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18114 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18115 *) libsuff= shlibsuff= libmagic=never-match;;
18116 esac
18117 ;;
18118 esac
18119 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18120 shlibpath_overrides_runpath=no
18121 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18122 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18123 hardcode_into_libs=yes
18124 ;;
18125
18126# No shared lib support for Linux oldld, aout, or coff.
18127linux*oldld* | linux*aout* | linux*coff*)
18128 dynamic_linker=no
18129 ;;
18130
18131# This must be Linux ELF.
18132linux*)
18133 version_type=linux
18134 need_lib_prefix=no
18135 need_version=no
18136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18137 soname_spec='${libname}${release}${shared_ext}$major'
18138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18139 shlibpath_var=LD_LIBRARY_PATH
18140 shlibpath_overrides_runpath=no
18141 # This implies no fast_install, which is unacceptable.
18142 # Some rework will be needed to allow for fast_install
18143 # before this can be enabled.
18144 hardcode_into_libs=yes
18145
18146 # find out which ABI we are using
18147 libsuff=
18148 case "$host_cpu" in
18149 x86_64*|s390x*|powerpc64*)
dd184caf 18150 echo '#line 18150 "configure"' > conftest.$ac_ext
d9898ee8 18151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18152 (eval $ac_compile) 2>&5
18153 ac_status=$?
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; then
18156 case `/usr/bin/file conftest.$ac_objext` in
18157 *64-bit*)
18158 libsuff=64
18159 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18160 ;;
18161 esac
18162 fi
18163 rm -rf conftest*
18164 ;;
18165 esac
18166
18167 # Append ld.so.conf contents to the search path
18168 if test -f /etc/ld.so.conf; then
dd184caf 18169 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 18170 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18171 fi
18172
18173 # We used to test for /lib/ld.so.1 and disable shared libraries on
18174 # powerpc, because MkLinux only supported shared libraries with the
18175 # GNU dynamic linker. Since this was broken with cross compilers,
18176 # most powerpc-linux boxes support dynamic linking these days and
18177 # people can always --disable-shared, the test was removed, and we
18178 # assume the GNU/Linux dynamic linker is in use.
18179 dynamic_linker='GNU/Linux ld.so'
18180 ;;
18181
18182knetbsd*-gnu)
18183 version_type=linux
18184 need_lib_prefix=no
18185 need_version=no
18186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18187 soname_spec='${libname}${release}${shared_ext}$major'
18188 shlibpath_var=LD_LIBRARY_PATH
18189 shlibpath_overrides_runpath=no
18190 hardcode_into_libs=yes
18191 dynamic_linker='GNU ld.so'
18192 ;;
18193
18194netbsd*)
18195 version_type=sunos
18196 need_lib_prefix=no
18197 need_version=no
18198 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18200 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18201 dynamic_linker='NetBSD (a.out) ld.so'
18202 else
18203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18204 soname_spec='${libname}${release}${shared_ext}$major'
18205 dynamic_linker='NetBSD ld.elf_so'
18206 fi
18207 shlibpath_var=LD_LIBRARY_PATH
18208 shlibpath_overrides_runpath=yes
18209 hardcode_into_libs=yes
18210 ;;
18211
18212newsos6)
18213 version_type=linux
18214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18215 shlibpath_var=LD_LIBRARY_PATH
18216 shlibpath_overrides_runpath=yes
18217 ;;
18218
18219nto-qnx*)
18220 version_type=linux
18221 need_lib_prefix=no
18222 need_version=no
18223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18224 soname_spec='${libname}${release}${shared_ext}$major'
18225 shlibpath_var=LD_LIBRARY_PATH
18226 shlibpath_overrides_runpath=yes
18227 ;;
18228
18229openbsd*)
18230 version_type=sunos
18231 sys_lib_dlsearch_path_spec="/usr/lib"
18232 need_lib_prefix=no
18233 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18234 case $host_os in
18235 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18236 *) need_version=no ;;
18237 esac
18238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18240 shlibpath_var=LD_LIBRARY_PATH
18241 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18242 case $host_os in
18243 openbsd2.[89] | openbsd2.[89].*)
18244 shlibpath_overrides_runpath=no
18245 ;;
18246 *)
18247 shlibpath_overrides_runpath=yes
18248 ;;
18249 esac
18250 else
18251 shlibpath_overrides_runpath=yes
18252 fi
18253 ;;
18254
18255os2*)
18256 libname_spec='$name'
18257 shrext_cmds=".dll"
18258 need_lib_prefix=no
18259 library_names_spec='$libname${shared_ext} $libname.a'
18260 dynamic_linker='OS/2 ld.exe'
18261 shlibpath_var=LIBPATH
18262 ;;
18263
18264osf3* | osf4* | osf5*)
18265 version_type=osf
18266 need_lib_prefix=no
18267 need_version=no
18268 soname_spec='${libname}${release}${shared_ext}$major'
18269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18270 shlibpath_var=LD_LIBRARY_PATH
18271 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18272 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18273 ;;
18274
18275solaris*)
18276 version_type=linux
18277 need_lib_prefix=no
18278 need_version=no
18279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18280 soname_spec='${libname}${release}${shared_ext}$major'
18281 shlibpath_var=LD_LIBRARY_PATH
18282 shlibpath_overrides_runpath=yes
18283 hardcode_into_libs=yes
18284 # ldd complains unless libraries are executable
18285 postinstall_cmds='chmod +x $lib'
18286 ;;
18287
18288sunos4*)
18289 version_type=sunos
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18291 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18292 shlibpath_var=LD_LIBRARY_PATH
18293 shlibpath_overrides_runpath=yes
18294 if test "$with_gnu_ld" = yes; then
18295 need_lib_prefix=no
18296 fi
18297 need_version=yes
18298 ;;
18299
18300sysv4 | sysv4.3*)
18301 version_type=linux
18302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18303 soname_spec='${libname}${release}${shared_ext}$major'
18304 shlibpath_var=LD_LIBRARY_PATH
18305 case $host_vendor in
18306 sni)
18307 shlibpath_overrides_runpath=no
18308 need_lib_prefix=no
18309 export_dynamic_flag_spec='${wl}-Blargedynsym'
18310 runpath_var=LD_RUN_PATH
18311 ;;
18312 siemens)
18313 need_lib_prefix=no
18314 ;;
18315 motorola)
18316 need_lib_prefix=no
18317 need_version=no
18318 shlibpath_overrides_runpath=no
18319 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18320 ;;
18321 esac
18322 ;;
18323
18324sysv4*MP*)
18325 if test -d /usr/nec ;then
18326 version_type=linux
18327 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18328 soname_spec='$libname${shared_ext}.$major'
18329 shlibpath_var=LD_LIBRARY_PATH
18330 fi
18331 ;;
18332
18333sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18334 version_type=freebsd-elf
18335 need_lib_prefix=no
18336 need_version=no
18337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18338 soname_spec='${libname}${release}${shared_ext}$major'
18339 shlibpath_var=LD_LIBRARY_PATH
18340 hardcode_into_libs=yes
18341 if test "$with_gnu_ld" = yes; then
18342 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18343 shlibpath_overrides_runpath=no
18344 else
18345 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18346 shlibpath_overrides_runpath=yes
18347 case $host_os in
18348 sco3.2v5*)
18349 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18350 ;;
18351 esac
18352 fi
18353 sys_lib_dlsearch_path_spec='/usr/lib'
18354 ;;
18355
18356uts4*)
18357 version_type=linux
18358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18359 soname_spec='${libname}${release}${shared_ext}$major'
18360 shlibpath_var=LD_LIBRARY_PATH
18361 ;;
18362
18363*)
18364 dynamic_linker=no
18365 ;;
18366esac
dd184caf 18367{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18368echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 18369test "$dynamic_linker" = no && can_build_shared=no
18370
18371variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18372if test "$GCC" = yes; then
18373 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18374fi
18375
dd184caf 18376{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18377echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 18378hardcode_action_GCJ=
18379if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18380 test -n "$runpath_var_GCJ" || \
18381 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18382
18383 # We can hardcode non-existant directories.
18384 if test "$hardcode_direct_GCJ" != no &&
18385 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18386 # have to relink, otherwise we might link with an installed library
18387 # when we should be linking with a yet-to-be-installed one
18388 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18389 test "$hardcode_minus_L_GCJ" != no; then
18390 # Linking always hardcodes the temporary library directory.
18391 hardcode_action_GCJ=relink
18392 else
18393 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18394 hardcode_action_GCJ=immediate
18395 fi
18396else
18397 # We cannot hardcode anything, or else we can only hardcode existing
18398 # directories.
18399 hardcode_action_GCJ=unsupported
18400fi
dd184caf 18401{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18402echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d9898ee8 18403
18404if test "$hardcode_action_GCJ" = relink; then
18405 # Fast installation is not supported
18406 enable_fast_install=no
18407elif test "$shlibpath_overrides_runpath" = yes ||
18408 test "$enable_shared" = no; then
18409 # Fast installation is not necessary
18410 enable_fast_install=needless
18411fi
18412
18413
18414# The else clause should only fire when bootstrapping the
18415# libtool distribution, otherwise you forgot to ship ltmain.sh
18416# with your package, and you will get complaints that there are
18417# no rules to generate ltmain.sh.
18418if test -f "$ltmain"; then
18419 # See if we are running on zsh, and set the options which allow our commands through
18420 # without removal of \ escapes.
18421 if test -n "${ZSH_VERSION+set}" ; then
18422 setopt NO_GLOB_SUBST
18423 fi
18424 # Now quote all the things that may contain metacharacters while being
18425 # careful not to overquote the AC_SUBSTed values. We take copies of the
18426 # variables and quote the copies for generation of the libtool script.
18427 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18428 SED SHELL STRIP \
18429 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18430 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18431 deplibs_check_method reload_flag reload_cmds need_locks \
18432 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18433 lt_cv_sys_global_symbol_to_c_name_address \
18434 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18435 old_postinstall_cmds old_postuninstall_cmds \
18436 compiler_GCJ \
18437 CC_GCJ \
18438 LD_GCJ \
18439 lt_prog_compiler_wl_GCJ \
18440 lt_prog_compiler_pic_GCJ \
18441 lt_prog_compiler_static_GCJ \
18442 lt_prog_compiler_no_builtin_flag_GCJ \
18443 export_dynamic_flag_spec_GCJ \
18444 thread_safe_flag_spec_GCJ \
18445 whole_archive_flag_spec_GCJ \
18446 enable_shared_with_static_runtimes_GCJ \
18447 old_archive_cmds_GCJ \
18448 old_archive_from_new_cmds_GCJ \
18449 predep_objects_GCJ \
18450 postdep_objects_GCJ \
18451 predeps_GCJ \
18452 postdeps_GCJ \
18453 compiler_lib_search_path_GCJ \
18454 archive_cmds_GCJ \
18455 archive_expsym_cmds_GCJ \
18456 postinstall_cmds_GCJ \
18457 postuninstall_cmds_GCJ \
18458 old_archive_from_expsyms_cmds_GCJ \
18459 allow_undefined_flag_GCJ \
18460 no_undefined_flag_GCJ \
18461 export_symbols_cmds_GCJ \
18462 hardcode_libdir_flag_spec_GCJ \
18463 hardcode_libdir_flag_spec_ld_GCJ \
18464 hardcode_libdir_separator_GCJ \
18465 hardcode_automatic_GCJ \
18466 module_cmds_GCJ \
18467 module_expsym_cmds_GCJ \
18468 lt_cv_prog_compiler_c_o_GCJ \
18469 exclude_expsyms_GCJ \
18470 include_expsyms_GCJ; do
18471
18472 case $var in
18473 old_archive_cmds_GCJ | \
18474 old_archive_from_new_cmds_GCJ | \
18475 archive_cmds_GCJ | \
18476 archive_expsym_cmds_GCJ | \
18477 module_cmds_GCJ | \
18478 module_expsym_cmds_GCJ | \
18479 old_archive_from_expsyms_cmds_GCJ | \
18480 export_symbols_cmds_GCJ | \
18481 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18482 postinstall_cmds | postuninstall_cmds | \
18483 old_postinstall_cmds | old_postuninstall_cmds | \
18484 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18485 # Double-quote double-evaled strings.
18486 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18487 ;;
18488 *)
18489 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18490 ;;
18491 esac
18492 done
18493
18494 case $lt_echo in
18495 *'\$0 --fallback-echo"')
18496 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18497 ;;
18498 esac
18499
18500cfgfile="$ofile"
18501
18502 cat <<__EOF__ >> "$cfgfile"
18503# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18504
18505# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18506
18507# Shell to use when invoking shell scripts.
18508SHELL=$lt_SHELL
18509
18510# Whether or not to build shared libraries.
18511build_libtool_libs=$enable_shared
18512
18513# Whether or not to build static libraries.
18514build_old_libs=$enable_static
18515
18516# Whether or not to add -lc for building shared libraries.
18517build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18518
18519# Whether or not to disallow shared libs when runtime libs are static
18520allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18521
18522# Whether or not to optimize for fast installation.
18523fast_install=$enable_fast_install
18524
18525# The host system.
18526host_alias=$host_alias
18527host=$host
18528host_os=$host_os
18529
18530# The build system.
18531build_alias=$build_alias
18532build=$build
18533build_os=$build_os
18534
18535# An echo program that does not interpret backslashes.
18536echo=$lt_echo
18537
18538# The archiver.
18539AR=$lt_AR
18540AR_FLAGS=$lt_AR_FLAGS
18541
18542# A C compiler.
18543LTCC=$lt_LTCC
18544
18545# LTCC compiler flags.
18546LTCFLAGS=$lt_LTCFLAGS
18547
18548# A language-specific compiler.
18549CC=$lt_compiler_GCJ
18550
18551# Is the compiler the GNU C compiler?
18552with_gcc=$GCC_GCJ
18553
d9898ee8 18554# An ERE matcher.
18555EGREP=$lt_EGREP
18556
18557# The linker used to build libraries.
18558LD=$lt_LD_GCJ
18559
18560# Whether we need hard or soft links.
18561LN_S=$lt_LN_S
18562
18563# A BSD-compatible nm program.
18564NM=$lt_NM
18565
18566# A symbol stripping program
18567STRIP=$lt_STRIP
18568
18569# Used to examine libraries when file_magic_cmd begins "file"
18570MAGIC_CMD=$MAGIC_CMD
18571
18572# Used on cygwin: DLL creation program.
18573DLLTOOL="$DLLTOOL"
18574
18575# Used on cygwin: object dumper.
18576OBJDUMP="$OBJDUMP"
18577
18578# Used on cygwin: assembler.
18579AS="$AS"
18580
18581# The name of the directory that contains temporary libtool files.
18582objdir=$objdir
18583
18584# How to create reloadable object files.
18585reload_flag=$lt_reload_flag
18586reload_cmds=$lt_reload_cmds
18587
18588# How to pass a linker flag through the compiler.
18589wl=$lt_lt_prog_compiler_wl_GCJ
18590
18591# Object file suffix (normally "o").
18592objext="$ac_objext"
18593
18594# Old archive suffix (normally "a").
18595libext="$libext"
18596
18597# Shared library suffix (normally ".so").
18598shrext_cmds='$shrext_cmds'
18599
18600# Executable file suffix (normally "").
18601exeext="$exeext"
18602
18603# Additional compiler flags for building library objects.
18604pic_flag=$lt_lt_prog_compiler_pic_GCJ
18605pic_mode=$pic_mode
18606
18607# What is the maximum length of a command?
18608max_cmd_len=$lt_cv_sys_max_cmd_len
18609
18610# Does compiler simultaneously support -c and -o options?
18611compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18612
18613# Must we lock files when doing compilation?
18614need_locks=$lt_need_locks
18615
18616# Do we need the lib prefix for modules?
18617need_lib_prefix=$need_lib_prefix
18618
18619# Do we need a version for libraries?
18620need_version=$need_version
18621
18622# Whether dlopen is supported.
18623dlopen_support=$enable_dlopen
18624
18625# Whether dlopen of programs is supported.
18626dlopen_self=$enable_dlopen_self
18627
18628# Whether dlopen of statically linked programs is supported.
18629dlopen_self_static=$enable_dlopen_self_static
18630
18631# Compiler flag to prevent dynamic linking.
18632link_static_flag=$lt_lt_prog_compiler_static_GCJ
18633
18634# Compiler flag to turn off builtin functions.
18635no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18636
18637# Compiler flag to allow reflexive dlopens.
18638export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18639
18640# Compiler flag to generate shared objects directly from archives.
18641whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18642
18643# Compiler flag to generate thread-safe objects.
18644thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18645
18646# Library versioning type.
18647version_type=$version_type
18648
18649# Format of library name prefix.
18650libname_spec=$lt_libname_spec
18651
18652# List of archive names. First name is the real one, the rest are links.
18653# The last name is the one that the linker finds with -lNAME.
18654library_names_spec=$lt_library_names_spec
18655
18656# The coded name of the library, if different from the real name.
18657soname_spec=$lt_soname_spec
18658
18659# Commands used to build and install an old-style archive.
18660RANLIB=$lt_RANLIB
18661old_archive_cmds=$lt_old_archive_cmds_GCJ
18662old_postinstall_cmds=$lt_old_postinstall_cmds
18663old_postuninstall_cmds=$lt_old_postuninstall_cmds
18664
18665# Create an old-style archive from a shared archive.
18666old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18667
18668# Create a temporary old-style archive to link instead of a shared archive.
18669old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18670
18671# Commands used to build and install a shared archive.
18672archive_cmds=$lt_archive_cmds_GCJ
18673archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18674postinstall_cmds=$lt_postinstall_cmds
18675postuninstall_cmds=$lt_postuninstall_cmds
18676
18677# Commands used to build a loadable module (assumed same as above if empty)
18678module_cmds=$lt_module_cmds_GCJ
18679module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18680
18681# Commands to strip libraries.
18682old_striplib=$lt_old_striplib
18683striplib=$lt_striplib
18684
18685# Dependencies to place before the objects being linked to create a
18686# shared library.
dd184caf 18687predep_objects=$lt_predep_objects_GCJ
d9898ee8 18688
18689# Dependencies to place after the objects being linked to create a
18690# shared library.
dd184caf 18691postdep_objects=$lt_postdep_objects_GCJ
d9898ee8 18692
18693# Dependencies to place before the objects being linked to create a
18694# shared library.
18695predeps=$lt_predeps_GCJ
18696
18697# Dependencies to place after the objects being linked to create a
18698# shared library.
18699postdeps=$lt_postdeps_GCJ
18700
18701# The library search path used internally by the compiler when linking
18702# a shared library.
dd184caf 18703compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
d9898ee8 18704
18705# Method to check whether dependent libraries are shared objects.
18706deplibs_check_method=$lt_deplibs_check_method
18707
18708# Command to use when deplibs_check_method == file_magic.
18709file_magic_cmd=$lt_file_magic_cmd
18710
18711# Flag that allows shared libraries with undefined symbols to be built.
18712allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18713
18714# Flag that forces no undefined symbols.
18715no_undefined_flag=$lt_no_undefined_flag_GCJ
18716
18717# Commands used to finish a libtool library installation in a directory.
18718finish_cmds=$lt_finish_cmds
18719
18720# Same as above, but a single script fragment to be evaled but not shown.
18721finish_eval=$lt_finish_eval
18722
18723# Take the output of nm and produce a listing of raw symbols and C names.
18724global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18725
18726# Transform the output of nm in a proper C declaration
18727global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18728
18729# Transform the output of nm in a C name address pair
18730global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18731
18732# This is the shared library runtime path variable.
18733runpath_var=$runpath_var
18734
18735# This is the shared library path variable.
18736shlibpath_var=$shlibpath_var
18737
18738# Is shlibpath searched before the hard-coded library search path?
18739shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18740
18741# How to hardcode a shared library path into an executable.
18742hardcode_action=$hardcode_action_GCJ
18743
18744# Whether we should hardcode library paths into libraries.
18745hardcode_into_libs=$hardcode_into_libs
18746
18747# Flag to hardcode \$libdir into a binary during linking.
18748# This must work even if \$libdir does not exist.
18749hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18750
18751# If ld is used when linking, flag to hardcode \$libdir into
18752# a binary during linking. This must work even if \$libdir does
18753# not exist.
18754hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18755
18756# Whether we need a single -rpath flag with a separated argument.
18757hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18758
18759# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18760# resulting binary.
18761hardcode_direct=$hardcode_direct_GCJ
18762
18763# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18764# resulting binary.
18765hardcode_minus_L=$hardcode_minus_L_GCJ
18766
18767# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18768# the resulting binary.
18769hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18770
18771# Set to yes if building a shared library automatically hardcodes DIR into the library
18772# and all subsequent libraries and executables linked against it.
18773hardcode_automatic=$hardcode_automatic_GCJ
18774
18775# Variables whose values should be saved in libtool wrapper scripts and
18776# restored at relink time.
18777variables_saved_for_relink="$variables_saved_for_relink"
18778
18779# Whether libtool must link a program against all its dependency libraries.
18780link_all_deplibs=$link_all_deplibs_GCJ
18781
18782# Compile-time system search path for libraries
dd184caf 18783sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 18784
18785# Run-time system search path for libraries
18786sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18787
18788# Fix the shell variable \$srcfile for the compiler.
18789fix_srcfile_path="$fix_srcfile_path_GCJ"
18790
18791# Set to yes if exported symbols are required.
18792always_export_symbols=$always_export_symbols_GCJ
18793
18794# The commands to list exported symbols.
18795export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18796
18797# The commands to extract the exported symbol list from a shared archive.
18798extract_expsyms_cmds=$lt_extract_expsyms_cmds
18799
18800# Symbols that should not be listed in the preloaded symbols.
18801exclude_expsyms=$lt_exclude_expsyms_GCJ
18802
18803# Symbols that must always be exported.
18804include_expsyms=$lt_include_expsyms_GCJ
18805
18806# ### END LIBTOOL TAG CONFIG: $tagname
18807
18808__EOF__
18809
18810
18811else
18812 # If there is no Makefile yet, we rely on a make rule to execute
18813 # `config.status --recheck' to rerun these tests and create the
18814 # libtool script then.
18815 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18816 if test -f "$ltmain_in"; then
18817 test -f Makefile && make "$ltmain"
18818 fi
18819fi
18820
18821
18822ac_ext=c
18823ac_cpp='$CPP $CPPFLAGS'
18824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18826ac_compiler_gnu=$ac_cv_c_compiler_gnu
18827
18828CC="$lt_save_CC"
18829
18830 else
18831 tagname=""
18832 fi
18833 ;;
18834
18835 RC)
18836
18837
d9898ee8 18838# Source file extension for RC test sources.
18839ac_ext=rc
18840
18841# Object file extension for compiled RC test sources.
18842objext=o
18843objext_RC=$objext
18844
18845# Code to be used in simple compile tests
18846lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18847
18848# Code to be used in simple link tests
18849lt_simple_link_test_code="$lt_simple_compile_test_code"
18850
18851# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18852
18853# If no C compiler was specified, use CC.
18854LTCC=${LTCC-"$CC"}
18855
18856# If no C compiler flags were specified, use CFLAGS.
18857LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18858
18859# Allow CC to be a program name with arguments.
18860compiler=$CC
18861
18862
18863# save warnings/boilerplate of simple test code
18864ac_outfile=conftest.$ac_objext
18865printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18866eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18867_lt_compiler_boilerplate=`cat conftest.err`
18868$rm conftest*
18869
18870ac_outfile=conftest.$ac_objext
18871printf "$lt_simple_link_test_code" >conftest.$ac_ext
18872eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18873_lt_linker_boilerplate=`cat conftest.err`
18874$rm conftest*
18875
18876
18877# Allow CC to be a program name with arguments.
18878lt_save_CC="$CC"
18879CC=${RC-"windres"}
18880compiler=$CC
18881compiler_RC=$CC
18882for cc_temp in $compiler""; do
18883 case $cc_temp in
18884 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18885 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18886 \-*) ;;
18887 *) break;;
18888 esac
18889done
18890cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18891
18892lt_cv_prog_compiler_c_o_RC=yes
18893
18894# The else clause should only fire when bootstrapping the
18895# libtool distribution, otherwise you forgot to ship ltmain.sh
18896# with your package, and you will get complaints that there are
18897# no rules to generate ltmain.sh.
18898if test -f "$ltmain"; then
18899 # See if we are running on zsh, and set the options which allow our commands through
18900 # without removal of \ escapes.
18901 if test -n "${ZSH_VERSION+set}" ; then
18902 setopt NO_GLOB_SUBST
18903 fi
18904 # Now quote all the things that may contain metacharacters while being
18905 # careful not to overquote the AC_SUBSTed values. We take copies of the
18906 # variables and quote the copies for generation of the libtool script.
18907 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18908 SED SHELL STRIP \
18909 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18910 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18911 deplibs_check_method reload_flag reload_cmds need_locks \
18912 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18913 lt_cv_sys_global_symbol_to_c_name_address \
18914 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18915 old_postinstall_cmds old_postuninstall_cmds \
18916 compiler_RC \
18917 CC_RC \
18918 LD_RC \
18919 lt_prog_compiler_wl_RC \
18920 lt_prog_compiler_pic_RC \
18921 lt_prog_compiler_static_RC \
18922 lt_prog_compiler_no_builtin_flag_RC \
18923 export_dynamic_flag_spec_RC \
18924 thread_safe_flag_spec_RC \
18925 whole_archive_flag_spec_RC \
18926 enable_shared_with_static_runtimes_RC \
18927 old_archive_cmds_RC \
18928 old_archive_from_new_cmds_RC \
18929 predep_objects_RC \
18930 postdep_objects_RC \
18931 predeps_RC \
18932 postdeps_RC \
18933 compiler_lib_search_path_RC \
18934 archive_cmds_RC \
18935 archive_expsym_cmds_RC \
18936 postinstall_cmds_RC \
18937 postuninstall_cmds_RC \
18938 old_archive_from_expsyms_cmds_RC \
18939 allow_undefined_flag_RC \
18940 no_undefined_flag_RC \
18941 export_symbols_cmds_RC \
18942 hardcode_libdir_flag_spec_RC \
18943 hardcode_libdir_flag_spec_ld_RC \
18944 hardcode_libdir_separator_RC \
18945 hardcode_automatic_RC \
18946 module_cmds_RC \
18947 module_expsym_cmds_RC \
18948 lt_cv_prog_compiler_c_o_RC \
18949 exclude_expsyms_RC \
18950 include_expsyms_RC; do
18951
18952 case $var in
18953 old_archive_cmds_RC | \
18954 old_archive_from_new_cmds_RC | \
18955 archive_cmds_RC | \
18956 archive_expsym_cmds_RC | \
18957 module_cmds_RC | \
18958 module_expsym_cmds_RC | \
18959 old_archive_from_expsyms_cmds_RC | \
18960 export_symbols_cmds_RC | \
18961 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18962 postinstall_cmds | postuninstall_cmds | \
18963 old_postinstall_cmds | old_postuninstall_cmds | \
18964 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18965 # Double-quote double-evaled strings.
18966 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18967 ;;
18968 *)
18969 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18970 ;;
18971 esac
18972 done
18973
18974 case $lt_echo in
18975 *'\$0 --fallback-echo"')
18976 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18977 ;;
18978 esac
18979
18980cfgfile="$ofile"
18981
18982 cat <<__EOF__ >> "$cfgfile"
18983# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18984
18985# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18986
18987# Shell to use when invoking shell scripts.
18988SHELL=$lt_SHELL
18989
18990# Whether or not to build shared libraries.
18991build_libtool_libs=$enable_shared
18992
18993# Whether or not to build static libraries.
18994build_old_libs=$enable_static
18995
18996# Whether or not to add -lc for building shared libraries.
18997build_libtool_need_lc=$archive_cmds_need_lc_RC
18998
18999# Whether or not to disallow shared libs when runtime libs are static
19000allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19001
19002# Whether or not to optimize for fast installation.
19003fast_install=$enable_fast_install
19004
19005# The host system.
19006host_alias=$host_alias
19007host=$host
19008host_os=$host_os
19009
19010# The build system.
19011build_alias=$build_alias
19012build=$build
19013build_os=$build_os
19014
19015# An echo program that does not interpret backslashes.
19016echo=$lt_echo
19017
19018# The archiver.
19019AR=$lt_AR
19020AR_FLAGS=$lt_AR_FLAGS
19021
19022# A C compiler.
19023LTCC=$lt_LTCC
19024
19025# LTCC compiler flags.
19026LTCFLAGS=$lt_LTCFLAGS
19027
19028# A language-specific compiler.
19029CC=$lt_compiler_RC
19030
19031# Is the compiler the GNU C compiler?
19032with_gcc=$GCC_RC
19033
d9898ee8 19034# An ERE matcher.
19035EGREP=$lt_EGREP
19036
19037# The linker used to build libraries.
19038LD=$lt_LD_RC
19039
19040# Whether we need hard or soft links.
19041LN_S=$lt_LN_S
19042
19043# A BSD-compatible nm program.
19044NM=$lt_NM
19045
19046# A symbol stripping program
19047STRIP=$lt_STRIP
19048
19049# Used to examine libraries when file_magic_cmd begins "file"
19050MAGIC_CMD=$MAGIC_CMD
19051
19052# Used on cygwin: DLL creation program.
19053DLLTOOL="$DLLTOOL"
19054
19055# Used on cygwin: object dumper.
19056OBJDUMP="$OBJDUMP"
19057
19058# Used on cygwin: assembler.
19059AS="$AS"
19060
19061# The name of the directory that contains temporary libtool files.
19062objdir=$objdir
19063
19064# How to create reloadable object files.
19065reload_flag=$lt_reload_flag
19066reload_cmds=$lt_reload_cmds
19067
19068# How to pass a linker flag through the compiler.
19069wl=$lt_lt_prog_compiler_wl_RC
19070
19071# Object file suffix (normally "o").
19072objext="$ac_objext"
19073
19074# Old archive suffix (normally "a").
19075libext="$libext"
19076
19077# Shared library suffix (normally ".so").
19078shrext_cmds='$shrext_cmds'
19079
19080# Executable file suffix (normally "").
19081exeext="$exeext"
19082
19083# Additional compiler flags for building library objects.
19084pic_flag=$lt_lt_prog_compiler_pic_RC
19085pic_mode=$pic_mode
19086
19087# What is the maximum length of a command?
19088max_cmd_len=$lt_cv_sys_max_cmd_len
19089
19090# Does compiler simultaneously support -c and -o options?
19091compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19092
19093# Must we lock files when doing compilation?
19094need_locks=$lt_need_locks
19095
19096# Do we need the lib prefix for modules?
19097need_lib_prefix=$need_lib_prefix
19098
19099# Do we need a version for libraries?
19100need_version=$need_version
19101
19102# Whether dlopen is supported.
19103dlopen_support=$enable_dlopen
19104
19105# Whether dlopen of programs is supported.
19106dlopen_self=$enable_dlopen_self
19107
19108# Whether dlopen of statically linked programs is supported.
19109dlopen_self_static=$enable_dlopen_self_static
19110
19111# Compiler flag to prevent dynamic linking.
19112link_static_flag=$lt_lt_prog_compiler_static_RC
19113
19114# Compiler flag to turn off builtin functions.
19115no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19116
19117# Compiler flag to allow reflexive dlopens.
19118export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19119
19120# Compiler flag to generate shared objects directly from archives.
19121whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19122
19123# Compiler flag to generate thread-safe objects.
19124thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19125
19126# Library versioning type.
19127version_type=$version_type
19128
19129# Format of library name prefix.
19130libname_spec=$lt_libname_spec
19131
19132# List of archive names. First name is the real one, the rest are links.
19133# The last name is the one that the linker finds with -lNAME.
19134library_names_spec=$lt_library_names_spec
19135
19136# The coded name of the library, if different from the real name.
19137soname_spec=$lt_soname_spec
19138
19139# Commands used to build and install an old-style archive.
19140RANLIB=$lt_RANLIB
19141old_archive_cmds=$lt_old_archive_cmds_RC
19142old_postinstall_cmds=$lt_old_postinstall_cmds
19143old_postuninstall_cmds=$lt_old_postuninstall_cmds
19144
19145# Create an old-style archive from a shared archive.
19146old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19147
19148# Create a temporary old-style archive to link instead of a shared archive.
19149old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19150
19151# Commands used to build and install a shared archive.
19152archive_cmds=$lt_archive_cmds_RC
19153archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19154postinstall_cmds=$lt_postinstall_cmds
19155postuninstall_cmds=$lt_postuninstall_cmds
19156
19157# Commands used to build a loadable module (assumed same as above if empty)
19158module_cmds=$lt_module_cmds_RC
19159module_expsym_cmds=$lt_module_expsym_cmds_RC
19160
19161# Commands to strip libraries.
19162old_striplib=$lt_old_striplib
19163striplib=$lt_striplib
19164
19165# Dependencies to place before the objects being linked to create a
19166# shared library.
dd184caf 19167predep_objects=$lt_predep_objects_RC
d9898ee8 19168
19169# Dependencies to place after the objects being linked to create a
19170# shared library.
dd184caf 19171postdep_objects=$lt_postdep_objects_RC
d9898ee8 19172
19173# Dependencies to place before the objects being linked to create a
19174# shared library.
19175predeps=$lt_predeps_RC
19176
19177# Dependencies to place after the objects being linked to create a
19178# shared library.
19179postdeps=$lt_postdeps_RC
19180
19181# The library search path used internally by the compiler when linking
19182# a shared library.
dd184caf 19183compiler_lib_search_path=$lt_compiler_lib_search_path_RC
d9898ee8 19184
19185# Method to check whether dependent libraries are shared objects.
19186deplibs_check_method=$lt_deplibs_check_method
19187
19188# Command to use when deplibs_check_method == file_magic.
19189file_magic_cmd=$lt_file_magic_cmd
19190
19191# Flag that allows shared libraries with undefined symbols to be built.
19192allow_undefined_flag=$lt_allow_undefined_flag_RC
19193
19194# Flag that forces no undefined symbols.
19195no_undefined_flag=$lt_no_undefined_flag_RC
19196
19197# Commands used to finish a libtool library installation in a directory.
19198finish_cmds=$lt_finish_cmds
19199
19200# Same as above, but a single script fragment to be evaled but not shown.
19201finish_eval=$lt_finish_eval
19202
19203# Take the output of nm and produce a listing of raw symbols and C names.
19204global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19205
19206# Transform the output of nm in a proper C declaration
19207global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19208
19209# Transform the output of nm in a C name address pair
19210global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19211
19212# This is the shared library runtime path variable.
19213runpath_var=$runpath_var
19214
19215# This is the shared library path variable.
19216shlibpath_var=$shlibpath_var
19217
19218# Is shlibpath searched before the hard-coded library search path?
19219shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19220
19221# How to hardcode a shared library path into an executable.
19222hardcode_action=$hardcode_action_RC
19223
19224# Whether we should hardcode library paths into libraries.
19225hardcode_into_libs=$hardcode_into_libs
19226
19227# Flag to hardcode \$libdir into a binary during linking.
19228# This must work even if \$libdir does not exist.
19229hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19230
19231# If ld is used when linking, flag to hardcode \$libdir into
19232# a binary during linking. This must work even if \$libdir does
19233# not exist.
19234hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19235
19236# Whether we need a single -rpath flag with a separated argument.
19237hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19238
19239# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19240# resulting binary.
19241hardcode_direct=$hardcode_direct_RC
19242
19243# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19244# resulting binary.
19245hardcode_minus_L=$hardcode_minus_L_RC
19246
19247# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19248# the resulting binary.
19249hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19250
19251# Set to yes if building a shared library automatically hardcodes DIR into the library
19252# and all subsequent libraries and executables linked against it.
19253hardcode_automatic=$hardcode_automatic_RC
19254
19255# Variables whose values should be saved in libtool wrapper scripts and
19256# restored at relink time.
19257variables_saved_for_relink="$variables_saved_for_relink"
19258
19259# Whether libtool must link a program against all its dependency libraries.
19260link_all_deplibs=$link_all_deplibs_RC
19261
19262# Compile-time system search path for libraries
dd184caf 19263sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19264
19265# Run-time system search path for libraries
19266sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19267
19268# Fix the shell variable \$srcfile for the compiler.
19269fix_srcfile_path="$fix_srcfile_path_RC"
19270
19271# Set to yes if exported symbols are required.
19272always_export_symbols=$always_export_symbols_RC
19273
19274# The commands to list exported symbols.
19275export_symbols_cmds=$lt_export_symbols_cmds_RC
19276
19277# The commands to extract the exported symbol list from a shared archive.
19278extract_expsyms_cmds=$lt_extract_expsyms_cmds
19279
19280# Symbols that should not be listed in the preloaded symbols.
19281exclude_expsyms=$lt_exclude_expsyms_RC
19282
19283# Symbols that must always be exported.
19284include_expsyms=$lt_include_expsyms_RC
19285
19286# ### END LIBTOOL TAG CONFIG: $tagname
19287
19288__EOF__
19289
19290
19291else
19292 # If there is no Makefile yet, we rely on a make rule to execute
19293 # `config.status --recheck' to rerun these tests and create the
19294 # libtool script then.
19295 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19296 if test -f "$ltmain_in"; then
19297 test -f Makefile && make "$ltmain"
19298 fi
19299fi
19300
19301
19302ac_ext=c
19303ac_cpp='$CPP $CPPFLAGS'
19304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19306ac_compiler_gnu=$ac_cv_c_compiler_gnu
19307
19308CC="$lt_save_CC"
19309
19310 ;;
19311
19312 *)
19313 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19314echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19315 { (exit 1); exit 1; }; }
19316 ;;
19317 esac
19318
19319 # Append the new tag name to the list of available tags.
19320 if test -n "$tagname" ; then
19321 available_tags="$available_tags $tagname"
19322 fi
19323 fi
19324 done
19325 IFS="$lt_save_ifs"
19326
19327 # Now substitute the updated list of available tags.
19328 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19329 mv "${ofile}T" "$ofile"
19330 chmod +x "$ofile"
19331 else
19332 rm -f "${ofile}T"
19333 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19334echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19335 { (exit 1); exit 1; }; }
19336 fi
19337fi
19338
19339
19340
19341# This can be used to rebuild libtool when needed
19342LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19343
19344# Always use our own libtool.
19345LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19346
19347# Prevent multiple expansion
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369if test "$GCC" = yes
19370then
19371 CFLAGS="-Wall $CFLAGS"
19372fi
19373
19374CPPFLAGS="$CPPFLAGS -I$srcdir/.. -I.."
19375
19376
dd184caf 19377{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19378echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 19379if test "${ac_cv_header_stdc+set}" = set; then
19380 echo $ECHO_N "(cached) $ECHO_C" >&6
19381else
19382 cat >conftest.$ac_ext <<_ACEOF
19383/* confdefs.h. */
19384_ACEOF
19385cat confdefs.h >>conftest.$ac_ext
19386cat >>conftest.$ac_ext <<_ACEOF
19387/* end confdefs.h. */
19388#include <stdlib.h>
19389#include <stdarg.h>
19390#include <string.h>
19391#include <float.h>
19392
19393int
19394main ()
19395{
19396
19397 ;
19398 return 0;
19399}
19400_ACEOF
19401rm -f conftest.$ac_objext
dd184caf 19402if { (ac_try="$ac_compile"
19403case "(($ac_try" in
19404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405 *) ac_try_echo=$ac_try;;
19406esac
19407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19408 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19409 ac_status=$?
19410 grep -v '^ *+' conftest.er1 >conftest.err
19411 rm -f conftest.er1
19412 cat conftest.err >&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19414 (exit $ac_status); } && {
19415 test -z "$ac_c_werror_flag" ||
19416 test ! -s conftest.err
19417 } && test -s conftest.$ac_objext; then
d9898ee8 19418 ac_cv_header_stdc=yes
19419else
19420 echo "$as_me: failed program was:" >&5
19421sed 's/^/| /' conftest.$ac_ext >&5
19422
dd184caf 19423 ac_cv_header_stdc=no
d9898ee8 19424fi
dd184caf 19425
19426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19427
19428if test $ac_cv_header_stdc = yes; then
19429 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19430 cat >conftest.$ac_ext <<_ACEOF
19431/* confdefs.h. */
19432_ACEOF
19433cat confdefs.h >>conftest.$ac_ext
19434cat >>conftest.$ac_ext <<_ACEOF
19435/* end confdefs.h. */
19436#include <string.h>
19437
19438_ACEOF
19439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19440 $EGREP "memchr" >/dev/null 2>&1; then
19441 :
19442else
19443 ac_cv_header_stdc=no
19444fi
19445rm -f conftest*
19446
19447fi
19448
19449if test $ac_cv_header_stdc = yes; then
19450 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19451 cat >conftest.$ac_ext <<_ACEOF
19452/* confdefs.h. */
19453_ACEOF
19454cat confdefs.h >>conftest.$ac_ext
19455cat >>conftest.$ac_ext <<_ACEOF
19456/* end confdefs.h. */
19457#include <stdlib.h>
19458
19459_ACEOF
19460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19461 $EGREP "free" >/dev/null 2>&1; then
19462 :
19463else
19464 ac_cv_header_stdc=no
19465fi
19466rm -f conftest*
19467
19468fi
19469
19470if test $ac_cv_header_stdc = yes; then
19471 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19472 if test "$cross_compiling" = yes; then
19473 :
19474else
19475 cat >conftest.$ac_ext <<_ACEOF
19476/* confdefs.h. */
19477_ACEOF
19478cat confdefs.h >>conftest.$ac_ext
19479cat >>conftest.$ac_ext <<_ACEOF
19480/* end confdefs.h. */
19481#include <ctype.h>
dd184caf 19482#include <stdlib.h>
d9898ee8 19483#if ((' ' & 0x0FF) == 0x020)
19484# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19485# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19486#else
19487# define ISLOWER(c) \
19488 (('a' <= (c) && (c) <= 'i') \
19489 || ('j' <= (c) && (c) <= 'r') \
19490 || ('s' <= (c) && (c) <= 'z'))
19491# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19492#endif
19493
19494#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19495int
19496main ()
19497{
19498 int i;
19499 for (i = 0; i < 256; i++)
19500 if (XOR (islower (i), ISLOWER (i))
19501 || toupper (i) != TOUPPER (i))
dd184caf 19502 return 2;
19503 return 0;
d9898ee8 19504}
19505_ACEOF
19506rm -f conftest$ac_exeext
dd184caf 19507if { (ac_try="$ac_link"
19508case "(($ac_try" in
19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19511esac
19512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513 (eval "$ac_link") 2>&5
d9898ee8 19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 19517 { (case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19520esac
19521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_try") 2>&5
d9898ee8 19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; }; then
19526 :
19527else
19528 echo "$as_me: program exited with status $ac_status" >&5
19529echo "$as_me: failed program was:" >&5
19530sed 's/^/| /' conftest.$ac_ext >&5
19531
19532( exit $ac_status )
19533ac_cv_header_stdc=no
19534fi
dd184caf 19535rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 19536fi
dd184caf 19537
19538
d9898ee8 19539fi
19540fi
dd184caf 19541{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19542echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 19543if test $ac_cv_header_stdc = yes; then
19544
19545cat >>confdefs.h <<\_ACEOF
19546#define STDC_HEADERS 1
19547_ACEOF
19548
19549fi
19550
19551
dd184caf 19552{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19553echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
d9898ee8 19554if test "${ac_cv_c_const+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19556else
19557 cat >conftest.$ac_ext <<_ACEOF
19558/* confdefs.h. */
19559_ACEOF
19560cat confdefs.h >>conftest.$ac_ext
19561cat >>conftest.$ac_ext <<_ACEOF
19562/* end confdefs.h. */
19563
19564int
19565main ()
19566{
19567/* FIXME: Include the comments suggested by Paul. */
19568#ifndef __cplusplus
19569 /* Ultrix mips cc rejects this. */
19570 typedef int charset[2];
dd184caf 19571 const charset cs;
d9898ee8 19572 /* SunOS 4.1.1 cc rejects this. */
dd184caf 19573 char const *const *pcpcc;
19574 char **ppc;
d9898ee8 19575 /* NEC SVR4.0.2 mips cc rejects this. */
19576 struct point {int x, y;};
19577 static struct point const zero = {0,0};
19578 /* AIX XL C 1.02.0.0 rejects this.
19579 It does not let you subtract one const X* pointer from another in
19580 an arm of an if-expression whose if-part is not a constant
19581 expression */
19582 const char *g = "string";
dd184caf 19583 pcpcc = &g + (g ? g-g : 0);
d9898ee8 19584 /* HPUX 7.0 cc rejects these. */
dd184caf 19585 ++pcpcc;
19586 ppc = (char**) pcpcc;
19587 pcpcc = (char const *const *) ppc;
d9898ee8 19588 { /* SCO 3.2v4 cc rejects this. */
19589 char *t;
19590 char const *s = 0 ? (char *) 0 : (char const *) 0;
19591
19592 *t++ = 0;
dd184caf 19593 if (s) return 0;
d9898ee8 19594 }
19595 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19596 int x[] = {25, 17};
19597 const int *foo = &x[0];
19598 ++foo;
19599 }
19600 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19601 typedef const int *iptr;
19602 iptr p = 0;
19603 ++p;
19604 }
19605 { /* AIX XL C 1.02.0.0 rejects this saying
19606 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19607 struct s { int j; const int *ap[3]; };
19608 struct s *b; b->j = 5;
19609 }
19610 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19611 const int foo = 10;
dd184caf 19612 if (!foo) return 0;
d9898ee8 19613 }
dd184caf 19614 return !cs[0] && !zero.x;
d9898ee8 19615#endif
19616
19617 ;
19618 return 0;
19619}
19620_ACEOF
19621rm -f conftest.$ac_objext
dd184caf 19622if { (ac_try="$ac_compile"
19623case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19626esac
19627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19629 ac_status=$?
19630 grep -v '^ *+' conftest.er1 >conftest.err
19631 rm -f conftest.er1
19632 cat conftest.err >&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19634 (exit $ac_status); } && {
19635 test -z "$ac_c_werror_flag" ||
19636 test ! -s conftest.err
19637 } && test -s conftest.$ac_objext; then
d9898ee8 19638 ac_cv_c_const=yes
19639else
19640 echo "$as_me: failed program was:" >&5
19641sed 's/^/| /' conftest.$ac_ext >&5
19642
dd184caf 19643 ac_cv_c_const=no
d9898ee8 19644fi
dd184caf 19645
19646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19647fi
dd184caf 19648{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19649echo "${ECHO_T}$ac_cv_c_const" >&6; }
d9898ee8 19650if test $ac_cv_c_const = no; then
19651
19652cat >>confdefs.h <<\_ACEOF
19653#define const
19654_ACEOF
19655
19656fi
19657
dd184caf 19658{ echo "$as_me:$LINENO: checking for size_t" >&5
19659echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
d9898ee8 19660if test "${ac_cv_type_size_t+set}" = set; then
19661 echo $ECHO_N "(cached) $ECHO_C" >&6
19662else
19663 cat >conftest.$ac_ext <<_ACEOF
19664/* confdefs.h. */
19665_ACEOF
19666cat confdefs.h >>conftest.$ac_ext
19667cat >>conftest.$ac_ext <<_ACEOF
19668/* end confdefs.h. */
19669$ac_includes_default
dd184caf 19670typedef size_t ac__type_new_;
d9898ee8 19671int
19672main ()
19673{
dd184caf 19674if ((ac__type_new_ *) 0)
d9898ee8 19675 return 0;
dd184caf 19676if (sizeof (ac__type_new_))
d9898ee8 19677 return 0;
19678 ;
19679 return 0;
19680}
19681_ACEOF
19682rm -f conftest.$ac_objext
dd184caf 19683if { (ac_try="$ac_compile"
19684case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19687esac
19688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19695 (exit $ac_status); } && {
19696 test -z "$ac_c_werror_flag" ||
19697 test ! -s conftest.err
19698 } && test -s conftest.$ac_objext; then
d9898ee8 19699 ac_cv_type_size_t=yes
19700else
19701 echo "$as_me: failed program was:" >&5
19702sed 's/^/| /' conftest.$ac_ext >&5
19703
dd184caf 19704 ac_cv_type_size_t=no
d9898ee8 19705fi
dd184caf 19706
19707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19708fi
dd184caf 19709{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19710echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
d9898ee8 19711if test $ac_cv_type_size_t = yes; then
19712 :
19713else
19714
19715cat >>confdefs.h <<_ACEOF
dd184caf 19716#define size_t unsigned int
d9898ee8 19717_ACEOF
19718
19719fi
19720
19721
19722
19723
19724TESTPROGS=""
19725
19726hmac_list=""
19727
19728hashlibs=""
19729if test -d ${srcdir}/../md5
19730then
19731 TESTPROGS="$TESTPROGS md5hmactest${EXEEXT}"
19732 hmac_list="$hmac_list &hmac_md5,"
19733 hashlibs="$hashlibs ../md5/libmd5.la"
19734fi
19735
19736if test -d ${srcdir}/../sha1
19737then
19738 TESTPROGS="$TESTPROGS sha1hmactest${EXEEXT}"
19739 hmac_list="$hmac_list &hmac_sha1, &hmac_sha256, "
19740 hashlibs="$hashlibs ../sha1/libsha1.la"
19741fi
19742
19743
19744hmac_list="$hmac_list 0"
19745
19746
19747
19748cat >>confdefs.h <<_ACEOF
19749#define HMAC_LIST $hmac_list
19750_ACEOF
19751
19752
dd184caf 19753ac_config_files="$ac_config_files Makefile"
19754
d9898ee8 19755cat >confcache <<\_ACEOF
19756# This file is a shell script that caches the results of configure
19757# tests run on this system so they can be shared between configure
19758# scripts and configure runs, see configure's option --config-cache.
19759# It is not useful on other systems. If it contains results you don't
19760# want to keep, you may remove or edit it.
19761#
19762# config.status only pays attention to the cache file if you give it
19763# the --recheck option to rerun configure.
19764#
19765# `ac_cv_env_foo' variables (set or unset) will be overridden when
19766# loading this file, other *unset* `ac_cv_foo' will be assigned the
19767# following values.
19768
19769_ACEOF
19770
19771# The following way of writing the cache mishandles newlines in values,
19772# but we know of no workaround that is simple, portable, and efficient.
dd184caf 19773# So, we kill variables containing newlines.
d9898ee8 19774# Ultrix sh set writes to stderr and can't be redirected directly,
19775# and sets the high bit in the cache file unless we assign to the vars.
dd184caf 19776(
19777 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19778 eval ac_val=\$$ac_var
19779 case $ac_val in #(
19780 *${as_nl}*)
19781 case $ac_var in #(
19782 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19783echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19784 esac
19785 case $ac_var in #(
19786 _ | IFS | as_nl) ;; #(
19787 *) $as_unset $ac_var ;;
19788 esac ;;
19789 esac
19790 done
19791
d9898ee8 19792 (set) 2>&1 |
dd184caf 19793 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19794 *${as_nl}ac_space=\ *)
d9898ee8 19795 # `set' does not quote correctly, so add quotes (double-quote
19796 # substitution turns \\\\ into \\, and sed turns \\ into \).
19797 sed -n \
19798 "s/'/'\\\\''/g;
19799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
dd184caf 19800 ;; #(
d9898ee8 19801 *)
19802 # `set' quotes correctly as required by POSIX, so do not add quotes.
dd184caf 19803 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 19804 ;;
dd184caf 19805 esac |
19806 sort
19807) |
d9898ee8 19808 sed '
dd184caf 19809 /^ac_cv_env_/b end
d9898ee8 19810 t clear
dd184caf 19811 :clear
d9898ee8 19812 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19813 t end
dd184caf 19814 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19815 :end' >>confcache
19816if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19817 if test -w "$cache_file"; then
19818 test "x$cache_file" != "x/dev/null" &&
19819 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19820echo "$as_me: updating cache $cache_file" >&6;}
d9898ee8 19821 cat confcache >$cache_file
19822 else
dd184caf 19823 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19824echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d9898ee8 19825 fi
19826fi
19827rm -f confcache
19828
19829test "x$prefix" = xNONE && prefix=$ac_default_prefix
19830# Let make expand exec_prefix.
19831test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19832
d9898ee8 19833DEFS=-DHAVE_CONFIG_H
19834
19835ac_libobjs=
19836ac_ltlibobjs=
19837for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19838 # 1. Remove the extension, and $U if already installed.
dd184caf 19839 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19840 ac_i=`echo "$ac_i" | sed "$ac_script"`
19841 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19842 # will be set to the directory where LIBOBJS objects are built.
19843 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19844 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 19845done
19846LIBOBJS=$ac_libobjs
19847
19848LTLIBOBJS=$ac_ltlibobjs
19849
19850
19851if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19852 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19853Usually this means the macro was only invoked conditionally." >&5
19854echo "$as_me: error: conditional \"AMDEP\" was never defined.
19855Usually this means the macro was only invoked conditionally." >&2;}
19856 { (exit 1); exit 1; }; }
19857fi
19858if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19859 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19860Usually this means the macro was only invoked conditionally." >&5
19861echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19862Usually this means the macro was only invoked conditionally." >&2;}
19863 { (exit 1); exit 1; }; }
19864fi
19865if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19866 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19867Usually this means the macro was only invoked conditionally." >&5
19868echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19869Usually this means the macro was only invoked conditionally." >&2;}
19870 { (exit 1); exit 1; }; }
19871fi
19872
19873: ${CONFIG_STATUS=./config.status}
19874ac_clean_files_save=$ac_clean_files
19875ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19876{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19877echo "$as_me: creating $CONFIG_STATUS" >&6;}
19878cat >$CONFIG_STATUS <<_ACEOF
19879#! $SHELL
19880# Generated by $as_me.
19881# Run this file to recreate the current configuration.
19882# Compiler output produced by configure, useful for debugging
19883# configure, is in config.log if it exists.
19884
19885debug=false
19886ac_cs_recheck=false
19887ac_cs_silent=false
19888SHELL=\${CONFIG_SHELL-$SHELL}
19889_ACEOF
19890
19891cat >>$CONFIG_STATUS <<\_ACEOF
19892## --------------------- ##
19893## M4sh Initialization. ##
19894## --------------------- ##
19895
dd184caf 19896# Be more Bourne compatible
19897DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 19898if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19899 emulate sh
19900 NULLCMD=:
19901 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19902 # is contrary to our usage. Disable this feature.
19903 alias -g '${1+"$@"}'='"$@"'
dd184caf 19904 setopt NO_GLOB_SUBST
19905else
19906 case `(set -o) 2>/dev/null` in
19907 *posix*) set -o posix ;;
19908esac
19909
19910fi
19911
19912
19913
19914
19915# PATH needs CR
19916# Avoid depending upon Character Ranges.
19917as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19918as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19919as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19920as_cr_digits='0123456789'
19921as_cr_alnum=$as_cr_Letters$as_cr_digits
19922
19923# The user is always right.
19924if test "${PATH_SEPARATOR+set}" != set; then
19925 echo "#! /bin/sh" >conf$$.sh
19926 echo "exit 0" >>conf$$.sh
19927 chmod +x conf$$.sh
19928 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19929 PATH_SEPARATOR=';'
19930 else
19931 PATH_SEPARATOR=:
19932 fi
19933 rm -f conf$$.sh
d9898ee8 19934fi
d9898ee8 19935
19936# Support unset when possible.
19937if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19938 as_unset=unset
19939else
19940 as_unset=false
19941fi
19942
19943
dd184caf 19944# IFS
19945# We need space, tab and new line, in precisely that order. Quoting is
19946# there to prevent editors from complaining about space-tab.
19947# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19948# splitting by setting IFS to empty value.)
19949as_nl='
19950'
19951IFS=" "" $as_nl"
19952
19953# Find who we are. Look in the path if we contain no directory separator.
19954case $0 in
19955 *[\\/]* ) as_myself=$0 ;;
19956 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19957for as_dir in $PATH
19958do
19959 IFS=$as_save_IFS
19960 test -z "$as_dir" && as_dir=.
19961 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19962done
19963IFS=$as_save_IFS
19964
19965 ;;
19966esac
19967# We did not find ourselves, most probably we were run as `sh COMMAND'
19968# in which case we are not to be found in the path.
19969if test "x$as_myself" = x; then
19970 as_myself=$0
19971fi
19972if test ! -f "$as_myself"; then
19973 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19974 { (exit 1); exit 1; }
19975fi
19976
d9898ee8 19977# Work around bugs in pre-3.0 UWIN ksh.
dd184caf 19978for as_var in ENV MAIL MAILPATH
19979do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19980done
d9898ee8 19981PS1='$ '
19982PS2='> '
19983PS4='+ '
19984
19985# NLS nuisances.
19986for as_var in \
19987 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19988 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19989 LC_TELEPHONE LC_TIME
19990do
19991 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19992 eval $as_var=C; export $as_var
19993 else
dd184caf 19994 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 19995 fi
19996done
19997
19998# Required to use basename.
dd184caf 19999if expr a : '\(a\)' >/dev/null 2>&1 &&
20000 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 20001 as_expr=expr
20002else
20003 as_expr=false
20004fi
20005
dd184caf 20006if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 20007 as_basename=basename
20008else
20009 as_basename=false
20010fi
20011
20012
20013# Name of the executable.
dd184caf 20014as_me=`$as_basename -- "$0" ||
d9898ee8 20015$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20016 X"$0" : 'X\(//\)$' \| \
dd184caf 20017 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 20018echo X/"$0" |
dd184caf 20019 sed '/^.*\/\([^/][^/]*\)\/*$/{
20020 s//\1/
20021 q
20022 }
20023 /^X\/\(\/\/\)$/{
20024 s//\1/
20025 q
20026 }
20027 /^X\/\(\/\).*/{
20028 s//\1/
20029 q
20030 }
20031 s/.*/./; q'`
d9898ee8 20032
dd184caf 20033# CDPATH.
20034$as_unset CDPATH
d9898ee8 20035
d9898ee8 20036
20037
20038 as_lineno_1=$LINENO
20039 as_lineno_2=$LINENO
d9898ee8 20040 test "x$as_lineno_1" != "x$as_lineno_2" &&
dd184caf 20041 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 20042
20043 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20044 # uniformly replaced by the line number. The first 'sed' inserts a
dd184caf 20045 # line-number line after each line using $LINENO; the second 'sed'
20046 # does the real work. The second script uses 'N' to pair each
20047 # line-number line with the line containing $LINENO, and appends
20048 # trailing '-' during substitution so that $LINENO is not a special
20049 # case at line end.
d9898ee8 20050 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dd184caf 20051 # scripts with optimization help from Paolo Bonzini. Blame Lee
20052 # E. McMahon (1931-1989) for sed's syntax. :-)
20053 sed -n '
20054 p
20055 /[$]LINENO/=
20056 ' <$as_myself |
d9898ee8 20057 sed '
dd184caf 20058 s/[$]LINENO.*/&-/
20059 t lineno
20060 b
20061 :lineno
d9898ee8 20062 N
dd184caf 20063 :loop
20064 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 20065 t loop
dd184caf 20066 s/-\n.*//
d9898ee8 20067 ' >$as_me.lineno &&
dd184caf 20068 chmod +x "$as_me.lineno" ||
20069 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 20070 { (exit 1); exit 1; }; }
20071
20072 # Don't try to exec as it changes $[0], causing all sort of problems
20073 # (the dirname of $[0] is not the place where we might find the
dd184caf 20074 # original and so on. Autoconf is especially sensitive to this).
20075 . "./$as_me.lineno"
d9898ee8 20076 # Exit status is that of the last command.
20077 exit
20078}
20079
20080
dd184caf 20081if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20082 as_dirname=dirname
20083else
20084 as_dirname=false
20085fi
20086
20087ECHO_C= ECHO_N= ECHO_T=
20088case `echo -n x` in
20089-n*)
20090 case `echo 'x\c'` in
20091 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20092 *) ECHO_C='\c';;
20093 esac;;
20094*)
20095 ECHO_N='-n';;
d9898ee8 20096esac
20097
dd184caf 20098if expr a : '\(a\)' >/dev/null 2>&1 &&
20099 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 20100 as_expr=expr
20101else
20102 as_expr=false
20103fi
20104
20105rm -f conf$$ conf$$.exe conf$$.file
dd184caf 20106if test -d conf$$.dir; then
20107 rm -f conf$$.dir/conf$$.file
20108else
20109 rm -f conf$$.dir
20110 mkdir conf$$.dir
20111fi
d9898ee8 20112echo >conf$$.file
20113if ln -s conf$$.file conf$$ 2>/dev/null; then
dd184caf 20114 as_ln_s='ln -s'
20115 # ... but there are two gotchas:
20116 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20117 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20118 # In both cases, we have to default to `cp -p'.
20119 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 20120 as_ln_s='cp -p'
d9898ee8 20121elif ln conf$$.file conf$$ 2>/dev/null; then
20122 as_ln_s=ln
20123else
20124 as_ln_s='cp -p'
20125fi
dd184caf 20126rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20127rmdir conf$$.dir 2>/dev/null
d9898ee8 20128
20129if mkdir -p . 2>/dev/null; then
20130 as_mkdir_p=:
20131else
20132 test -d ./-p && rmdir ./-p
20133 as_mkdir_p=false
20134fi
20135
dd184caf 20136if test -x / >/dev/null 2>&1; then
20137 as_test_x='test -x'
20138else
20139 if ls -dL / >/dev/null 2>&1; then
20140 as_ls_L_option=L
20141 else
20142 as_ls_L_option=
20143 fi
20144 as_test_x='
20145 eval sh -c '\''
20146 if test -d "$1"; then
20147 test -d "$1/.";
20148 else
20149 case $1 in
20150 -*)set "./$1";;
20151 esac;
20152 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20153 ???[sx]*):;;*)false;;esac;fi
20154 '\'' sh
20155 '
20156fi
20157as_executable_p=$as_test_x
d9898ee8 20158
20159# Sed expression to map a string onto a valid CPP name.
20160as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20161
20162# Sed expression to map a string onto a valid variable name.
20163as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20164
20165
d9898ee8 20166exec 6>&1
20167
dd184caf 20168# Save the log message, to keep $[0] and so on meaningful, and to
d9898ee8 20169# report actual input values of CONFIG_FILES etc. instead of their
dd184caf 20170# values after options handling.
20171ac_log="
d9898ee8 20172This file was extended by libhmac $as_me 1.00, which was
dd184caf 20173generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 20174
20175 CONFIG_FILES = $CONFIG_FILES
20176 CONFIG_HEADERS = $CONFIG_HEADERS
20177 CONFIG_LINKS = $CONFIG_LINKS
20178 CONFIG_COMMANDS = $CONFIG_COMMANDS
20179 $ $0 $@
20180
dd184caf 20181on `(hostname || uname -n) 2>/dev/null | sed 1q`
20182"
20183
d9898ee8 20184_ACEOF
20185
dd184caf 20186cat >>$CONFIG_STATUS <<_ACEOF
d9898ee8 20187# Files that config.status was made for.
dd184caf 20188config_files="$ac_config_files"
20189config_headers="$ac_config_headers"
20190config_commands="$ac_config_commands"
d9898ee8 20191
dd184caf 20192_ACEOF
d9898ee8 20193
20194cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 20195ac_cs_usage="\
20196\`$as_me' instantiates files from templates according to the
20197current configuration.
20198
20199Usage: $0 [OPTIONS] [FILE]...
20200
20201 -h, --help print this help, then exit
dd184caf 20202 -V, --version print version number and configuration settings, then exit
d9898ee8 20203 -q, --quiet do not print progress messages
20204 -d, --debug don't remove temporary files
20205 --recheck update $as_me by reconfiguring in the same conditions
20206 --file=FILE[:TEMPLATE]
20207 instantiate the configuration file FILE
20208 --header=FILE[:TEMPLATE]
20209 instantiate the configuration header FILE
20210
20211Configuration files:
20212$config_files
20213
20214Configuration headers:
20215$config_headers
20216
20217Configuration commands:
20218$config_commands
20219
20220Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 20221
dd184caf 20222_ACEOF
d9898ee8 20223cat >>$CONFIG_STATUS <<_ACEOF
20224ac_cs_version="\\
20225libhmac config.status 1.00
dd184caf 20226configured by $0, generated by GNU Autoconf 2.61,
20227 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 20228
dd184caf 20229Copyright (C) 2006 Free Software Foundation, Inc.
d9898ee8 20230This config.status script is free software; the Free Software Foundation
20231gives unlimited permission to copy, distribute and modify it."
dd184caf 20232
20233ac_pwd='$ac_pwd'
20234srcdir='$srcdir'
20235INSTALL='$INSTALL'
20236MKDIR_P='$MKDIR_P'
d9898ee8 20237_ACEOF
20238
20239cat >>$CONFIG_STATUS <<\_ACEOF
20240# If no file are specified by the user, then we need to provide default
20241# value. By we need to know if files were specified by the user.
20242ac_need_defaults=:
20243while test $# != 0
20244do
20245 case $1 in
20246 --*=*)
dd184caf 20247 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20248 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d9898ee8 20249 ac_shift=:
20250 ;;
dd184caf 20251 *)
d9898ee8 20252 ac_option=$1
20253 ac_optarg=$2
20254 ac_shift=shift
20255 ;;
d9898ee8 20256 esac
20257
20258 case $ac_option in
20259 # Handling of the options.
d9898ee8 20260 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20261 ac_cs_recheck=: ;;
dd184caf 20262 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20263 echo "$ac_cs_version"; exit ;;
20264 --debug | --debu | --deb | --de | --d | -d )
d9898ee8 20265 debug=: ;;
20266 --file | --fil | --fi | --f )
20267 $ac_shift
20268 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20269 ac_need_defaults=false;;
20270 --header | --heade | --head | --hea )
20271 $ac_shift
20272 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20273 ac_need_defaults=false;;
dd184caf 20274 --he | --h)
20275 # Conflict between --help and --header
20276 { echo "$as_me: error: ambiguous option: $1
20277Try \`$0 --help' for more information." >&2
20278 { (exit 1); exit 1; }; };;
20279 --help | --hel | -h )
20280 echo "$ac_cs_usage"; exit ;;
d9898ee8 20281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20282 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20283 ac_cs_silent=: ;;
20284
20285 # This is an error.
dd184caf 20286 -*) { echo "$as_me: error: unrecognized option: $1
20287Try \`$0 --help' for more information." >&2
d9898ee8 20288 { (exit 1); exit 1; }; } ;;
20289
dd184caf 20290 *) ac_config_targets="$ac_config_targets $1"
20291 ac_need_defaults=false ;;
d9898ee8 20292
20293 esac
20294 shift
20295done
20296
20297ac_configure_extra_args=
20298
20299if $ac_cs_silent; then
20300 exec 6>/dev/null
20301 ac_configure_extra_args="$ac_configure_extra_args --silent"
20302fi
20303
20304_ACEOF
20305cat >>$CONFIG_STATUS <<_ACEOF
20306if \$ac_cs_recheck; then
dd184caf 20307 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20308 CONFIG_SHELL=$SHELL
20309 export CONFIG_SHELL
20310 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9898ee8 20311fi
20312
20313_ACEOF
dd184caf 20314cat >>$CONFIG_STATUS <<\_ACEOF
20315exec 5>>config.log
20316{
20317 echo
20318 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20319## Running $as_me. ##
20320_ASBOX
20321 echo "$ac_log"
20322} >&5
d9898ee8 20323
dd184caf 20324_ACEOF
d9898ee8 20325cat >>$CONFIG_STATUS <<_ACEOF
20326#
dd184caf 20327# INIT-COMMANDS
d9898ee8 20328#
d9898ee8 20329AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20330
20331_ACEOF
20332
d9898ee8 20333cat >>$CONFIG_STATUS <<\_ACEOF
dd184caf 20334
20335# Handling of arguments.
d9898ee8 20336for ac_config_target in $ac_config_targets
20337do
dd184caf 20338 case $ac_config_target in
20339 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20340 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20341 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20342
d9898ee8 20343 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20344echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20345 { (exit 1); exit 1; }; };;
20346 esac
20347done
20348
dd184caf 20349
d9898ee8 20350# If the user did not use the arguments to specify the items to instantiate,
20351# then the envvar interface is used. Set only those that are not.
20352# We use the long form for the default assignment because of an extremely
20353# bizarre bug on SunOS 4.1.3.
20354if $ac_need_defaults; then
20355 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20356 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20357 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20358fi
20359
20360# Have a temporary directory for convenience. Make it in the build tree
dd184caf 20361# simply because there is no reason against having it here, and in addition,
d9898ee8 20362# creating and moving files from /tmp can sometimes cause problems.
dd184caf 20363# Hook for its removal unless debugging.
20364# Note that there is a small window in which the directory will not be cleaned:
20365# after its creation but before its name has been assigned to `$tmp'.
d9898ee8 20366$debug ||
20367{
dd184caf 20368 tmp=
20369 trap 'exit_status=$?
20370 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20371' 0
d9898ee8 20372 trap '{ (exit 1); exit 1; }' 1 2 13 15
20373}
d9898ee8 20374# Create a (secure) tmp directory for tmp files.
20375
20376{
dd184caf 20377 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d9898ee8 20378 test -n "$tmp" && test -d "$tmp"
20379} ||
20380{
dd184caf 20381 tmp=./conf$$-$RANDOM
20382 (umask 077 && mkdir "$tmp")
d9898ee8 20383} ||
20384{
20385 echo "$me: cannot create a temporary directory in ." >&2
20386 { (exit 1); exit 1; }
20387}
20388
d9898ee8 20389#
dd184caf 20390# Set up the sed scripts for CONFIG_FILES section.
d9898ee8 20391#
20392
20393# No need to generate the scripts if there are no CONFIG_FILES.
20394# This happens for instance when ./config.status config.h
dd184caf 20395if test -n "$CONFIG_FILES"; then
d9898ee8 20396
20397_ACEOF
20398
dd184caf 20399
20400
20401ac_delim='%!_!# '
20402for ac_last_try in false false false false false :; do
20403 cat >conf$$subs.sed <<_ACEOF
20404SHELL!$SHELL$ac_delim
20405PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20406PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20407PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20408PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20409PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20410PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20411exec_prefix!$exec_prefix$ac_delim
20412prefix!$prefix$ac_delim
20413program_transform_name!$program_transform_name$ac_delim
20414bindir!$bindir$ac_delim
20415sbindir!$sbindir$ac_delim
20416libexecdir!$libexecdir$ac_delim
20417datarootdir!$datarootdir$ac_delim
20418datadir!$datadir$ac_delim
20419sysconfdir!$sysconfdir$ac_delim
20420sharedstatedir!$sharedstatedir$ac_delim
20421localstatedir!$localstatedir$ac_delim
20422includedir!$includedir$ac_delim
20423oldincludedir!$oldincludedir$ac_delim
20424docdir!$docdir$ac_delim
20425infodir!$infodir$ac_delim
20426htmldir!$htmldir$ac_delim
20427dvidir!$dvidir$ac_delim
20428pdfdir!$pdfdir$ac_delim
20429psdir!$psdir$ac_delim
20430libdir!$libdir$ac_delim
20431localedir!$localedir$ac_delim
20432mandir!$mandir$ac_delim
20433DEFS!$DEFS$ac_delim
20434ECHO_C!$ECHO_C$ac_delim
20435ECHO_N!$ECHO_N$ac_delim
20436ECHO_T!$ECHO_T$ac_delim
20437LIBS!$LIBS$ac_delim
20438build_alias!$build_alias$ac_delim
20439host_alias!$host_alias$ac_delim
20440target_alias!$target_alias$ac_delim
20441INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20442INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20443INSTALL_DATA!$INSTALL_DATA$ac_delim
20444am__isrc!$am__isrc$ac_delim
20445CYGPATH_W!$CYGPATH_W$ac_delim
20446PACKAGE!$PACKAGE$ac_delim
20447VERSION!$VERSION$ac_delim
20448ACLOCAL!$ACLOCAL$ac_delim
20449AUTOCONF!$AUTOCONF$ac_delim
20450AUTOMAKE!$AUTOMAKE$ac_delim
20451AUTOHEADER!$AUTOHEADER$ac_delim
20452MAKEINFO!$MAKEINFO$ac_delim
20453install_sh!$install_sh$ac_delim
20454STRIP!$STRIP$ac_delim
20455INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20456mkdir_p!$mkdir_p$ac_delim
20457AWK!$AWK$ac_delim
20458SET_MAKE!$SET_MAKE$ac_delim
20459am__leading_dot!$am__leading_dot$ac_delim
20460AMTAR!$AMTAR$ac_delim
20461am__tar!$am__tar$ac_delim
20462am__untar!$am__untar$ac_delim
20463LN_S!$LN_S$ac_delim
20464CC!$CC$ac_delim
20465CFLAGS!$CFLAGS$ac_delim
20466LDFLAGS!$LDFLAGS$ac_delim
20467CPPFLAGS!$CPPFLAGS$ac_delim
20468ac_ct_CC!$ac_ct_CC$ac_delim
20469EXEEXT!$EXEEXT$ac_delim
20470OBJEXT!$OBJEXT$ac_delim
20471DEPDIR!$DEPDIR$ac_delim
20472am__include!$am__include$ac_delim
20473am__quote!$am__quote$ac_delim
20474AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20475AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20476AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20477CCDEPMODE!$CCDEPMODE$ac_delim
20478am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20479am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20480build!$build$ac_delim
20481build_cpu!$build_cpu$ac_delim
20482build_vendor!$build_vendor$ac_delim
20483build_os!$build_os$ac_delim
20484host!$host$ac_delim
20485host_cpu!$host_cpu$ac_delim
20486host_vendor!$host_vendor$ac_delim
20487host_os!$host_os$ac_delim
20488SED!$SED$ac_delim
20489GREP!$GREP$ac_delim
20490EGREP!$EGREP$ac_delim
20491ECHO!$ECHO$ac_delim
20492AR!$AR$ac_delim
20493RANLIB!$RANLIB$ac_delim
20494CPP!$CPP$ac_delim
20495CXX!$CXX$ac_delim
20496CXXFLAGS!$CXXFLAGS$ac_delim
20497ac_ct_CXX!$ac_ct_CXX$ac_delim
20498CXXDEPMODE!$CXXDEPMODE$ac_delim
20499am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20500am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20501_ACEOF
20502
20503 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20504 break
20505 elif $ac_last_try; then
20506 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20507echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20508 { (exit 1); exit 1; }; }
20509 else
20510 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d9898ee8 20511 fi
dd184caf 20512done
d9898ee8 20513
dd184caf 20514ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20515if test -n "$ac_eof"; then
20516 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20517 ac_eof=`expr $ac_eof + 1`
20518fi
20519
20520cat >>$CONFIG_STATUS <<_ACEOF
20521cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20522/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
d9898ee8 20523_ACEOF
dd184caf 20524sed '
20525s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20526s/^/s,@/; s/!/@,|#_!!_#|/
20527:n
20528t n
20529s/'"$ac_delim"'$/,g/; t
20530s/$/\\/; p
20531N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20532' >>$CONFIG_STATUS <conf$$subs.sed
20533rm -f conf$$subs.sed
20534cat >>$CONFIG_STATUS <<_ACEOF
20535CEOF$ac_eof
20536_ACEOF
20537
20538
20539ac_delim='%!_!# '
20540for ac_last_try in false false false false false :; do
20541 cat >conf$$subs.sed <<_ACEOF
20542CXXCPP!$CXXCPP$ac_delim
20543F77!$F77$ac_delim
20544FFLAGS!$FFLAGS$ac_delim
20545ac_ct_F77!$ac_ct_F77$ac_delim
20546LIBTOOL!$LIBTOOL$ac_delim
20547hashlibs!$hashlibs$ac_delim
20548TESTPROGS!$TESTPROGS$ac_delim
20549LIBOBJS!$LIBOBJS$ac_delim
20550LTLIBOBJS!$LTLIBOBJS$ac_delim
20551_ACEOF
20552
20553 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
20554 break
20555 elif $ac_last_try; then
20556 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20557echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20558 { (exit 1); exit 1; }; }
20559 else
20560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20561 fi
20562done
20563
20564ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20565if test -n "$ac_eof"; then
20566 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20567 ac_eof=`expr $ac_eof + 1`
20568fi
20569
20570cat >>$CONFIG_STATUS <<_ACEOF
20571cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20572/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20573_ACEOF
20574sed '
20575s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20576s/^/s,@/; s/!/@,|#_!!_#|/
20577:n
20578t n
20579s/'"$ac_delim"'$/,g/; t
20580s/$/\\/; p
20581N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20582' >>$CONFIG_STATUS <conf$$subs.sed
20583rm -f conf$$subs.sed
20584cat >>$CONFIG_STATUS <<_ACEOF
20585:end
20586s/|#_!!_#|//g
20587CEOF$ac_eof
20588_ACEOF
20589
20590
20591# VPATH may cause trouble with some makes, so we remove $(srcdir),
20592# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20593# trailing colons and then remove the whole line if VPATH becomes empty
20594# (actually we leave an empty line to preserve line numbers).
20595if test "x$srcdir" = x.; then
20596 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20597s/:*\$(srcdir):*/:/
20598s/:*\${srcdir}:*/:/
20599s/:*@srcdir@:*/:/
20600s/^\([^=]*=[ ]*\):*/\1/
20601s/:*$//
20602s/^[^=]*=[ ]*$//
20603}'
20604fi
20605
d9898ee8 20606cat >>$CONFIG_STATUS <<\_ACEOF
dd184caf 20607fi # test -n "$CONFIG_FILES"
20608
20609
20610for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20611do
20612 case $ac_tag in
20613 :[FHLC]) ac_mode=$ac_tag; continue;;
20614 esac
20615 case $ac_mode$ac_tag in
20616 :[FHL]*:*);;
20617 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20618echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20619 { (exit 1); exit 1; }; };;
20620 :[FH]-) ac_tag=-:-;;
20621 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20622 esac
20623 ac_save_IFS=$IFS
20624 IFS=:
20625 set x $ac_tag
20626 IFS=$ac_save_IFS
20627 shift
20628 ac_file=$1
20629 shift
20630
20631 case $ac_mode in
20632 :L) ac_source=$1;;
20633 :[FH])
20634 ac_file_inputs=
20635 for ac_f
20636 do
20637 case $ac_f in
20638 -) ac_f="$tmp/stdin";;
20639 *) # Look for the file first in the build tree, then in the source tree
20640 # (if the path is not absolute). The absolute path cannot be DOS-style,
20641 # because $ac_f cannot contain `:'.
20642 test -f "$ac_f" ||
20643 case $ac_f in
20644 [\\/$]*) false;;
20645 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20646 esac ||
20647 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20648echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20649 { (exit 1); exit 1; }; };;
20650 esac
20651 ac_file_inputs="$ac_file_inputs $ac_f"
20652 done
20653
20654 # Let's still pretend it is `configure' which instantiates (i.e., don't
20655 # use $as_me), people would be surprised to read:
20656 # /* config.h. Generated by config.status. */
20657 configure_input="Generated from "`IFS=:
20658 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20659 if test x"$ac_file" != x-; then
20660 configure_input="$ac_file. $configure_input"
20661 { echo "$as_me:$LINENO: creating $ac_file" >&5
20662echo "$as_me: creating $ac_file" >&6;}
20663 fi
20664
20665 case $ac_tag in
20666 *:-:* | *:-) cat >"$tmp/stdin";;
20667 esac
20668 ;;
d9898ee8 20669 esac
20670
dd184caf 20671 ac_dir=`$as_dirname -- "$ac_file" ||
d9898ee8 20672$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20673 X"$ac_file" : 'X\(//\)[^/]' \| \
20674 X"$ac_file" : 'X\(//\)$' \| \
dd184caf 20675 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 20676echo X"$ac_file" |
dd184caf 20677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20678 s//\1/
20679 q
20680 }
20681 /^X\(\/\/\)[^/].*/{
20682 s//\1/
20683 q
20684 }
20685 /^X\(\/\/\)$/{
20686 s//\1/
20687 q
20688 }
20689 /^X\(\/\).*/{
20690 s//\1/
20691 q
20692 }
20693 s/.*/./; q'`
20694 { as_dir="$ac_dir"
20695 case $as_dir in #(
20696 -*) as_dir=./$as_dir;;
20697 esac
20698 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 20699 as_dirs=
dd184caf 20700 while :; do
20701 case $as_dir in #(
20702 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20703 *) as_qdir=$as_dir;;
20704 esac
20705 as_dirs="'$as_qdir' $as_dirs"
20706 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 20707$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20708 X"$as_dir" : 'X\(//\)[^/]' \| \
20709 X"$as_dir" : 'X\(//\)$' \| \
dd184caf 20710 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 20711echo X"$as_dir" |
dd184caf 20712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20713 s//\1/
20714 q
20715 }
20716 /^X\(\/\/\)[^/].*/{
20717 s//\1/
20718 q
20719 }
20720 /^X\(\/\/\)$/{
20721 s//\1/
20722 q
20723 }
20724 /^X\(\/\).*/{
20725 s//\1/
20726 q
20727 }
20728 s/.*/./; q'`
20729 test -d "$as_dir" && break
d9898ee8 20730 done
dd184caf 20731 test -z "$as_dirs" || eval "mkdir $as_dirs"
20732 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20733echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 20734 { (exit 1); exit 1; }; }; }
d9898ee8 20735 ac_builddir=.
20736
dd184caf 20737case "$ac_dir" in
20738.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20739*)
d9898ee8 20740 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
dd184caf 20741 # A ".." for each directory in $ac_dir_suffix.
20742 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20743 case $ac_top_builddir_sub in
20744 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20745 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20746 esac ;;
20747esac
20748ac_abs_top_builddir=$ac_pwd
20749ac_abs_builddir=$ac_pwd$ac_dir_suffix
20750# for backward compatibility:
20751ac_top_builddir=$ac_top_build_prefix
d9898ee8 20752
20753case $srcdir in
dd184caf 20754 .) # We are building in place.
d9898ee8 20755 ac_srcdir=.
dd184caf 20756 ac_top_srcdir=$ac_top_builddir_sub
20757 ac_abs_top_srcdir=$ac_pwd ;;
20758 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 20759 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 20760 ac_top_srcdir=$srcdir
20761 ac_abs_top_srcdir=$srcdir ;;
20762 *) # Relative name.
20763 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20764 ac_top_srcdir=$ac_top_build_prefix$srcdir
20765 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 20766esac
dd184caf 20767ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 20768
d9898ee8 20769
dd184caf 20770 case $ac_mode in
20771 :F)
20772 #
20773 # CONFIG_FILE
20774 #
d9898ee8 20775
20776 case $INSTALL in
20777 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
dd184caf 20778 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d9898ee8 20779 esac
dd184caf 20780 ac_MKDIR_P=$MKDIR_P
20781 case $MKDIR_P in
20782 [\\/$]* | ?:[\\/]* ) ;;
20783 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20784 esac
20785_ACEOF
d9898ee8 20786
dd184caf 20787cat >>$CONFIG_STATUS <<\_ACEOF
20788# If the template does not know about datarootdir, expand it.
20789# FIXME: This hack should be removed a few years after 2.60.
20790ac_datarootdir_hack=; ac_datarootdir_seen=
20791
20792case `sed -n '/datarootdir/ {
20793 p
20794 q
20795}
20796/@datadir@/p
20797/@docdir@/p
20798/@infodir@/p
20799/@localedir@/p
20800/@mandir@/p
20801' $ac_file_inputs` in
20802*datarootdir*) ac_datarootdir_seen=yes;;
20803*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20804 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20805echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 20806_ACEOF
dd184caf 20807cat >>$CONFIG_STATUS <<_ACEOF
20808 ac_datarootdir_hack='
20809 s&@datadir@&$datadir&g
20810 s&@docdir@&$docdir&g
20811 s&@infodir@&$infodir&g
20812 s&@localedir@&$localedir&g
20813 s&@mandir@&$mandir&g
20814 s&\\\${datarootdir}&$datarootdir&g' ;;
20815esac
20816_ACEOF
20817
20818# Neutralize VPATH when `$srcdir' = `.'.
20819# Shell code in configure.ac might set extrasub.
20820# FIXME: do we really want to maintain this feature?
d9898ee8 20821cat >>$CONFIG_STATUS <<_ACEOF
20822 sed "$ac_vpsub
20823$extrasub
20824_ACEOF
20825cat >>$CONFIG_STATUS <<\_ACEOF
20826:t
20827/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
dd184caf 20828s&@configure_input@&$configure_input&;t t
20829s&@top_builddir@&$ac_top_builddir_sub&;t t
20830s&@srcdir@&$ac_srcdir&;t t
20831s&@abs_srcdir@&$ac_abs_srcdir&;t t
20832s&@top_srcdir@&$ac_top_srcdir&;t t
20833s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20834s&@builddir@&$ac_builddir&;t t
20835s&@abs_builddir@&$ac_abs_builddir&;t t
20836s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20837s&@INSTALL@&$ac_INSTALL&;t t
20838s&@MKDIR_P@&$ac_MKDIR_P&;t t
20839$ac_datarootdir_hack
20840" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20841
20842test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20843 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20844 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20845 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20846which seems to be undefined. Please make sure it is defined." >&5
20847echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20848which seems to be undefined. Please make sure it is defined." >&2;}
20849
20850 rm -f "$tmp/stdin"
d9898ee8 20851 case $ac_file in
dd184caf 20852 -) cat "$tmp/out"; rm -f "$tmp/out";;
20853 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
d9898ee8 20854 esac
dd184caf 20855 ;;
20856 :H)
20857 #
20858 # CONFIG_HEADER
20859 #
d9898ee8 20860_ACEOF
20861
dd184caf 20862# Transform confdefs.h into a sed script `conftest.defines', that
20863# substitutes the proper values into config.h.in to produce config.h.
20864rm -f conftest.defines conftest.tail
20865# First, append a space to every undef/define line, to ease matching.
20866echo 's/$/ /' >conftest.defines
20867# Then, protect against being on the right side of a sed subst, or in
20868# an unquoted here document, in config.status. If some macros were
20869# called several times there might be several #defines for the same
20870# symbol, which is useless. But do not sort them, since the last
20871# AC_DEFINE must be honored.
20872ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20873# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20874# NAME is the cpp macro being defined, VALUE is the value it is being given.
20875# PARAMS is the parameter list in the macro definition--in most cases, it's
20876# just an empty string.
20877ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20878ac_dB='\\)[ (].*,\\1define\\2'
20879ac_dC=' '
20880ac_dD=' ,'
20881
20882uniq confdefs.h |
20883 sed -n '
20884 t rset
20885 :rset
20886 s/^[ ]*#[ ]*define[ ][ ]*//
20887 t ok
20888 d
20889 :ok
20890 s/[\\&,]/\\&/g
20891 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20892 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20893 ' >>conftest.defines
20894
20895# Remove the space that was appended to ease matching.
20896# Then replace #undef with comments. This is necessary, for
d9898ee8 20897# example, in the case of _POSIX_SOURCE, which is predefined and required
20898# on some systems where configure will not decide to define it.
dd184caf 20899# (The regexp can be short, since the line contains either #define or #undef.)
20900echo 's/ $//
20901s,^[ #]*u.*,/* & */,' >>conftest.defines
20902
20903# Break up conftest.defines:
20904ac_max_sed_lines=50
20905
20906# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20907# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20908# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20909# et cetera.
20910ac_in='$ac_file_inputs'
20911ac_out='"$tmp/out1"'
20912ac_nxt='"$tmp/out2"'
20913
20914while :
d9898ee8 20915do
dd184caf 20916 # Write a here document:
20917 cat >>$CONFIG_STATUS <<_ACEOF
20918 # First, check the format of the line:
20919 cat >"\$tmp/defines.sed" <<\\CEOF
20920/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20921/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20922b
20923:def
20924_ACEOF
20925 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
d9898ee8 20926 echo 'CEOF
dd184caf 20927 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20928 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20929 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20930 grep . conftest.tail >/dev/null || break
d9898ee8 20931 rm -f conftest.defines
20932 mv conftest.tail conftest.defines
20933done
dd184caf 20934rm -f conftest.defines conftest.tail
d9898ee8 20935
dd184caf 20936echo "ac_result=$ac_in" >>$CONFIG_STATUS
d9898ee8 20937cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 20938 if test x"$ac_file" != x-; then
dd184caf 20939 echo "/* $configure_input */" >"$tmp/config.h"
20940 cat "$ac_result" >>"$tmp/config.h"
20941 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
d9898ee8 20942 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20943echo "$as_me: $ac_file is unchanged" >&6;}
20944 else
d9898ee8 20945 rm -f $ac_file
dd184caf 20946 mv "$tmp/config.h" $ac_file
d9898ee8 20947 fi
20948 else
dd184caf 20949 echo "/* $configure_input */"
20950 cat "$ac_result"
d9898ee8 20951 fi
dd184caf 20952 rm -f "$tmp/out12"
d9898ee8 20953# Compute $ac_file's index in $config_headers.
20954_am_stamp_count=1
20955for _am_header in $config_headers :; do
20956 case $_am_header in
20957 $ac_file | $ac_file:* )
20958 break ;;
20959 * )
20960 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20961 esac
20962done
dd184caf 20963echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
d9898ee8 20964$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20965 X$ac_file : 'X\(//\)[^/]' \| \
20966 X$ac_file : 'X\(//\)$' \| \
dd184caf 20967 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 20968echo X$ac_file |
dd184caf 20969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20970 s//\1/
20971 q
20972 }
20973 /^X\(\/\/\)[^/].*/{
20974 s//\1/
20975 q
20976 }
20977 /^X\(\/\/\)$/{
20978 s//\1/
20979 q
20980 }
20981 /^X\(\/\).*/{
20982 s//\1/
20983 q
20984 }
20985 s/.*/./; q'`/stamp-h$_am_stamp_count
20986 ;;
d9898ee8 20987
dd184caf 20988 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20989echo "$as_me: executing $ac_file commands" >&6;}
20990 ;;
20991 esac
d9898ee8 20992
20993
dd184caf 20994 case $ac_file$ac_mode in
20995 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
d9898ee8 20996 # Strip MF so we end up with the name of the file.
20997 mf=`echo "$mf" | sed -e 's/:.*$//'`
20998 # Check whether this is an Automake generated Makefile or not.
20999 # We used to match only the files named `Makefile.in', but
21000 # some people rename them; so instead we look at the file content.
21001 # Grep'ing the first line is not enough: some people post-process
21002 # each Makefile.in and add a new line on top of each file to say so.
dd184caf 21003 # Grep'ing the whole file is not good either: AIX grep has a line
21004 # limit of 2048, but all sed's we know have understand at least 4000.
21005 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21006 dirpart=`$as_dirname -- "$mf" ||
d9898ee8 21007$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21008 X"$mf" : 'X\(//\)[^/]' \| \
21009 X"$mf" : 'X\(//\)$' \| \
dd184caf 21010 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21011echo X"$mf" |
dd184caf 21012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21013 s//\1/
21014 q
21015 }
21016 /^X\(\/\/\)[^/].*/{
21017 s//\1/
21018 q
21019 }
21020 /^X\(\/\/\)$/{
21021 s//\1/
21022 q
21023 }
21024 /^X\(\/\).*/{
21025 s//\1/
21026 q
21027 }
21028 s/.*/./; q'`
d9898ee8 21029 else
21030 continue
21031 fi
21032 # Extract the definition of DEPDIR, am__include, and am__quote
21033 # from the Makefile without running `make'.
21034 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21035 test -z "$DEPDIR" && continue
21036 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21037 test -z "am__include" && continue
21038 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21039 # When using ansi2knr, U may be empty or an underscore; expand it
21040 U=`sed -n 's/^U = //p' < "$mf"`
21041 # Find all dependency output files, they are included files with
21042 # $(DEPDIR) in their names. We invoke sed twice because it is the
21043 # simplest approach to changing $(DEPDIR) to its actual value in the
21044 # expansion.
21045 for file in `sed -n "
21046 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21047 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21048 # Make sure the directory exists.
21049 test -f "$dirpart/$file" && continue
dd184caf 21050 fdir=`$as_dirname -- "$file" ||
d9898ee8 21051$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21052 X"$file" : 'X\(//\)[^/]' \| \
21053 X"$file" : 'X\(//\)$' \| \
dd184caf 21054 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21055echo X"$file" |
dd184caf 21056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21057 s//\1/
21058 q
21059 }
21060 /^X\(\/\/\)[^/].*/{
21061 s//\1/
21062 q
21063 }
21064 /^X\(\/\/\)$/{
21065 s//\1/
21066 q
21067 }
21068 /^X\(\/\).*/{
21069 s//\1/
21070 q
21071 }
21072 s/.*/./; q'`
21073 { as_dir=$dirpart/$fdir
21074 case $as_dir in #(
21075 -*) as_dir=./$as_dir;;
21076 esac
21077 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 21078 as_dirs=
dd184caf 21079 while :; do
21080 case $as_dir in #(
21081 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21082 *) as_qdir=$as_dir;;
21083 esac
21084 as_dirs="'$as_qdir' $as_dirs"
21085 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 21086$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21087 X"$as_dir" : 'X\(//\)[^/]' \| \
21088 X"$as_dir" : 'X\(//\)$' \| \
dd184caf 21089 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21090echo X"$as_dir" |
dd184caf 21091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21092 s//\1/
21093 q
21094 }
21095 /^X\(\/\/\)[^/].*/{
21096 s//\1/
21097 q
21098 }
21099 /^X\(\/\/\)$/{
21100 s//\1/
21101 q
21102 }
21103 /^X\(\/\).*/{
21104 s//\1/
21105 q
21106 }
21107 s/.*/./; q'`
21108 test -d "$as_dir" && break
d9898ee8 21109 done
dd184caf 21110 test -z "$as_dirs" || eval "mkdir $as_dirs"
21111 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21112echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 21113 { (exit 1); exit 1; }; }; }
d9898ee8 21114 # echo "creating $dirpart/$file"
21115 echo '# dummy' > "$dirpart/$file"
21116 done
21117done
21118 ;;
dd184caf 21119
d9898ee8 21120 esac
dd184caf 21121done # for ac_tag
d9898ee8 21122
d9898ee8 21123
21124{ (exit 0); exit 0; }
21125_ACEOF
21126chmod +x $CONFIG_STATUS
21127ac_clean_files=$ac_clean_files_save
21128
21129
21130# configure is writing to config.log, and then calls config.status.
21131# config.status does its own redirection, appending to config.log.
21132# Unfortunately, on DOS this fails, as config.log is still kept open
21133# by configure, so config.status won't be able to write to it; its
21134# output is simply discarded. So we exec the FD to /dev/null,
21135# effectively closing config.log, so it can be properly (re)opened and
21136# appended to by config.status. When coming back to configure, we
21137# need to make the FD available again.
21138if test "$no_create" != yes; then
21139 ac_cs_success=:
21140 ac_config_status_args=
21141 test "$silent" = yes &&
21142 ac_config_status_args="$ac_config_status_args --quiet"
21143 exec 5>/dev/null
21144 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21145 exec 5>>config.log
21146 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21147 # would make configure fail if this is the last instruction.
21148 $ac_cs_success || { (exit 1); exit 1; }
21149fi
21150