Imported upstream version 0.61.0
[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
ac40fd9e 3809 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
d9898ee8 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
ac40fd9e 4201{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4202echo $ECHO_N "checking how to recognize 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
ac40fd9e 4243 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4244 # unless we find 'file', for example because we are cross-compiling.
4245 if ( file / ) >/dev/null 2>&1; then
4246 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4247 lt_cv_file_magic_cmd='func_win32_libid'
4248 else
4249 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4250 lt_cv_file_magic_cmd='$OBJDUMP -f'
4251 fi
d9898ee8 4252 ;;
4253
4254darwin* | rhapsody*)
4255 lt_cv_deplibs_check_method=pass_all
4256 ;;
4257
ac40fd9e 4258freebsd* | dragonfly*)
d9898ee8 4259 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4260 case $host_cpu in
4261 i*86 )
4262 # Not sure whether the presence of OpenBSD here was a mistake.
4263 # Let's accept both of them until this is cleared up.
4264 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4265 lt_cv_file_magic_cmd=/usr/bin/file
4266 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4267 ;;
4268 esac
4269 else
4270 lt_cv_deplibs_check_method=pass_all
4271 fi
4272 ;;
4273
4274gnu*)
4275 lt_cv_deplibs_check_method=pass_all
4276 ;;
4277
4278hpux10.20* | hpux11*)
4279 lt_cv_file_magic_cmd=/usr/bin/file
4280 case $host_cpu in
4281 ia64*)
4282 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4283 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4284 ;;
4285 hppa*64*)
4286 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]'
4287 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4288 ;;
4289 *)
4290 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4291 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4292 ;;
4293 esac
4294 ;;
4295
ac40fd9e 4296interix[3-9]*)
d9898ee8 4297 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4299 ;;
4300
4301irix5* | irix6* | nonstopux*)
4302 case $LD in
4303 *-32|*"-32 ") libmagic=32-bit;;
4304 *-n32|*"-n32 ") libmagic=N32;;
4305 *-64|*"-64 ") libmagic=64-bit;;
4306 *) libmagic=never-match;;
4307 esac
4308 lt_cv_deplibs_check_method=pass_all
4309 ;;
4310
4311# This must be Linux ELF.
ac40fd9e 4312linux* | k*bsd*-gnu)
d9898ee8 4313 lt_cv_deplibs_check_method=pass_all
4314 ;;
4315
4316netbsd*)
4317 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4319 else
4320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4321 fi
4322 ;;
4323
4324newos6*)
4325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4326 lt_cv_file_magic_cmd=/usr/bin/file
4327 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4328 ;;
4329
4330nto-qnx*)
4331 lt_cv_deplibs_check_method=unknown
4332 ;;
4333
4334openbsd*)
4335 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4337 else
4338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4339 fi
4340 ;;
4341
4342osf3* | osf4* | osf5*)
4343 lt_cv_deplibs_check_method=pass_all
4344 ;;
4345
ac40fd9e 4346rdos*)
4347 lt_cv_deplibs_check_method=pass_all
4348 ;;
4349
d9898ee8 4350solaris*)
4351 lt_cv_deplibs_check_method=pass_all
4352 ;;
4353
4354sysv4 | sysv4.3*)
4355 case $host_vendor in
4356 motorola)
4357 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]'
4358 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4359 ;;
4360 ncr)
4361 lt_cv_deplibs_check_method=pass_all
4362 ;;
4363 sequent)
4364 lt_cv_file_magic_cmd='/bin/file'
4365 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4366 ;;
4367 sni)
4368 lt_cv_file_magic_cmd='/bin/file'
4369 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4370 lt_cv_file_magic_test_file=/lib/libc.so
4371 ;;
4372 siemens)
4373 lt_cv_deplibs_check_method=pass_all
4374 ;;
4375 pc)
4376 lt_cv_deplibs_check_method=pass_all
4377 ;;
4378 esac
4379 ;;
4380
4381sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4382 lt_cv_deplibs_check_method=pass_all
4383 ;;
4384esac
4385
4386fi
dd184caf 4387{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4388echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
d9898ee8 4389file_magic_cmd=$lt_cv_file_magic_cmd
4390deplibs_check_method=$lt_cv_deplibs_check_method
4391test -z "$deplibs_check_method" && deplibs_check_method=unknown
4392
4393
4394
4395
4396# If no C compiler was specified, use CC.
4397LTCC=${LTCC-"$CC"}
4398
4399# If no C compiler flags were specified, use CFLAGS.
4400LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4401
4402# Allow CC to be a program name with arguments.
4403compiler=$CC
4404
4405
dd184caf 4406# Check whether --enable-libtool-lock was given.
d9898ee8 4407if test "${enable_libtool_lock+set}" = set; then
dd184caf 4408 enableval=$enable_libtool_lock;
4409fi
d9898ee8 4410
d9898ee8 4411test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4412
4413# Some flags need to be propagated to the compiler or linker for good
4414# libtool support.
4415case $host in
4416ia64-*-hpux*)
4417 # Find out which ABI we are using.
4418 echo 'int i;' > conftest.$ac_ext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; then
4424 case `/usr/bin/file conftest.$ac_objext` in
4425 *ELF-32*)
4426 HPUX_IA64_MODE="32"
4427 ;;
4428 *ELF-64*)
4429 HPUX_IA64_MODE="64"
4430 ;;
4431 esac
4432 fi
4433 rm -rf conftest*
4434 ;;
4435*-*-irix6*)
4436 # Find out which ABI we are using.
ac40fd9e 4437 echo '#line 4437 "configure"' > conftest.$ac_ext
d9898ee8 4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439 (eval $ac_compile) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; then
4443 if test "$lt_cv_prog_gnu_ld" = yes; then
4444 case `/usr/bin/file conftest.$ac_objext` in
4445 *32-bit*)
4446 LD="${LD-ld} -melf32bsmip"
4447 ;;
4448 *N32*)
4449 LD="${LD-ld} -melf32bmipn32"
4450 ;;
4451 *64-bit*)
4452 LD="${LD-ld} -melf64bmip"
4453 ;;
4454 esac
4455 else
4456 case `/usr/bin/file conftest.$ac_objext` in
4457 *32-bit*)
4458 LD="${LD-ld} -32"
4459 ;;
4460 *N32*)
4461 LD="${LD-ld} -n32"
4462 ;;
4463 *64-bit*)
4464 LD="${LD-ld} -64"
4465 ;;
4466 esac
4467 fi
4468 fi
4469 rm -rf conftest*
4470 ;;
4471
ac40fd9e 4472x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4473s390*-*linux*|sparc*-*linux*)
d9898ee8 4474 # Find out which ABI we are using.
4475 echo 'int i;' > conftest.$ac_ext
4476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4477 (eval $ac_compile) 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; then
4481 case `/usr/bin/file conftest.o` in
4482 *32-bit*)
4483 case $host in
ac40fd9e 4484 x86_64-*kfreebsd*-gnu)
4485 LD="${LD-ld} -m elf_i386_fbsd"
4486 ;;
d9898ee8 4487 x86_64-*linux*)
4488 LD="${LD-ld} -m elf_i386"
4489 ;;
4490 ppc64-*linux*|powerpc64-*linux*)
4491 LD="${LD-ld} -m elf32ppclinux"
4492 ;;
4493 s390x-*linux*)
4494 LD="${LD-ld} -m elf_s390"
4495 ;;
4496 sparc64-*linux*)
4497 LD="${LD-ld} -m elf32_sparc"
4498 ;;
4499 esac
4500 ;;
4501 *64-bit*)
ac40fd9e 4502 libsuff=64
d9898ee8 4503 case $host in
ac40fd9e 4504 x86_64-*kfreebsd*-gnu)
4505 LD="${LD-ld} -m elf_x86_64_fbsd"
4506 ;;
d9898ee8 4507 x86_64-*linux*)
4508 LD="${LD-ld} -m elf_x86_64"
4509 ;;
4510 ppc*-*linux*|powerpc*-*linux*)
4511 LD="${LD-ld} -m elf64ppc"
4512 ;;
4513 s390*-*linux*)
4514 LD="${LD-ld} -m elf64_s390"
4515 ;;
4516 sparc*-*linux*)
4517 LD="${LD-ld} -m elf64_sparc"
4518 ;;
4519 esac
4520 ;;
4521 esac
4522 fi
4523 rm -rf conftest*
4524 ;;
4525
4526*-*-sco3.2v5*)
4527 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4528 SAVE_CFLAGS="$CFLAGS"
4529 CFLAGS="$CFLAGS -belf"
dd184caf 4530 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4531echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d9898ee8 4532if test "${lt_cv_cc_needs_belf+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4534else
4535 ac_ext=c
4536ac_cpp='$CPP $CPPFLAGS'
4537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540
4541 cat >conftest.$ac_ext <<_ACEOF
4542/* confdefs.h. */
4543_ACEOF
4544cat confdefs.h >>conftest.$ac_ext
4545cat >>conftest.$ac_ext <<_ACEOF
4546/* end confdefs.h. */
4547
4548int
4549main ()
4550{
4551
4552 ;
4553 return 0;
4554}
4555_ACEOF
4556rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 4557if { (ac_try="$ac_link"
4558case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4561esac
4562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563 (eval "$ac_link") 2>conftest.er1
d9898ee8 4564 ac_status=$?
4565 grep -v '^ *+' conftest.er1 >conftest.err
4566 rm -f conftest.er1
4567 cat conftest.err >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4569 (exit $ac_status); } && {
4570 test -z "$ac_c_werror_flag" ||
4571 test ! -s conftest.err
4572 } && test -s conftest$ac_exeext &&
4573 $as_test_x conftest$ac_exeext; then
d9898ee8 4574 lt_cv_cc_needs_belf=yes
4575else
4576 echo "$as_me: failed program was:" >&5
4577sed 's/^/| /' conftest.$ac_ext >&5
4578
dd184caf 4579 lt_cv_cc_needs_belf=no
d9898ee8 4580fi
dd184caf 4581
4582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 4583 conftest$ac_exeext conftest.$ac_ext
4584 ac_ext=c
4585ac_cpp='$CPP $CPPFLAGS'
4586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589
4590fi
dd184caf 4591{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4592echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
d9898ee8 4593 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4594 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4595 CFLAGS="$SAVE_CFLAGS"
4596 fi
4597 ;;
4598sparc*-*solaris*)
4599 # Find out which ABI we are using.
4600 echo 'int i;' > conftest.$ac_ext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; then
4606 case `/usr/bin/file conftest.o` in
4607 *64-bit*)
4608 case $lt_cv_prog_gnu_ld in
4609 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4610 *) LD="${LD-ld} -64" ;;
4611 esac
4612 ;;
4613 esac
4614 fi
4615 rm -rf conftest*
4616 ;;
4617
4618
4619esac
4620
4621need_locks="$enable_libtool_lock"
4622
4623
4624ac_ext=c
4625ac_cpp='$CPP $CPPFLAGS'
4626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628ac_compiler_gnu=$ac_cv_c_compiler_gnu
dd184caf 4629{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4630echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d9898ee8 4631# On Suns, sometimes $CPP names a directory.
4632if test -n "$CPP" && test -d "$CPP"; then
4633 CPP=
4634fi
4635if test -z "$CPP"; then
4636 if test "${ac_cv_prog_CPP+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4638else
4639 # Double quotes because CPP needs to be expanded
4640 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4641 do
4642 ac_preproc_ok=false
4643for ac_c_preproc_warn_flag in '' yes
4644do
4645 # Use a header file that comes with gcc, so configuring glibc
4646 # with a fresh cross-compiler works.
4647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4648 # <limits.h> exists even on freestanding compilers.
4649 # On the NeXT, cc -E runs the code through the compiler's parser,
4650 # not just through cpp. "Syntax error" is here to catch this case.
4651 cat >conftest.$ac_ext <<_ACEOF
4652/* confdefs.h. */
4653_ACEOF
4654cat confdefs.h >>conftest.$ac_ext
4655cat >>conftest.$ac_ext <<_ACEOF
4656/* end confdefs.h. */
4657#ifdef __STDC__
4658# include <limits.h>
4659#else
4660# include <assert.h>
4661#endif
4662 Syntax error
4663_ACEOF
dd184caf 4664if { (ac_try="$ac_cpp conftest.$ac_ext"
4665case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4668esac
4669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4671 ac_status=$?
4672 grep -v '^ *+' conftest.er1 >conftest.err
4673 rm -f conftest.er1
4674 cat conftest.err >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4676 (exit $ac_status); } >/dev/null && {
4677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4678 test ! -s conftest.err
4679 }; then
d9898ee8 4680 :
4681else
4682 echo "$as_me: failed program was:" >&5
4683sed 's/^/| /' conftest.$ac_ext >&5
4684
4685 # Broken: fails on valid input.
4686continue
4687fi
dd184caf 4688
d9898ee8 4689rm -f conftest.err conftest.$ac_ext
4690
dd184caf 4691 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4692 # can be detected and how.
4693 cat >conftest.$ac_ext <<_ACEOF
4694/* confdefs.h. */
4695_ACEOF
4696cat confdefs.h >>conftest.$ac_ext
4697cat >>conftest.$ac_ext <<_ACEOF
4698/* end confdefs.h. */
4699#include <ac_nonexistent.h>
4700_ACEOF
dd184caf 4701if { (ac_try="$ac_cpp conftest.$ac_ext"
4702case "(($ac_try" in
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4705esac
4706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4708 ac_status=$?
4709 grep -v '^ *+' conftest.er1 >conftest.err
4710 rm -f conftest.er1
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4713 (exit $ac_status); } >/dev/null && {
4714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4715 test ! -s conftest.err
4716 }; then
d9898ee8 4717 # Broken: success on invalid input.
4718continue
4719else
4720 echo "$as_me: failed program was:" >&5
4721sed 's/^/| /' conftest.$ac_ext >&5
4722
4723 # Passes both tests.
4724ac_preproc_ok=:
4725break
4726fi
dd184caf 4727
d9898ee8 4728rm -f conftest.err conftest.$ac_ext
4729
4730done
4731# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4732rm -f conftest.err conftest.$ac_ext
4733if $ac_preproc_ok; then
4734 break
4735fi
4736
4737 done
4738 ac_cv_prog_CPP=$CPP
4739
4740fi
4741 CPP=$ac_cv_prog_CPP
4742else
4743 ac_cv_prog_CPP=$CPP
4744fi
dd184caf 4745{ echo "$as_me:$LINENO: result: $CPP" >&5
4746echo "${ECHO_T}$CPP" >&6; }
d9898ee8 4747ac_preproc_ok=false
4748for ac_c_preproc_warn_flag in '' yes
4749do
4750 # Use a header file that comes with gcc, so configuring glibc
4751 # with a fresh cross-compiler works.
4752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4753 # <limits.h> exists even on freestanding compilers.
4754 # On the NeXT, cc -E runs the code through the compiler's parser,
4755 # not just through cpp. "Syntax error" is here to catch this case.
4756 cat >conftest.$ac_ext <<_ACEOF
4757/* confdefs.h. */
4758_ACEOF
4759cat confdefs.h >>conftest.$ac_ext
4760cat >>conftest.$ac_ext <<_ACEOF
4761/* end confdefs.h. */
4762#ifdef __STDC__
4763# include <limits.h>
4764#else
4765# include <assert.h>
4766#endif
4767 Syntax error
4768_ACEOF
dd184caf 4769if { (ac_try="$ac_cpp conftest.$ac_ext"
4770case "(($ac_try" in
4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772 *) ac_try_echo=$ac_try;;
4773esac
4774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4776 ac_status=$?
4777 grep -v '^ *+' conftest.er1 >conftest.err
4778 rm -f conftest.er1
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4781 (exit $ac_status); } >/dev/null && {
4782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4783 test ! -s conftest.err
4784 }; then
d9898ee8 4785 :
4786else
4787 echo "$as_me: failed program was:" >&5
4788sed 's/^/| /' conftest.$ac_ext >&5
4789
4790 # Broken: fails on valid input.
4791continue
4792fi
dd184caf 4793
d9898ee8 4794rm -f conftest.err conftest.$ac_ext
4795
dd184caf 4796 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4797 # can be detected and how.
4798 cat >conftest.$ac_ext <<_ACEOF
4799/* confdefs.h. */
4800_ACEOF
4801cat confdefs.h >>conftest.$ac_ext
4802cat >>conftest.$ac_ext <<_ACEOF
4803/* end confdefs.h. */
4804#include <ac_nonexistent.h>
4805_ACEOF
dd184caf 4806if { (ac_try="$ac_cpp conftest.$ac_ext"
4807case "(($ac_try" in
4808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809 *) ac_try_echo=$ac_try;;
4810esac
4811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4813 ac_status=$?
4814 grep -v '^ *+' conftest.er1 >conftest.err
4815 rm -f conftest.er1
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4818 (exit $ac_status); } >/dev/null && {
4819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4820 test ! -s conftest.err
4821 }; then
d9898ee8 4822 # Broken: success on invalid input.
4823continue
4824else
4825 echo "$as_me: failed program was:" >&5
4826sed 's/^/| /' conftest.$ac_ext >&5
4827
4828 # Passes both tests.
4829ac_preproc_ok=:
4830break
4831fi
dd184caf 4832
d9898ee8 4833rm -f conftest.err conftest.$ac_ext
4834
4835done
4836# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4837rm -f conftest.err conftest.$ac_ext
4838if $ac_preproc_ok; then
4839 :
4840else
4841 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4842See \`config.log' for more details." >&5
4843echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4844See \`config.log' for more details." >&2;}
4845 { (exit 1); exit 1; }; }
4846fi
4847
4848ac_ext=c
4849ac_cpp='$CPP $CPPFLAGS'
4850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852ac_compiler_gnu=$ac_cv_c_compiler_gnu
4853
4854
dd184caf 4855{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4856echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 4857if test "${ac_cv_header_stdc+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4859else
4860 cat >conftest.$ac_ext <<_ACEOF
4861/* confdefs.h. */
4862_ACEOF
4863cat confdefs.h >>conftest.$ac_ext
4864cat >>conftest.$ac_ext <<_ACEOF
4865/* end confdefs.h. */
4866#include <stdlib.h>
4867#include <stdarg.h>
4868#include <string.h>
4869#include <float.h>
4870
4871int
4872main ()
4873{
4874
4875 ;
4876 return 0;
4877}
4878_ACEOF
4879rm -f conftest.$ac_objext
dd184caf 4880if { (ac_try="$ac_compile"
4881case "(($ac_try" in
4882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883 *) ac_try_echo=$ac_try;;
4884esac
4885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4886 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4887 ac_status=$?
4888 grep -v '^ *+' conftest.er1 >conftest.err
4889 rm -f conftest.er1
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4892 (exit $ac_status); } && {
4893 test -z "$ac_c_werror_flag" ||
4894 test ! -s conftest.err
4895 } && test -s conftest.$ac_objext; then
d9898ee8 4896 ac_cv_header_stdc=yes
4897else
4898 echo "$as_me: failed program was:" >&5
4899sed 's/^/| /' conftest.$ac_ext >&5
4900
dd184caf 4901 ac_cv_header_stdc=no
d9898ee8 4902fi
dd184caf 4903
4904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4905
4906if test $ac_cv_header_stdc = yes; then
4907 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4908 cat >conftest.$ac_ext <<_ACEOF
4909/* confdefs.h. */
4910_ACEOF
4911cat confdefs.h >>conftest.$ac_ext
4912cat >>conftest.$ac_ext <<_ACEOF
4913/* end confdefs.h. */
4914#include <string.h>
4915
4916_ACEOF
4917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4918 $EGREP "memchr" >/dev/null 2>&1; then
4919 :
4920else
4921 ac_cv_header_stdc=no
4922fi
4923rm -f conftest*
4924
4925fi
4926
4927if test $ac_cv_header_stdc = yes; then
4928 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4929 cat >conftest.$ac_ext <<_ACEOF
4930/* confdefs.h. */
4931_ACEOF
4932cat confdefs.h >>conftest.$ac_ext
4933cat >>conftest.$ac_ext <<_ACEOF
4934/* end confdefs.h. */
4935#include <stdlib.h>
4936
4937_ACEOF
4938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4939 $EGREP "free" >/dev/null 2>&1; then
4940 :
4941else
4942 ac_cv_header_stdc=no
4943fi
4944rm -f conftest*
4945
4946fi
4947
4948if test $ac_cv_header_stdc = yes; then
4949 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4950 if test "$cross_compiling" = yes; then
4951 :
4952else
4953 cat >conftest.$ac_ext <<_ACEOF
4954/* confdefs.h. */
4955_ACEOF
4956cat confdefs.h >>conftest.$ac_ext
4957cat >>conftest.$ac_ext <<_ACEOF
4958/* end confdefs.h. */
4959#include <ctype.h>
dd184caf 4960#include <stdlib.h>
d9898ee8 4961#if ((' ' & 0x0FF) == 0x020)
4962# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4963# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4964#else
4965# define ISLOWER(c) \
4966 (('a' <= (c) && (c) <= 'i') \
4967 || ('j' <= (c) && (c) <= 'r') \
4968 || ('s' <= (c) && (c) <= 'z'))
4969# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4970#endif
4971
4972#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4973int
4974main ()
4975{
4976 int i;
4977 for (i = 0; i < 256; i++)
4978 if (XOR (islower (i), ISLOWER (i))
4979 || toupper (i) != TOUPPER (i))
dd184caf 4980 return 2;
4981 return 0;
d9898ee8 4982}
4983_ACEOF
4984rm -f conftest$ac_exeext
dd184caf 4985if { (ac_try="$ac_link"
4986case "(($ac_try" in
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4989esac
4990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4991 (eval "$ac_link") 2>&5
d9898ee8 4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 4995 { (case "(($ac_try" in
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4998esac
4999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5000 (eval "$ac_try") 2>&5
d9898ee8 5001 ac_status=$?
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; }; then
5004 :
5005else
5006 echo "$as_me: program exited with status $ac_status" >&5
5007echo "$as_me: failed program was:" >&5
5008sed 's/^/| /' conftest.$ac_ext >&5
5009
5010( exit $ac_status )
5011ac_cv_header_stdc=no
5012fi
dd184caf 5013rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 5014fi
dd184caf 5015
5016
d9898ee8 5017fi
5018fi
dd184caf 5019{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5020echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 5021if test $ac_cv_header_stdc = yes; then
5022
5023cat >>confdefs.h <<\_ACEOF
5024#define STDC_HEADERS 1
5025_ACEOF
5026
5027fi
5028
5029# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5040 inttypes.h stdint.h unistd.h
5041do
5042as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 5043{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047else
5048 cat >conftest.$ac_ext <<_ACEOF
5049/* confdefs.h. */
5050_ACEOF
5051cat confdefs.h >>conftest.$ac_ext
5052cat >>conftest.$ac_ext <<_ACEOF
5053/* end confdefs.h. */
5054$ac_includes_default
5055
5056#include <$ac_header>
5057_ACEOF
5058rm -f conftest.$ac_objext
dd184caf 5059if { (ac_try="$ac_compile"
5060case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063esac
5064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5071 (exit $ac_status); } && {
5072 test -z "$ac_c_werror_flag" ||
5073 test ! -s conftest.err
5074 } && test -s conftest.$ac_objext; then
d9898ee8 5075 eval "$as_ac_Header=yes"
5076else
5077 echo "$as_me: failed program was:" >&5
5078sed 's/^/| /' conftest.$ac_ext >&5
5079
dd184caf 5080 eval "$as_ac_Header=no"
d9898ee8 5081fi
dd184caf 5082
5083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5084fi
dd184caf 5085ac_res=`eval echo '${'$as_ac_Header'}'`
5086 { echo "$as_me:$LINENO: result: $ac_res" >&5
5087echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5088if test `eval echo '${'$as_ac_Header'}'` = yes; then
5089 cat >>confdefs.h <<_ACEOF
5090#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5091_ACEOF
5092
5093fi
5094
5095done
5096
5097
5098
5099for ac_header in dlfcn.h
5100do
5101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 5102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5107fi
dd184caf 5108ac_res=`eval echo '${'$as_ac_Header'}'`
5109 { echo "$as_me:$LINENO: result: $ac_res" >&5
5110echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5111else
5112 # Is the header compilable?
dd184caf 5113{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 5115cat >conftest.$ac_ext <<_ACEOF
5116/* confdefs.h. */
5117_ACEOF
5118cat confdefs.h >>conftest.$ac_ext
5119cat >>conftest.$ac_ext <<_ACEOF
5120/* end confdefs.h. */
5121$ac_includes_default
5122#include <$ac_header>
5123_ACEOF
5124rm -f conftest.$ac_objext
dd184caf 5125if { (ac_try="$ac_compile"
5126case "(($ac_try" in
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5129esac
5130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5137 (exit $ac_status); } && {
5138 test -z "$ac_c_werror_flag" ||
5139 test ! -s conftest.err
5140 } && test -s conftest.$ac_objext; then
d9898ee8 5141 ac_header_compiler=yes
5142else
5143 echo "$as_me: failed program was:" >&5
5144sed 's/^/| /' conftest.$ac_ext >&5
5145
dd184caf 5146 ac_header_compiler=no
d9898ee8 5147fi
dd184caf 5148
5149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5151echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 5152
5153# Is the header present?
dd184caf 5154{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5155echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 5156cat >conftest.$ac_ext <<_ACEOF
5157/* confdefs.h. */
5158_ACEOF
5159cat confdefs.h >>conftest.$ac_ext
5160cat >>conftest.$ac_ext <<_ACEOF
5161/* end confdefs.h. */
5162#include <$ac_header>
5163_ACEOF
dd184caf 5164if { (ac_try="$ac_cpp conftest.$ac_ext"
5165case "(($ac_try" in
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5168esac
5169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5171 ac_status=$?
5172 grep -v '^ *+' conftest.er1 >conftest.err
5173 rm -f conftest.er1
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5176 (exit $ac_status); } >/dev/null && {
5177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5178 test ! -s conftest.err
5179 }; then
d9898ee8 5180 ac_header_preproc=yes
5181else
5182 echo "$as_me: failed program was:" >&5
5183sed 's/^/| /' conftest.$ac_ext >&5
5184
5185 ac_header_preproc=no
5186fi
dd184caf 5187
d9898ee8 5188rm -f conftest.err conftest.$ac_ext
dd184caf 5189{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5190echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 5191
5192# So? What about this header?
5193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5194 yes:no: )
5195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5196echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5198echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5199 ac_header_preproc=yes
5200 ;;
5201 no:yes:* )
5202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5203echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5205echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5207echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5209echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5211echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5213echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dd184caf 5214 ( cat <<\_ASBOX
d9898ee8 5215## -------------------------------------------------- ##
5216## Report this to courier-users@lists.sourceforge.net ##
5217## -------------------------------------------------- ##
5218_ASBOX
dd184caf 5219 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 5220 ;;
5221esac
dd184caf 5222{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226else
5227 eval "$as_ac_Header=\$ac_header_preproc"
5228fi
dd184caf 5229ac_res=`eval echo '${'$as_ac_Header'}'`
5230 { echo "$as_me:$LINENO: result: $ac_res" >&5
5231echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5232
5233fi
5234if test `eval echo '${'$as_ac_Header'}'` = yes; then
5235 cat >>confdefs.h <<_ACEOF
5236#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5237_ACEOF
5238
5239fi
5240
5241done
5242
dd184caf 5243ac_ext=cpp
d9898ee8 5244ac_cpp='$CXXCPP $CPPFLAGS'
5245ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
dd184caf 5248if test -z "$CXX"; then
5249 if test -n "$CCC"; then
5250 CXX=$CCC
5251 else
5252 if test -n "$ac_tool_prefix"; then
5253 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5254 do
5255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5256set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 5257{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5259if test "${ac_cv_prog_CXX+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261else
5262 if test -n "$CXX"; then
5263 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5264else
5265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266for as_dir in $PATH
5267do
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5272 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5275 fi
5276done
5277done
dd184caf 5278IFS=$as_save_IFS
d9898ee8 5279
5280fi
5281fi
5282CXX=$ac_cv_prog_CXX
5283if test -n "$CXX"; then
dd184caf 5284 { echo "$as_me:$LINENO: result: $CXX" >&5
5285echo "${ECHO_T}$CXX" >&6; }
d9898ee8 5286else
dd184caf 5287 { echo "$as_me:$LINENO: result: no" >&5
5288echo "${ECHO_T}no" >&6; }
d9898ee8 5289fi
5290
dd184caf 5291
d9898ee8 5292 test -n "$CXX" && break
5293 done
5294fi
5295if test -z "$CXX"; then
5296 ac_ct_CXX=$CXX
dd184caf 5297 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5298do
5299 # Extract the first word of "$ac_prog", so it can be a program name with args.
5300set dummy $ac_prog; ac_word=$2
dd184caf 5301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5303if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5305else
5306 if test -n "$ac_ct_CXX"; then
5307 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5308else
5309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310for as_dir in $PATH
5311do
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5316 ac_cv_prog_ac_ct_CXX="$ac_prog"
5317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5319 fi
5320done
5321done
dd184caf 5322IFS=$as_save_IFS
d9898ee8 5323
5324fi
5325fi
5326ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5327if test -n "$ac_ct_CXX"; then
dd184caf 5328 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5329echo "${ECHO_T}$ac_ct_CXX" >&6; }
d9898ee8 5330else
dd184caf 5331 { echo "$as_me:$LINENO: result: no" >&5
5332echo "${ECHO_T}no" >&6; }
d9898ee8 5333fi
5334
dd184caf 5335
d9898ee8 5336 test -n "$ac_ct_CXX" && break
5337done
d9898ee8 5338
dd184caf 5339 if test "x$ac_ct_CXX" = x; then
5340 CXX="g++"
5341 else
5342 case $cross_compiling:$ac_tool_warned in
5343yes:)
5344{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5345whose name does not start with the host triplet. If you think this
5346configuration is useful to you, please write to autoconf@gnu.org." >&5
5347echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5348whose name does not start with the host triplet. If you think this
5349configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5350ac_tool_warned=yes ;;
5351esac
5352 CXX=$ac_ct_CXX
5353 fi
d9898ee8 5354fi
5355
dd184caf 5356 fi
5357fi
d9898ee8 5358# Provide some information about the compiler.
dd184caf 5359echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d9898ee8 5360ac_compiler=`set X $ac_compile; echo $2`
dd184caf 5361{ (ac_try="$ac_compiler --version >&5"
5362case "(($ac_try" in
5363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364 *) ac_try_echo=$ac_try;;
5365esac
5366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5367 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }
dd184caf 5371{ (ac_try="$ac_compiler -v >&5"
5372case "(($ac_try" in
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5375esac
5376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }
dd184caf 5381{ (ac_try="$ac_compiler -V >&5"
5382case "(($ac_try" in
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5385esac
5386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }
5391
dd184caf 5392{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5393echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d9898ee8 5394if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5396else
5397 cat >conftest.$ac_ext <<_ACEOF
5398/* confdefs.h. */
5399_ACEOF
5400cat confdefs.h >>conftest.$ac_ext
5401cat >>conftest.$ac_ext <<_ACEOF
5402/* end confdefs.h. */
5403
5404int
5405main ()
5406{
5407#ifndef __GNUC__
5408 choke me
5409#endif
5410
5411 ;
5412 return 0;
5413}
5414_ACEOF
5415rm -f conftest.$ac_objext
dd184caf 5416if { (ac_try="$ac_compile"
5417case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420esac
5421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5428 (exit $ac_status); } && {
5429 test -z "$ac_cxx_werror_flag" ||
5430 test ! -s conftest.err
5431 } && test -s conftest.$ac_objext; then
d9898ee8 5432 ac_compiler_gnu=yes
5433else
5434 echo "$as_me: failed program was:" >&5
5435sed 's/^/| /' conftest.$ac_ext >&5
5436
dd184caf 5437 ac_compiler_gnu=no
d9898ee8 5438fi
dd184caf 5439
5440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5441ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5442
5443fi
dd184caf 5444{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5445echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d9898ee8 5446GXX=`test $ac_compiler_gnu = yes && echo yes`
5447ac_test_CXXFLAGS=${CXXFLAGS+set}
5448ac_save_CXXFLAGS=$CXXFLAGS
dd184caf 5449{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5450echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d9898ee8 5451if test "${ac_cv_prog_cxx_g+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5453else
dd184caf 5454 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5455 ac_cxx_werror_flag=yes
5456 ac_cv_prog_cxx_g=no
5457 CXXFLAGS="-g"
5458 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5459/* confdefs.h. */
5460_ACEOF
5461cat confdefs.h >>conftest.$ac_ext
5462cat >>conftest.$ac_ext <<_ACEOF
5463/* end confdefs.h. */
5464
5465int
5466main ()
5467{
5468
5469 ;
5470 return 0;
5471}
5472_ACEOF
5473rm -f conftest.$ac_objext
dd184caf 5474if { (ac_try="$ac_compile"
5475case "(($ac_try" in
5476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477 *) ac_try_echo=$ac_try;;
5478esac
5479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5480 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5481 ac_status=$?
5482 grep -v '^ *+' conftest.er1 >conftest.err
5483 rm -f conftest.er1
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5486 (exit $ac_status); } && {
5487 test -z "$ac_cxx_werror_flag" ||
5488 test ! -s conftest.err
5489 } && test -s conftest.$ac_objext; then
d9898ee8 5490 ac_cv_prog_cxx_g=yes
5491else
5492 echo "$as_me: failed program was:" >&5
5493sed 's/^/| /' conftest.$ac_ext >&5
5494
dd184caf 5495 CXXFLAGS=""
5496 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5497/* confdefs.h. */
5498_ACEOF
5499cat confdefs.h >>conftest.$ac_ext
5500cat >>conftest.$ac_ext <<_ACEOF
5501/* end confdefs.h. */
dd184caf 5502
d9898ee8 5503int
5504main ()
5505{
dd184caf 5506
d9898ee8 5507 ;
5508 return 0;
5509}
5510_ACEOF
5511rm -f conftest.$ac_objext
dd184caf 5512if { (ac_try="$ac_compile"
5513case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5516esac
5517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5519 ac_status=$?
5520 grep -v '^ *+' conftest.er1 >conftest.err
5521 rm -f conftest.er1
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5524 (exit $ac_status); } && {
5525 test -z "$ac_cxx_werror_flag" ||
5526 test ! -s conftest.err
5527 } && test -s conftest.$ac_objext; then
d9898ee8 5528 :
5529else
5530 echo "$as_me: failed program was:" >&5
5531sed 's/^/| /' conftest.$ac_ext >&5
5532
dd184caf 5533 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5534 CXXFLAGS="-g"
5535 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5536/* confdefs.h. */
5537_ACEOF
5538cat confdefs.h >>conftest.$ac_ext
5539cat >>conftest.$ac_ext <<_ACEOF
5540/* end confdefs.h. */
dd184caf 5541
d9898ee8 5542int
5543main ()
5544{
dd184caf 5545
d9898ee8 5546 ;
5547 return 0;
5548}
5549_ACEOF
5550rm -f conftest.$ac_objext
dd184caf 5551if { (ac_try="$ac_compile"
5552case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5555esac
5556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5563 (exit $ac_status); } && {
5564 test -z "$ac_cxx_werror_flag" ||
5565 test ! -s conftest.err
5566 } && test -s conftest.$ac_objext; then
5567 ac_cv_prog_cxx_g=yes
d9898ee8 5568else
5569 echo "$as_me: failed program was:" >&5
5570sed 's/^/| /' conftest.$ac_ext >&5
5571
dd184caf 5572
d9898ee8 5573fi
dd184caf 5574
5575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576fi
5577
5578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5579fi
5580
dd184caf 5581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5583fi
5584{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5585echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5586if test "$ac_test_CXXFLAGS" = set; then
5587 CXXFLAGS=$ac_save_CXXFLAGS
5588elif test $ac_cv_prog_cxx_g = yes; then
5589 if test "$GXX" = yes; then
5590 CXXFLAGS="-g -O2"
5591 else
5592 CXXFLAGS="-g"
5593 fi
5594else
5595 if test "$GXX" = yes; then
5596 CXXFLAGS="-O2"
5597 else
5598 CXXFLAGS=
5599 fi
5600fi
5601ac_ext=cpp
d9898ee8 5602ac_cpp='$CXXCPP $CPPFLAGS'
5603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5606
5607depcc="$CXX" am_compiler_list=
5608
dd184caf 5609{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5610echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 5611if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613else
5614 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5615 # We make a subdir and do the tests there. Otherwise we can end up
5616 # making bogus files that we don't know about and never remove. For
5617 # instance it was reported that on HP-UX the gcc test will end up
5618 # making a dummy file named `D' -- because `-MD' means `put the output
5619 # in D'.
5620 mkdir conftest.dir
5621 # Copy depcomp to subdir because otherwise we won't find it if we're
5622 # using a relative directory.
5623 cp "$am_depcomp" conftest.dir
5624 cd conftest.dir
5625 # We will build objects and dependencies in a subdirectory because
5626 # it helps to detect inapplicable dependency modes. For instance
5627 # both Tru64's cc and ICC support -MD to output dependencies as a
5628 # side effect of compilation, but ICC will put the dependencies in
5629 # the current directory while Tru64 will put them in the object
5630 # directory.
5631 mkdir sub
5632
5633 am_cv_CXX_dependencies_compiler_type=none
5634 if test "$am_compiler_list" = ""; then
5635 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5636 fi
5637 for depmode in $am_compiler_list; do
5638 # Setup a source with many dependencies, because some compilers
5639 # like to wrap large dependency lists on column 80 (with \), and
5640 # we should not choose a depcomp mode which is confused by this.
5641 #
5642 # We need to recreate these files for each test, as the compiler may
5643 # overwrite some of them when testing with obscure command lines.
5644 # This happens at least with the AIX C compiler.
5645 : > sub/conftest.c
5646 for i in 1 2 3 4 5 6; do
5647 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5648 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5649 # Solaris 8's {/usr,}/bin/sh.
5650 touch sub/conftst$i.h
5651 done
5652 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5653
5654 case $depmode in
5655 nosideeffect)
5656 # after this tag, mechanisms are not by side-effect, so they'll
5657 # only be used when explicitly requested
5658 if test "x$enable_dependency_tracking" = xyes; then
5659 continue
5660 else
5661 break
5662 fi
5663 ;;
5664 none) break ;;
5665 esac
5666 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5667 # mode. It turns out that the SunPro C++ compiler does not properly
5668 # handle `-M -o', and we need to detect this.
5669 if depmode=$depmode \
5670 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5671 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5672 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5673 >/dev/null 2>conftest.err &&
dd184caf 5674 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5675 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5676 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5677 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5678 # icc doesn't choke on unknown options, it will just issue warnings
5679 # or remarks (even with -Werror). So we grep stderr for any message
5680 # that says an option was ignored or not supported.
5681 # When given -MP, icc 7.0 and 7.1 complain thusly:
5682 # icc: Command line warning: ignoring option '-M'; no argument required
5683 # The diagnosis changed in icc 8.0:
5684 # icc: Command line remark: option '-MP' not supported
5685 if (grep 'ignoring option' conftest.err ||
5686 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5687 am_cv_CXX_dependencies_compiler_type=$depmode
5688 break
5689 fi
5690 fi
5691 done
5692
5693 cd ..
5694 rm -rf conftest.dir
5695else
5696 am_cv_CXX_dependencies_compiler_type=none
5697fi
5698
5699fi
dd184caf 5700{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5701echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
d9898ee8 5702CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5703
dd184caf 5704 if
d9898ee8 5705 test "x$enable_dependency_tracking" != xno \
5706 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5707 am__fastdepCXX_TRUE=
5708 am__fastdepCXX_FALSE='#'
5709else
5710 am__fastdepCXX_TRUE='#'
5711 am__fastdepCXX_FALSE=
5712fi
5713
5714
5715
5716
5717if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5718 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5719 (test "X$CXX" != "Xg++"))) ; then
dd184caf 5720 ac_ext=cpp
d9898ee8 5721ac_cpp='$CXXCPP $CPPFLAGS'
5722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
dd184caf 5725{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5726echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d9898ee8 5727if test -z "$CXXCPP"; then
5728 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730else
5731 # Double quotes because CXXCPP needs to be expanded
5732 for CXXCPP in "$CXX -E" "/lib/cpp"
5733 do
5734 ac_preproc_ok=false
5735for ac_cxx_preproc_warn_flag in '' yes
5736do
5737 # Use a header file that comes with gcc, so configuring glibc
5738 # with a fresh cross-compiler works.
5739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5740 # <limits.h> exists even on freestanding compilers.
5741 # On the NeXT, cc -E runs the code through the compiler's parser,
5742 # not just through cpp. "Syntax error" is here to catch this case.
5743 cat >conftest.$ac_ext <<_ACEOF
5744/* confdefs.h. */
5745_ACEOF
5746cat confdefs.h >>conftest.$ac_ext
5747cat >>conftest.$ac_ext <<_ACEOF
5748/* end confdefs.h. */
5749#ifdef __STDC__
5750# include <limits.h>
5751#else
5752# include <assert.h>
5753#endif
5754 Syntax error
5755_ACEOF
dd184caf 5756if { (ac_try="$ac_cpp conftest.$ac_ext"
5757case "(($ac_try" in
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5760esac
5761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5763 ac_status=$?
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5768 (exit $ac_status); } >/dev/null && {
5769 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5770 test ! -s conftest.err
5771 }; then
d9898ee8 5772 :
5773else
5774 echo "$as_me: failed program was:" >&5
5775sed 's/^/| /' conftest.$ac_ext >&5
5776
5777 # Broken: fails on valid input.
5778continue
5779fi
dd184caf 5780
d9898ee8 5781rm -f conftest.err conftest.$ac_ext
5782
dd184caf 5783 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5784 # can be detected and how.
5785 cat >conftest.$ac_ext <<_ACEOF
5786/* confdefs.h. */
5787_ACEOF
5788cat confdefs.h >>conftest.$ac_ext
5789cat >>conftest.$ac_ext <<_ACEOF
5790/* end confdefs.h. */
5791#include <ac_nonexistent.h>
5792_ACEOF
dd184caf 5793if { (ac_try="$ac_cpp conftest.$ac_ext"
5794case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797esac
5798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5800 ac_status=$?
5801 grep -v '^ *+' conftest.er1 >conftest.err
5802 rm -f conftest.er1
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5805 (exit $ac_status); } >/dev/null && {
5806 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5807 test ! -s conftest.err
5808 }; then
d9898ee8 5809 # Broken: success on invalid input.
5810continue
5811else
5812 echo "$as_me: failed program was:" >&5
5813sed 's/^/| /' conftest.$ac_ext >&5
5814
5815 # Passes both tests.
5816ac_preproc_ok=:
5817break
5818fi
dd184caf 5819
d9898ee8 5820rm -f conftest.err conftest.$ac_ext
5821
5822done
5823# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5824rm -f conftest.err conftest.$ac_ext
5825if $ac_preproc_ok; then
5826 break
5827fi
5828
5829 done
5830 ac_cv_prog_CXXCPP=$CXXCPP
5831
5832fi
5833 CXXCPP=$ac_cv_prog_CXXCPP
5834else
5835 ac_cv_prog_CXXCPP=$CXXCPP
5836fi
dd184caf 5837{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5838echo "${ECHO_T}$CXXCPP" >&6; }
d9898ee8 5839ac_preproc_ok=false
5840for ac_cxx_preproc_warn_flag in '' yes
5841do
5842 # Use a header file that comes with gcc, so configuring glibc
5843 # with a fresh cross-compiler works.
5844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5845 # <limits.h> exists even on freestanding compilers.
5846 # On the NeXT, cc -E runs the code through the compiler's parser,
5847 # not just through cpp. "Syntax error" is here to catch this case.
5848 cat >conftest.$ac_ext <<_ACEOF
5849/* confdefs.h. */
5850_ACEOF
5851cat confdefs.h >>conftest.$ac_ext
5852cat >>conftest.$ac_ext <<_ACEOF
5853/* end confdefs.h. */
5854#ifdef __STDC__
5855# include <limits.h>
5856#else
5857# include <assert.h>
5858#endif
5859 Syntax error
5860_ACEOF
dd184caf 5861if { (ac_try="$ac_cpp conftest.$ac_ext"
5862case "(($ac_try" in
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5865esac
5866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5873 (exit $ac_status); } >/dev/null && {
5874 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5875 test ! -s conftest.err
5876 }; then
d9898ee8 5877 :
5878else
5879 echo "$as_me: failed program was:" >&5
5880sed 's/^/| /' conftest.$ac_ext >&5
5881
5882 # Broken: fails on valid input.
5883continue
5884fi
dd184caf 5885
d9898ee8 5886rm -f conftest.err conftest.$ac_ext
5887
dd184caf 5888 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5889 # can be detected and how.
5890 cat >conftest.$ac_ext <<_ACEOF
5891/* confdefs.h. */
5892_ACEOF
5893cat confdefs.h >>conftest.$ac_ext
5894cat >>conftest.$ac_ext <<_ACEOF
5895/* end confdefs.h. */
5896#include <ac_nonexistent.h>
5897_ACEOF
dd184caf 5898if { (ac_try="$ac_cpp conftest.$ac_ext"
5899case "(($ac_try" in
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5902esac
5903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5905 ac_status=$?
5906 grep -v '^ *+' conftest.er1 >conftest.err
5907 rm -f conftest.er1
5908 cat conftest.err >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5910 (exit $ac_status); } >/dev/null && {
5911 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5912 test ! -s conftest.err
5913 }; then
d9898ee8 5914 # Broken: success on invalid input.
5915continue
5916else
5917 echo "$as_me: failed program was:" >&5
5918sed 's/^/| /' conftest.$ac_ext >&5
5919
5920 # Passes both tests.
5921ac_preproc_ok=:
5922break
5923fi
dd184caf 5924
d9898ee8 5925rm -f conftest.err conftest.$ac_ext
5926
5927done
5928# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5929rm -f conftest.err conftest.$ac_ext
5930if $ac_preproc_ok; then
5931 :
5932else
5933 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5934See \`config.log' for more details." >&5
5935echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5936See \`config.log' for more details." >&2;}
5937 { (exit 1); exit 1; }; }
5938fi
5939
dd184caf 5940ac_ext=cpp
d9898ee8 5941ac_cpp='$CXXCPP $CPPFLAGS'
5942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5945
5946fi
5947
5948
5949ac_ext=f
5950ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5951ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5952ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5953if test -n "$ac_tool_prefix"; then
dd184caf 5954 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 5955 do
5956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5957set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 5958{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5960if test "${ac_cv_prog_F77+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5962else
5963 if test -n "$F77"; then
5964 ac_cv_prog_F77="$F77" # Let the user override the test.
5965else
5966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967for as_dir in $PATH
5968do
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5973 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 break 2
5976 fi
5977done
5978done
dd184caf 5979IFS=$as_save_IFS
d9898ee8 5980
5981fi
5982fi
5983F77=$ac_cv_prog_F77
5984if test -n "$F77"; then
dd184caf 5985 { echo "$as_me:$LINENO: result: $F77" >&5
5986echo "${ECHO_T}$F77" >&6; }
d9898ee8 5987else
dd184caf 5988 { echo "$as_me:$LINENO: result: no" >&5
5989echo "${ECHO_T}no" >&6; }
d9898ee8 5990fi
5991
dd184caf 5992
d9898ee8 5993 test -n "$F77" && break
5994 done
5995fi
5996if test -z "$F77"; then
5997 ac_ct_F77=$F77
dd184caf 5998 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 5999do
6000 # Extract the first word of "$ac_prog", so it can be a program name with args.
6001set dummy $ac_prog; ac_word=$2
dd184caf 6002{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6004if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6006else
6007 if test -n "$ac_ct_F77"; then
6008 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6009else
6010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011for as_dir in $PATH
6012do
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6017 ac_cv_prog_ac_ct_F77="$ac_prog"
6018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6020 fi
6021done
6022done
dd184caf 6023IFS=$as_save_IFS
d9898ee8 6024
6025fi
6026fi
6027ac_ct_F77=$ac_cv_prog_ac_ct_F77
6028if test -n "$ac_ct_F77"; then
dd184caf 6029 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6030echo "${ECHO_T}$ac_ct_F77" >&6; }
d9898ee8 6031else
dd184caf 6032 { echo "$as_me:$LINENO: result: no" >&5
6033echo "${ECHO_T}no" >&6; }
d9898ee8 6034fi
6035
dd184caf 6036
d9898ee8 6037 test -n "$ac_ct_F77" && break
6038done
6039
dd184caf 6040 if test "x$ac_ct_F77" = x; then
6041 F77=""
6042 else
6043 case $cross_compiling:$ac_tool_warned in
6044yes:)
6045{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6046whose name does not start with the host triplet. If you think this
6047configuration is useful to you, please write to autoconf@gnu.org." >&5
6048echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6049whose name does not start with the host triplet. If you think this
6050configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6051ac_tool_warned=yes ;;
6052esac
6053 F77=$ac_ct_F77
6054 fi
d9898ee8 6055fi
6056
6057
6058# Provide some information about the compiler.
dd184caf 6059echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d9898ee8 6060ac_compiler=`set X $ac_compile; echo $2`
dd184caf 6061{ (ac_try="$ac_compiler --version >&5"
6062case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065esac
6066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 6068 ac_status=$?
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }
dd184caf 6071{ (ac_try="$ac_compiler -v >&5"
6072case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6075esac
6076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }
dd184caf 6081{ (ac_try="$ac_compiler -V >&5"
6082case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6085esac
6086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }
6091rm -f a.out
6092
6093# If we don't use `.F' as extension, the preprocessor is not run on the
6094# input file. (Note that this only needs to work for GNU compilers.)
6095ac_save_ext=$ac_ext
6096ac_ext=F
dd184caf 6097{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6098echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d9898ee8 6099if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101else
6102 cat >conftest.$ac_ext <<_ACEOF
6103 program main
6104#ifndef __GNUC__
6105 choke me
6106#endif
6107
6108 end
6109_ACEOF
6110rm -f conftest.$ac_objext
dd184caf 6111if { (ac_try="$ac_compile"
6112case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6115esac
6116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 6123 (exit $ac_status); } && {
6124 test -z "$ac_f77_werror_flag" ||
6125 test ! -s conftest.err
6126 } && test -s conftest.$ac_objext; then
d9898ee8 6127 ac_compiler_gnu=yes
6128else
6129 echo "$as_me: failed program was:" >&5
6130sed 's/^/| /' conftest.$ac_ext >&5
6131
dd184caf 6132 ac_compiler_gnu=no
d9898ee8 6133fi
dd184caf 6134
6135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6136ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6137
6138fi
dd184caf 6139{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6140echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d9898ee8 6141ac_ext=$ac_save_ext
6142ac_test_FFLAGS=${FFLAGS+set}
6143ac_save_FFLAGS=$FFLAGS
6144FFLAGS=
dd184caf 6145{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6146echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d9898ee8 6147if test "${ac_cv_prog_f77_g+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6149else
6150 FFLAGS=-g
6151cat >conftest.$ac_ext <<_ACEOF
6152 program main
6153
6154 end
6155_ACEOF
6156rm -f conftest.$ac_objext
dd184caf 6157if { (ac_try="$ac_compile"
6158case "(($ac_try" in
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6161esac
6162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6163 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6164 ac_status=$?
6165 grep -v '^ *+' conftest.er1 >conftest.err
6166 rm -f conftest.er1
6167 cat conftest.err >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 6169 (exit $ac_status); } && {
6170 test -z "$ac_f77_werror_flag" ||
6171 test ! -s conftest.err
6172 } && test -s conftest.$ac_objext; then
d9898ee8 6173 ac_cv_prog_f77_g=yes
6174else
6175 echo "$as_me: failed program was:" >&5
6176sed 's/^/| /' conftest.$ac_ext >&5
6177
dd184caf 6178 ac_cv_prog_f77_g=no
d9898ee8 6179fi
dd184caf 6180
6181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6182
6183fi
dd184caf 6184{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6185echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d9898ee8 6186if test "$ac_test_FFLAGS" = set; then
6187 FFLAGS=$ac_save_FFLAGS
6188elif test $ac_cv_prog_f77_g = yes; then
6189 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6190 FFLAGS="-g -O2"
6191 else
6192 FFLAGS="-g"
6193 fi
6194else
6195 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6196 FFLAGS="-O2"
6197 else
6198 FFLAGS=
6199 fi
6200fi
6201
6202G77=`test $ac_compiler_gnu = yes && echo yes`
6203ac_ext=c
6204ac_cpp='$CPP $CPPFLAGS'
6205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6207ac_compiler_gnu=$ac_cv_c_compiler_gnu
6208
6209
6210
6211# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6212
6213# find the maximum length of command line arguments
dd184caf 6214{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6215echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
d9898ee8 6216if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218else
6219 i=0
6220 teststring="ABCD"
6221
6222 case $build_os in
6223 msdosdjgpp*)
6224 # On DJGPP, this test can blow up pretty badly due to problems in libc
6225 # (any single argument exceeding 2000 bytes causes a buffer overrun
6226 # during glob expansion). Even if it were fixed, the result of this
6227 # check would be larger than it should be.
6228 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6229 ;;
6230
6231 gnu*)
6232 # Under GNU Hurd, this test is not required because there is
6233 # no limit to the length of command line arguments.
6234 # Libtool will interpret -1 as no limit whatsoever
6235 lt_cv_sys_max_cmd_len=-1;
6236 ;;
6237
6238 cygwin* | mingw*)
6239 # On Win9x/ME, this test blows up -- it succeeds, but takes
6240 # about 5 minutes as the teststring grows exponentially.
6241 # Worse, since 9x/ME are not pre-emptively multitasking,
6242 # you end up with a "frozen" computer, even though with patience
6243 # the test eventually succeeds (with a max line length of 256k).
6244 # Instead, let's just punt: use the minimum linelength reported by
6245 # all of the supported platforms: 8192 (on NT/2K/XP).
6246 lt_cv_sys_max_cmd_len=8192;
6247 ;;
6248
6249 amigaos*)
6250 # On AmigaOS with pdksh, this test takes hours, literally.
6251 # So we just punt and use a minimum line length of 8192.
6252 lt_cv_sys_max_cmd_len=8192;
6253 ;;
6254
6255 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6256 # This has been around since 386BSD, at least. Likely further.
6257 if test -x /sbin/sysctl; then
6258 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6259 elif test -x /usr/sbin/sysctl; then
6260 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6261 else
6262 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6263 fi
6264 # And add a safety zone
6265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6267 ;;
6268
6269 interix*)
6270 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6271 lt_cv_sys_max_cmd_len=196608
6272 ;;
6273
6274 osf*)
6275 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6276 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6277 # nice to cause kernel panics so lets avoid the loop below.
6278 # First set a reasonable default.
6279 lt_cv_sys_max_cmd_len=16384
6280 #
6281 if test -x /sbin/sysconfig; then
6282 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6283 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6284 esac
6285 fi
6286 ;;
6287 sco3.2v5*)
6288 lt_cv_sys_max_cmd_len=102400
6289 ;;
6290 sysv5* | sco5v6* | sysv4.2uw2*)
6291 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6292 if test -n "$kargmax"; then
6293 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6294 else
6295 lt_cv_sys_max_cmd_len=32768
6296 fi
6297 ;;
6298 *)
ac40fd9e 6299 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6300 if test -n "$lt_cv_sys_max_cmd_len"; then
6301 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6303 else
6304 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6305 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
d9898ee8 6306 = "XX$teststring") >/dev/null 2>&1 &&
ac40fd9e 6307 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6308 lt_cv_sys_max_cmd_len=$new_result &&
6309 test $i != 17 # 1/2 MB should be enough
6310 do
6311 i=`expr $i + 1`
6312 teststring=$teststring$teststring
6313 done
6314 teststring=
6315 # Add a significant safety factor because C++ compilers can tack on massive
6316 # amounts of additional arguments before passing them to the linker.
6317 # It appears as though 1/2 is a usable value.
6318 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6319 fi
d9898ee8 6320 ;;
6321 esac
6322
6323fi
6324
6325if test -n $lt_cv_sys_max_cmd_len ; then
dd184caf 6326 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6327echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 6328else
dd184caf 6329 { echo "$as_me:$LINENO: result: none" >&5
6330echo "${ECHO_T}none" >&6; }
d9898ee8 6331fi
6332
6333
6334
6335
ac40fd9e 6336
d9898ee8 6337# Check for command to grab the raw symbol name followed by C symbol from nm.
dd184caf 6338{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6339echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d9898ee8 6340if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6342else
6343
6344# These are sane defaults that work on at least a few old systems.
6345# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6346
6347# Character class describing NM global symbol codes.
6348symcode='[BCDEGRST]'
6349
6350# Regexp to match symbols that can be accessed directly from C.
6351sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6352
6353# Transform an extracted symbol line into a proper C declaration
6354lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6355
6356# Transform an extracted symbol line into symbol name and symbol address
6357lt_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'"
6358
6359# Define system-specific variables.
6360case $host_os in
6361aix*)
6362 symcode='[BCDT]'
6363 ;;
6364cygwin* | mingw* | pw32*)
6365 symcode='[ABCDGISTW]'
6366 ;;
6367hpux*) # Its linker distinguishes data from code symbols
6368 if test "$host_cpu" = ia64; then
6369 symcode='[ABCDEGRST]'
6370 fi
6371 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6372 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'"
6373 ;;
ac40fd9e 6374linux* | k*bsd*-gnu)
d9898ee8 6375 if test "$host_cpu" = ia64; then
6376 symcode='[ABCDGIRSTW]'
6377 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6378 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'"
6379 fi
6380 ;;
6381irix* | nonstopux*)
6382 symcode='[BCDEGRST]'
6383 ;;
6384osf*)
6385 symcode='[BCDEGQRST]'
6386 ;;
6387solaris*)
6388 symcode='[BDRT]'
6389 ;;
6390sco3.2v5*)
6391 symcode='[DT]'
6392 ;;
6393sysv4.2uw2*)
6394 symcode='[DT]'
6395 ;;
6396sysv5* | sco5v6* | unixware* | OpenUNIX*)
6397 symcode='[ABDT]'
6398 ;;
6399sysv4)
6400 symcode='[DFNSTU]'
6401 ;;
6402esac
6403
6404# Handle CRLF in mingw tool chain
6405opt_cr=
6406case $build_os in
6407mingw*)
6408 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6409 ;;
6410esac
6411
6412# If we're using GNU nm, then use its standard symbol codes.
6413case `$NM -V 2>&1` in
6414*GNU* | *'with BFD'*)
6415 symcode='[ABCDGIRSTW]' ;;
6416esac
6417
6418# Try without a prefix undercore, then with it.
6419for ac_symprfx in "" "_"; do
6420
6421 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6422 symxfrm="\\1 $ac_symprfx\\2 \\2"
6423
6424 # Write the raw and C identifiers.
6425 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6426
6427 # Check to see that the pipe works correctly.
6428 pipe_works=no
6429
6430 rm -f conftest*
6431 cat > conftest.$ac_ext <<EOF
6432#ifdef __cplusplus
6433extern "C" {
6434#endif
6435char nm_test_var;
6436void nm_test_func(){}
6437#ifdef __cplusplus
6438}
6439#endif
6440int main(){nm_test_var='a';nm_test_func();return(0);}
6441EOF
6442
6443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6444 (eval $ac_compile) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; then
6448 # Now try to grab the symbols.
6449 nlist=conftest.nm
6450 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6451 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } && test -s "$nlist"; then
6455 # Try sorting and uniquifying the output.
6456 if sort "$nlist" | uniq > "$nlist"T; then
6457 mv -f "$nlist"T "$nlist"
6458 else
6459 rm -f "$nlist"T
6460 fi
6461
6462 # Make sure that we snagged all the symbols we need.
6463 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6464 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6465 cat <<EOF > conftest.$ac_ext
6466#ifdef __cplusplus
6467extern "C" {
6468#endif
6469
6470EOF
6471 # Now generate the symbol file.
6472 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6473
6474 cat <<EOF >> conftest.$ac_ext
6475#if defined (__STDC__) && __STDC__
6476# define lt_ptr_t void *
6477#else
6478# define lt_ptr_t char *
6479# define const
6480#endif
6481
6482/* The mapping between symbol names and symbols. */
6483const struct {
6484 const char *name;
6485 lt_ptr_t address;
6486}
6487lt_preloaded_symbols[] =
6488{
6489EOF
6490 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6491 cat <<\EOF >> conftest.$ac_ext
6492 {0, (lt_ptr_t) 0}
6493};
6494
6495#ifdef __cplusplus
6496}
6497#endif
6498EOF
6499 # Now try linking the two files.
6500 mv conftest.$ac_objext conftstm.$ac_objext
6501 lt_save_LIBS="$LIBS"
6502 lt_save_CFLAGS="$CFLAGS"
6503 LIBS="conftstm.$ac_objext"
6504 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6506 (eval $ac_link) 2>&5
6507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6510 pipe_works=yes
6511 fi
6512 LIBS="$lt_save_LIBS"
6513 CFLAGS="$lt_save_CFLAGS"
6514 else
6515 echo "cannot find nm_test_func in $nlist" >&5
6516 fi
6517 else
6518 echo "cannot find nm_test_var in $nlist" >&5
6519 fi
6520 else
6521 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6522 fi
6523 else
6524 echo "$progname: failed program was:" >&5
6525 cat conftest.$ac_ext >&5
6526 fi
6527 rm -f conftest* conftst*
6528
6529 # Do not use the global_symbol_pipe unless it works.
6530 if test "$pipe_works" = yes; then
6531 break
6532 else
6533 lt_cv_sys_global_symbol_pipe=
6534 fi
6535done
6536
6537fi
6538
6539if test -z "$lt_cv_sys_global_symbol_pipe"; then
6540 lt_cv_sys_global_symbol_to_cdecl=
6541fi
6542if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
dd184caf 6543 { echo "$as_me:$LINENO: result: failed" >&5
6544echo "${ECHO_T}failed" >&6; }
d9898ee8 6545else
dd184caf 6546 { echo "$as_me:$LINENO: result: ok" >&5
6547echo "${ECHO_T}ok" >&6; }
d9898ee8 6548fi
6549
dd184caf 6550{ echo "$as_me:$LINENO: checking for objdir" >&5
6551echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d9898ee8 6552if test "${lt_cv_objdir+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6554else
6555 rm -f .libs 2>/dev/null
6556mkdir .libs 2>/dev/null
6557if test -d .libs; then
6558 lt_cv_objdir=.libs
6559else
6560 # MS-DOS does not allow filenames that begin with a dot.
6561 lt_cv_objdir=_libs
6562fi
6563rmdir .libs 2>/dev/null
6564fi
dd184caf 6565{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6566echo "${ECHO_T}$lt_cv_objdir" >&6; }
d9898ee8 6567objdir=$lt_cv_objdir
6568
6569
6570
6571
6572
6573case $host_os in
6574aix3*)
6575 # AIX sometimes has problems with the GCC collect2 program. For some
6576 # reason, if we set the COLLECT_NAMES environment variable, the problems
6577 # vanish in a puff of smoke.
6578 if test "X${COLLECT_NAMES+set}" != Xset; then
6579 COLLECT_NAMES=
6580 export COLLECT_NAMES
6581 fi
6582 ;;
6583esac
6584
6585# Sed substitution that helps us do robust quoting. It backslashifies
6586# metacharacters that are still active within double-quoted strings.
6587Xsed='sed -e 1s/^X//'
6588sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6589
6590# Same as above, but do not quote variable references.
6591double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6592
6593# Sed substitution to delay expansion of an escaped shell variable in a
6594# double_quote_subst'ed string.
6595delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6596
6597# Sed substitution to avoid accidental globbing in evaled expressions
6598no_glob_subst='s/\*/\\\*/g'
6599
6600# Constants:
6601rm="rm -f"
6602
6603# Global variables:
6604default_ofile=libtool
6605can_build_shared=yes
6606
6607# All known linkers require a `.a' archive for static linking (except MSVC,
6608# which needs '.lib').
6609libext=a
6610ltmain="$ac_aux_dir/ltmain.sh"
6611ofile="$default_ofile"
6612with_gnu_ld="$lt_cv_prog_gnu_ld"
6613
6614if test -n "$ac_tool_prefix"; then
6615 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6616set dummy ${ac_tool_prefix}ar; ac_word=$2
dd184caf 6617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6619if test "${ac_cv_prog_AR+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6621else
6622 if test -n "$AR"; then
6623 ac_cv_prog_AR="$AR" # Let the user override the test.
6624else
6625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626for as_dir in $PATH
6627do
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6632 ac_cv_prog_AR="${ac_tool_prefix}ar"
6633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 break 2
6635 fi
6636done
6637done
dd184caf 6638IFS=$as_save_IFS
d9898ee8 6639
6640fi
6641fi
6642AR=$ac_cv_prog_AR
6643if test -n "$AR"; then
dd184caf 6644 { echo "$as_me:$LINENO: result: $AR" >&5
6645echo "${ECHO_T}$AR" >&6; }
d9898ee8 6646else
dd184caf 6647 { echo "$as_me:$LINENO: result: no" >&5
6648echo "${ECHO_T}no" >&6; }
d9898ee8 6649fi
6650
dd184caf 6651
d9898ee8 6652fi
6653if test -z "$ac_cv_prog_AR"; then
6654 ac_ct_AR=$AR
6655 # Extract the first word of "ar", so it can be a program name with args.
6656set dummy ar; ac_word=$2
dd184caf 6657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6659if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6661else
6662 if test -n "$ac_ct_AR"; then
6663 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6664else
6665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666for as_dir in $PATH
6667do
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6672 ac_cv_prog_ac_ct_AR="ar"
6673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 break 2
6675 fi
6676done
6677done
dd184caf 6678IFS=$as_save_IFS
d9898ee8 6679
d9898ee8 6680fi
6681fi
6682ac_ct_AR=$ac_cv_prog_ac_ct_AR
6683if test -n "$ac_ct_AR"; then
dd184caf 6684 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6685echo "${ECHO_T}$ac_ct_AR" >&6; }
d9898ee8 6686else
dd184caf 6687 { echo "$as_me:$LINENO: result: no" >&5
6688echo "${ECHO_T}no" >&6; }
d9898ee8 6689fi
6690
dd184caf 6691 if test "x$ac_ct_AR" = x; then
6692 AR="false"
6693 else
6694 case $cross_compiling:$ac_tool_warned in
6695yes:)
6696{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6697whose name does not start with the host triplet. If you think this
6698configuration is useful to you, please write to autoconf@gnu.org." >&5
6699echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6700whose name does not start with the host triplet. If you think this
6701configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6702ac_tool_warned=yes ;;
6703esac
6704 AR=$ac_ct_AR
6705 fi
d9898ee8 6706else
6707 AR="$ac_cv_prog_AR"
6708fi
6709
6710if test -n "$ac_tool_prefix"; then
6711 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6712set dummy ${ac_tool_prefix}ranlib; ac_word=$2
dd184caf 6713{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6715if test "${ac_cv_prog_RANLIB+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6717else
6718 if test -n "$RANLIB"; then
6719 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6720else
6721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722for as_dir in $PATH
6723do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6728 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 break 2
6731 fi
6732done
6733done
dd184caf 6734IFS=$as_save_IFS
d9898ee8 6735
6736fi
6737fi
6738RANLIB=$ac_cv_prog_RANLIB
6739if test -n "$RANLIB"; then
dd184caf 6740 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6741echo "${ECHO_T}$RANLIB" >&6; }
d9898ee8 6742else
dd184caf 6743 { echo "$as_me:$LINENO: result: no" >&5
6744echo "${ECHO_T}no" >&6; }
d9898ee8 6745fi
6746
dd184caf 6747
d9898ee8 6748fi
6749if test -z "$ac_cv_prog_RANLIB"; then
6750 ac_ct_RANLIB=$RANLIB
6751 # Extract the first word of "ranlib", so it can be a program name with args.
6752set dummy ranlib; ac_word=$2
dd184caf 6753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6755if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757else
6758 if test -n "$ac_ct_RANLIB"; then
6759 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6760else
6761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762for as_dir in $PATH
6763do
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6768 ac_cv_prog_ac_ct_RANLIB="ranlib"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772done
6773done
dd184caf 6774IFS=$as_save_IFS
d9898ee8 6775
d9898ee8 6776fi
6777fi
6778ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6779if test -n "$ac_ct_RANLIB"; then
dd184caf 6780 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6781echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d9898ee8 6782else
dd184caf 6783 { echo "$as_me:$LINENO: result: no" >&5
6784echo "${ECHO_T}no" >&6; }
d9898ee8 6785fi
6786
dd184caf 6787 if test "x$ac_ct_RANLIB" = x; then
6788 RANLIB=":"
6789 else
6790 case $cross_compiling:$ac_tool_warned in
6791yes:)
6792{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6793whose name does not start with the host triplet. If you think this
6794configuration is useful to you, please write to autoconf@gnu.org." >&5
6795echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6796whose name does not start with the host triplet. If you think this
6797configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6798ac_tool_warned=yes ;;
6799esac
6800 RANLIB=$ac_ct_RANLIB
6801 fi
d9898ee8 6802else
6803 RANLIB="$ac_cv_prog_RANLIB"
6804fi
6805
6806if test -n "$ac_tool_prefix"; then
6807 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6808set dummy ${ac_tool_prefix}strip; ac_word=$2
dd184caf 6809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6811if test "${ac_cv_prog_STRIP+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6813else
6814 if test -n "$STRIP"; then
6815 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6816else
6817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818for as_dir in $PATH
6819do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6824 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 break 2
6827 fi
6828done
6829done
dd184caf 6830IFS=$as_save_IFS
d9898ee8 6831
6832fi
6833fi
6834STRIP=$ac_cv_prog_STRIP
6835if test -n "$STRIP"; then
dd184caf 6836 { echo "$as_me:$LINENO: result: $STRIP" >&5
6837echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 6838else
dd184caf 6839 { echo "$as_me:$LINENO: result: no" >&5
6840echo "${ECHO_T}no" >&6; }
d9898ee8 6841fi
6842
dd184caf 6843
d9898ee8 6844fi
6845if test -z "$ac_cv_prog_STRIP"; then
6846 ac_ct_STRIP=$STRIP
6847 # Extract the first word of "strip", so it can be a program name with args.
6848set dummy strip; ac_word=$2
dd184caf 6849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6851if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853else
6854 if test -n "$ac_ct_STRIP"; then
6855 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6856else
6857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858for as_dir in $PATH
6859do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6864 ac_cv_prog_ac_ct_STRIP="strip"
6865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868done
6869done
dd184caf 6870IFS=$as_save_IFS
d9898ee8 6871
d9898ee8 6872fi
6873fi
6874ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6875if test -n "$ac_ct_STRIP"; then
dd184caf 6876 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6877echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 6878else
dd184caf 6879 { echo "$as_me:$LINENO: result: no" >&5
6880echo "${ECHO_T}no" >&6; }
d9898ee8 6881fi
6882
dd184caf 6883 if test "x$ac_ct_STRIP" = x; then
6884 STRIP=":"
6885 else
6886 case $cross_compiling:$ac_tool_warned in
6887yes:)
6888{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6889whose name does not start with the host triplet. If you think this
6890configuration is useful to you, please write to autoconf@gnu.org." >&5
6891echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6892whose name does not start with the host triplet. If you think this
6893configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6894ac_tool_warned=yes ;;
6895esac
6896 STRIP=$ac_ct_STRIP
6897 fi
d9898ee8 6898else
6899 STRIP="$ac_cv_prog_STRIP"
6900fi
6901
6902
6903old_CC="$CC"
6904old_CFLAGS="$CFLAGS"
6905
6906# Set sane defaults for various variables
6907test -z "$AR" && AR=ar
6908test -z "$AR_FLAGS" && AR_FLAGS=cru
6909test -z "$AS" && AS=as
6910test -z "$CC" && CC=cc
6911test -z "$LTCC" && LTCC=$CC
6912test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6913test -z "$DLLTOOL" && DLLTOOL=dlltool
6914test -z "$LD" && LD=ld
6915test -z "$LN_S" && LN_S="ln -s"
6916test -z "$MAGIC_CMD" && MAGIC_CMD=file
6917test -z "$NM" && NM=nm
6918test -z "$SED" && SED=sed
6919test -z "$OBJDUMP" && OBJDUMP=objdump
6920test -z "$RANLIB" && RANLIB=:
6921test -z "$STRIP" && STRIP=:
6922test -z "$ac_objext" && ac_objext=o
6923
6924# Determine commands to create old-style static archives.
ac40fd9e 6925old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d9898ee8 6926old_postinstall_cmds='chmod 644 $oldlib'
6927old_postuninstall_cmds=
6928
6929if test -n "$RANLIB"; then
6930 case $host_os in
6931 openbsd*)
6932 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6933 ;;
6934 *)
6935 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6936 ;;
6937 esac
6938 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6939fi
6940
6941for cc_temp in $compiler""; do
6942 case $cc_temp in
6943 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6944 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6945 \-*) ;;
6946 *) break;;
6947 esac
6948done
6949cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6950
6951
6952# Only perform the check for file, if the check method requires it
6953case $deplibs_check_method in
6954file_magic*)
6955 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
dd184caf 6956 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6957echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d9898ee8 6958if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6960else
6961 case $MAGIC_CMD in
6962[\\/*] | ?:[\\/]*)
6963 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6964 ;;
6965*)
6966 lt_save_MAGIC_CMD="$MAGIC_CMD"
6967 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6968 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6969 for ac_dir in $ac_dummy; do
6970 IFS="$lt_save_ifs"
6971 test -z "$ac_dir" && ac_dir=.
6972 if test -f $ac_dir/${ac_tool_prefix}file; then
6973 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6974 if test -n "$file_magic_test_file"; then
6975 case $deplibs_check_method in
6976 "file_magic "*)
6977 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6978 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6979 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6980 $EGREP "$file_magic_regex" > /dev/null; then
6981 :
6982 else
6983 cat <<EOF 1>&2
6984
6985*** Warning: the command libtool uses to detect shared libraries,
6986*** $file_magic_cmd, produces output that libtool cannot recognize.
6987*** The result is that libtool may fail to recognize shared libraries
6988*** as such. This will affect the creation of libtool libraries that
6989*** depend on shared libraries, but programs linked with such libtool
6990*** libraries will work regardless of this problem. Nevertheless, you
6991*** may want to report the problem to your system manager and/or to
6992*** bug-libtool@gnu.org
6993
6994EOF
6995 fi ;;
6996 esac
6997 fi
6998 break
6999 fi
7000 done
7001 IFS="$lt_save_ifs"
7002 MAGIC_CMD="$lt_save_MAGIC_CMD"
7003 ;;
7004esac
7005fi
7006
7007MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7008if test -n "$MAGIC_CMD"; then
dd184caf 7009 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7010echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7011else
dd184caf 7012 { echo "$as_me:$LINENO: result: no" >&5
7013echo "${ECHO_T}no" >&6; }
d9898ee8 7014fi
7015
7016if test -z "$lt_cv_path_MAGIC_CMD"; then
7017 if test -n "$ac_tool_prefix"; then
dd184caf 7018 { echo "$as_me:$LINENO: checking for file" >&5
7019echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d9898ee8 7020if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022else
7023 case $MAGIC_CMD in
7024[\\/*] | ?:[\\/]*)
7025 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7026 ;;
7027*)
7028 lt_save_MAGIC_CMD="$MAGIC_CMD"
7029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7030 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7031 for ac_dir in $ac_dummy; do
7032 IFS="$lt_save_ifs"
7033 test -z "$ac_dir" && ac_dir=.
7034 if test -f $ac_dir/file; then
7035 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7036 if test -n "$file_magic_test_file"; then
7037 case $deplibs_check_method in
7038 "file_magic "*)
7039 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7040 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7041 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7042 $EGREP "$file_magic_regex" > /dev/null; then
7043 :
7044 else
7045 cat <<EOF 1>&2
7046
7047*** Warning: the command libtool uses to detect shared libraries,
7048*** $file_magic_cmd, produces output that libtool cannot recognize.
7049*** The result is that libtool may fail to recognize shared libraries
7050*** as such. This will affect the creation of libtool libraries that
7051*** depend on shared libraries, but programs linked with such libtool
7052*** libraries will work regardless of this problem. Nevertheless, you
7053*** may want to report the problem to your system manager and/or to
7054*** bug-libtool@gnu.org
7055
7056EOF
7057 fi ;;
7058 esac
7059 fi
7060 break
7061 fi
7062 done
7063 IFS="$lt_save_ifs"
7064 MAGIC_CMD="$lt_save_MAGIC_CMD"
7065 ;;
7066esac
7067fi
7068
7069MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7070if test -n "$MAGIC_CMD"; then
dd184caf 7071 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7072echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7073else
dd184caf 7074 { echo "$as_me:$LINENO: result: no" >&5
7075echo "${ECHO_T}no" >&6; }
d9898ee8 7076fi
7077
7078 else
7079 MAGIC_CMD=:
7080 fi
7081fi
7082
7083 fi
7084 ;;
7085esac
7086
7087enable_dlopen=no
7088enable_win32_dll=no
7089
dd184caf 7090# Check whether --enable-libtool-lock was given.
d9898ee8 7091if test "${enable_libtool_lock+set}" = set; then
dd184caf 7092 enableval=$enable_libtool_lock;
7093fi
d9898ee8 7094
d9898ee8 7095test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7096
7097
dd184caf 7098# Check whether --with-pic was given.
d9898ee8 7099if test "${with_pic+set}" = set; then
dd184caf 7100 withval=$with_pic; pic_mode="$withval"
d9898ee8 7101else
7102 pic_mode=default
dd184caf 7103fi
7104
d9898ee8 7105test -z "$pic_mode" && pic_mode=default
7106
7107# Use C for the default configuration in the libtool script
7108tagname=
7109lt_save_CC="$CC"
7110ac_ext=c
7111ac_cpp='$CPP $CPPFLAGS'
7112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7114ac_compiler_gnu=$ac_cv_c_compiler_gnu
7115
7116
7117# Source file extension for C test sources.
7118ac_ext=c
7119
7120# Object file extension for compiled C test sources.
7121objext=o
7122objext=$objext
7123
7124# Code to be used in simple compile tests
ac40fd9e 7125lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7126
7127# Code to be used in simple link tests
ac40fd9e 7128lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 7129
7130
7131# If no C compiler was specified, use CC.
7132LTCC=${LTCC-"$CC"}
7133
7134# If no C compiler flags were specified, use CFLAGS.
7135LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7136
7137# Allow CC to be a program name with arguments.
7138compiler=$CC
7139
7140
7141# save warnings/boilerplate of simple test code
7142ac_outfile=conftest.$ac_objext
ac40fd9e 7143echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 7144eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7145_lt_compiler_boilerplate=`cat conftest.err`
7146$rm conftest*
7147
7148ac_outfile=conftest.$ac_objext
ac40fd9e 7149echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 7150eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7151_lt_linker_boilerplate=`cat conftest.err`
7152$rm conftest*
7153
7154
7155
7156lt_prog_compiler_no_builtin_flag=
7157
7158if test "$GCC" = yes; then
7159 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7160
7161
dd184caf 7162{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7163echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 7164if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166else
7167 lt_cv_prog_compiler_rtti_exceptions=no
7168 ac_outfile=conftest.$ac_objext
ac40fd9e 7169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7170 lt_compiler_flag="-fno-rtti -fno-exceptions"
7171 # Insert the option either (1) after the last *FLAGS variable, or
7172 # (2) before a word containing "conftest.", or (3) at the end.
7173 # Note that $ac_compile itself does not contain backslashes and begins
7174 # with a dollar sign (not a hyphen), so the echo should work correctly.
7175 # The option is referenced via a variable to avoid confusing sed.
7176 lt_compile=`echo "$ac_compile" | $SED \
7177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7179 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 7180 (eval echo "\"\$as_me:7180: $lt_compile\"" >&5)
d9898ee8 7181 (eval "$lt_compile" 2>conftest.err)
7182 ac_status=$?
7183 cat conftest.err >&5
ac40fd9e 7184 echo "$as_me:7184: \$? = $ac_status" >&5
d9898ee8 7185 if (exit $ac_status) && test -s "$ac_outfile"; then
7186 # The compiler can only warn and ignore the option if not recognized
7187 # So say no if there are warnings other than the usual output.
7188 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7189 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7190 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7191 lt_cv_prog_compiler_rtti_exceptions=yes
7192 fi
7193 fi
7194 $rm conftest*
7195
7196fi
dd184caf 7197{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7198echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7199
7200if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7201 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7202else
7203 :
7204fi
7205
7206fi
7207
7208lt_prog_compiler_wl=
7209lt_prog_compiler_pic=
7210lt_prog_compiler_static=
7211
dd184caf 7212{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7213echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 7214
7215 if test "$GCC" = yes; then
7216 lt_prog_compiler_wl='-Wl,'
7217 lt_prog_compiler_static='-static'
7218
7219 case $host_os in
7220 aix*)
7221 # All AIX code is PIC.
7222 if test "$host_cpu" = ia64; then
7223 # AIX 5 now supports IA64 processor
7224 lt_prog_compiler_static='-Bstatic'
7225 fi
7226 ;;
7227
7228 amigaos*)
7229 # FIXME: we need at least 68020 code to build shared libraries, but
7230 # adding the `-m68020' flag to GCC prevents building anything better,
7231 # like `-m68040'.
7232 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7233 ;;
7234
ac40fd9e 7235 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 7236 # PIC is the default for these OSes.
7237 ;;
7238
ac40fd9e 7239 mingw* | cygwin* | pw32* | os2*)
d9898ee8 7240 # This hack is so that the source file can tell whether it is being
7241 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 7242 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7243 # (--disable-auto-import) libraries
d9898ee8 7244 lt_prog_compiler_pic='-DDLL_EXPORT'
7245 ;;
7246
7247 darwin* | rhapsody*)
7248 # PIC is the default on this platform
7249 # Common symbols not allowed in MH_DYLIB files
7250 lt_prog_compiler_pic='-fno-common'
7251 ;;
7252
ac40fd9e 7253 interix[3-9]*)
d9898ee8 7254 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7255 # Instead, we relocate shared libraries at runtime.
7256 ;;
7257
7258 msdosdjgpp*)
7259 # Just because we use GCC doesn't mean we suddenly get shared libraries
7260 # on systems that don't support them.
7261 lt_prog_compiler_can_build_shared=no
7262 enable_shared=no
7263 ;;
7264
7265 sysv4*MP*)
7266 if test -d /usr/nec; then
7267 lt_prog_compiler_pic=-Kconform_pic
7268 fi
7269 ;;
7270
7271 hpux*)
7272 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7273 # not for PA HP-UX.
7274 case $host_cpu in
7275 hppa*64*|ia64*)
7276 # +Z the default
7277 ;;
7278 *)
7279 lt_prog_compiler_pic='-fPIC'
7280 ;;
7281 esac
7282 ;;
7283
7284 *)
7285 lt_prog_compiler_pic='-fPIC'
7286 ;;
7287 esac
7288 else
7289 # PORTME Check for flag to pass linker flags through the system compiler.
7290 case $host_os in
7291 aix*)
7292 lt_prog_compiler_wl='-Wl,'
7293 if test "$host_cpu" = ia64; then
7294 # AIX 5 now supports IA64 processor
7295 lt_prog_compiler_static='-Bstatic'
7296 else
7297 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7298 fi
7299 ;;
7300 darwin*)
7301 # PIC is the default on this platform
7302 # Common symbols not allowed in MH_DYLIB files
7303 case $cc_basename in
7304 xlc*)
7305 lt_prog_compiler_pic='-qnocommon'
7306 lt_prog_compiler_wl='-Wl,'
7307 ;;
7308 esac
7309 ;;
7310
ac40fd9e 7311 mingw* | cygwin* | pw32* | os2*)
d9898ee8 7312 # This hack is so that the source file can tell whether it is being
7313 # built for inclusion in a dll (and should export symbols for example).
7314 lt_prog_compiler_pic='-DDLL_EXPORT'
7315 ;;
7316
7317 hpux9* | hpux10* | hpux11*)
7318 lt_prog_compiler_wl='-Wl,'
7319 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7320 # not for PA HP-UX.
7321 case $host_cpu in
7322 hppa*64*|ia64*)
7323 # +Z the default
7324 ;;
7325 *)
7326 lt_prog_compiler_pic='+Z'
7327 ;;
7328 esac
7329 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7330 lt_prog_compiler_static='${wl}-a ${wl}archive'
7331 ;;
7332
7333 irix5* | irix6* | nonstopux*)
7334 lt_prog_compiler_wl='-Wl,'
7335 # PIC (with -KPIC) is the default.
7336 lt_prog_compiler_static='-non_shared'
7337 ;;
7338
7339 newsos6)
7340 lt_prog_compiler_pic='-KPIC'
7341 lt_prog_compiler_static='-Bstatic'
7342 ;;
7343
ac40fd9e 7344 linux* | k*bsd*-gnu)
d9898ee8 7345 case $cc_basename in
7346 icc* | ecc*)
7347 lt_prog_compiler_wl='-Wl,'
7348 lt_prog_compiler_pic='-KPIC'
7349 lt_prog_compiler_static='-static'
7350 ;;
7351 pgcc* | pgf77* | pgf90* | pgf95*)
7352 # Portland Group compilers (*not* the Pentium gcc compiler,
7353 # which looks to be a dead project)
7354 lt_prog_compiler_wl='-Wl,'
7355 lt_prog_compiler_pic='-fpic'
7356 lt_prog_compiler_static='-Bstatic'
7357 ;;
7358 ccc*)
7359 lt_prog_compiler_wl='-Wl,'
7360 # All Alpha code is PIC.
7361 lt_prog_compiler_static='-non_shared'
7362 ;;
ac40fd9e 7363 *)
7364 case `$CC -V 2>&1 | sed 5q` in
7365 *Sun\ C*)
7366 # Sun C 5.9
7367 lt_prog_compiler_pic='-KPIC'
7368 lt_prog_compiler_static='-Bstatic'
7369 lt_prog_compiler_wl='-Wl,'
7370 ;;
7371 *Sun\ F*)
7372 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7373 lt_prog_compiler_pic='-KPIC'
7374 lt_prog_compiler_static='-Bstatic'
7375 lt_prog_compiler_wl=''
7376 ;;
7377 esac
7378 ;;
d9898ee8 7379 esac
7380 ;;
7381
7382 osf3* | osf4* | osf5*)
7383 lt_prog_compiler_wl='-Wl,'
7384 # All OSF/1 code is PIC.
7385 lt_prog_compiler_static='-non_shared'
7386 ;;
7387
ac40fd9e 7388 rdos*)
7389 lt_prog_compiler_static='-non_shared'
7390 ;;
7391
d9898ee8 7392 solaris*)
7393 lt_prog_compiler_pic='-KPIC'
7394 lt_prog_compiler_static='-Bstatic'
7395 case $cc_basename in
7396 f77* | f90* | f95*)
7397 lt_prog_compiler_wl='-Qoption ld ';;
7398 *)
7399 lt_prog_compiler_wl='-Wl,';;
7400 esac
7401 ;;
7402
7403 sunos4*)
7404 lt_prog_compiler_wl='-Qoption ld '
7405 lt_prog_compiler_pic='-PIC'
7406 lt_prog_compiler_static='-Bstatic'
7407 ;;
7408
7409 sysv4 | sysv4.2uw2* | sysv4.3*)
7410 lt_prog_compiler_wl='-Wl,'
7411 lt_prog_compiler_pic='-KPIC'
7412 lt_prog_compiler_static='-Bstatic'
7413 ;;
7414
7415 sysv4*MP*)
7416 if test -d /usr/nec ;then
7417 lt_prog_compiler_pic='-Kconform_pic'
7418 lt_prog_compiler_static='-Bstatic'
7419 fi
7420 ;;
7421
7422 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7423 lt_prog_compiler_wl='-Wl,'
7424 lt_prog_compiler_pic='-KPIC'
7425 lt_prog_compiler_static='-Bstatic'
7426 ;;
7427
7428 unicos*)
7429 lt_prog_compiler_wl='-Wl,'
7430 lt_prog_compiler_can_build_shared=no
7431 ;;
7432
7433 uts4*)
7434 lt_prog_compiler_pic='-pic'
7435 lt_prog_compiler_static='-Bstatic'
7436 ;;
7437
7438 *)
7439 lt_prog_compiler_can_build_shared=no
7440 ;;
7441 esac
7442 fi
7443
dd184caf 7444{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7445echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d9898ee8 7446
7447#
7448# Check to make sure the PIC flag actually works.
7449#
7450if test -n "$lt_prog_compiler_pic"; then
7451
dd184caf 7452{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7453echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d9898ee8 7454if test "${lt_prog_compiler_pic_works+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7456else
7457 lt_prog_compiler_pic_works=no
7458 ac_outfile=conftest.$ac_objext
ac40fd9e 7459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7460 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7461 # Insert the option either (1) after the last *FLAGS variable, or
7462 # (2) before a word containing "conftest.", or (3) at the end.
7463 # Note that $ac_compile itself does not contain backslashes and begins
7464 # with a dollar sign (not a hyphen), so the echo should work correctly.
7465 # The option is referenced via a variable to avoid confusing sed.
7466 lt_compile=`echo "$ac_compile" | $SED \
7467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7469 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 7470 (eval echo "\"\$as_me:7470: $lt_compile\"" >&5)
d9898ee8 7471 (eval "$lt_compile" 2>conftest.err)
7472 ac_status=$?
7473 cat conftest.err >&5
ac40fd9e 7474 echo "$as_me:7474: \$? = $ac_status" >&5
d9898ee8 7475 if (exit $ac_status) && test -s "$ac_outfile"; then
7476 # The compiler can only warn and ignore the option if not recognized
7477 # So say no if there are warnings other than the usual output.
7478 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7479 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7480 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7481 lt_prog_compiler_pic_works=yes
7482 fi
7483 fi
7484 $rm conftest*
7485
7486fi
dd184caf 7487{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7488echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d9898ee8 7489
7490if test x"$lt_prog_compiler_pic_works" = xyes; then
7491 case $lt_prog_compiler_pic in
7492 "" | " "*) ;;
7493 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7494 esac
7495else
7496 lt_prog_compiler_pic=
7497 lt_prog_compiler_can_build_shared=no
7498fi
7499
7500fi
7501case $host_os in
7502 # For platforms which do not support PIC, -DPIC is meaningless:
7503 *djgpp*)
7504 lt_prog_compiler_pic=
7505 ;;
7506 *)
7507 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7508 ;;
7509esac
7510
7511#
7512# Check to make sure the static flag actually works.
7513#
7514wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
dd184caf 7515{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7516echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 7517if test "${lt_prog_compiler_static_works+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519else
7520 lt_prog_compiler_static_works=no
7521 save_LDFLAGS="$LDFLAGS"
7522 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 7523 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 7524 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7525 # The linker can only warn and ignore the option if not recognized
7526 # So say no if there are warnings
7527 if test -s conftest.err; then
7528 # Append any errors to the config.log.
7529 cat conftest.err 1>&5
7530 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7532 if diff conftest.exp conftest.er2 >/dev/null; then
7533 lt_prog_compiler_static_works=yes
7534 fi
7535 else
7536 lt_prog_compiler_static_works=yes
7537 fi
7538 fi
7539 $rm conftest*
7540 LDFLAGS="$save_LDFLAGS"
7541
7542fi
dd184caf 7543{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7544echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
d9898ee8 7545
7546if test x"$lt_prog_compiler_static_works" = xyes; then
7547 :
7548else
7549 lt_prog_compiler_static=
7550fi
7551
7552
dd184caf 7553{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7554echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 7555if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7557else
7558 lt_cv_prog_compiler_c_o=no
7559 $rm -r conftest 2>/dev/null
7560 mkdir conftest
7561 cd conftest
7562 mkdir out
ac40fd9e 7563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7564
7565 lt_compiler_flag="-o out/conftest2.$ac_objext"
7566 # Insert the option either (1) after the last *FLAGS variable, or
7567 # (2) before a word containing "conftest.", or (3) at the end.
7568 # Note that $ac_compile itself does not contain backslashes and begins
7569 # with a dollar sign (not a hyphen), so the echo should work correctly.
7570 lt_compile=`echo "$ac_compile" | $SED \
7571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7573 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 7574 (eval echo "\"\$as_me:7574: $lt_compile\"" >&5)
d9898ee8 7575 (eval "$lt_compile" 2>out/conftest.err)
7576 ac_status=$?
7577 cat out/conftest.err >&5
ac40fd9e 7578 echo "$as_me:7578: \$? = $ac_status" >&5
d9898ee8 7579 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7580 then
7581 # The compiler can only warn and ignore the option if not recognized
7582 # So say no if there are warnings
7583 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7584 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7585 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7586 lt_cv_prog_compiler_c_o=yes
7587 fi
7588 fi
7589 chmod u+w . 2>&5
7590 $rm conftest*
7591 # SGI C++ compiler will create directory out/ii_files/ for
7592 # template instantiation
7593 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7594 $rm out/* && rmdir out
7595 cd ..
7596 rmdir conftest
7597 $rm conftest*
7598
7599fi
dd184caf 7600{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7601echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 7602
7603
7604hard_links="nottested"
7605if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7606 # do not overwrite the value of need_locks provided by the user
dd184caf 7607 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7608echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 7609 hard_links=yes
7610 $rm conftest*
7611 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7612 touch conftest.a
7613 ln conftest.a conftest.b 2>&5 || hard_links=no
7614 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 7615 { echo "$as_me:$LINENO: result: $hard_links" >&5
7616echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 7617 if test "$hard_links" = no; then
7618 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7619echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7620 need_locks=warn
7621 fi
7622else
7623 need_locks=no
7624fi
7625
dd184caf 7626{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7627echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 7628
7629 runpath_var=
7630 allow_undefined_flag=
7631 enable_shared_with_static_runtimes=no
7632 archive_cmds=
7633 archive_expsym_cmds=
7634 old_archive_From_new_cmds=
7635 old_archive_from_expsyms_cmds=
7636 export_dynamic_flag_spec=
7637 whole_archive_flag_spec=
7638 thread_safe_flag_spec=
7639 hardcode_libdir_flag_spec=
7640 hardcode_libdir_flag_spec_ld=
7641 hardcode_libdir_separator=
7642 hardcode_direct=no
7643 hardcode_minus_L=no
7644 hardcode_shlibpath_var=unsupported
7645 link_all_deplibs=unknown
7646 hardcode_automatic=no
7647 module_cmds=
7648 module_expsym_cmds=
7649 always_export_symbols=no
7650 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7651 # include_expsyms should be a list of space-separated symbols to be *always*
7652 # included in the symbol list
7653 include_expsyms=
7654 # exclude_expsyms can be an extended regexp of symbols to exclude
7655 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7656 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7657 # as well as any symbol that contains `d'.
7658 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7659 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7660 # platforms (ab)use it in PIC code, but their linkers get confused if
7661 # the symbol is explicitly referenced. Since portable code cannot
7662 # rely on this symbol name, it's probably fine to never include it in
7663 # preloaded symbol tables.
7664 extract_expsyms_cmds=
7665 # Just being paranoid about ensuring that cc_basename is set.
7666 for cc_temp in $compiler""; do
7667 case $cc_temp in
7668 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7669 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7670 \-*) ;;
7671 *) break;;
7672 esac
7673done
7674cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7675
7676 case $host_os in
7677 cygwin* | mingw* | pw32*)
7678 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7679 # When not using gcc, we currently assume that we are using
7680 # Microsoft Visual C++.
7681 if test "$GCC" != yes; then
7682 with_gnu_ld=no
7683 fi
7684 ;;
7685 interix*)
7686 # we just hope/assume this is gcc and not c89 (= MSVC++)
7687 with_gnu_ld=yes
7688 ;;
7689 openbsd*)
7690 with_gnu_ld=no
7691 ;;
7692 esac
7693
7694 ld_shlibs=yes
7695 if test "$with_gnu_ld" = yes; then
7696 # If archive_cmds runs LD, not CC, wlarc should be empty
7697 wlarc='${wl}'
7698
7699 # Set some defaults for GNU ld with shared library support. These
7700 # are reset later if shared libraries are not supported. Putting them
7701 # here allows them to be overridden if necessary.
7702 runpath_var=LD_RUN_PATH
7703 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7704 export_dynamic_flag_spec='${wl}--export-dynamic'
7705 # ancient GNU ld didn't support --whole-archive et. al.
7706 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7707 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7708 else
7709 whole_archive_flag_spec=
7710 fi
7711 supports_anon_versioning=no
7712 case `$LD -v 2>/dev/null` in
7713 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7714 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7715 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7716 *\ 2.11.*) ;; # other 2.11 versions
7717 *) supports_anon_versioning=yes ;;
7718 esac
7719
7720 # See if GNU ld supports shared libraries.
7721 case $host_os in
7722 aix3* | aix4* | aix5*)
7723 # On AIX/PPC, the GNU linker is very broken
7724 if test "$host_cpu" != ia64; then
7725 ld_shlibs=no
7726 cat <<EOF 1>&2
7727
7728*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7729*** to be unable to reliably create shared libraries on AIX.
7730*** Therefore, libtool is disabling shared libraries support. If you
7731*** really care for shared libraries, you may want to modify your PATH
7732*** so that a non-GNU linker is found, and then restart.
7733
7734EOF
7735 fi
7736 ;;
7737
7738 amigaos*)
7739 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)'
7740 hardcode_libdir_flag_spec='-L$libdir'
7741 hardcode_minus_L=yes
7742
7743 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7744 # that the semantics of dynamic libraries on AmigaOS, at least up
7745 # to version 4, is to share data among multiple programs linked
7746 # with the same dynamic library. Since this doesn't match the
7747 # behavior of shared libraries on other platforms, we can't use
7748 # them.
7749 ld_shlibs=no
7750 ;;
7751
7752 beos*)
7753 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7754 allow_undefined_flag=unsupported
7755 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7756 # support --undefined. This deserves some investigation. FIXME
7757 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7758 else
7759 ld_shlibs=no
7760 fi
7761 ;;
7762
7763 cygwin* | mingw* | pw32*)
7764 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7765 # as there is no search path for DLLs.
7766 hardcode_libdir_flag_spec='-L$libdir'
7767 allow_undefined_flag=unsupported
7768 always_export_symbols=no
7769 enable_shared_with_static_runtimes=yes
ac40fd9e 7770 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 7771
7772 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7774 # If the export-symbols file already is a .def file (1st line
7775 # is EXPORTS), use it as is; otherwise, prepend...
7776 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7777 cp $export_symbols $output_objdir/$soname.def;
7778 else
7779 echo EXPORTS > $output_objdir/$soname.def;
7780 cat $export_symbols >> $output_objdir/$soname.def;
7781 fi~
7782 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7783 else
7784 ld_shlibs=no
7785 fi
7786 ;;
7787
ac40fd9e 7788 interix[3-9]*)
d9898ee8 7789 hardcode_direct=no
7790 hardcode_shlibpath_var=no
7791 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7792 export_dynamic_flag_spec='${wl}-E'
7793 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7794 # Instead, shared libraries are loaded at an image base (0x10000000 by
7795 # default) and relocated if they conflict, which is a slow very memory
7796 # consuming and fragmenting process. To avoid this, we pick a random,
7797 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7798 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7799 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7800 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'
7801 ;;
7802
ac40fd9e 7803 gnu* | linux* | k*bsd*-gnu)
d9898ee8 7804 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7805 tmp_addflag=
7806 case $cc_basename,$host_cpu in
7807 pgcc*) # Portland Group C compiler
7808 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'
7809 tmp_addflag=' $pic_flag'
7810 ;;
7811 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7812 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'
7813 tmp_addflag=' $pic_flag -Mnomain' ;;
7814 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7815 tmp_addflag=' -i_dynamic' ;;
7816 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7817 tmp_addflag=' -i_dynamic -nofor_main' ;;
7818 ifc* | ifort*) # Intel Fortran compiler
7819 tmp_addflag=' -nofor_main' ;;
7820 esac
ac40fd9e 7821 case `$CC -V 2>&1 | sed 5q` in
7822 *Sun\ C*) # Sun C 5.9
7823 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7824 tmp_sharedflag='-G' ;;
7825 *Sun\ F*) # Sun Fortran 8.3
7826 tmp_sharedflag='-G' ;;
7827 *)
7828 tmp_sharedflag='-shared' ;;
7829 esac
7830 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 7831
7832 if test $supports_anon_versioning = yes; then
7833 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7835 $echo "local: *; };" >> $output_objdir/$libname.ver~
ac40fd9e 7836 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 7837 fi
7838 else
7839 ld_shlibs=no
7840 fi
7841 ;;
7842
7843 netbsd*)
7844 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7845 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7846 wlarc=
7847 else
7848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7850 fi
7851 ;;
7852
7853 solaris*)
7854 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7855 ld_shlibs=no
7856 cat <<EOF 1>&2
7857
7858*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7859*** create shared libraries on Solaris systems. Therefore, libtool
7860*** is disabling shared libraries support. We urge you to upgrade GNU
7861*** binutils to release 2.9.1 or newer. Another option is to modify
7862*** your PATH or compiler configuration so that the native linker is
7863*** used, and then restart.
7864
7865EOF
7866 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7868 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7869 else
7870 ld_shlibs=no
7871 fi
7872 ;;
7873
7874 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7875 case `$LD -v 2>&1` in
7876 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7877 ld_shlibs=no
7878 cat <<_LT_EOF 1>&2
7879
7880*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7881*** reliably create shared libraries on SCO systems. Therefore, libtool
7882*** is disabling shared libraries support. We urge you to upgrade GNU
7883*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7884*** your PATH or compiler configuration so that the native linker is
7885*** used, and then restart.
7886
7887_LT_EOF
7888 ;;
7889 *)
7890 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7891 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7893 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7894 else
7895 ld_shlibs=no
7896 fi
7897 ;;
7898 esac
7899 ;;
7900
7901 sunos4*)
7902 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7903 wlarc=
7904 hardcode_direct=yes
7905 hardcode_shlibpath_var=no
7906 ;;
7907
7908 *)
7909 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7910 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7911 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7912 else
7913 ld_shlibs=no
7914 fi
7915 ;;
7916 esac
7917
7918 if test "$ld_shlibs" = no; then
7919 runpath_var=
7920 hardcode_libdir_flag_spec=
7921 export_dynamic_flag_spec=
7922 whole_archive_flag_spec=
7923 fi
7924 else
7925 # PORTME fill in a description of your system's linker (not GNU ld)
7926 case $host_os in
7927 aix3*)
7928 allow_undefined_flag=unsupported
7929 always_export_symbols=yes
7930 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'
7931 # Note: this linker hardcodes the directories in LIBPATH if there
7932 # are no directories specified by -L.
7933 hardcode_minus_L=yes
7934 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7935 # Neither direct hardcoding nor static linking is supported with a
7936 # broken collect2.
7937 hardcode_direct=unsupported
7938 fi
7939 ;;
7940
7941 aix4* | aix5*)
7942 if test "$host_cpu" = ia64; then
7943 # On IA64, the linker does run time linking by default, so we don't
7944 # have to do anything special.
7945 aix_use_runtimelinking=no
7946 exp_sym_flag='-Bexport'
7947 no_entry_flag=""
7948 else
7949 # If we're using GNU nm, then we don't want the "-C" option.
7950 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7951 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7952 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'
7953 else
7954 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'
7955 fi
7956 aix_use_runtimelinking=no
7957
7958 # Test if we are trying to use run time linking or normal
7959 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7960 # need to do runtime linking.
7961 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7962 for ld_flag in $LDFLAGS; do
7963 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7964 aix_use_runtimelinking=yes
7965 break
7966 fi
7967 done
7968 ;;
7969 esac
7970
7971 exp_sym_flag='-bexport'
7972 no_entry_flag='-bnoentry'
7973 fi
7974
7975 # When large executables or shared objects are built, AIX ld can
7976 # have problems creating the table of contents. If linking a library
7977 # or program results in "error TOC overflow" add -mminimal-toc to
7978 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7979 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7980
7981 archive_cmds=''
7982 hardcode_direct=yes
7983 hardcode_libdir_separator=':'
7984 link_all_deplibs=yes
7985
7986 if test "$GCC" = yes; then
7987 case $host_os in aix4.[012]|aix4.[012].*)
7988 # We only want to do this on AIX 4.2 and lower, the check
7989 # below for broken collect2 doesn't work under 4.3+
7990 collect2name=`${CC} -print-prog-name=collect2`
7991 if test -f "$collect2name" && \
7992 strings "$collect2name" | grep resolve_lib_name >/dev/null
7993 then
7994 # We have reworked collect2
ac40fd9e 7995 :
d9898ee8 7996 else
7997 # We have old collect2
7998 hardcode_direct=unsupported
7999 # It fails to find uninstalled libraries when the uninstalled
8000 # path is not listed in the libpath. Setting hardcode_minus_L
8001 # to unsupported forces relinking
8002 hardcode_minus_L=yes
8003 hardcode_libdir_flag_spec='-L$libdir'
8004 hardcode_libdir_separator=
8005 fi
8006 ;;
8007 esac
8008 shared_flag='-shared'
8009 if test "$aix_use_runtimelinking" = yes; then
8010 shared_flag="$shared_flag "'${wl}-G'
8011 fi
8012 else
8013 # not using gcc
8014 if test "$host_cpu" = ia64; then
8015 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8016 # chokes on -Wl,-G. The following line is correct:
8017 shared_flag='-G'
8018 else
8019 if test "$aix_use_runtimelinking" = yes; then
8020 shared_flag='${wl}-G'
8021 else
8022 shared_flag='${wl}-bM:SRE'
8023 fi
8024 fi
8025 fi
8026
8027 # It seems that -bexpall does not export symbols beginning with
8028 # underscore (_), so it is better to generate a list of symbols to export.
8029 always_export_symbols=yes
8030 if test "$aix_use_runtimelinking" = yes; then
8031 # Warning - without using the other runtime loading flags (-brtl),
8032 # -berok will link without error, but may produce a broken library.
8033 allow_undefined_flag='-berok'
8034 # Determine the default libpath from the value encoded in an empty executable.
8035 cat >conftest.$ac_ext <<_ACEOF
8036/* confdefs.h. */
8037_ACEOF
8038cat confdefs.h >>conftest.$ac_ext
8039cat >>conftest.$ac_ext <<_ACEOF
8040/* end confdefs.h. */
8041
8042int
8043main ()
8044{
8045
8046 ;
8047 return 0;
8048}
8049_ACEOF
8050rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8051if { (ac_try="$ac_link"
8052case "(($ac_try" in
8053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8054 *) ac_try_echo=$ac_try;;
8055esac
8056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8057 (eval "$ac_link") 2>conftest.er1
d9898ee8 8058 ac_status=$?
8059 grep -v '^ *+' conftest.er1 >conftest.err
8060 rm -f conftest.er1
8061 cat conftest.err >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8063 (exit $ac_status); } && {
8064 test -z "$ac_c_werror_flag" ||
8065 test ! -s conftest.err
8066 } && test -s conftest$ac_exeext &&
8067 $as_test_x conftest$ac_exeext; then
d9898ee8 8068
ac40fd9e 8069lt_aix_libpath_sed='
8070 /Import File Strings/,/^$/ {
8071 /^0/ {
8072 s/^0 *\(.*\)$/\1/
8073 p
8074 }
8075 }'
8076aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8077# Check for a 64-bit object if we didn't find anything.
ac40fd9e 8078if test -z "$aix_libpath"; then
8079 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8080fi
d9898ee8 8081else
8082 echo "$as_me: failed program was:" >&5
8083sed 's/^/| /' conftest.$ac_ext >&5
8084
dd184caf 8085
d9898ee8 8086fi
dd184caf 8087
8088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8089 conftest$ac_exeext conftest.$ac_ext
8090if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8091
8092 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8093 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"
8094 else
8095 if test "$host_cpu" = ia64; then
8096 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8097 allow_undefined_flag="-z nodefs"
8098 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"
8099 else
8100 # Determine the default libpath from the value encoded in an empty executable.
8101 cat >conftest.$ac_ext <<_ACEOF
8102/* confdefs.h. */
8103_ACEOF
8104cat confdefs.h >>conftest.$ac_ext
8105cat >>conftest.$ac_ext <<_ACEOF
8106/* end confdefs.h. */
8107
8108int
8109main ()
8110{
8111
8112 ;
8113 return 0;
8114}
8115_ACEOF
8116rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8117if { (ac_try="$ac_link"
8118case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8121esac
8122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_link") 2>conftest.er1
d9898ee8 8124 ac_status=$?
8125 grep -v '^ *+' conftest.er1 >conftest.err
8126 rm -f conftest.er1
8127 cat conftest.err >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8129 (exit $ac_status); } && {
8130 test -z "$ac_c_werror_flag" ||
8131 test ! -s conftest.err
8132 } && test -s conftest$ac_exeext &&
8133 $as_test_x conftest$ac_exeext; then
d9898ee8 8134
ac40fd9e 8135lt_aix_libpath_sed='
8136 /Import File Strings/,/^$/ {
8137 /^0/ {
8138 s/^0 *\(.*\)$/\1/
8139 p
8140 }
8141 }'
8142aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8143# Check for a 64-bit object if we didn't find anything.
ac40fd9e 8144if test -z "$aix_libpath"; then
8145 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8146fi
d9898ee8 8147else
8148 echo "$as_me: failed program was:" >&5
8149sed 's/^/| /' conftest.$ac_ext >&5
8150
dd184caf 8151
d9898ee8 8152fi
dd184caf 8153
8154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8155 conftest$ac_exeext conftest.$ac_ext
8156if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8157
8158 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8159 # Warning - without using the other run time loading flags,
8160 # -berok will link without error, but may produce a broken library.
8161 no_undefined_flag=' ${wl}-bernotok'
8162 allow_undefined_flag=' ${wl}-berok'
8163 # Exported symbols can be pulled into shared objects from archives
8164 whole_archive_flag_spec='$convenience'
8165 archive_cmds_need_lc=yes
8166 # This is similar to how AIX traditionally builds its shared libraries.
8167 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'
8168 fi
8169 fi
8170 ;;
8171
8172 amigaos*)
8173 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)'
8174 hardcode_libdir_flag_spec='-L$libdir'
8175 hardcode_minus_L=yes
8176 # see comment about different semantics on the GNU ld section
8177 ld_shlibs=no
8178 ;;
8179
8180 bsdi[45]*)
8181 export_dynamic_flag_spec=-rdynamic
8182 ;;
8183
8184 cygwin* | mingw* | pw32*)
8185 # When not using gcc, we currently assume that we are using
8186 # Microsoft Visual C++.
8187 # hardcode_libdir_flag_spec is actually meaningless, as there is
8188 # no search path for DLLs.
8189 hardcode_libdir_flag_spec=' '
8190 allow_undefined_flag=unsupported
8191 # Tell ltmain to make .lib files, not .a files.
8192 libext=lib
8193 # Tell ltmain to make .dll files, not .so files.
8194 shrext_cmds=".dll"
8195 # FIXME: Setting linknames here is a bad hack.
8196 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8197 # The linker will automatically build a .lib file if we build a DLL.
8198 old_archive_From_new_cmds='true'
8199 # FIXME: Should let the user specify the lib program.
ac40fd9e 8200 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 8201 fix_srcfile_path='`cygpath -w "$srcfile"`'
8202 enable_shared_with_static_runtimes=yes
8203 ;;
8204
8205 darwin* | rhapsody*)
8206 case $host_os in
8207 rhapsody* | darwin1.[012])
8208 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8209 ;;
8210 *) # Darwin 1.3 on
8211 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8212 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8213 else
8214 case ${MACOSX_DEPLOYMENT_TARGET} in
8215 10.[012])
8216 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8217 ;;
8218 10.*)
8219 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8220 ;;
8221 esac
8222 fi
8223 ;;
8224 esac
8225 archive_cmds_need_lc=no
8226 hardcode_direct=no
8227 hardcode_automatic=yes
8228 hardcode_shlibpath_var=unsupported
8229 whole_archive_flag_spec=''
8230 link_all_deplibs=yes
8231 if test "$GCC" = yes ; then
8232 output_verbose_link_cmd='echo'
8233 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8234 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8235 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8236 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}'
8237 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}'
8238 else
8239 case $cc_basename in
8240 xlc*)
8241 output_verbose_link_cmd='echo'
ac40fd9e 8242 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 8243 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8244 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ac40fd9e 8245 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 8246 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}'
8247 ;;
8248 *)
8249 ld_shlibs=no
8250 ;;
8251 esac
8252 fi
8253 ;;
8254
8255 dgux*)
8256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8257 hardcode_libdir_flag_spec='-L$libdir'
8258 hardcode_shlibpath_var=no
8259 ;;
8260
8261 freebsd1*)
8262 ld_shlibs=no
8263 ;;
8264
8265 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8266 # support. Future versions do this automatically, but an explicit c++rt0.o
8267 # does not break anything, and helps significantly (at the cost of a little
8268 # extra space).
8269 freebsd2.2*)
8270 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8271 hardcode_libdir_flag_spec='-R$libdir'
8272 hardcode_direct=yes
8273 hardcode_shlibpath_var=no
8274 ;;
8275
8276 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8277 freebsd2*)
8278 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8279 hardcode_direct=yes
8280 hardcode_minus_L=yes
8281 hardcode_shlibpath_var=no
8282 ;;
8283
8284 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ac40fd9e 8285 freebsd* | dragonfly*)
d9898ee8 8286 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8287 hardcode_libdir_flag_spec='-R$libdir'
8288 hardcode_direct=yes
8289 hardcode_shlibpath_var=no
8290 ;;
8291
8292 hpux9*)
8293 if test "$GCC" = yes; then
8294 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'
8295 else
8296 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'
8297 fi
8298 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8299 hardcode_libdir_separator=:
8300 hardcode_direct=yes
8301
8302 # hardcode_minus_L: Not really in the search PATH,
8303 # but as the default location of the library.
8304 hardcode_minus_L=yes
8305 export_dynamic_flag_spec='${wl}-E'
8306 ;;
8307
8308 hpux10*)
8309 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8310 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8311 else
8312 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8313 fi
8314 if test "$with_gnu_ld" = no; then
8315 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8316 hardcode_libdir_separator=:
8317
8318 hardcode_direct=yes
8319 export_dynamic_flag_spec='${wl}-E'
8320
8321 # hardcode_minus_L: Not really in the search PATH,
8322 # but as the default location of the library.
8323 hardcode_minus_L=yes
8324 fi
8325 ;;
8326
8327 hpux11*)
8328 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8329 case $host_cpu in
8330 hppa*64*)
8331 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8332 ;;
8333 ia64*)
8334 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8335 ;;
8336 *)
8337 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8338 ;;
8339 esac
8340 else
8341 case $host_cpu in
8342 hppa*64*)
8343 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8344 ;;
8345 ia64*)
8346 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8347 ;;
8348 *)
8349 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8350 ;;
8351 esac
8352 fi
8353 if test "$with_gnu_ld" = no; then
8354 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8355 hardcode_libdir_separator=:
8356
8357 case $host_cpu in
8358 hppa*64*|ia64*)
8359 hardcode_libdir_flag_spec_ld='+b $libdir'
8360 hardcode_direct=no
8361 hardcode_shlibpath_var=no
8362 ;;
8363 *)
8364 hardcode_direct=yes
8365 export_dynamic_flag_spec='${wl}-E'
8366
8367 # hardcode_minus_L: Not really in the search PATH,
8368 # but as the default location of the library.
8369 hardcode_minus_L=yes
8370 ;;
8371 esac
8372 fi
8373 ;;
8374
8375 irix5* | irix6* | nonstopux*)
8376 if test "$GCC" = yes; then
8377 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'
8378 else
8379 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'
8380 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8381 fi
8382 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8383 hardcode_libdir_separator=:
8384 link_all_deplibs=yes
8385 ;;
8386
8387 netbsd*)
8388 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8389 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8390 else
8391 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8392 fi
8393 hardcode_libdir_flag_spec='-R$libdir'
8394 hardcode_direct=yes
8395 hardcode_shlibpath_var=no
8396 ;;
8397
8398 newsos6)
8399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400 hardcode_direct=yes
8401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8402 hardcode_libdir_separator=:
8403 hardcode_shlibpath_var=no
8404 ;;
8405
8406 openbsd*)
ac40fd9e 8407 if test -f /usr/libexec/ld.so; then
8408 hardcode_direct=yes
8409 hardcode_shlibpath_var=no
8410 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8411 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8412 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8414 export_dynamic_flag_spec='${wl}-E'
8415 else
8416 case $host_os in
8417 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8418 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8419 hardcode_libdir_flag_spec='-R$libdir'
8420 ;;
8421 *)
8422 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8423 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8424 ;;
8425 esac
8426 fi
d9898ee8 8427 else
ac40fd9e 8428 ld_shlibs=no
d9898ee8 8429 fi
8430 ;;
8431
8432 os2*)
8433 hardcode_libdir_flag_spec='-L$libdir'
8434 hardcode_minus_L=yes
8435 allow_undefined_flag=unsupported
8436 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'
8437 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8438 ;;
8439
8440 osf3*)
8441 if test "$GCC" = yes; then
8442 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8443 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'
8444 else
8445 allow_undefined_flag=' -expect_unresolved \*'
8446 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'
8447 fi
8448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8449 hardcode_libdir_separator=:
8450 ;;
8451
8452 osf4* | osf5*) # as osf3* with the addition of -msym flag
8453 if test "$GCC" = yes; then
8454 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8455 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'
8456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8457 else
8458 allow_undefined_flag=' -expect_unresolved \*'
8459 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'
8460 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8461 $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'
8462
8463 # Both c and cxx compiler support -rpath directly
8464 hardcode_libdir_flag_spec='-rpath $libdir'
8465 fi
8466 hardcode_libdir_separator=:
8467 ;;
8468
8469 solaris*)
8470 no_undefined_flag=' -z text'
8471 if test "$GCC" = yes; then
8472 wlarc='${wl}'
8473 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8474 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8475 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8476 else
8477 wlarc=''
8478 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8479 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8480 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8481 fi
8482 hardcode_libdir_flag_spec='-R$libdir'
8483 hardcode_shlibpath_var=no
8484 case $host_os in
8485 solaris2.[0-5] | solaris2.[0-5].*) ;;
8486 *)
ac40fd9e 8487 # The compiler driver will combine and reorder linker options,
8488 # but understands `-z linker_flag'. GCC discards it without `$wl',
8489 # but is careful enough not to reorder.
d9898ee8 8490 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 8491 if test "$GCC" = yes; then
8492 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8493 else
8494 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8495 fi
8496 ;;
d9898ee8 8497 esac
8498 link_all_deplibs=yes
8499 ;;
8500
8501 sunos4*)
8502 if test "x$host_vendor" = xsequent; then
8503 # Use $CC to link under sequent, because it throws in some extra .o
8504 # files that make .init and .fini sections work.
8505 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8506 else
8507 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8508 fi
8509 hardcode_libdir_flag_spec='-L$libdir'
8510 hardcode_direct=yes
8511 hardcode_minus_L=yes
8512 hardcode_shlibpath_var=no
8513 ;;
8514
8515 sysv4)
8516 case $host_vendor in
8517 sni)
8518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8519 hardcode_direct=yes # is this really true???
8520 ;;
8521 siemens)
8522 ## LD is ld it makes a PLAMLIB
8523 ## CC just makes a GrossModule.
8524 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8525 reload_cmds='$CC -r -o $output$reload_objs'
8526 hardcode_direct=no
8527 ;;
8528 motorola)
8529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8530 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8531 ;;
8532 esac
8533 runpath_var='LD_RUN_PATH'
8534 hardcode_shlibpath_var=no
8535 ;;
8536
8537 sysv4.3*)
8538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8539 hardcode_shlibpath_var=no
8540 export_dynamic_flag_spec='-Bexport'
8541 ;;
8542
8543 sysv4*MP*)
8544 if test -d /usr/nec; then
8545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8546 hardcode_shlibpath_var=no
8547 runpath_var=LD_RUN_PATH
8548 hardcode_runpath_var=yes
8549 ld_shlibs=yes
8550 fi
8551 ;;
8552
ac40fd9e 8553 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 8554 no_undefined_flag='${wl}-z,text'
8555 archive_cmds_need_lc=no
8556 hardcode_shlibpath_var=no
8557 runpath_var='LD_RUN_PATH'
8558
8559 if test "$GCC" = yes; then
8560 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8561 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8562 else
8563 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8564 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8565 fi
8566 ;;
8567
8568 sysv5* | sco3.2v5* | sco5v6*)
8569 # Note: We can NOT use -z defs as we might desire, because we do not
8570 # link with -lc, and that would cause any symbols used from libc to
8571 # always be unresolved, which means just about no library would
8572 # ever link correctly. If we're not using GNU ld we use -z text
8573 # though, which does catch some bad symbols but isn't as heavy-handed
8574 # as -z defs.
8575 no_undefined_flag='${wl}-z,text'
8576 allow_undefined_flag='${wl}-z,nodefs'
8577 archive_cmds_need_lc=no
8578 hardcode_shlibpath_var=no
8579 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8580 hardcode_libdir_separator=':'
8581 link_all_deplibs=yes
8582 export_dynamic_flag_spec='${wl}-Bexport'
8583 runpath_var='LD_RUN_PATH'
8584
8585 if test "$GCC" = yes; then
8586 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8587 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8588 else
8589 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8590 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8591 fi
8592 ;;
8593
8594 uts4*)
8595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8596 hardcode_libdir_flag_spec='-L$libdir'
8597 hardcode_shlibpath_var=no
8598 ;;
8599
8600 *)
8601 ld_shlibs=no
8602 ;;
8603 esac
8604 fi
8605
dd184caf 8606{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8607echo "${ECHO_T}$ld_shlibs" >&6; }
d9898ee8 8608test "$ld_shlibs" = no && can_build_shared=no
8609
8610#
8611# Do we need to explicitly link libc?
8612#
8613case "x$archive_cmds_need_lc" in
8614x|xyes)
8615 # Assume -lc should be added
8616 archive_cmds_need_lc=yes
8617
8618 if test "$enable_shared" = yes && test "$GCC" = yes; then
8619 case $archive_cmds in
8620 *'~'*)
8621 # FIXME: we may have to deal with multi-command sequences.
8622 ;;
8623 '$CC '*)
8624 # Test whether the compiler implicitly links with -lc since on some
8625 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8626 # to ld, don't add -lc before -lgcc.
dd184caf 8627 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8628echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 8629 $rm conftest*
ac40fd9e 8630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8631
8632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8633 (eval $ac_compile) 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } 2>conftest.err; then
8637 soname=conftest
8638 lib=conftest
8639 libobjs=conftest.$ac_objext
8640 deplibs=
8641 wl=$lt_prog_compiler_wl
8642 pic_flag=$lt_prog_compiler_pic
8643 compiler_flags=-v
8644 linker_flags=-v
8645 verstring=
8646 output_objdir=.
8647 libname=conftest
8648 lt_save_allow_undefined_flag=$allow_undefined_flag
8649 allow_undefined_flag=
8650 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8651 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8652 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }
8655 then
8656 archive_cmds_need_lc=no
8657 else
8658 archive_cmds_need_lc=yes
8659 fi
8660 allow_undefined_flag=$lt_save_allow_undefined_flag
8661 else
8662 cat conftest.err 1>&5
8663 fi
8664 $rm conftest*
dd184caf 8665 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8666echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d9898ee8 8667 ;;
8668 esac
8669 fi
8670 ;;
8671esac
8672
dd184caf 8673{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8674echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 8675library_names_spec=
8676libname_spec='lib$name'
8677soname_spec=
8678shrext_cmds=".so"
8679postinstall_cmds=
8680postuninstall_cmds=
8681finish_cmds=
8682finish_eval=
8683shlibpath_var=
8684shlibpath_overrides_runpath=unknown
8685version_type=none
8686dynamic_linker="$host_os ld.so"
8687sys_lib_dlsearch_path_spec="/lib /usr/lib"
ac40fd9e 8688
d9898ee8 8689if test "$GCC" = yes; then
ac40fd9e 8690 case $host_os in
8691 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8692 *) lt_awk_arg="/^libraries:/" ;;
8693 esac
8694 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8695 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
d9898ee8 8696 # if the path contains ";" then we assume it to be the separator
8697 # otherwise default to the standard path separator (i.e. ":") - it is
8698 # assumed that no part of a normal pathname contains ";" but that should
8699 # okay in the real world where ";" in dirpaths is itself problematic.
ac40fd9e 8700 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
d9898ee8 8701 else
ac40fd9e 8702 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
d9898ee8 8703 fi
ac40fd9e 8704 # Ok, now we have the path, separated by spaces, we can step through it
8705 # and add multilib dir if necessary.
8706 lt_tmp_lt_search_path_spec=
8707 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8708 for lt_sys_path in $lt_search_path_spec; do
8709 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8710 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8711 else
8712 test -d "$lt_sys_path" && \
8713 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8714 fi
8715 done
8716 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8717BEGIN {RS=" "; FS="/|\n";} {
8718 lt_foo="";
8719 lt_count=0;
8720 for (lt_i = NF; lt_i > 0; lt_i--) {
8721 if ($lt_i != "" && $lt_i != ".") {
8722 if ($lt_i == "..") {
8723 lt_count++;
8724 } else {
8725 if (lt_count == 0) {
8726 lt_foo="/" $lt_i lt_foo;
8727 } else {
8728 lt_count--;
8729 }
8730 }
8731 }
8732 }
8733 if (lt_foo != "") { lt_freq[lt_foo]++; }
8734 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8735}'`
8736 sys_lib_search_path_spec=`echo $lt_search_path_spec`
d9898ee8 8737else
8738 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8739fi
8740need_lib_prefix=unknown
8741hardcode_into_libs=no
8742
8743# when you set need_version to no, make sure it does not cause -set_version
8744# flags to be left without arguments
8745need_version=unknown
8746
8747case $host_os in
8748aix3*)
8749 version_type=linux
8750 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8751 shlibpath_var=LIBPATH
8752
8753 # AIX 3 has no versioning support, so we append a major version to the name.
8754 soname_spec='${libname}${release}${shared_ext}$major'
8755 ;;
8756
8757aix4* | aix5*)
8758 version_type=linux
8759 need_lib_prefix=no
8760 need_version=no
8761 hardcode_into_libs=yes
8762 if test "$host_cpu" = ia64; then
8763 # AIX 5 supports IA64
8764 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8765 shlibpath_var=LD_LIBRARY_PATH
8766 else
8767 # With GCC up to 2.95.x, collect2 would create an import file
8768 # for dependence libraries. The import file would start with
8769 # the line `#! .'. This would cause the generated library to
8770 # depend on `.', always an invalid library. This was fixed in
8771 # development snapshots of GCC prior to 3.0.
8772 case $host_os in
8773 aix4 | aix4.[01] | aix4.[01].*)
8774 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8775 echo ' yes '
8776 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8777 :
8778 else
8779 can_build_shared=no
8780 fi
8781 ;;
8782 esac
8783 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8784 # soname into executable. Probably we can add versioning support to
8785 # collect2, so additional links can be useful in future.
8786 if test "$aix_use_runtimelinking" = yes; then
8787 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8788 # instead of lib<name>.a to let people know that these are not
8789 # typical AIX shared libraries.
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8791 else
8792 # We preserve .a as extension for shared libraries through AIX4.2
8793 # and later when we are not doing run time linking.
8794 library_names_spec='${libname}${release}.a $libname.a'
8795 soname_spec='${libname}${release}${shared_ext}$major'
8796 fi
8797 shlibpath_var=LIBPATH
8798 fi
8799 ;;
8800
8801amigaos*)
8802 library_names_spec='$libname.ixlibrary $libname.a'
8803 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8804 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'
8805 ;;
8806
8807beos*)
8808 library_names_spec='${libname}${shared_ext}'
8809 dynamic_linker="$host_os ld.so"
8810 shlibpath_var=LIBRARY_PATH
8811 ;;
8812
8813bsdi[45]*)
8814 version_type=linux
8815 need_version=no
8816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8817 soname_spec='${libname}${release}${shared_ext}$major'
8818 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8819 shlibpath_var=LD_LIBRARY_PATH
8820 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8821 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8822 # the default ld.so.conf also contains /usr/contrib/lib and
8823 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8824 # libtool to hard-code these into programs
8825 ;;
8826
8827cygwin* | mingw* | pw32*)
8828 version_type=windows
8829 shrext_cmds=".dll"
8830 need_version=no
8831 need_lib_prefix=no
8832
8833 case $GCC,$host_os in
8834 yes,cygwin* | yes,mingw* | yes,pw32*)
8835 library_names_spec='$libname.dll.a'
8836 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8837 postinstall_cmds='base_file=`basename \${file}`~
8838 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8839 dldir=$destdir/`dirname \$dlpath`~
8840 test -d \$dldir || mkdir -p \$dldir~
8841 $install_prog $dir/$dlname \$dldir/$dlname~
8842 chmod a+x \$dldir/$dlname'
8843 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8844 dlpath=$dir/\$dldll~
8845 $rm \$dlpath'
8846 shlibpath_overrides_runpath=yes
8847
8848 case $host_os in
8849 cygwin*)
8850 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8851 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8852 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8853 ;;
8854 mingw*)
8855 # MinGW DLLs use traditional 'lib' prefix
8856 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8857 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8858 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8859 # It is most probably a Windows format PATH printed by
8860 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8861 # path with ; separators, and with drive letters. We can handle the
8862 # drive letters (cygwin fileutils understands them), so leave them,
8863 # especially as we might pass files found there to a mingw objdump,
8864 # which wouldn't understand a cygwinified path. Ahh.
8865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8866 else
8867 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8868 fi
8869 ;;
8870 pw32*)
8871 # pw32 DLLs use 'pw' prefix rather than 'lib'
8872 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8873 ;;
8874 esac
8875 ;;
8876
8877 *)
8878 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8879 ;;
8880 esac
8881 dynamic_linker='Win32 ld.exe'
8882 # FIXME: first we should search . and the directory the executable is in
8883 shlibpath_var=PATH
8884 ;;
8885
8886darwin* | rhapsody*)
8887 dynamic_linker="$host_os dyld"
8888 version_type=darwin
8889 need_lib_prefix=no
8890 need_version=no
8891 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8892 soname_spec='${libname}${release}${major}$shared_ext'
8893 shlibpath_overrides_runpath=yes
8894 shlibpath_var=DYLD_LIBRARY_PATH
8895 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 8896
8897 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 8898 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8899 ;;
8900
8901dgux*)
8902 version_type=linux
8903 need_lib_prefix=no
8904 need_version=no
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8906 soname_spec='${libname}${release}${shared_ext}$major'
8907 shlibpath_var=LD_LIBRARY_PATH
8908 ;;
8909
8910freebsd1*)
8911 dynamic_linker=no
8912 ;;
8913
d9898ee8 8914freebsd* | dragonfly*)
8915 # DragonFly does not have aout. When/if they implement a new
8916 # versioning mechanism, adjust this.
8917 if test -x /usr/bin/objformat; then
8918 objformat=`/usr/bin/objformat`
8919 else
8920 case $host_os in
8921 freebsd[123]*) objformat=aout ;;
8922 *) objformat=elf ;;
8923 esac
8924 fi
8925 version_type=freebsd-$objformat
8926 case $version_type in
8927 freebsd-elf*)
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8929 need_version=no
8930 need_lib_prefix=no
8931 ;;
8932 freebsd-*)
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8934 need_version=yes
8935 ;;
8936 esac
8937 shlibpath_var=LD_LIBRARY_PATH
8938 case $host_os in
8939 freebsd2*)
8940 shlibpath_overrides_runpath=yes
8941 ;;
8942 freebsd3.[01]* | freebsdelf3.[01]*)
8943 shlibpath_overrides_runpath=yes
8944 hardcode_into_libs=yes
8945 ;;
8946 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8947 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8948 shlibpath_overrides_runpath=no
8949 hardcode_into_libs=yes
8950 ;;
ac40fd9e 8951 *) # from 4.6 on, and DragonFly
d9898ee8 8952 shlibpath_overrides_runpath=yes
8953 hardcode_into_libs=yes
8954 ;;
8955 esac
8956 ;;
8957
8958gnu*)
8959 version_type=linux
8960 need_lib_prefix=no
8961 need_version=no
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8963 soname_spec='${libname}${release}${shared_ext}$major'
8964 shlibpath_var=LD_LIBRARY_PATH
8965 hardcode_into_libs=yes
8966 ;;
8967
8968hpux9* | hpux10* | hpux11*)
8969 # Give a soname corresponding to the major version so that dld.sl refuses to
8970 # link against other versions.
8971 version_type=sunos
8972 need_lib_prefix=no
8973 need_version=no
8974 case $host_cpu in
8975 ia64*)
8976 shrext_cmds='.so'
8977 hardcode_into_libs=yes
8978 dynamic_linker="$host_os dld.so"
8979 shlibpath_var=LD_LIBRARY_PATH
8980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
8984 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8985 else
8986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8987 fi
8988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8989 ;;
8990 hppa*64*)
8991 shrext_cmds='.sl'
8992 hardcode_into_libs=yes
8993 dynamic_linker="$host_os dld.sl"
8994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8997 soname_spec='${libname}${release}${shared_ext}$major'
8998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9000 ;;
9001 *)
9002 shrext_cmds='.sl'
9003 dynamic_linker="$host_os dld.sl"
9004 shlibpath_var=SHLIB_PATH
9005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007 soname_spec='${libname}${release}${shared_ext}$major'
9008 ;;
9009 esac
9010 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9011 postinstall_cmds='chmod 555 $lib'
9012 ;;
9013
ac40fd9e 9014interix[3-9]*)
d9898ee8 9015 version_type=linux
9016 need_lib_prefix=no
9017 need_version=no
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9021 shlibpath_var=LD_LIBRARY_PATH
9022 shlibpath_overrides_runpath=no
9023 hardcode_into_libs=yes
9024 ;;
9025
9026irix5* | irix6* | nonstopux*)
9027 case $host_os in
9028 nonstopux*) version_type=nonstopux ;;
9029 *)
9030 if test "$lt_cv_prog_gnu_ld" = yes; then
9031 version_type=linux
9032 else
9033 version_type=irix
9034 fi ;;
9035 esac
9036 need_lib_prefix=no
9037 need_version=no
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9040 case $host_os in
9041 irix5* | nonstopux*)
9042 libsuff= shlibsuff=
9043 ;;
9044 *)
9045 case $LD in # libtool.m4 will add one of these switches to LD
9046 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9047 libsuff= shlibsuff= libmagic=32-bit;;
9048 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9049 libsuff=32 shlibsuff=N32 libmagic=N32;;
9050 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9051 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9052 *) libsuff= shlibsuff= libmagic=never-match;;
9053 esac
9054 ;;
9055 esac
9056 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9057 shlibpath_overrides_runpath=no
9058 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9059 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9060 hardcode_into_libs=yes
9061 ;;
9062
9063# No shared lib support for Linux oldld, aout, or coff.
9064linux*oldld* | linux*aout* | linux*coff*)
9065 dynamic_linker=no
9066 ;;
9067
9068# This must be Linux ELF.
ac40fd9e 9069linux* | k*bsd*-gnu)
d9898ee8 9070 version_type=linux
9071 need_lib_prefix=no
9072 need_version=no
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 shlibpath_overrides_runpath=no
9078 # This implies no fast_install, which is unacceptable.
9079 # Some rework will be needed to allow for fast_install
9080 # before this can be enabled.
9081 hardcode_into_libs=yes
ac40fd9e 9082 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9083 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 9084
9085 # Append ld.so.conf contents to the search path
9086 if test -f /etc/ld.so.conf; then
ac40fd9e 9087 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9088 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 9089 fi
9090
9091 # We used to test for /lib/ld.so.1 and disable shared libraries on
9092 # powerpc, because MkLinux only supported shared libraries with the
9093 # GNU dynamic linker. Since this was broken with cross compilers,
9094 # most powerpc-linux boxes support dynamic linking these days and
9095 # people can always --disable-shared, the test was removed, and we
9096 # assume the GNU/Linux dynamic linker is in use.
9097 dynamic_linker='GNU/Linux ld.so'
9098 ;;
9099
d9898ee8 9100netbsd*)
9101 version_type=sunos
9102 need_lib_prefix=no
9103 need_version=no
9104 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9107 dynamic_linker='NetBSD (a.out) ld.so'
9108 else
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9110 soname_spec='${libname}${release}${shared_ext}$major'
9111 dynamic_linker='NetBSD ld.elf_so'
9112 fi
9113 shlibpath_var=LD_LIBRARY_PATH
9114 shlibpath_overrides_runpath=yes
9115 hardcode_into_libs=yes
9116 ;;
9117
9118newsos6)
9119 version_type=linux
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 shlibpath_overrides_runpath=yes
9123 ;;
9124
9125nto-qnx*)
9126 version_type=linux
9127 need_lib_prefix=no
9128 need_version=no
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130 soname_spec='${libname}${release}${shared_ext}$major'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 shlibpath_overrides_runpath=yes
9133 ;;
9134
9135openbsd*)
9136 version_type=sunos
9137 sys_lib_dlsearch_path_spec="/usr/lib"
9138 need_lib_prefix=no
9139 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9140 case $host_os in
9141 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9142 *) need_version=no ;;
9143 esac
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9146 shlibpath_var=LD_LIBRARY_PATH
9147 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9148 case $host_os in
9149 openbsd2.[89] | openbsd2.[89].*)
9150 shlibpath_overrides_runpath=no
9151 ;;
9152 *)
9153 shlibpath_overrides_runpath=yes
9154 ;;
9155 esac
9156 else
9157 shlibpath_overrides_runpath=yes
9158 fi
9159 ;;
9160
9161os2*)
9162 libname_spec='$name'
9163 shrext_cmds=".dll"
9164 need_lib_prefix=no
9165 library_names_spec='$libname${shared_ext} $libname.a'
9166 dynamic_linker='OS/2 ld.exe'
9167 shlibpath_var=LIBPATH
9168 ;;
9169
9170osf3* | osf4* | osf5*)
9171 version_type=osf
9172 need_lib_prefix=no
9173 need_version=no
9174 soname_spec='${libname}${release}${shared_ext}$major'
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9176 shlibpath_var=LD_LIBRARY_PATH
9177 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9178 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9179 ;;
9180
ac40fd9e 9181rdos*)
9182 dynamic_linker=no
9183 ;;
9184
d9898ee8 9185solaris*)
9186 version_type=linux
9187 need_lib_prefix=no
9188 need_version=no
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 shlibpath_overrides_runpath=yes
9193 hardcode_into_libs=yes
9194 # ldd complains unless libraries are executable
9195 postinstall_cmds='chmod +x $lib'
9196 ;;
9197
9198sunos4*)
9199 version_type=sunos
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9201 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9202 shlibpath_var=LD_LIBRARY_PATH
9203 shlibpath_overrides_runpath=yes
9204 if test "$with_gnu_ld" = yes; then
9205 need_lib_prefix=no
9206 fi
9207 need_version=yes
9208 ;;
9209
9210sysv4 | sysv4.3*)
9211 version_type=linux
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 shlibpath_var=LD_LIBRARY_PATH
9215 case $host_vendor in
9216 sni)
9217 shlibpath_overrides_runpath=no
9218 need_lib_prefix=no
9219 export_dynamic_flag_spec='${wl}-Blargedynsym'
9220 runpath_var=LD_RUN_PATH
9221 ;;
9222 siemens)
9223 need_lib_prefix=no
9224 ;;
9225 motorola)
9226 need_lib_prefix=no
9227 need_version=no
9228 shlibpath_overrides_runpath=no
9229 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9230 ;;
9231 esac
9232 ;;
9233
9234sysv4*MP*)
9235 if test -d /usr/nec ;then
9236 version_type=linux
9237 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9238 soname_spec='$libname${shared_ext}.$major'
9239 shlibpath_var=LD_LIBRARY_PATH
9240 fi
9241 ;;
9242
9243sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9244 version_type=freebsd-elf
9245 need_lib_prefix=no
9246 need_version=no
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9248 soname_spec='${libname}${release}${shared_ext}$major'
9249 shlibpath_var=LD_LIBRARY_PATH
9250 hardcode_into_libs=yes
9251 if test "$with_gnu_ld" = yes; then
9252 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9253 shlibpath_overrides_runpath=no
9254 else
9255 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9256 shlibpath_overrides_runpath=yes
9257 case $host_os in
9258 sco3.2v5*)
9259 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9260 ;;
9261 esac
9262 fi
9263 sys_lib_dlsearch_path_spec='/usr/lib'
9264 ;;
9265
9266uts4*)
9267 version_type=linux
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 shlibpath_var=LD_LIBRARY_PATH
9271 ;;
9272
9273*)
9274 dynamic_linker=no
9275 ;;
9276esac
dd184caf 9277{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9278echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 9279test "$dynamic_linker" = no && can_build_shared=no
9280
9281variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9282if test "$GCC" = yes; then
9283 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9284fi
9285
dd184caf 9286{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9287echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 9288hardcode_action=
9289if test -n "$hardcode_libdir_flag_spec" || \
9290 test -n "$runpath_var" || \
9291 test "X$hardcode_automatic" = "Xyes" ; then
9292
9293 # We can hardcode non-existant directories.
9294 if test "$hardcode_direct" != no &&
9295 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9296 # have to relink, otherwise we might link with an installed library
9297 # when we should be linking with a yet-to-be-installed one
9298 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9299 test "$hardcode_minus_L" != no; then
9300 # Linking always hardcodes the temporary library directory.
9301 hardcode_action=relink
9302 else
9303 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9304 hardcode_action=immediate
9305 fi
9306else
9307 # We cannot hardcode anything, or else we can only hardcode existing
9308 # directories.
9309 hardcode_action=unsupported
9310fi
dd184caf 9311{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9312echo "${ECHO_T}$hardcode_action" >&6; }
d9898ee8 9313
9314if test "$hardcode_action" = relink; then
9315 # Fast installation is not supported
9316 enable_fast_install=no
9317elif test "$shlibpath_overrides_runpath" = yes ||
9318 test "$enable_shared" = no; then
9319 # Fast installation is not necessary
9320 enable_fast_install=needless
9321fi
9322
9323striplib=
9324old_striplib=
dd184caf 9325{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9326echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d9898ee8 9327if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9328 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9329 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
dd184caf 9330 { echo "$as_me:$LINENO: result: yes" >&5
9331echo "${ECHO_T}yes" >&6; }
d9898ee8 9332else
9333# FIXME - insert some real tests, host_os isn't really good enough
9334 case $host_os in
9335 darwin*)
9336 if test -n "$STRIP" ; then
9337 striplib="$STRIP -x"
ac40fd9e 9338 old_striplib="$STRIP -S"
dd184caf 9339 { echo "$as_me:$LINENO: result: yes" >&5
9340echo "${ECHO_T}yes" >&6; }
d9898ee8 9341 else
dd184caf 9342 { echo "$as_me:$LINENO: result: no" >&5
9343echo "${ECHO_T}no" >&6; }
d9898ee8 9344fi
9345 ;;
9346 *)
dd184caf 9347 { echo "$as_me:$LINENO: result: no" >&5
9348echo "${ECHO_T}no" >&6; }
d9898ee8 9349 ;;
9350 esac
9351fi
9352
9353if test "x$enable_dlopen" != xyes; then
9354 enable_dlopen=unknown
9355 enable_dlopen_self=unknown
9356 enable_dlopen_self_static=unknown
9357else
9358 lt_cv_dlopen=no
9359 lt_cv_dlopen_libs=
9360
9361 case $host_os in
9362 beos*)
9363 lt_cv_dlopen="load_add_on"
9364 lt_cv_dlopen_libs=
9365 lt_cv_dlopen_self=yes
9366 ;;
9367
9368 mingw* | pw32*)
9369 lt_cv_dlopen="LoadLibrary"
9370 lt_cv_dlopen_libs=
9371 ;;
9372
9373 cygwin*)
9374 lt_cv_dlopen="dlopen"
9375 lt_cv_dlopen_libs=
9376 ;;
9377
9378 darwin*)
9379 # if libdl is installed we need to link against it
dd184caf 9380 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9381echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9382if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9384else
9385 ac_check_lib_save_LIBS=$LIBS
9386LIBS="-ldl $LIBS"
9387cat >conftest.$ac_ext <<_ACEOF
9388/* confdefs.h. */
9389_ACEOF
9390cat confdefs.h >>conftest.$ac_ext
9391cat >>conftest.$ac_ext <<_ACEOF
9392/* end confdefs.h. */
9393
dd184caf 9394/* Override any GCC internal prototype to avoid an error.
9395 Use char because int might match the return type of a GCC
9396 builtin and then its argument prototype would still apply. */
d9898ee8 9397#ifdef __cplusplus
9398extern "C"
9399#endif
d9898ee8 9400char dlopen ();
9401int
9402main ()
9403{
dd184caf 9404return dlopen ();
d9898ee8 9405 ;
9406 return 0;
9407}
9408_ACEOF
9409rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9410if { (ac_try="$ac_link"
9411case "(($ac_try" in
9412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9413 *) ac_try_echo=$ac_try;;
9414esac
9415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9416 (eval "$ac_link") 2>conftest.er1
d9898ee8 9417 ac_status=$?
9418 grep -v '^ *+' conftest.er1 >conftest.err
9419 rm -f conftest.er1
9420 cat conftest.err >&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9422 (exit $ac_status); } && {
9423 test -z "$ac_c_werror_flag" ||
9424 test ! -s conftest.err
9425 } && test -s conftest$ac_exeext &&
9426 $as_test_x conftest$ac_exeext; then
d9898ee8 9427 ac_cv_lib_dl_dlopen=yes
9428else
9429 echo "$as_me: failed program was:" >&5
9430sed 's/^/| /' conftest.$ac_ext >&5
9431
dd184caf 9432 ac_cv_lib_dl_dlopen=no
d9898ee8 9433fi
dd184caf 9434
9435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9436 conftest$ac_exeext conftest.$ac_ext
9437LIBS=$ac_check_lib_save_LIBS
9438fi
dd184caf 9439{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9440echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9441if test $ac_cv_lib_dl_dlopen = yes; then
9442 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9443else
9444
9445 lt_cv_dlopen="dyld"
9446 lt_cv_dlopen_libs=
9447 lt_cv_dlopen_self=yes
9448
9449fi
9450
9451 ;;
9452
9453 *)
dd184caf 9454 { echo "$as_me:$LINENO: checking for shl_load" >&5
9455echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9898ee8 9456if test "${ac_cv_func_shl_load+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9458else
9459 cat >conftest.$ac_ext <<_ACEOF
9460/* confdefs.h. */
9461_ACEOF
9462cat confdefs.h >>conftest.$ac_ext
9463cat >>conftest.$ac_ext <<_ACEOF
9464/* end confdefs.h. */
9465/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9467#define shl_load innocuous_shl_load
9468
9469/* System header to define __stub macros and hopefully few prototypes,
9470 which can conflict with char shl_load (); below.
9471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9472 <limits.h> exists even on freestanding compilers. */
9473
9474#ifdef __STDC__
9475# include <limits.h>
9476#else
9477# include <assert.h>
9478#endif
9479
9480#undef shl_load
9481
dd184caf 9482/* Override any GCC internal prototype to avoid an error.
9483 Use char because int might match the return type of a GCC
9484 builtin and then its argument prototype would still apply. */
d9898ee8 9485#ifdef __cplusplus
9486extern "C"
d9898ee8 9487#endif
d9898ee8 9488char shl_load ();
9489/* The GNU C library defines this for functions which it implements
9490 to always fail with ENOSYS. Some functions are actually named
9491 something starting with __ and the normal name is an alias. */
dd184caf 9492#if defined __stub_shl_load || defined __stub___shl_load
d9898ee8 9493choke me
d9898ee8 9494#endif
9495
9496int
9497main ()
9498{
dd184caf 9499return shl_load ();
d9898ee8 9500 ;
9501 return 0;
9502}
9503_ACEOF
9504rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9505if { (ac_try="$ac_link"
9506case "(($ac_try" in
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9509esac
9510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511 (eval "$ac_link") 2>conftest.er1
d9898ee8 9512 ac_status=$?
9513 grep -v '^ *+' conftest.er1 >conftest.err
9514 rm -f conftest.er1
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9517 (exit $ac_status); } && {
9518 test -z "$ac_c_werror_flag" ||
9519 test ! -s conftest.err
9520 } && test -s conftest$ac_exeext &&
9521 $as_test_x conftest$ac_exeext; then
d9898ee8 9522 ac_cv_func_shl_load=yes
9523else
9524 echo "$as_me: failed program was:" >&5
9525sed 's/^/| /' conftest.$ac_ext >&5
9526
dd184caf 9527 ac_cv_func_shl_load=no
d9898ee8 9528fi
dd184caf 9529
9530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9531 conftest$ac_exeext conftest.$ac_ext
9532fi
dd184caf 9533{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9534echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9898ee8 9535if test $ac_cv_func_shl_load = yes; then
9536 lt_cv_dlopen="shl_load"
9537else
dd184caf 9538 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9539echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9898ee8 9540if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9542else
9543 ac_check_lib_save_LIBS=$LIBS
9544LIBS="-ldld $LIBS"
9545cat >conftest.$ac_ext <<_ACEOF
9546/* confdefs.h. */
9547_ACEOF
9548cat confdefs.h >>conftest.$ac_ext
9549cat >>conftest.$ac_ext <<_ACEOF
9550/* end confdefs.h. */
9551
dd184caf 9552/* Override any GCC internal prototype to avoid an error.
9553 Use char because int might match the return type of a GCC
9554 builtin and then its argument prototype would still apply. */
d9898ee8 9555#ifdef __cplusplus
9556extern "C"
9557#endif
d9898ee8 9558char shl_load ();
9559int
9560main ()
9561{
dd184caf 9562return shl_load ();
d9898ee8 9563 ;
9564 return 0;
9565}
9566_ACEOF
9567rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9568if { (ac_try="$ac_link"
9569case "(($ac_try" in
9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 *) ac_try_echo=$ac_try;;
9572esac
9573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_link") 2>conftest.er1
d9898ee8 9575 ac_status=$?
9576 grep -v '^ *+' conftest.er1 >conftest.err
9577 rm -f conftest.er1
9578 cat conftest.err >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9580 (exit $ac_status); } && {
9581 test -z "$ac_c_werror_flag" ||
9582 test ! -s conftest.err
9583 } && test -s conftest$ac_exeext &&
9584 $as_test_x conftest$ac_exeext; then
d9898ee8 9585 ac_cv_lib_dld_shl_load=yes
9586else
9587 echo "$as_me: failed program was:" >&5
9588sed 's/^/| /' conftest.$ac_ext >&5
9589
dd184caf 9590 ac_cv_lib_dld_shl_load=no
d9898ee8 9591fi
dd184caf 9592
9593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9594 conftest$ac_exeext conftest.$ac_ext
9595LIBS=$ac_check_lib_save_LIBS
9596fi
dd184caf 9597{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9598echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9898ee8 9599if test $ac_cv_lib_dld_shl_load = yes; then
9600 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9601else
dd184caf 9602 { echo "$as_me:$LINENO: checking for dlopen" >&5
9603echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d9898ee8 9604if test "${ac_cv_func_dlopen+set}" = set; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9606else
9607 cat >conftest.$ac_ext <<_ACEOF
9608/* confdefs.h. */
9609_ACEOF
9610cat confdefs.h >>conftest.$ac_ext
9611cat >>conftest.$ac_ext <<_ACEOF
9612/* end confdefs.h. */
9613/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9615#define dlopen innocuous_dlopen
9616
9617/* System header to define __stub macros and hopefully few prototypes,
9618 which can conflict with char dlopen (); below.
9619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9620 <limits.h> exists even on freestanding compilers. */
9621
9622#ifdef __STDC__
9623# include <limits.h>
9624#else
9625# include <assert.h>
9626#endif
9627
9628#undef dlopen
9629
dd184caf 9630/* Override any GCC internal prototype to avoid an error.
9631 Use char because int might match the return type of a GCC
9632 builtin and then its argument prototype would still apply. */
d9898ee8 9633#ifdef __cplusplus
9634extern "C"
d9898ee8 9635#endif
d9898ee8 9636char dlopen ();
9637/* The GNU C library defines this for functions which it implements
9638 to always fail with ENOSYS. Some functions are actually named
9639 something starting with __ and the normal name is an alias. */
dd184caf 9640#if defined __stub_dlopen || defined __stub___dlopen
d9898ee8 9641choke me
d9898ee8 9642#endif
9643
9644int
9645main ()
9646{
dd184caf 9647return dlopen ();
d9898ee8 9648 ;
9649 return 0;
9650}
9651_ACEOF
9652rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9653if { (ac_try="$ac_link"
9654case "(($ac_try" in
9655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9656 *) ac_try_echo=$ac_try;;
9657esac
9658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9659 (eval "$ac_link") 2>conftest.er1
d9898ee8 9660 ac_status=$?
9661 grep -v '^ *+' conftest.er1 >conftest.err
9662 rm -f conftest.er1
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9665 (exit $ac_status); } && {
9666 test -z "$ac_c_werror_flag" ||
9667 test ! -s conftest.err
9668 } && test -s conftest$ac_exeext &&
9669 $as_test_x conftest$ac_exeext; then
d9898ee8 9670 ac_cv_func_dlopen=yes
9671else
9672 echo "$as_me: failed program was:" >&5
9673sed 's/^/| /' conftest.$ac_ext >&5
9674
dd184caf 9675 ac_cv_func_dlopen=no
d9898ee8 9676fi
dd184caf 9677
9678rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9679 conftest$ac_exeext conftest.$ac_ext
9680fi
dd184caf 9681{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9682echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d9898ee8 9683if test $ac_cv_func_dlopen = yes; then
9684 lt_cv_dlopen="dlopen"
9685else
dd184caf 9686 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9687echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9688if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9690else
9691 ac_check_lib_save_LIBS=$LIBS
9692LIBS="-ldl $LIBS"
9693cat >conftest.$ac_ext <<_ACEOF
9694/* confdefs.h. */
9695_ACEOF
9696cat confdefs.h >>conftest.$ac_ext
9697cat >>conftest.$ac_ext <<_ACEOF
9698/* end confdefs.h. */
9699
dd184caf 9700/* Override any GCC internal prototype to avoid an error.
9701 Use char because int might match the return type of a GCC
9702 builtin and then its argument prototype would still apply. */
d9898ee8 9703#ifdef __cplusplus
9704extern "C"
9705#endif
d9898ee8 9706char dlopen ();
9707int
9708main ()
9709{
dd184caf 9710return dlopen ();
d9898ee8 9711 ;
9712 return 0;
9713}
9714_ACEOF
9715rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9716if { (ac_try="$ac_link"
9717case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9720esac
9721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_link") 2>conftest.er1
d9898ee8 9723 ac_status=$?
9724 grep -v '^ *+' conftest.er1 >conftest.err
9725 rm -f conftest.er1
9726 cat conftest.err >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9728 (exit $ac_status); } && {
9729 test -z "$ac_c_werror_flag" ||
9730 test ! -s conftest.err
9731 } && test -s conftest$ac_exeext &&
9732 $as_test_x conftest$ac_exeext; then
d9898ee8 9733 ac_cv_lib_dl_dlopen=yes
9734else
9735 echo "$as_me: failed program was:" >&5
9736sed 's/^/| /' conftest.$ac_ext >&5
9737
dd184caf 9738 ac_cv_lib_dl_dlopen=no
d9898ee8 9739fi
dd184caf 9740
9741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9742 conftest$ac_exeext conftest.$ac_ext
9743LIBS=$ac_check_lib_save_LIBS
9744fi
dd184caf 9745{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9746echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9747if test $ac_cv_lib_dl_dlopen = yes; then
9748 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9749else
dd184caf 9750 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9751echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9898ee8 9752if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9754else
9755 ac_check_lib_save_LIBS=$LIBS
9756LIBS="-lsvld $LIBS"
9757cat >conftest.$ac_ext <<_ACEOF
9758/* confdefs.h. */
9759_ACEOF
9760cat confdefs.h >>conftest.$ac_ext
9761cat >>conftest.$ac_ext <<_ACEOF
9762/* end confdefs.h. */
9763
dd184caf 9764/* Override any GCC internal prototype to avoid an error.
9765 Use char because int might match the return type of a GCC
9766 builtin and then its argument prototype would still apply. */
d9898ee8 9767#ifdef __cplusplus
9768extern "C"
9769#endif
d9898ee8 9770char dlopen ();
9771int
9772main ()
9773{
dd184caf 9774return dlopen ();
d9898ee8 9775 ;
9776 return 0;
9777}
9778_ACEOF
9779rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9780if { (ac_try="$ac_link"
9781case "(($ac_try" in
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9784esac
9785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_link") 2>conftest.er1
d9898ee8 9787 ac_status=$?
9788 grep -v '^ *+' conftest.er1 >conftest.err
9789 rm -f conftest.er1
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9792 (exit $ac_status); } && {
9793 test -z "$ac_c_werror_flag" ||
9794 test ! -s conftest.err
9795 } && test -s conftest$ac_exeext &&
9796 $as_test_x conftest$ac_exeext; then
d9898ee8 9797 ac_cv_lib_svld_dlopen=yes
9798else
9799 echo "$as_me: failed program was:" >&5
9800sed 's/^/| /' conftest.$ac_ext >&5
9801
dd184caf 9802 ac_cv_lib_svld_dlopen=no
d9898ee8 9803fi
dd184caf 9804
9805rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9806 conftest$ac_exeext conftest.$ac_ext
9807LIBS=$ac_check_lib_save_LIBS
9808fi
dd184caf 9809{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9810echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9898ee8 9811if test $ac_cv_lib_svld_dlopen = yes; then
9812 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9813else
dd184caf 9814 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9815echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9898ee8 9816if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9818else
9819 ac_check_lib_save_LIBS=$LIBS
9820LIBS="-ldld $LIBS"
9821cat >conftest.$ac_ext <<_ACEOF
9822/* confdefs.h. */
9823_ACEOF
9824cat confdefs.h >>conftest.$ac_ext
9825cat >>conftest.$ac_ext <<_ACEOF
9826/* end confdefs.h. */
9827
dd184caf 9828/* Override any GCC internal prototype to avoid an error.
9829 Use char because int might match the return type of a GCC
9830 builtin and then its argument prototype would still apply. */
d9898ee8 9831#ifdef __cplusplus
9832extern "C"
9833#endif
d9898ee8 9834char dld_link ();
9835int
9836main ()
9837{
dd184caf 9838return dld_link ();
d9898ee8 9839 ;
9840 return 0;
9841}
9842_ACEOF
9843rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9844if { (ac_try="$ac_link"
9845case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848esac
9849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_link") 2>conftest.er1
d9898ee8 9851 ac_status=$?
9852 grep -v '^ *+' conftest.er1 >conftest.err
9853 rm -f conftest.er1
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9856 (exit $ac_status); } && {
9857 test -z "$ac_c_werror_flag" ||
9858 test ! -s conftest.err
9859 } && test -s conftest$ac_exeext &&
9860 $as_test_x conftest$ac_exeext; then
d9898ee8 9861 ac_cv_lib_dld_dld_link=yes
9862else
9863 echo "$as_me: failed program was:" >&5
9864sed 's/^/| /' conftest.$ac_ext >&5
9865
dd184caf 9866 ac_cv_lib_dld_dld_link=no
d9898ee8 9867fi
dd184caf 9868
9869rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9870 conftest$ac_exeext conftest.$ac_ext
9871LIBS=$ac_check_lib_save_LIBS
9872fi
dd184caf 9873{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9874echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9898ee8 9875if test $ac_cv_lib_dld_dld_link = yes; then
9876 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9877fi
9878
9879
9880fi
9881
9882
9883fi
9884
9885
9886fi
9887
9888
9889fi
9890
9891
9892fi
9893
9894 ;;
9895 esac
9896
9897 if test "x$lt_cv_dlopen" != xno; then
9898 enable_dlopen=yes
9899 else
9900 enable_dlopen=no
9901 fi
9902
9903 case $lt_cv_dlopen in
9904 dlopen)
9905 save_CPPFLAGS="$CPPFLAGS"
9906 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9907
9908 save_LDFLAGS="$LDFLAGS"
9909 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9910
9911 save_LIBS="$LIBS"
9912 LIBS="$lt_cv_dlopen_libs $LIBS"
9913
dd184caf 9914 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9915echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 9916if test "${lt_cv_dlopen_self+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9918else
9919 if test "$cross_compiling" = yes; then :
9920 lt_cv_dlopen_self=cross
9921else
9922 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9923 lt_status=$lt_dlunknown
9924 cat > conftest.$ac_ext <<EOF
ac40fd9e 9925#line 9925 "configure"
d9898ee8 9926#include "confdefs.h"
9927
9928#if HAVE_DLFCN_H
9929#include <dlfcn.h>
9930#endif
9931
9932#include <stdio.h>
9933
9934#ifdef RTLD_GLOBAL
9935# define LT_DLGLOBAL RTLD_GLOBAL
9936#else
9937# ifdef DL_GLOBAL
9938# define LT_DLGLOBAL DL_GLOBAL
9939# else
9940# define LT_DLGLOBAL 0
9941# endif
9942#endif
9943
9944/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9945 find out it does not work in some platform. */
9946#ifndef LT_DLLAZY_OR_NOW
9947# ifdef RTLD_LAZY
9948# define LT_DLLAZY_OR_NOW RTLD_LAZY
9949# else
9950# ifdef DL_LAZY
9951# define LT_DLLAZY_OR_NOW DL_LAZY
9952# else
9953# ifdef RTLD_NOW
9954# define LT_DLLAZY_OR_NOW RTLD_NOW
9955# else
9956# ifdef DL_NOW
9957# define LT_DLLAZY_OR_NOW DL_NOW
9958# else
9959# define LT_DLLAZY_OR_NOW 0
9960# endif
9961# endif
9962# endif
9963# endif
9964#endif
9965
9966#ifdef __cplusplus
9967extern "C" void exit (int);
9968#endif
9969
9970void fnord() { int i=42;}
9971int main ()
9972{
9973 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9974 int status = $lt_dlunknown;
9975
9976 if (self)
9977 {
9978 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9979 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9980 /* dlclose (self); */
9981 }
9982 else
9983 puts (dlerror ());
9984
9985 exit (status);
9986}
9987EOF
9988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989 (eval $ac_link) 2>&5
9990 ac_status=$?
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9993 (./conftest; exit; ) >&5 2>/dev/null
9994 lt_status=$?
9995 case x$lt_status in
9996 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9997 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9998 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9999 esac
10000 else :
10001 # compilation failed
10002 lt_cv_dlopen_self=no
10003 fi
10004fi
10005rm -fr conftest*
10006
10007
10008fi
dd184caf 10009{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10010echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d9898ee8 10011
10012 if test "x$lt_cv_dlopen_self" = xyes; then
10013 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
dd184caf 10014 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10015echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 10016if test "${lt_cv_dlopen_self_static+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10018else
10019 if test "$cross_compiling" = yes; then :
10020 lt_cv_dlopen_self_static=cross
10021else
10022 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10023 lt_status=$lt_dlunknown
10024 cat > conftest.$ac_ext <<EOF
ac40fd9e 10025#line 10025 "configure"
d9898ee8 10026#include "confdefs.h"
10027
10028#if HAVE_DLFCN_H
10029#include <dlfcn.h>
10030#endif
10031
10032#include <stdio.h>
10033
10034#ifdef RTLD_GLOBAL
10035# define LT_DLGLOBAL RTLD_GLOBAL
10036#else
10037# ifdef DL_GLOBAL
10038# define LT_DLGLOBAL DL_GLOBAL
10039# else
10040# define LT_DLGLOBAL 0
10041# endif
10042#endif
10043
10044/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10045 find out it does not work in some platform. */
10046#ifndef LT_DLLAZY_OR_NOW
10047# ifdef RTLD_LAZY
10048# define LT_DLLAZY_OR_NOW RTLD_LAZY
10049# else
10050# ifdef DL_LAZY
10051# define LT_DLLAZY_OR_NOW DL_LAZY
10052# else
10053# ifdef RTLD_NOW
10054# define LT_DLLAZY_OR_NOW RTLD_NOW
10055# else
10056# ifdef DL_NOW
10057# define LT_DLLAZY_OR_NOW DL_NOW
10058# else
10059# define LT_DLLAZY_OR_NOW 0
10060# endif
10061# endif
10062# endif
10063# endif
10064#endif
10065
10066#ifdef __cplusplus
10067extern "C" void exit (int);
10068#endif
10069
10070void fnord() { int i=42;}
10071int main ()
10072{
10073 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10074 int status = $lt_dlunknown;
10075
10076 if (self)
10077 {
10078 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10079 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10080 /* dlclose (self); */
10081 }
10082 else
10083 puts (dlerror ());
10084
10085 exit (status);
10086}
10087EOF
10088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10089 (eval $ac_link) 2>&5
10090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10093 (./conftest; exit; ) >&5 2>/dev/null
10094 lt_status=$?
10095 case x$lt_status in
10096 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10097 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10098 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10099 esac
10100 else :
10101 # compilation failed
10102 lt_cv_dlopen_self_static=no
10103 fi
10104fi
10105rm -fr conftest*
10106
10107
10108fi
dd184caf 10109{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10110echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d9898ee8 10111 fi
10112
10113 CPPFLAGS="$save_CPPFLAGS"
10114 LDFLAGS="$save_LDFLAGS"
10115 LIBS="$save_LIBS"
10116 ;;
10117 esac
10118
10119 case $lt_cv_dlopen_self in
10120 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10121 *) enable_dlopen_self=unknown ;;
10122 esac
10123
10124 case $lt_cv_dlopen_self_static in
10125 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10126 *) enable_dlopen_self_static=unknown ;;
10127 esac
10128fi
10129
10130
10131# Report which library types will actually be built
dd184caf 10132{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10133echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10134{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10135echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 10136
dd184caf 10137{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10138echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 10139test "$can_build_shared" = "no" && enable_shared=no
10140
10141# On AIX, shared libraries and static libraries use the same namespace, and
10142# are all built from PIC.
10143case $host_os in
10144aix3*)
10145 test "$enable_shared" = yes && enable_static=no
10146 if test -n "$RANLIB"; then
10147 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10148 postinstall_cmds='$RANLIB $lib'
10149 fi
10150 ;;
10151
10152aix4* | aix5*)
10153 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10154 test "$enable_shared" = yes && enable_static=no
10155 fi
10156 ;;
10157esac
dd184caf 10158{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10159echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 10160
dd184caf 10161{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10162echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 10163# Make sure either enable_shared or enable_static is yes.
10164test "$enable_shared" = yes || enable_static=yes
dd184caf 10165{ echo "$as_me:$LINENO: result: $enable_static" >&5
10166echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 10167
10168# The else clause should only fire when bootstrapping the
10169# libtool distribution, otherwise you forgot to ship ltmain.sh
10170# with your package, and you will get complaints that there are
10171# no rules to generate ltmain.sh.
10172if test -f "$ltmain"; then
10173 # See if we are running on zsh, and set the options which allow our commands through
10174 # without removal of \ escapes.
10175 if test -n "${ZSH_VERSION+set}" ; then
10176 setopt NO_GLOB_SUBST
10177 fi
10178 # Now quote all the things that may contain metacharacters while being
10179 # careful not to overquote the AC_SUBSTed values. We take copies of the
10180 # variables and quote the copies for generation of the libtool script.
10181 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10182 SED SHELL STRIP \
10183 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10184 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10185 deplibs_check_method reload_flag reload_cmds need_locks \
10186 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10187 lt_cv_sys_global_symbol_to_c_name_address \
10188 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10189 old_postinstall_cmds old_postuninstall_cmds \
10190 compiler \
10191 CC \
10192 LD \
10193 lt_prog_compiler_wl \
10194 lt_prog_compiler_pic \
10195 lt_prog_compiler_static \
10196 lt_prog_compiler_no_builtin_flag \
10197 export_dynamic_flag_spec \
10198 thread_safe_flag_spec \
10199 whole_archive_flag_spec \
10200 enable_shared_with_static_runtimes \
10201 old_archive_cmds \
10202 old_archive_from_new_cmds \
10203 predep_objects \
10204 postdep_objects \
10205 predeps \
10206 postdeps \
10207 compiler_lib_search_path \
10208 archive_cmds \
10209 archive_expsym_cmds \
10210 postinstall_cmds \
10211 postuninstall_cmds \
10212 old_archive_from_expsyms_cmds \
10213 allow_undefined_flag \
10214 no_undefined_flag \
10215 export_symbols_cmds \
10216 hardcode_libdir_flag_spec \
10217 hardcode_libdir_flag_spec_ld \
10218 hardcode_libdir_separator \
10219 hardcode_automatic \
10220 module_cmds \
10221 module_expsym_cmds \
10222 lt_cv_prog_compiler_c_o \
ac40fd9e 10223 fix_srcfile_path \
d9898ee8 10224 exclude_expsyms \
10225 include_expsyms; do
10226
10227 case $var in
10228 old_archive_cmds | \
10229 old_archive_from_new_cmds | \
10230 archive_cmds | \
10231 archive_expsym_cmds | \
10232 module_cmds | \
10233 module_expsym_cmds | \
10234 old_archive_from_expsyms_cmds | \
10235 export_symbols_cmds | \
10236 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10237 postinstall_cmds | postuninstall_cmds | \
10238 old_postinstall_cmds | old_postuninstall_cmds | \
10239 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10240 # Double-quote double-evaled strings.
10241 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10242 ;;
10243 *)
10244 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10245 ;;
10246 esac
10247 done
10248
10249 case $lt_echo in
10250 *'\$0 --fallback-echo"')
10251 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10252 ;;
10253 esac
10254
10255cfgfile="${ofile}T"
10256 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10257 $rm -f "$cfgfile"
10258 { echo "$as_me:$LINENO: creating $ofile" >&5
10259echo "$as_me: creating $ofile" >&6;}
10260
10261 cat <<__EOF__ >> "$cfgfile"
10262#! $SHELL
10263
10264# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10265# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10266# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10267#
ac40fd9e 10268# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
d9898ee8 10269# Free Software Foundation, Inc.
10270#
10271# This file is part of GNU Libtool:
10272# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10273#
10274# This program is free software; you can redistribute it and/or modify
10275# it under the terms of the GNU General Public License as published by
10276# the Free Software Foundation; either version 2 of the License, or
10277# (at your option) any later version.
10278#
10279# This program is distributed in the hope that it will be useful, but
10280# WITHOUT ANY WARRANTY; without even the implied warranty of
10281# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10282# General Public License for more details.
10283#
10284# You should have received a copy of the GNU General Public License
10285# along with this program; if not, write to the Free Software
10286# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10287#
10288# As a special exception to the GNU General Public License, if you
10289# distribute this file as part of a program that contains a
10290# configuration script generated by Autoconf, you may include it under
10291# the same distribution terms that you use for the rest of that program.
10292
10293# A sed program that does not truncate output.
10294SED=$lt_SED
10295
10296# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10297Xsed="$SED -e 1s/^X//"
10298
10299# The HP-UX ksh and POSIX shell print the target directory to stdout
10300# if CDPATH is set.
10301(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10302
10303# The names of the tagged configurations supported by this script.
10304available_tags=
10305
10306# ### BEGIN LIBTOOL CONFIG
10307
10308# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10309
10310# Shell to use when invoking shell scripts.
10311SHELL=$lt_SHELL
10312
10313# Whether or not to build shared libraries.
10314build_libtool_libs=$enable_shared
10315
10316# Whether or not to build static libraries.
10317build_old_libs=$enable_static
10318
10319# Whether or not to add -lc for building shared libraries.
10320build_libtool_need_lc=$archive_cmds_need_lc
10321
10322# Whether or not to disallow shared libs when runtime libs are static
10323allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10324
10325# Whether or not to optimize for fast installation.
10326fast_install=$enable_fast_install
10327
10328# The host system.
10329host_alias=$host_alias
10330host=$host
10331host_os=$host_os
10332
10333# The build system.
10334build_alias=$build_alias
10335build=$build
10336build_os=$build_os
10337
10338# An echo program that does not interpret backslashes.
10339echo=$lt_echo
10340
10341# The archiver.
10342AR=$lt_AR
10343AR_FLAGS=$lt_AR_FLAGS
10344
10345# A C compiler.
10346LTCC=$lt_LTCC
10347
10348# LTCC compiler flags.
10349LTCFLAGS=$lt_LTCFLAGS
10350
10351# A language-specific compiler.
10352CC=$lt_compiler
10353
10354# Is the compiler the GNU C compiler?
10355with_gcc=$GCC
10356
d9898ee8 10357# An ERE matcher.
10358EGREP=$lt_EGREP
10359
10360# The linker used to build libraries.
10361LD=$lt_LD
10362
10363# Whether we need hard or soft links.
10364LN_S=$lt_LN_S
10365
10366# A BSD-compatible nm program.
10367NM=$lt_NM
10368
10369# A symbol stripping program
10370STRIP=$lt_STRIP
10371
10372# Used to examine libraries when file_magic_cmd begins "file"
10373MAGIC_CMD=$MAGIC_CMD
10374
10375# Used on cygwin: DLL creation program.
10376DLLTOOL="$DLLTOOL"
10377
10378# Used on cygwin: object dumper.
10379OBJDUMP="$OBJDUMP"
10380
10381# Used on cygwin: assembler.
10382AS="$AS"
10383
10384# The name of the directory that contains temporary libtool files.
10385objdir=$objdir
10386
10387# How to create reloadable object files.
10388reload_flag=$lt_reload_flag
10389reload_cmds=$lt_reload_cmds
10390
10391# How to pass a linker flag through the compiler.
10392wl=$lt_lt_prog_compiler_wl
10393
10394# Object file suffix (normally "o").
10395objext="$ac_objext"
10396
10397# Old archive suffix (normally "a").
10398libext="$libext"
10399
10400# Shared library suffix (normally ".so").
10401shrext_cmds='$shrext_cmds'
10402
10403# Executable file suffix (normally "").
10404exeext="$exeext"
10405
10406# Additional compiler flags for building library objects.
10407pic_flag=$lt_lt_prog_compiler_pic
10408pic_mode=$pic_mode
10409
10410# What is the maximum length of a command?
10411max_cmd_len=$lt_cv_sys_max_cmd_len
10412
10413# Does compiler simultaneously support -c and -o options?
10414compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10415
10416# Must we lock files when doing compilation?
10417need_locks=$lt_need_locks
10418
10419# Do we need the lib prefix for modules?
10420need_lib_prefix=$need_lib_prefix
10421
10422# Do we need a version for libraries?
10423need_version=$need_version
10424
10425# Whether dlopen is supported.
10426dlopen_support=$enable_dlopen
10427
10428# Whether dlopen of programs is supported.
10429dlopen_self=$enable_dlopen_self
10430
10431# Whether dlopen of statically linked programs is supported.
10432dlopen_self_static=$enable_dlopen_self_static
10433
10434# Compiler flag to prevent dynamic linking.
10435link_static_flag=$lt_lt_prog_compiler_static
10436
10437# Compiler flag to turn off builtin functions.
10438no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10439
10440# Compiler flag to allow reflexive dlopens.
10441export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10442
10443# Compiler flag to generate shared objects directly from archives.
10444whole_archive_flag_spec=$lt_whole_archive_flag_spec
10445
10446# Compiler flag to generate thread-safe objects.
10447thread_safe_flag_spec=$lt_thread_safe_flag_spec
10448
10449# Library versioning type.
10450version_type=$version_type
10451
10452# Format of library name prefix.
10453libname_spec=$lt_libname_spec
10454
10455# List of archive names. First name is the real one, the rest are links.
10456# The last name is the one that the linker finds with -lNAME.
10457library_names_spec=$lt_library_names_spec
10458
10459# The coded name of the library, if different from the real name.
10460soname_spec=$lt_soname_spec
10461
10462# Commands used to build and install an old-style archive.
10463RANLIB=$lt_RANLIB
10464old_archive_cmds=$lt_old_archive_cmds
10465old_postinstall_cmds=$lt_old_postinstall_cmds
10466old_postuninstall_cmds=$lt_old_postuninstall_cmds
10467
10468# Create an old-style archive from a shared archive.
10469old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10470
10471# Create a temporary old-style archive to link instead of a shared archive.
10472old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10473
10474# Commands used to build and install a shared archive.
10475archive_cmds=$lt_archive_cmds
10476archive_expsym_cmds=$lt_archive_expsym_cmds
10477postinstall_cmds=$lt_postinstall_cmds
10478postuninstall_cmds=$lt_postuninstall_cmds
10479
10480# Commands used to build a loadable module (assumed same as above if empty)
10481module_cmds=$lt_module_cmds
10482module_expsym_cmds=$lt_module_expsym_cmds
10483
10484# Commands to strip libraries.
10485old_striplib=$lt_old_striplib
10486striplib=$lt_striplib
10487
10488# Dependencies to place before the objects being linked to create a
10489# shared library.
dd184caf 10490predep_objects=$lt_predep_objects
d9898ee8 10491
10492# Dependencies to place after the objects being linked to create a
10493# shared library.
dd184caf 10494postdep_objects=$lt_postdep_objects
d9898ee8 10495
10496# Dependencies to place before the objects being linked to create a
10497# shared library.
10498predeps=$lt_predeps
10499
10500# Dependencies to place after the objects being linked to create a
10501# shared library.
10502postdeps=$lt_postdeps
10503
10504# The library search path used internally by the compiler when linking
10505# a shared library.
dd184caf 10506compiler_lib_search_path=$lt_compiler_lib_search_path
d9898ee8 10507
10508# Method to check whether dependent libraries are shared objects.
10509deplibs_check_method=$lt_deplibs_check_method
10510
10511# Command to use when deplibs_check_method == file_magic.
10512file_magic_cmd=$lt_file_magic_cmd
10513
10514# Flag that allows shared libraries with undefined symbols to be built.
10515allow_undefined_flag=$lt_allow_undefined_flag
10516
10517# Flag that forces no undefined symbols.
10518no_undefined_flag=$lt_no_undefined_flag
10519
10520# Commands used to finish a libtool library installation in a directory.
10521finish_cmds=$lt_finish_cmds
10522
10523# Same as above, but a single script fragment to be evaled but not shown.
10524finish_eval=$lt_finish_eval
10525
10526# Take the output of nm and produce a listing of raw symbols and C names.
10527global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10528
10529# Transform the output of nm in a proper C declaration
10530global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10531
10532# Transform the output of nm in a C name address pair
10533global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10534
10535# This is the shared library runtime path variable.
10536runpath_var=$runpath_var
10537
10538# This is the shared library path variable.
10539shlibpath_var=$shlibpath_var
10540
10541# Is shlibpath searched before the hard-coded library search path?
10542shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10543
10544# How to hardcode a shared library path into an executable.
10545hardcode_action=$hardcode_action
10546
10547# Whether we should hardcode library paths into libraries.
10548hardcode_into_libs=$hardcode_into_libs
10549
10550# Flag to hardcode \$libdir into a binary during linking.
10551# This must work even if \$libdir does not exist.
10552hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10553
10554# If ld is used when linking, flag to hardcode \$libdir into
10555# a binary during linking. This must work even if \$libdir does
10556# not exist.
10557hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10558
10559# Whether we need a single -rpath flag with a separated argument.
10560hardcode_libdir_separator=$lt_hardcode_libdir_separator
10561
10562# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10563# resulting binary.
10564hardcode_direct=$hardcode_direct
10565
10566# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10567# resulting binary.
10568hardcode_minus_L=$hardcode_minus_L
10569
10570# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10571# the resulting binary.
10572hardcode_shlibpath_var=$hardcode_shlibpath_var
10573
10574# Set to yes if building a shared library automatically hardcodes DIR into the library
10575# and all subsequent libraries and executables linked against it.
10576hardcode_automatic=$hardcode_automatic
10577
10578# Variables whose values should be saved in libtool wrapper scripts and
10579# restored at relink time.
10580variables_saved_for_relink="$variables_saved_for_relink"
10581
10582# Whether libtool must link a program against all its dependency libraries.
10583link_all_deplibs=$link_all_deplibs
10584
10585# Compile-time system search path for libraries
dd184caf 10586sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 10587
10588# Run-time system search path for libraries
10589sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10590
10591# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 10592fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 10593
10594# Set to yes if exported symbols are required.
10595always_export_symbols=$always_export_symbols
10596
10597# The commands to list exported symbols.
10598export_symbols_cmds=$lt_export_symbols_cmds
10599
10600# The commands to extract the exported symbol list from a shared archive.
10601extract_expsyms_cmds=$lt_extract_expsyms_cmds
10602
10603# Symbols that should not be listed in the preloaded symbols.
10604exclude_expsyms=$lt_exclude_expsyms
10605
10606# Symbols that must always be exported.
10607include_expsyms=$lt_include_expsyms
10608
10609# ### END LIBTOOL CONFIG
10610
10611__EOF__
10612
10613
10614 case $host_os in
10615 aix3*)
10616 cat <<\EOF >> "$cfgfile"
10617
10618# AIX sometimes has problems with the GCC collect2 program. For some
10619# reason, if we set the COLLECT_NAMES environment variable, the problems
10620# vanish in a puff of smoke.
10621if test "X${COLLECT_NAMES+set}" != Xset; then
10622 COLLECT_NAMES=
10623 export COLLECT_NAMES
10624fi
10625EOF
10626 ;;
10627 esac
10628
10629 # We use sed instead of cat because bash on DJGPP gets confused if
10630 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10631 # text mode, it properly converts lines to CR/LF. This bash problem
10632 # is reportedly fixed, but why not run on old versions too?
10633 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10634
10635 mv -f "$cfgfile" "$ofile" || \
10636 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10637 chmod +x "$ofile"
10638
10639else
10640 # If there is no Makefile yet, we rely on a make rule to execute
10641 # `config.status --recheck' to rerun these tests and create the
10642 # libtool script then.
10643 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10644 if test -f "$ltmain_in"; then
10645 test -f Makefile && make "$ltmain"
10646 fi
10647fi
10648
10649
10650ac_ext=c
10651ac_cpp='$CPP $CPPFLAGS'
10652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10654ac_compiler_gnu=$ac_cv_c_compiler_gnu
10655
10656CC="$lt_save_CC"
10657
10658
dd184caf 10659# Check whether --with-tags was given.
d9898ee8 10660if test "${with_tags+set}" = set; then
dd184caf 10661 withval=$with_tags; tagnames="$withval"
10662fi
10663
d9898ee8 10664
10665if test -f "$ltmain" && test -n "$tagnames"; then
10666 if test ! -f "${ofile}"; then
10667 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10668echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10669 fi
10670
10671 if test -z "$LTCC"; then
10672 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10673 if test -z "$LTCC"; then
10674 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10675echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10676 else
10677 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10678echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10679 fi
10680 fi
10681 if test -z "$LTCFLAGS"; then
10682 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10683 fi
10684
10685 # Extract list of available tagged configurations in $ofile.
10686 # Note that this assumes the entire list is on one line.
10687 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10688
10689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10690 for tagname in $tagnames; do
10691 IFS="$lt_save_ifs"
10692 # Check whether tagname contains only valid characters
10693 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10694 "") ;;
10695 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10696echo "$as_me: error: invalid tag name: $tagname" >&2;}
10697 { (exit 1); exit 1; }; }
10698 ;;
10699 esac
10700
10701 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10702 then
10703 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10704echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10705 { (exit 1); exit 1; }; }
10706 fi
10707
10708 # Update the list of available tags.
10709 if test -n "$tagname"; then
10710 echo appending configuration tag \"$tagname\" to $ofile
10711
10712 case $tagname in
10713 CXX)
10714 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10715 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10716 (test "X$CXX" != "Xg++"))) ; then
dd184caf 10717 ac_ext=cpp
d9898ee8 10718ac_cpp='$CXXCPP $CPPFLAGS'
10719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10722
10723
10724
10725
10726archive_cmds_need_lc_CXX=no
10727allow_undefined_flag_CXX=
10728always_export_symbols_CXX=no
10729archive_expsym_cmds_CXX=
10730export_dynamic_flag_spec_CXX=
10731hardcode_direct_CXX=no
10732hardcode_libdir_flag_spec_CXX=
10733hardcode_libdir_flag_spec_ld_CXX=
10734hardcode_libdir_separator_CXX=
10735hardcode_minus_L_CXX=no
10736hardcode_shlibpath_var_CXX=unsupported
10737hardcode_automatic_CXX=no
10738module_cmds_CXX=
10739module_expsym_cmds_CXX=
10740link_all_deplibs_CXX=unknown
10741old_archive_cmds_CXX=$old_archive_cmds
10742no_undefined_flag_CXX=
10743whole_archive_flag_spec_CXX=
10744enable_shared_with_static_runtimes_CXX=no
10745
10746# Dependencies to place before and after the object being linked:
10747predep_objects_CXX=
10748postdep_objects_CXX=
10749predeps_CXX=
10750postdeps_CXX=
10751compiler_lib_search_path_CXX=
10752
10753# Source file extension for C++ test sources.
10754ac_ext=cpp
10755
10756# Object file extension for compiled C++ test sources.
10757objext=o
10758objext_CXX=$objext
10759
10760# Code to be used in simple compile tests
ac40fd9e 10761lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 10762
10763# Code to be used in simple link tests
ac40fd9e 10764lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
d9898ee8 10765
10766# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10767
10768# If no C compiler was specified, use CC.
10769LTCC=${LTCC-"$CC"}
10770
10771# If no C compiler flags were specified, use CFLAGS.
10772LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10773
10774# Allow CC to be a program name with arguments.
10775compiler=$CC
10776
10777
10778# save warnings/boilerplate of simple test code
10779ac_outfile=conftest.$ac_objext
ac40fd9e 10780echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 10781eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10782_lt_compiler_boilerplate=`cat conftest.err`
10783$rm conftest*
10784
10785ac_outfile=conftest.$ac_objext
ac40fd9e 10786echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 10787eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10788_lt_linker_boilerplate=`cat conftest.err`
10789$rm conftest*
10790
10791
10792# Allow CC to be a program name with arguments.
10793lt_save_CC=$CC
10794lt_save_LD=$LD
10795lt_save_GCC=$GCC
10796GCC=$GXX
10797lt_save_with_gnu_ld=$with_gnu_ld
10798lt_save_path_LD=$lt_cv_path_LD
10799if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10800 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10801else
10802 $as_unset lt_cv_prog_gnu_ld
10803fi
10804if test -n "${lt_cv_path_LDCXX+set}"; then
10805 lt_cv_path_LD=$lt_cv_path_LDCXX
10806else
10807 $as_unset lt_cv_path_LD
10808fi
10809test -z "${LDCXX+set}" || LD=$LDCXX
10810CC=${CXX-"c++"}
10811compiler=$CC
10812compiler_CXX=$CC
10813for cc_temp in $compiler""; do
10814 case $cc_temp in
10815 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10816 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10817 \-*) ;;
10818 *) break;;
10819 esac
10820done
10821cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10822
10823
10824# We don't want -fno-exception wen compiling C++ code, so set the
10825# no_builtin_flag separately
10826if test "$GXX" = yes; then
10827 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10828else
10829 lt_prog_compiler_no_builtin_flag_CXX=
10830fi
10831
10832if test "$GXX" = yes; then
10833 # Set up default GNU C++ configuration
10834
10835
dd184caf 10836# Check whether --with-gnu-ld was given.
d9898ee8 10837if test "${with_gnu_ld+set}" = set; then
dd184caf 10838 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 10839else
10840 with_gnu_ld=no
dd184caf 10841fi
10842
d9898ee8 10843ac_prog=ld
10844if test "$GCC" = yes; then
10845 # Check if gcc -print-prog-name=ld gives a path.
dd184caf 10846 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10847echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 10848 case $host in
10849 *-*-mingw*)
10850 # gcc leaves a trailing carriage return which upsets mingw
10851 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10852 *)
10853 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10854 esac
10855 case $ac_prog in
10856 # Accept absolute paths.
10857 [\\/]* | ?:[\\/]*)
10858 re_direlt='/[^/][^/]*/\.\./'
10859 # Canonicalize the pathname of ld
10860 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10861 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10862 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10863 done
10864 test -z "$LD" && LD="$ac_prog"
10865 ;;
10866 "")
10867 # If it fails, then pretend we aren't using GCC.
10868 ac_prog=ld
10869 ;;
10870 *)
10871 # If it is relative, then search for the first ld in PATH.
10872 with_gnu_ld=unknown
10873 ;;
10874 esac
10875elif test "$with_gnu_ld" = yes; then
dd184caf 10876 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10877echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 10878else
dd184caf 10879 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10880echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 10881fi
10882if test "${lt_cv_path_LD+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10884else
10885 if test -z "$LD"; then
10886 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10887 for ac_dir in $PATH; do
10888 IFS="$lt_save_ifs"
10889 test -z "$ac_dir" && ac_dir=.
10890 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10891 lt_cv_path_LD="$ac_dir/$ac_prog"
10892 # Check to see if the program is GNU ld. I'd rather use --version,
10893 # but apparently some variants of GNU ld only accept -v.
10894 # Break only if it was the GNU/non-GNU ld that we prefer.
10895 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10896 *GNU* | *'with BFD'*)
10897 test "$with_gnu_ld" != no && break
10898 ;;
10899 *)
10900 test "$with_gnu_ld" != yes && break
10901 ;;
10902 esac
10903 fi
10904 done
10905 IFS="$lt_save_ifs"
10906else
10907 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10908fi
10909fi
10910
10911LD="$lt_cv_path_LD"
10912if test -n "$LD"; then
dd184caf 10913 { echo "$as_me:$LINENO: result: $LD" >&5
10914echo "${ECHO_T}$LD" >&6; }
d9898ee8 10915else
dd184caf 10916 { echo "$as_me:$LINENO: result: no" >&5
10917echo "${ECHO_T}no" >&6; }
d9898ee8 10918fi
10919test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10920echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10921 { (exit 1); exit 1; }; }
dd184caf 10922{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10923echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 10924if test "${lt_cv_prog_gnu_ld+set}" = set; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10926else
10927 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10928case `$LD -v 2>&1 </dev/null` in
10929*GNU* | *'with BFD'*)
10930 lt_cv_prog_gnu_ld=yes
10931 ;;
10932*)
10933 lt_cv_prog_gnu_ld=no
10934 ;;
10935esac
10936fi
dd184caf 10937{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10938echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 10939with_gnu_ld=$lt_cv_prog_gnu_ld
10940
10941
10942
10943 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10944 # archiving commands below assume that GNU ld is being used.
10945 if test "$with_gnu_ld" = yes; then
10946 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10947 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'
10948
10949 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10950 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10951
10952 # If archive_cmds runs LD, not CC, wlarc should be empty
10953 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10954 # investigate it a little bit more. (MM)
10955 wlarc='${wl}'
10956
10957 # ancient GNU ld didn't support --whole-archive et. al.
10958 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10959 grep 'no-whole-archive' > /dev/null; then
10960 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10961 else
10962 whole_archive_flag_spec_CXX=
10963 fi
10964 else
10965 with_gnu_ld=no
10966 wlarc=
10967
10968 # A generic and very simple default shared library creation
10969 # command for GNU C++ for the case where it uses the native
10970 # linker, instead of GNU ld. If possible, this setting should
10971 # overridden to take advantage of the native linker features on
10972 # the platform it is being used on.
10973 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10974 fi
10975
10976 # Commands to make compiler produce verbose output that lists
10977 # what "hidden" libraries, object files and flags are used when
10978 # linking a shared library.
10979 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10980
10981else
10982 GXX=no
10983 with_gnu_ld=no
10984 wlarc=
10985fi
10986
10987# PORTME: fill in a description of your system's C++ link characteristics
dd184caf 10988{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10989echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 10990ld_shlibs_CXX=yes
10991case $host_os in
10992 aix3*)
10993 # FIXME: insert proper C++ library support
10994 ld_shlibs_CXX=no
10995 ;;
10996 aix4* | aix5*)
10997 if test "$host_cpu" = ia64; then
10998 # On IA64, the linker does run time linking by default, so we don't
10999 # have to do anything special.
11000 aix_use_runtimelinking=no
11001 exp_sym_flag='-Bexport'
11002 no_entry_flag=""
11003 else
11004 aix_use_runtimelinking=no
11005
11006 # Test if we are trying to use run time linking or normal
11007 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11008 # need to do runtime linking.
11009 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11010 for ld_flag in $LDFLAGS; do
11011 case $ld_flag in
11012 *-brtl*)
11013 aix_use_runtimelinking=yes
11014 break
11015 ;;
11016 esac
11017 done
11018 ;;
11019 esac
11020
11021 exp_sym_flag='-bexport'
11022 no_entry_flag='-bnoentry'
11023 fi
11024
11025 # When large executables or shared objects are built, AIX ld can
11026 # have problems creating the table of contents. If linking a library
11027 # or program results in "error TOC overflow" add -mminimal-toc to
11028 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11029 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11030
11031 archive_cmds_CXX=''
11032 hardcode_direct_CXX=yes
11033 hardcode_libdir_separator_CXX=':'
11034 link_all_deplibs_CXX=yes
11035
11036 if test "$GXX" = yes; then
11037 case $host_os in aix4.[012]|aix4.[012].*)
11038 # We only want to do this on AIX 4.2 and lower, the check
11039 # below for broken collect2 doesn't work under 4.3+
11040 collect2name=`${CC} -print-prog-name=collect2`
11041 if test -f "$collect2name" && \
11042 strings "$collect2name" | grep resolve_lib_name >/dev/null
11043 then
11044 # We have reworked collect2
ac40fd9e 11045 :
d9898ee8 11046 else
11047 # We have old collect2
11048 hardcode_direct_CXX=unsupported
11049 # It fails to find uninstalled libraries when the uninstalled
11050 # path is not listed in the libpath. Setting hardcode_minus_L
11051 # to unsupported forces relinking
11052 hardcode_minus_L_CXX=yes
11053 hardcode_libdir_flag_spec_CXX='-L$libdir'
11054 hardcode_libdir_separator_CXX=
11055 fi
11056 ;;
11057 esac
11058 shared_flag='-shared'
11059 if test "$aix_use_runtimelinking" = yes; then
11060 shared_flag="$shared_flag "'${wl}-G'
11061 fi
11062 else
11063 # not using gcc
11064 if test "$host_cpu" = ia64; then
11065 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11066 # chokes on -Wl,-G. The following line is correct:
11067 shared_flag='-G'
11068 else
11069 if test "$aix_use_runtimelinking" = yes; then
11070 shared_flag='${wl}-G'
11071 else
11072 shared_flag='${wl}-bM:SRE'
11073 fi
11074 fi
11075 fi
11076
11077 # It seems that -bexpall does not export symbols beginning with
11078 # underscore (_), so it is better to generate a list of symbols to export.
11079 always_export_symbols_CXX=yes
11080 if test "$aix_use_runtimelinking" = yes; then
11081 # Warning - without using the other runtime loading flags (-brtl),
11082 # -berok will link without error, but may produce a broken library.
11083 allow_undefined_flag_CXX='-berok'
11084 # Determine the default libpath from the value encoded in an empty executable.
11085 cat >conftest.$ac_ext <<_ACEOF
11086/* confdefs.h. */
11087_ACEOF
11088cat confdefs.h >>conftest.$ac_ext
11089cat >>conftest.$ac_ext <<_ACEOF
11090/* end confdefs.h. */
11091
11092int
11093main ()
11094{
11095
11096 ;
11097 return 0;
11098}
11099_ACEOF
11100rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 11101if { (ac_try="$ac_link"
11102case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11105esac
11106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107 (eval "$ac_link") 2>conftest.er1
d9898ee8 11108 ac_status=$?
11109 grep -v '^ *+' conftest.er1 >conftest.err
11110 rm -f conftest.er1
11111 cat conftest.err >&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11113 (exit $ac_status); } && {
11114 test -z "$ac_cxx_werror_flag" ||
11115 test ! -s conftest.err
11116 } && test -s conftest$ac_exeext &&
11117 $as_test_x conftest$ac_exeext; then
d9898ee8 11118
ac40fd9e 11119lt_aix_libpath_sed='
11120 /Import File Strings/,/^$/ {
11121 /^0/ {
11122 s/^0 *\(.*\)$/\1/
11123 p
11124 }
11125 }'
11126aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 11127# Check for a 64-bit object if we didn't find anything.
ac40fd9e 11128if test -z "$aix_libpath"; then
11129 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11130fi
d9898ee8 11131else
11132 echo "$as_me: failed program was:" >&5
11133sed 's/^/| /' conftest.$ac_ext >&5
11134
dd184caf 11135
d9898ee8 11136fi
dd184caf 11137
11138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11139 conftest$ac_exeext conftest.$ac_ext
11140if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11141
11142 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11143
11144 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"
11145 else
11146 if test "$host_cpu" = ia64; then
11147 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11148 allow_undefined_flag_CXX="-z nodefs"
11149 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"
11150 else
11151 # Determine the default libpath from the value encoded in an empty executable.
11152 cat >conftest.$ac_ext <<_ACEOF
11153/* confdefs.h. */
11154_ACEOF
11155cat confdefs.h >>conftest.$ac_ext
11156cat >>conftest.$ac_ext <<_ACEOF
11157/* end confdefs.h. */
11158
11159int
11160main ()
11161{
11162
11163 ;
11164 return 0;
11165}
11166_ACEOF
11167rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 11168if { (ac_try="$ac_link"
11169case "(($ac_try" in
11170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171 *) ac_try_echo=$ac_try;;
11172esac
11173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174 (eval "$ac_link") 2>conftest.er1
d9898ee8 11175 ac_status=$?
11176 grep -v '^ *+' conftest.er1 >conftest.err
11177 rm -f conftest.er1
11178 cat conftest.err >&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11180 (exit $ac_status); } && {
11181 test -z "$ac_cxx_werror_flag" ||
11182 test ! -s conftest.err
11183 } && test -s conftest$ac_exeext &&
11184 $as_test_x conftest$ac_exeext; then
d9898ee8 11185
ac40fd9e 11186lt_aix_libpath_sed='
11187 /Import File Strings/,/^$/ {
11188 /^0/ {
11189 s/^0 *\(.*\)$/\1/
11190 p
11191 }
11192 }'
11193aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 11194# Check for a 64-bit object if we didn't find anything.
ac40fd9e 11195if test -z "$aix_libpath"; then
11196 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11197fi
d9898ee8 11198else
11199 echo "$as_me: failed program was:" >&5
11200sed 's/^/| /' conftest.$ac_ext >&5
11201
dd184caf 11202
d9898ee8 11203fi
dd184caf 11204
11205rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11206 conftest$ac_exeext conftest.$ac_ext
11207if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11208
11209 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11210 # Warning - without using the other run time loading flags,
11211 # -berok will link without error, but may produce a broken library.
11212 no_undefined_flag_CXX=' ${wl}-bernotok'
11213 allow_undefined_flag_CXX=' ${wl}-berok'
11214 # Exported symbols can be pulled into shared objects from archives
11215 whole_archive_flag_spec_CXX='$convenience'
11216 archive_cmds_need_lc_CXX=yes
11217 # This is similar to how AIX traditionally builds its shared libraries.
11218 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'
11219 fi
11220 fi
11221 ;;
11222
11223 beos*)
11224 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11225 allow_undefined_flag_CXX=unsupported
11226 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11227 # support --undefined. This deserves some investigation. FIXME
11228 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11229 else
11230 ld_shlibs_CXX=no
11231 fi
11232 ;;
11233
11234 chorus*)
11235 case $cc_basename in
11236 *)
11237 # FIXME: insert proper C++ library support
11238 ld_shlibs_CXX=no
11239 ;;
11240 esac
11241 ;;
11242
11243 cygwin* | mingw* | pw32*)
11244 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11245 # as there is no search path for DLLs.
11246 hardcode_libdir_flag_spec_CXX='-L$libdir'
11247 allow_undefined_flag_CXX=unsupported
11248 always_export_symbols_CXX=no
11249 enable_shared_with_static_runtimes_CXX=yes
11250
11251 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11252 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'
11253 # If the export-symbols file already is a .def file (1st line
11254 # is EXPORTS), use it as is; otherwise, prepend...
11255 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11256 cp $export_symbols $output_objdir/$soname.def;
11257 else
11258 echo EXPORTS > $output_objdir/$soname.def;
11259 cat $export_symbols >> $output_objdir/$soname.def;
11260 fi~
11261 $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'
11262 else
11263 ld_shlibs_CXX=no
11264 fi
11265 ;;
11266 darwin* | rhapsody*)
11267 case $host_os in
11268 rhapsody* | darwin1.[012])
11269 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11270 ;;
11271 *) # Darwin 1.3 on
11272 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11273 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11274 else
11275 case ${MACOSX_DEPLOYMENT_TARGET} in
11276 10.[012])
11277 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11278 ;;
11279 10.*)
11280 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11281 ;;
11282 esac
11283 fi
11284 ;;
11285 esac
11286 archive_cmds_need_lc_CXX=no
11287 hardcode_direct_CXX=no
11288 hardcode_automatic_CXX=yes
11289 hardcode_shlibpath_var_CXX=unsupported
11290 whole_archive_flag_spec_CXX=''
11291 link_all_deplibs_CXX=yes
11292
11293 if test "$GXX" = yes ; then
11294 lt_int_apple_cc_single_mod=no
11295 output_verbose_link_cmd='echo'
11296 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11297 lt_int_apple_cc_single_mod=yes
11298 fi
11299 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11300 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11301 else
11302 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'
11303 fi
11304 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11305 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11306 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11307 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}'
11308 else
11309 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}'
11310 fi
11311 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}'
11312 else
11313 case $cc_basename in
11314 xlc*)
11315 output_verbose_link_cmd='echo'
ac40fd9e 11316 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 11317 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11318 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ac40fd9e 11319 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 11320 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}'
11321 ;;
11322 *)
11323 ld_shlibs_CXX=no
11324 ;;
11325 esac
11326 fi
11327 ;;
11328
11329 dgux*)
11330 case $cc_basename in
11331 ec++*)
11332 # FIXME: insert proper C++ library support
11333 ld_shlibs_CXX=no
11334 ;;
11335 ghcx*)
11336 # Green Hills C++ Compiler
11337 # FIXME: insert proper C++ library support
11338 ld_shlibs_CXX=no
11339 ;;
11340 *)
11341 # FIXME: insert proper C++ library support
11342 ld_shlibs_CXX=no
11343 ;;
11344 esac
11345 ;;
11346 freebsd[12]*)
11347 # C++ shared libraries reported to be fairly broken before switch to ELF
11348 ld_shlibs_CXX=no
11349 ;;
11350 freebsd-elf*)
11351 archive_cmds_need_lc_CXX=no
11352 ;;
ac40fd9e 11353 freebsd* | dragonfly*)
d9898ee8 11354 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11355 # conventions
11356 ld_shlibs_CXX=yes
11357 ;;
11358 gnu*)
11359 ;;
11360 hpux9*)
11361 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11362 hardcode_libdir_separator_CXX=:
11363 export_dynamic_flag_spec_CXX='${wl}-E'
11364 hardcode_direct_CXX=yes
11365 hardcode_minus_L_CXX=yes # Not in the search PATH,
11366 # but as the default
11367 # location of the library.
11368
11369 case $cc_basename in
11370 CC*)
11371 # FIXME: insert proper C++ library support
11372 ld_shlibs_CXX=no
11373 ;;
11374 aCC*)
11375 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'
11376 # Commands to make compiler produce verbose output that lists
11377 # what "hidden" libraries, object files and flags are used when
11378 # linking a shared library.
11379 #
11380 # There doesn't appear to be a way to prevent this compiler from
11381 # explicitly linking system object files so we need to strip them
11382 # from the output so that they don't get included in the library
11383 # dependencies.
11384 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'
11385 ;;
11386 *)
11387 if test "$GXX" = yes; then
11388 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'
11389 else
11390 # FIXME: insert proper C++ library support
11391 ld_shlibs_CXX=no
11392 fi
11393 ;;
11394 esac
11395 ;;
11396 hpux10*|hpux11*)
11397 if test $with_gnu_ld = no; then
11398 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11399 hardcode_libdir_separator_CXX=:
11400
11401 case $host_cpu in
ac40fd9e 11402 hppa*64*|ia64*) ;;
d9898ee8 11403 *)
11404 export_dynamic_flag_spec_CXX='${wl}-E'
11405 ;;
11406 esac
11407 fi
11408 case $host_cpu in
11409 hppa*64*|ia64*)
11410 hardcode_direct_CXX=no
11411 hardcode_shlibpath_var_CXX=no
11412 ;;
11413 *)
11414 hardcode_direct_CXX=yes
11415 hardcode_minus_L_CXX=yes # Not in the search PATH,
11416 # but as the default
11417 # location of the library.
11418 ;;
11419 esac
11420
11421 case $cc_basename in
11422 CC*)
11423 # FIXME: insert proper C++ library support
11424 ld_shlibs_CXX=no
11425 ;;
11426 aCC*)
11427 case $host_cpu in
11428 hppa*64*)
11429 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11430 ;;
11431 ia64*)
11432 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11433 ;;
11434 *)
11435 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11436 ;;
11437 esac
11438 # Commands to make compiler produce verbose output that lists
11439 # what "hidden" libraries, object files and flags are used when
11440 # linking a shared library.
11441 #
11442 # There doesn't appear to be a way to prevent this compiler from
11443 # explicitly linking system object files so we need to strip them
11444 # from the output so that they don't get included in the library
11445 # dependencies.
11446 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'
11447 ;;
11448 *)
11449 if test "$GXX" = yes; then
11450 if test $with_gnu_ld = no; then
11451 case $host_cpu in
11452 hppa*64*)
11453 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11454 ;;
11455 ia64*)
11456 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11457 ;;
11458 *)
11459 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'
11460 ;;
11461 esac
11462 fi
11463 else
11464 # FIXME: insert proper C++ library support
11465 ld_shlibs_CXX=no
11466 fi
11467 ;;
11468 esac
11469 ;;
ac40fd9e 11470 interix[3-9]*)
d9898ee8 11471 hardcode_direct_CXX=no
11472 hardcode_shlibpath_var_CXX=no
11473 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11474 export_dynamic_flag_spec_CXX='${wl}-E'
11475 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11476 # Instead, shared libraries are loaded at an image base (0x10000000 by
11477 # default) and relocated if they conflict, which is a slow very memory
11478 # consuming and fragmenting process. To avoid this, we pick a random,
11479 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11480 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11481 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'
11482 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'
11483 ;;
11484 irix5* | irix6*)
11485 case $cc_basename in
11486 CC*)
11487 # SGI C++
11488 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'
11489
11490 # Archives containing C++ object files must be created using
11491 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11492 # necessary to make sure instantiated templates are included
11493 # in the archive.
11494 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11495 ;;
11496 *)
11497 if test "$GXX" = yes; then
11498 if test "$with_gnu_ld" = no; then
11499 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'
11500 else
11501 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'
11502 fi
11503 fi
11504 link_all_deplibs_CXX=yes
11505 ;;
11506 esac
11507 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11508 hardcode_libdir_separator_CXX=:
11509 ;;
ac40fd9e 11510 linux* | k*bsd*-gnu)
d9898ee8 11511 case $cc_basename in
11512 KCC*)
11513 # Kuck and Associates, Inc. (KAI) C++ Compiler
11514
11515 # KCC will only create a shared library if the output file
11516 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11517 # to its proper name (with version) after linking.
11518 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'
11519 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'
11520 # Commands to make compiler produce verbose output that lists
11521 # what "hidden" libraries, object files and flags are used when
11522 # linking a shared library.
11523 #
11524 # There doesn't appear to be a way to prevent this compiler from
11525 # explicitly linking system object files so we need to strip them
11526 # from the output so that they don't get included in the library
11527 # dependencies.
11528 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'
11529
11530 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11531 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11532
11533 # Archives containing C++ object files must be created using
11534 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11535 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11536 ;;
11537 icpc*)
11538 # Intel C++
11539 with_gnu_ld=yes
11540 # version 8.0 and above of icpc choke on multiply defined symbols
11541 # if we add $predep_objects and $postdep_objects, however 7.1 and
11542 # earlier do not add the objects themselves.
11543 case `$CC -V 2>&1` in
11544 *"Version 7."*)
11545 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11546 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'
11547 ;;
11548 *) # Version 8.0 or newer
11549 tmp_idyn=
11550 case $host_cpu in
11551 ia64*) tmp_idyn=' -i_dynamic';;
11552 esac
11553 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11554 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'
11555 ;;
11556 esac
11557 archive_cmds_need_lc_CXX=no
11558 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11559 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11560 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11561 ;;
11562 pgCC*)
11563 # Portland Group C++ compiler
11564 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11565 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'
11566
11567 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11568 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11569 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'
11570 ;;
11571 cxx*)
11572 # Compaq C++
11573 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11574 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'
11575
11576 runpath_var=LD_RUN_PATH
11577 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11578 hardcode_libdir_separator_CXX=:
11579
11580 # Commands to make compiler produce verbose output that lists
11581 # what "hidden" libraries, object files and flags are used when
11582 # linking a shared library.
11583 #
11584 # There doesn't appear to be a way to prevent this compiler from
11585 # explicitly linking system object files so we need to strip them
11586 # from the output so that they don't get included in the library
11587 # dependencies.
11588 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'
11589 ;;
ac40fd9e 11590 *)
11591 case `$CC -V 2>&1 | sed 5q` in
11592 *Sun\ C*)
11593 # Sun C++ 5.9
11594 no_undefined_flag_CXX=' -zdefs'
11595 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11596 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11597 hardcode_libdir_flag_spec_CXX='-R$libdir'
11598 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11599
11600 # Not sure whether something based on
11601 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11602 # would be better.
11603 output_verbose_link_cmd='echo'
11604
11605 # Archives containing C++ object files must be created using
11606 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11607 # necessary to make sure instantiated templates are included
11608 # in the archive.
11609 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11610 ;;
11611 esac
11612 ;;
d9898ee8 11613 esac
11614 ;;
11615 lynxos*)
11616 # FIXME: insert proper C++ library support
11617 ld_shlibs_CXX=no
11618 ;;
11619 m88k*)
11620 # FIXME: insert proper C++ library support
11621 ld_shlibs_CXX=no
11622 ;;
11623 mvs*)
11624 case $cc_basename in
11625 cxx*)
11626 # FIXME: insert proper C++ library support
11627 ld_shlibs_CXX=no
11628 ;;
11629 *)
11630 # FIXME: insert proper C++ library support
11631 ld_shlibs_CXX=no
11632 ;;
11633 esac
11634 ;;
11635 netbsd*)
11636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11637 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11638 wlarc=
11639 hardcode_libdir_flag_spec_CXX='-R$libdir'
11640 hardcode_direct_CXX=yes
11641 hardcode_shlibpath_var_CXX=no
11642 fi
11643 # Workaround some broken pre-1.5 toolchains
11644 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11645 ;;
11646 openbsd2*)
11647 # C++ shared libraries are fairly broken
11648 ld_shlibs_CXX=no
11649 ;;
11650 openbsd*)
ac40fd9e 11651 if test -f /usr/libexec/ld.so; then
11652 hardcode_direct_CXX=yes
11653 hardcode_shlibpath_var_CXX=no
11654 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11655 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11656 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11657 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11658 export_dynamic_flag_spec_CXX='${wl}-E'
11659 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11660 fi
11661 output_verbose_link_cmd='echo'
11662 else
11663 ld_shlibs_CXX=no
d9898ee8 11664 fi
d9898ee8 11665 ;;
11666 osf3*)
11667 case $cc_basename in
11668 KCC*)
11669 # Kuck and Associates, Inc. (KAI) C++ Compiler
11670
11671 # KCC will only create a shared library if the output file
11672 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11673 # to its proper name (with version) after linking.
11674 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'
11675
11676 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11677 hardcode_libdir_separator_CXX=:
11678
11679 # Archives containing C++ object files must be created using
11680 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11681 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11682
11683 ;;
11684 RCC*)
11685 # Rational C++ 2.4.1
11686 # FIXME: insert proper C++ library support
11687 ld_shlibs_CXX=no
11688 ;;
11689 cxx*)
11690 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11691 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'
11692
11693 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11694 hardcode_libdir_separator_CXX=:
11695
11696 # Commands to make compiler produce verbose output that lists
11697 # what "hidden" libraries, object files and flags are used when
11698 # linking a shared library.
11699 #
11700 # There doesn't appear to be a way to prevent this compiler from
11701 # explicitly linking system object files so we need to strip them
11702 # from the output so that they don't get included in the library
11703 # dependencies.
11704 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'
11705 ;;
11706 *)
11707 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11708 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11709 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'
11710
11711 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11712 hardcode_libdir_separator_CXX=:
11713
11714 # Commands to make compiler produce verbose output that lists
11715 # what "hidden" libraries, object files and flags are used when
11716 # linking a shared library.
11717 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11718
11719 else
11720 # FIXME: insert proper C++ library support
11721 ld_shlibs_CXX=no
11722 fi
11723 ;;
11724 esac
11725 ;;
11726 osf4* | osf5*)
11727 case $cc_basename in
11728 KCC*)
11729 # Kuck and Associates, Inc. (KAI) C++ Compiler
11730
11731 # KCC will only create a shared library if the output file
11732 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11733 # to its proper name (with version) after linking.
11734 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'
11735
11736 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11737 hardcode_libdir_separator_CXX=:
11738
11739 # Archives containing C++ object files must be created using
11740 # the KAI C++ compiler.
11741 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11742 ;;
11743 RCC*)
11744 # Rational C++ 2.4.1
11745 # FIXME: insert proper C++ library support
11746 ld_shlibs_CXX=no
11747 ;;
11748 cxx*)
11749 allow_undefined_flag_CXX=' -expect_unresolved \*'
11750 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'
11751 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11752 echo "-hidden">> $lib.exp~
11753 $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~
11754 $rm $lib.exp'
11755
11756 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11757 hardcode_libdir_separator_CXX=:
11758
11759 # Commands to make compiler produce verbose output that lists
11760 # what "hidden" libraries, object files and flags are used when
11761 # linking a shared library.
11762 #
11763 # There doesn't appear to be a way to prevent this compiler from
11764 # explicitly linking system object files so we need to strip them
11765 # from the output so that they don't get included in the library
11766 # dependencies.
11767 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'
11768 ;;
11769 *)
11770 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11771 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11772 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'
11773
11774 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11775 hardcode_libdir_separator_CXX=:
11776
11777 # Commands to make compiler produce verbose output that lists
11778 # what "hidden" libraries, object files and flags are used when
11779 # linking a shared library.
11780 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11781
11782 else
11783 # FIXME: insert proper C++ library support
11784 ld_shlibs_CXX=no
11785 fi
11786 ;;
11787 esac
11788 ;;
11789 psos*)
11790 # FIXME: insert proper C++ library support
11791 ld_shlibs_CXX=no
11792 ;;
11793 sunos4*)
11794 case $cc_basename in
11795 CC*)
11796 # Sun C++ 4.x
11797 # FIXME: insert proper C++ library support
11798 ld_shlibs_CXX=no
11799 ;;
11800 lcc*)
11801 # Lucid
11802 # FIXME: insert proper C++ library support
11803 ld_shlibs_CXX=no
11804 ;;
11805 *)
11806 # FIXME: insert proper C++ library support
11807 ld_shlibs_CXX=no
11808 ;;
11809 esac
11810 ;;
11811 solaris*)
11812 case $cc_basename in
11813 CC*)
11814 # Sun C++ 4.2, 5.x and Centerline C++
11815 archive_cmds_need_lc_CXX=yes
11816 no_undefined_flag_CXX=' -zdefs'
11817 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11818 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11819 $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'
11820
11821 hardcode_libdir_flag_spec_CXX='-R$libdir'
11822 hardcode_shlibpath_var_CXX=no
11823 case $host_os in
11824 solaris2.[0-5] | solaris2.[0-5].*) ;;
11825 *)
ac40fd9e 11826 # The compiler driver will combine and reorder linker options,
11827 # but understands `-z linker_flag'.
d9898ee8 11828 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 11829 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
d9898ee8 11830 ;;
11831 esac
11832 link_all_deplibs_CXX=yes
11833
11834 output_verbose_link_cmd='echo'
11835
11836 # Archives containing C++ object files must be created using
11837 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11838 # necessary to make sure instantiated templates are included
11839 # in the archive.
11840 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11841 ;;
11842 gcx*)
11843 # Green Hills C++ Compiler
11844 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11845
11846 # The C++ compiler must be used to create the archive.
11847 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11848 ;;
11849 *)
11850 # GNU C++ compiler with Solaris linker
11851 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11852 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11853 if $CC --version | grep -v '^2\.7' > /dev/null; then
11854 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11855 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11856 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11857
11858 # Commands to make compiler produce verbose output that lists
11859 # what "hidden" libraries, object files and flags are used when
11860 # linking a shared library.
11861 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11862 else
11863 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11864 # platform.
11865 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11866 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11867 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11868
11869 # Commands to make compiler produce verbose output that lists
11870 # what "hidden" libraries, object files and flags are used when
11871 # linking a shared library.
11872 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11873 fi
11874
11875 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
ac40fd9e 11876 case $host_os in
11877 solaris2.[0-5] | solaris2.[0-5].*) ;;
11878 *)
11879 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11880 ;;
11881 esac
d9898ee8 11882 fi
11883 ;;
11884 esac
11885 ;;
11886 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11887 no_undefined_flag_CXX='${wl}-z,text'
11888 archive_cmds_need_lc_CXX=no
11889 hardcode_shlibpath_var_CXX=no
11890 runpath_var='LD_RUN_PATH'
11891
11892 case $cc_basename in
11893 CC*)
11894 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11895 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11896 ;;
11897 *)
11898 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11899 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11900 ;;
11901 esac
11902 ;;
11903 sysv5* | sco3.2v5* | sco5v6*)
11904 # Note: We can NOT use -z defs as we might desire, because we do not
11905 # link with -lc, and that would cause any symbols used from libc to
11906 # always be unresolved, which means just about no library would
11907 # ever link correctly. If we're not using GNU ld we use -z text
11908 # though, which does catch some bad symbols but isn't as heavy-handed
11909 # as -z defs.
11910 # For security reasons, it is highly recommended that you always
11911 # use absolute paths for naming shared libraries, and exclude the
11912 # DT_RUNPATH tag from executables and libraries. But doing so
11913 # requires that you compile everything twice, which is a pain.
11914 # So that behaviour is only enabled if SCOABSPATH is set to a
11915 # non-empty value in the environment. Most likely only useful for
11916 # creating official distributions of packages.
11917 # This is a hack until libtool officially supports absolute path
11918 # names for shared libraries.
11919 no_undefined_flag_CXX='${wl}-z,text'
11920 allow_undefined_flag_CXX='${wl}-z,nodefs'
11921 archive_cmds_need_lc_CXX=no
11922 hardcode_shlibpath_var_CXX=no
11923 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11924 hardcode_libdir_separator_CXX=':'
11925 link_all_deplibs_CXX=yes
11926 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11927 runpath_var='LD_RUN_PATH'
11928
11929 case $cc_basename in
11930 CC*)
11931 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11932 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11933 ;;
11934 *)
11935 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11936 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11937 ;;
11938 esac
11939 ;;
11940 tandem*)
11941 case $cc_basename in
11942 NCC*)
11943 # NonStop-UX NCC 3.20
11944 # FIXME: insert proper C++ library support
11945 ld_shlibs_CXX=no
11946 ;;
11947 *)
11948 # FIXME: insert proper C++ library support
11949 ld_shlibs_CXX=no
11950 ;;
11951 esac
11952 ;;
11953 vxworks*)
11954 # FIXME: insert proper C++ library support
11955 ld_shlibs_CXX=no
11956 ;;
11957 *)
11958 # FIXME: insert proper C++ library support
11959 ld_shlibs_CXX=no
11960 ;;
11961esac
dd184caf 11962{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11963echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 11964test "$ld_shlibs_CXX" = no && can_build_shared=no
11965
11966GCC_CXX="$GXX"
11967LD_CXX="$LD"
11968
11969
11970cat > conftest.$ac_ext <<EOF
11971class Foo
11972{
11973public:
11974 Foo (void) { a = 0; }
11975private:
11976 int a;
11977};
11978EOF
11979
11980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11981 (eval $ac_compile) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; then
11985 # Parse the compiler output and extract the necessary
11986 # objects, libraries and library flags.
11987
11988 # Sentinel used to keep track of whether or not we are before
11989 # the conftest object file.
11990 pre_test_object_deps_done=no
11991
11992 # The `*' in the case matches for architectures that use `case' in
11993 # $output_verbose_cmd can trigger glob expansion during the loop
11994 # eval without this substitution.
11995 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11996
11997 for p in `eval $output_verbose_link_cmd`; do
11998 case $p in
11999
12000 -L* | -R* | -l*)
12001 # Some compilers place space between "-{L,R}" and the path.
12002 # Remove the space.
12003 if test $p = "-L" \
12004 || test $p = "-R"; then
12005 prev=$p
12006 continue
12007 else
12008 prev=
12009 fi
12010
12011 if test "$pre_test_object_deps_done" = no; then
12012 case $p in
12013 -L* | -R*)
12014 # Internal compiler library paths should come after those
12015 # provided the user. The postdeps already come after the
12016 # user supplied libs so there is no need to process them.
12017 if test -z "$compiler_lib_search_path_CXX"; then
12018 compiler_lib_search_path_CXX="${prev}${p}"
12019 else
12020 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12021 fi
12022 ;;
12023 # The "-l" case would never come before the object being
12024 # linked, so don't bother handling this case.
12025 esac
12026 else
12027 if test -z "$postdeps_CXX"; then
12028 postdeps_CXX="${prev}${p}"
12029 else
12030 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12031 fi
12032 fi
12033 ;;
12034
12035 *.$objext)
12036 # This assumes that the test object file only shows up
12037 # once in the compiler output.
12038 if test "$p" = "conftest.$objext"; then
12039 pre_test_object_deps_done=yes
12040 continue
12041 fi
12042
12043 if test "$pre_test_object_deps_done" = no; then
12044 if test -z "$predep_objects_CXX"; then
12045 predep_objects_CXX="$p"
12046 else
12047 predep_objects_CXX="$predep_objects_CXX $p"
12048 fi
12049 else
12050 if test -z "$postdep_objects_CXX"; then
12051 postdep_objects_CXX="$p"
12052 else
12053 postdep_objects_CXX="$postdep_objects_CXX $p"
12054 fi
12055 fi
12056 ;;
12057
12058 *) ;; # Ignore the rest.
12059
12060 esac
12061 done
12062
12063 # Clean up.
12064 rm -f a.out a.exe
12065else
12066 echo "libtool.m4: error: problem compiling CXX test program"
12067fi
12068
12069$rm -f confest.$objext
12070
12071# PORTME: override above test on systems where it is broken
12072case $host_os in
ac40fd9e 12073interix[3-9]*)
d9898ee8 12074 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12075 # hack all around it, let's just trust "g++" to DTRT.
12076 predep_objects_CXX=
12077 postdep_objects_CXX=
12078 postdeps_CXX=
12079 ;;
12080
ac40fd9e 12081linux*)
12082 case `$CC -V 2>&1 | sed 5q` in
12083 *Sun\ C*)
12084 # Sun C++ 5.9
12085 #
12086 # The more standards-conforming stlport4 library is
12087 # incompatible with the Cstd library. Avoid specifying
12088 # it if it's in CXXFLAGS. Ignore libCrun as
12089 # -library=stlport4 depends on it.
12090 case " $CXX $CXXFLAGS " in
12091 *" -library=stlport4 "*)
12092 solaris_use_stlport4=yes
12093 ;;
12094 esac
12095 if test "$solaris_use_stlport4" != yes; then
12096 postdeps_CXX='-library=Cstd -library=Crun'
12097 fi
12098 ;;
12099 esac
12100 ;;
12101
d9898ee8 12102solaris*)
12103 case $cc_basename in
12104 CC*)
ac40fd9e 12105 # The more standards-conforming stlport4 library is
12106 # incompatible with the Cstd library. Avoid specifying
12107 # it if it's in CXXFLAGS. Ignore libCrun as
12108 # -library=stlport4 depends on it.
12109 case " $CXX $CXXFLAGS " in
12110 *" -library=stlport4 "*)
12111 solaris_use_stlport4=yes
12112 ;;
12113 esac
12114
d9898ee8 12115 # Adding this requires a known-good setup of shared libraries for
12116 # Sun compiler versions before 5.6, else PIC objects from an old
12117 # archive will be linked into the output, leading to subtle bugs.
ac40fd9e 12118 if test "$solaris_use_stlport4" != yes; then
12119 postdeps_CXX='-library=Cstd -library=Crun'
12120 fi
d9898ee8 12121 ;;
12122 esac
12123 ;;
12124esac
12125
12126
12127case " $postdeps_CXX " in
12128*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12129esac
12130
12131lt_prog_compiler_wl_CXX=
12132lt_prog_compiler_pic_CXX=
12133lt_prog_compiler_static_CXX=
12134
dd184caf 12135{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12136echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 12137
12138 # C++ specific cases for pic, static, wl, etc.
12139 if test "$GXX" = yes; then
12140 lt_prog_compiler_wl_CXX='-Wl,'
12141 lt_prog_compiler_static_CXX='-static'
12142
12143 case $host_os in
12144 aix*)
12145 # All AIX code is PIC.
12146 if test "$host_cpu" = ia64; then
12147 # AIX 5 now supports IA64 processor
12148 lt_prog_compiler_static_CXX='-Bstatic'
12149 fi
12150 ;;
12151 amigaos*)
12152 # FIXME: we need at least 68020 code to build shared libraries, but
12153 # adding the `-m68020' flag to GCC prevents building anything better,
12154 # like `-m68040'.
12155 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12156 ;;
ac40fd9e 12157 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 12158 # PIC is the default for these OSes.
12159 ;;
ac40fd9e 12160 mingw* | cygwin* | os2* | pw32*)
d9898ee8 12161 # This hack is so that the source file can tell whether it is being
12162 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 12163 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12164 # (--disable-auto-import) libraries
d9898ee8 12165 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12166 ;;
12167 darwin* | rhapsody*)
12168 # PIC is the default on this platform
12169 # Common symbols not allowed in MH_DYLIB files
12170 lt_prog_compiler_pic_CXX='-fno-common'
12171 ;;
12172 *djgpp*)
12173 # DJGPP does not support shared libraries at all
12174 lt_prog_compiler_pic_CXX=
12175 ;;
ac40fd9e 12176 interix[3-9]*)
d9898ee8 12177 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12178 # Instead, we relocate shared libraries at runtime.
12179 ;;
12180 sysv4*MP*)
12181 if test -d /usr/nec; then
12182 lt_prog_compiler_pic_CXX=-Kconform_pic
12183 fi
12184 ;;
12185 hpux*)
12186 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12187 # not for PA HP-UX.
12188 case $host_cpu in
12189 hppa*64*|ia64*)
12190 ;;
12191 *)
12192 lt_prog_compiler_pic_CXX='-fPIC'
12193 ;;
12194 esac
12195 ;;
12196 *)
12197 lt_prog_compiler_pic_CXX='-fPIC'
12198 ;;
12199 esac
12200 else
12201 case $host_os in
12202 aix4* | aix5*)
12203 # All AIX code is PIC.
12204 if test "$host_cpu" = ia64; then
12205 # AIX 5 now supports IA64 processor
12206 lt_prog_compiler_static_CXX='-Bstatic'
12207 else
12208 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12209 fi
12210 ;;
12211 chorus*)
12212 case $cc_basename in
12213 cxch68*)
12214 # Green Hills C++ Compiler
12215 # _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"
12216 ;;
12217 esac
12218 ;;
12219 darwin*)
12220 # PIC is the default on this platform
12221 # Common symbols not allowed in MH_DYLIB files
12222 case $cc_basename in
12223 xlc*)
12224 lt_prog_compiler_pic_CXX='-qnocommon'
12225 lt_prog_compiler_wl_CXX='-Wl,'
12226 ;;
12227 esac
12228 ;;
12229 dgux*)
12230 case $cc_basename in
12231 ec++*)
12232 lt_prog_compiler_pic_CXX='-KPIC'
12233 ;;
12234 ghcx*)
12235 # Green Hills C++ Compiler
12236 lt_prog_compiler_pic_CXX='-pic'
12237 ;;
12238 *)
12239 ;;
12240 esac
12241 ;;
ac40fd9e 12242 freebsd* | dragonfly*)
d9898ee8 12243 # FreeBSD uses GNU C++
12244 ;;
12245 hpux9* | hpux10* | hpux11*)
12246 case $cc_basename in
12247 CC*)
12248 lt_prog_compiler_wl_CXX='-Wl,'
12249 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12250 if test "$host_cpu" != ia64; then
12251 lt_prog_compiler_pic_CXX='+Z'
12252 fi
12253 ;;
12254 aCC*)
12255 lt_prog_compiler_wl_CXX='-Wl,'
12256 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12257 case $host_cpu in
12258 hppa*64*|ia64*)
12259 # +Z the default
12260 ;;
12261 *)
12262 lt_prog_compiler_pic_CXX='+Z'
12263 ;;
12264 esac
12265 ;;
12266 *)
12267 ;;
12268 esac
12269 ;;
12270 interix*)
12271 # This is c89, which is MS Visual C++ (no shared libs)
12272 # Anyone wants to do a port?
12273 ;;
12274 irix5* | irix6* | nonstopux*)
12275 case $cc_basename in
12276 CC*)
12277 lt_prog_compiler_wl_CXX='-Wl,'
12278 lt_prog_compiler_static_CXX='-non_shared'
12279 # CC pic flag -KPIC is the default.
12280 ;;
12281 *)
12282 ;;
12283 esac
12284 ;;
ac40fd9e 12285 linux* | k*bsd*-gnu)
d9898ee8 12286 case $cc_basename in
12287 KCC*)
12288 # KAI C++ Compiler
12289 lt_prog_compiler_wl_CXX='--backend -Wl,'
12290 lt_prog_compiler_pic_CXX='-fPIC'
12291 ;;
12292 icpc* | ecpc*)
12293 # Intel C++
12294 lt_prog_compiler_wl_CXX='-Wl,'
12295 lt_prog_compiler_pic_CXX='-KPIC'
12296 lt_prog_compiler_static_CXX='-static'
12297 ;;
12298 pgCC*)
12299 # Portland Group C++ compiler.
12300 lt_prog_compiler_wl_CXX='-Wl,'
12301 lt_prog_compiler_pic_CXX='-fpic'
12302 lt_prog_compiler_static_CXX='-Bstatic'
12303 ;;
12304 cxx*)
12305 # Compaq C++
12306 # Make sure the PIC flag is empty. It appears that all Alpha
12307 # Linux and Compaq Tru64 Unix objects are PIC.
12308 lt_prog_compiler_pic_CXX=
12309 lt_prog_compiler_static_CXX='-non_shared'
12310 ;;
12311 *)
ac40fd9e 12312 case `$CC -V 2>&1 | sed 5q` in
12313 *Sun\ C*)
12314 # Sun C++ 5.9
12315 lt_prog_compiler_pic_CXX='-KPIC'
12316 lt_prog_compiler_static_CXX='-Bstatic'
12317 lt_prog_compiler_wl_CXX='-Qoption ld '
12318 ;;
12319 esac
d9898ee8 12320 ;;
12321 esac
12322 ;;
12323 lynxos*)
12324 ;;
12325 m88k*)
12326 ;;
12327 mvs*)
12328 case $cc_basename in
12329 cxx*)
12330 lt_prog_compiler_pic_CXX='-W c,exportall'
12331 ;;
12332 *)
12333 ;;
12334 esac
12335 ;;
12336 netbsd*)
12337 ;;
12338 osf3* | osf4* | osf5*)
12339 case $cc_basename in
12340 KCC*)
12341 lt_prog_compiler_wl_CXX='--backend -Wl,'
12342 ;;
12343 RCC*)
12344 # Rational C++ 2.4.1
12345 lt_prog_compiler_pic_CXX='-pic'
12346 ;;
12347 cxx*)
12348 # Digital/Compaq C++
12349 lt_prog_compiler_wl_CXX='-Wl,'
12350 # Make sure the PIC flag is empty. It appears that all Alpha
12351 # Linux and Compaq Tru64 Unix objects are PIC.
12352 lt_prog_compiler_pic_CXX=
12353 lt_prog_compiler_static_CXX='-non_shared'
12354 ;;
12355 *)
12356 ;;
12357 esac
12358 ;;
12359 psos*)
12360 ;;
12361 solaris*)
12362 case $cc_basename in
12363 CC*)
12364 # Sun C++ 4.2, 5.x and Centerline C++
12365 lt_prog_compiler_pic_CXX='-KPIC'
12366 lt_prog_compiler_static_CXX='-Bstatic'
12367 lt_prog_compiler_wl_CXX='-Qoption ld '
12368 ;;
12369 gcx*)
12370 # Green Hills C++ Compiler
12371 lt_prog_compiler_pic_CXX='-PIC'
12372 ;;
12373 *)
12374 ;;
12375 esac
12376 ;;
12377 sunos4*)
12378 case $cc_basename in
12379 CC*)
12380 # Sun C++ 4.x
12381 lt_prog_compiler_pic_CXX='-pic'
12382 lt_prog_compiler_static_CXX='-Bstatic'
12383 ;;
12384 lcc*)
12385 # Lucid
12386 lt_prog_compiler_pic_CXX='-pic'
12387 ;;
12388 *)
12389 ;;
12390 esac
12391 ;;
12392 tandem*)
12393 case $cc_basename in
12394 NCC*)
12395 # NonStop-UX NCC 3.20
12396 lt_prog_compiler_pic_CXX='-KPIC'
12397 ;;
12398 *)
12399 ;;
12400 esac
12401 ;;
12402 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12403 case $cc_basename in
12404 CC*)
12405 lt_prog_compiler_wl_CXX='-Wl,'
12406 lt_prog_compiler_pic_CXX='-KPIC'
12407 lt_prog_compiler_static_CXX='-Bstatic'
12408 ;;
12409 esac
12410 ;;
12411 vxworks*)
12412 ;;
12413 *)
12414 lt_prog_compiler_can_build_shared_CXX=no
12415 ;;
12416 esac
12417 fi
12418
dd184caf 12419{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12420echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d9898ee8 12421
12422#
12423# Check to make sure the PIC flag actually works.
12424#
12425if test -n "$lt_prog_compiler_pic_CXX"; then
12426
dd184caf 12427{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12428echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d9898ee8 12429if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12430 echo $ECHO_N "(cached) $ECHO_C" >&6
12431else
12432 lt_prog_compiler_pic_works_CXX=no
12433 ac_outfile=conftest.$ac_objext
ac40fd9e 12434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12435 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12436 # Insert the option either (1) after the last *FLAGS variable, or
12437 # (2) before a word containing "conftest.", or (3) at the end.
12438 # Note that $ac_compile itself does not contain backslashes and begins
12439 # with a dollar sign (not a hyphen), so the echo should work correctly.
12440 # The option is referenced via a variable to avoid confusing sed.
12441 lt_compile=`echo "$ac_compile" | $SED \
12442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12444 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 12445 (eval echo "\"\$as_me:12445: $lt_compile\"" >&5)
d9898ee8 12446 (eval "$lt_compile" 2>conftest.err)
12447 ac_status=$?
12448 cat conftest.err >&5
ac40fd9e 12449 echo "$as_me:12449: \$? = $ac_status" >&5
d9898ee8 12450 if (exit $ac_status) && test -s "$ac_outfile"; then
12451 # The compiler can only warn and ignore the option if not recognized
12452 # So say no if there are warnings other than the usual output.
12453 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12456 lt_prog_compiler_pic_works_CXX=yes
12457 fi
12458 fi
12459 $rm conftest*
12460
12461fi
dd184caf 12462{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12463echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d9898ee8 12464
12465if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12466 case $lt_prog_compiler_pic_CXX in
12467 "" | " "*) ;;
12468 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12469 esac
12470else
12471 lt_prog_compiler_pic_CXX=
12472 lt_prog_compiler_can_build_shared_CXX=no
12473fi
12474
12475fi
12476case $host_os in
12477 # For platforms which do not support PIC, -DPIC is meaningless:
12478 *djgpp*)
12479 lt_prog_compiler_pic_CXX=
12480 ;;
12481 *)
12482 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12483 ;;
12484esac
12485
12486#
12487# Check to make sure the static flag actually works.
12488#
12489wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
dd184caf 12490{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12491echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 12492if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12494else
12495 lt_prog_compiler_static_works_CXX=no
12496 save_LDFLAGS="$LDFLAGS"
12497 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 12498 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 12499 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12500 # The linker can only warn and ignore the option if not recognized
12501 # So say no if there are warnings
12502 if test -s conftest.err; then
12503 # Append any errors to the config.log.
12504 cat conftest.err 1>&5
12505 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12507 if diff conftest.exp conftest.er2 >/dev/null; then
12508 lt_prog_compiler_static_works_CXX=yes
12509 fi
12510 else
12511 lt_prog_compiler_static_works_CXX=yes
12512 fi
12513 fi
12514 $rm conftest*
12515 LDFLAGS="$save_LDFLAGS"
12516
12517fi
dd184caf 12518{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12519echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
d9898ee8 12520
12521if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12522 :
12523else
12524 lt_prog_compiler_static_CXX=
12525fi
12526
12527
dd184caf 12528{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12529echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 12530if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12532else
12533 lt_cv_prog_compiler_c_o_CXX=no
12534 $rm -r conftest 2>/dev/null
12535 mkdir conftest
12536 cd conftest
12537 mkdir out
ac40fd9e 12538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12539
12540 lt_compiler_flag="-o out/conftest2.$ac_objext"
12541 # Insert the option either (1) after the last *FLAGS variable, or
12542 # (2) before a word containing "conftest.", or (3) at the end.
12543 # Note that $ac_compile itself does not contain backslashes and begins
12544 # with a dollar sign (not a hyphen), so the echo should work correctly.
12545 lt_compile=`echo "$ac_compile" | $SED \
12546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12548 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 12549 (eval echo "\"\$as_me:12549: $lt_compile\"" >&5)
d9898ee8 12550 (eval "$lt_compile" 2>out/conftest.err)
12551 ac_status=$?
12552 cat out/conftest.err >&5
ac40fd9e 12553 echo "$as_me:12553: \$? = $ac_status" >&5
d9898ee8 12554 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12555 then
12556 # The compiler can only warn and ignore the option if not recognized
12557 # So say no if there are warnings
12558 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12559 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12560 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12561 lt_cv_prog_compiler_c_o_CXX=yes
12562 fi
12563 fi
12564 chmod u+w . 2>&5
12565 $rm conftest*
12566 # SGI C++ compiler will create directory out/ii_files/ for
12567 # template instantiation
12568 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12569 $rm out/* && rmdir out
12570 cd ..
12571 rmdir conftest
12572 $rm conftest*
12573
12574fi
dd184caf 12575{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12576echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 12577
12578
12579hard_links="nottested"
12580if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12581 # do not overwrite the value of need_locks provided by the user
dd184caf 12582 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12583echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 12584 hard_links=yes
12585 $rm conftest*
12586 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12587 touch conftest.a
12588 ln conftest.a conftest.b 2>&5 || hard_links=no
12589 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 12590 { echo "$as_me:$LINENO: result: $hard_links" >&5
12591echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 12592 if test "$hard_links" = no; then
12593 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12594echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12595 need_locks=warn
12596 fi
12597else
12598 need_locks=no
12599fi
12600
dd184caf 12601{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12602echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 12603
12604 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12605 case $host_os in
12606 aix4* | aix5*)
12607 # If we're using GNU nm, then we don't want the "-C" option.
12608 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12609 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12610 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'
12611 else
12612 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'
12613 fi
12614 ;;
12615 pw32*)
12616 export_symbols_cmds_CXX="$ltdll_cmds"
12617 ;;
12618 cygwin* | mingw*)
ac40fd9e 12619 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'
d9898ee8 12620 ;;
12621 *)
12622 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12623 ;;
12624 esac
12625
dd184caf 12626{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12627echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12628test "$ld_shlibs_CXX" = no && can_build_shared=no
12629
12630#
12631# Do we need to explicitly link libc?
12632#
12633case "x$archive_cmds_need_lc_CXX" in
12634x|xyes)
12635 # Assume -lc should be added
12636 archive_cmds_need_lc_CXX=yes
12637
12638 if test "$enable_shared" = yes && test "$GCC" = yes; then
12639 case $archive_cmds_CXX in
12640 *'~'*)
12641 # FIXME: we may have to deal with multi-command sequences.
12642 ;;
12643 '$CC '*)
12644 # Test whether the compiler implicitly links with -lc since on some
12645 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12646 # to ld, don't add -lc before -lgcc.
dd184caf 12647 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12648echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 12649 $rm conftest*
ac40fd9e 12650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12651
12652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12653 (eval $ac_compile) 2>&5
12654 ac_status=$?
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } 2>conftest.err; then
12657 soname=conftest
12658 lib=conftest
12659 libobjs=conftest.$ac_objext
12660 deplibs=
12661 wl=$lt_prog_compiler_wl_CXX
12662 pic_flag=$lt_prog_compiler_pic_CXX
12663 compiler_flags=-v
12664 linker_flags=-v
12665 verstring=
12666 output_objdir=.
12667 libname=conftest
12668 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12669 allow_undefined_flag_CXX=
12670 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12671 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }
12675 then
12676 archive_cmds_need_lc_CXX=no
12677 else
12678 archive_cmds_need_lc_CXX=yes
12679 fi
12680 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12681 else
12682 cat conftest.err 1>&5
12683 fi
12684 $rm conftest*
dd184caf 12685 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12686echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d9898ee8 12687 ;;
12688 esac
12689 fi
12690 ;;
12691esac
12692
dd184caf 12693{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12694echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 12695library_names_spec=
12696libname_spec='lib$name'
12697soname_spec=
12698shrext_cmds=".so"
12699postinstall_cmds=
12700postuninstall_cmds=
12701finish_cmds=
12702finish_eval=
12703shlibpath_var=
12704shlibpath_overrides_runpath=unknown
12705version_type=none
12706dynamic_linker="$host_os ld.so"
12707sys_lib_dlsearch_path_spec="/lib /usr/lib"
ac40fd9e 12708
d9898ee8 12709need_lib_prefix=unknown
12710hardcode_into_libs=no
12711
12712# when you set need_version to no, make sure it does not cause -set_version
12713# flags to be left without arguments
12714need_version=unknown
12715
12716case $host_os in
12717aix3*)
12718 version_type=linux
12719 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12720 shlibpath_var=LIBPATH
12721
12722 # AIX 3 has no versioning support, so we append a major version to the name.
12723 soname_spec='${libname}${release}${shared_ext}$major'
12724 ;;
12725
12726aix4* | aix5*)
12727 version_type=linux
12728 need_lib_prefix=no
12729 need_version=no
12730 hardcode_into_libs=yes
12731 if test "$host_cpu" = ia64; then
12732 # AIX 5 supports IA64
12733 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12734 shlibpath_var=LD_LIBRARY_PATH
12735 else
12736 # With GCC up to 2.95.x, collect2 would create an import file
12737 # for dependence libraries. The import file would start with
12738 # the line `#! .'. This would cause the generated library to
12739 # depend on `.', always an invalid library. This was fixed in
12740 # development snapshots of GCC prior to 3.0.
12741 case $host_os in
12742 aix4 | aix4.[01] | aix4.[01].*)
12743 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12744 echo ' yes '
12745 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12746 :
12747 else
12748 can_build_shared=no
12749 fi
12750 ;;
12751 esac
12752 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12753 # soname into executable. Probably we can add versioning support to
12754 # collect2, so additional links can be useful in future.
12755 if test "$aix_use_runtimelinking" = yes; then
12756 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12757 # instead of lib<name>.a to let people know that these are not
12758 # typical AIX shared libraries.
12759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12760 else
12761 # We preserve .a as extension for shared libraries through AIX4.2
12762 # and later when we are not doing run time linking.
12763 library_names_spec='${libname}${release}.a $libname.a'
12764 soname_spec='${libname}${release}${shared_ext}$major'
12765 fi
12766 shlibpath_var=LIBPATH
12767 fi
12768 ;;
12769
12770amigaos*)
12771 library_names_spec='$libname.ixlibrary $libname.a'
12772 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12773 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'
12774 ;;
12775
12776beos*)
12777 library_names_spec='${libname}${shared_ext}'
12778 dynamic_linker="$host_os ld.so"
12779 shlibpath_var=LIBRARY_PATH
12780 ;;
12781
12782bsdi[45]*)
12783 version_type=linux
12784 need_version=no
12785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12786 soname_spec='${libname}${release}${shared_ext}$major'
12787 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12788 shlibpath_var=LD_LIBRARY_PATH
12789 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12790 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12791 # the default ld.so.conf also contains /usr/contrib/lib and
12792 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12793 # libtool to hard-code these into programs
12794 ;;
12795
12796cygwin* | mingw* | pw32*)
12797 version_type=windows
12798 shrext_cmds=".dll"
12799 need_version=no
12800 need_lib_prefix=no
12801
12802 case $GCC,$host_os in
12803 yes,cygwin* | yes,mingw* | yes,pw32*)
12804 library_names_spec='$libname.dll.a'
12805 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12806 postinstall_cmds='base_file=`basename \${file}`~
12807 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12808 dldir=$destdir/`dirname \$dlpath`~
12809 test -d \$dldir || mkdir -p \$dldir~
12810 $install_prog $dir/$dlname \$dldir/$dlname~
12811 chmod a+x \$dldir/$dlname'
12812 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12813 dlpath=$dir/\$dldll~
12814 $rm \$dlpath'
12815 shlibpath_overrides_runpath=yes
12816
12817 case $host_os in
12818 cygwin*)
12819 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12820 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12821 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12822 ;;
12823 mingw*)
12824 # MinGW DLLs use traditional 'lib' prefix
12825 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12826 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12827 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12828 # It is most probably a Windows format PATH printed by
12829 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12830 # path with ; separators, and with drive letters. We can handle the
12831 # drive letters (cygwin fileutils understands them), so leave them,
12832 # especially as we might pass files found there to a mingw objdump,
12833 # which wouldn't understand a cygwinified path. Ahh.
12834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12835 else
12836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12837 fi
12838 ;;
12839 pw32*)
12840 # pw32 DLLs use 'pw' prefix rather than 'lib'
12841 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12842 ;;
12843 esac
12844 ;;
12845
12846 *)
12847 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12848 ;;
12849 esac
12850 dynamic_linker='Win32 ld.exe'
12851 # FIXME: first we should search . and the directory the executable is in
12852 shlibpath_var=PATH
12853 ;;
12854
12855darwin* | rhapsody*)
12856 dynamic_linker="$host_os dyld"
12857 version_type=darwin
12858 need_lib_prefix=no
12859 need_version=no
12860 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12861 soname_spec='${libname}${release}${major}$shared_ext'
12862 shlibpath_overrides_runpath=yes
12863 shlibpath_var=DYLD_LIBRARY_PATH
12864 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 12865
d9898ee8 12866 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12867 ;;
12868
12869dgux*)
12870 version_type=linux
12871 need_lib_prefix=no
12872 need_version=no
12873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12874 soname_spec='${libname}${release}${shared_ext}$major'
12875 shlibpath_var=LD_LIBRARY_PATH
12876 ;;
12877
12878freebsd1*)
12879 dynamic_linker=no
12880 ;;
12881
d9898ee8 12882freebsd* | dragonfly*)
12883 # DragonFly does not have aout. When/if they implement a new
12884 # versioning mechanism, adjust this.
12885 if test -x /usr/bin/objformat; then
12886 objformat=`/usr/bin/objformat`
12887 else
12888 case $host_os in
12889 freebsd[123]*) objformat=aout ;;
12890 *) objformat=elf ;;
12891 esac
12892 fi
12893 version_type=freebsd-$objformat
12894 case $version_type in
12895 freebsd-elf*)
12896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12897 need_version=no
12898 need_lib_prefix=no
12899 ;;
12900 freebsd-*)
12901 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12902 need_version=yes
12903 ;;
12904 esac
12905 shlibpath_var=LD_LIBRARY_PATH
12906 case $host_os in
12907 freebsd2*)
12908 shlibpath_overrides_runpath=yes
12909 ;;
12910 freebsd3.[01]* | freebsdelf3.[01]*)
12911 shlibpath_overrides_runpath=yes
12912 hardcode_into_libs=yes
12913 ;;
12914 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12915 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12916 shlibpath_overrides_runpath=no
12917 hardcode_into_libs=yes
12918 ;;
ac40fd9e 12919 *) # from 4.6 on, and DragonFly
d9898ee8 12920 shlibpath_overrides_runpath=yes
12921 hardcode_into_libs=yes
12922 ;;
12923 esac
12924 ;;
12925
12926gnu*)
12927 version_type=linux
12928 need_lib_prefix=no
12929 need_version=no
12930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12931 soname_spec='${libname}${release}${shared_ext}$major'
12932 shlibpath_var=LD_LIBRARY_PATH
12933 hardcode_into_libs=yes
12934 ;;
12935
12936hpux9* | hpux10* | hpux11*)
12937 # Give a soname corresponding to the major version so that dld.sl refuses to
12938 # link against other versions.
12939 version_type=sunos
12940 need_lib_prefix=no
12941 need_version=no
12942 case $host_cpu in
12943 ia64*)
12944 shrext_cmds='.so'
12945 hardcode_into_libs=yes
12946 dynamic_linker="$host_os dld.so"
12947 shlibpath_var=LD_LIBRARY_PATH
12948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12950 soname_spec='${libname}${release}${shared_ext}$major'
12951 if test "X$HPUX_IA64_MODE" = X32; then
12952 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12953 else
12954 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12955 fi
12956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12957 ;;
12958 hppa*64*)
12959 shrext_cmds='.sl'
12960 hardcode_into_libs=yes
12961 dynamic_linker="$host_os dld.sl"
12962 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12965 soname_spec='${libname}${release}${shared_ext}$major'
12966 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12968 ;;
12969 *)
12970 shrext_cmds='.sl'
12971 dynamic_linker="$host_os dld.sl"
12972 shlibpath_var=SHLIB_PATH
12973 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12975 soname_spec='${libname}${release}${shared_ext}$major'
12976 ;;
12977 esac
12978 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12979 postinstall_cmds='chmod 555 $lib'
12980 ;;
12981
ac40fd9e 12982interix[3-9]*)
d9898ee8 12983 version_type=linux
12984 need_lib_prefix=no
12985 need_version=no
12986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12987 soname_spec='${libname}${release}${shared_ext}$major'
12988 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12989 shlibpath_var=LD_LIBRARY_PATH
12990 shlibpath_overrides_runpath=no
12991 hardcode_into_libs=yes
12992 ;;
12993
12994irix5* | irix6* | nonstopux*)
12995 case $host_os in
12996 nonstopux*) version_type=nonstopux ;;
12997 *)
12998 if test "$lt_cv_prog_gnu_ld" = yes; then
12999 version_type=linux
13000 else
13001 version_type=irix
13002 fi ;;
13003 esac
13004 need_lib_prefix=no
13005 need_version=no
13006 soname_spec='${libname}${release}${shared_ext}$major'
13007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13008 case $host_os in
13009 irix5* | nonstopux*)
13010 libsuff= shlibsuff=
13011 ;;
13012 *)
13013 case $LD in # libtool.m4 will add one of these switches to LD
13014 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13015 libsuff= shlibsuff= libmagic=32-bit;;
13016 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13017 libsuff=32 shlibsuff=N32 libmagic=N32;;
13018 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13019 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13020 *) libsuff= shlibsuff= libmagic=never-match;;
13021 esac
13022 ;;
13023 esac
13024 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13025 shlibpath_overrides_runpath=no
13026 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13027 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13028 hardcode_into_libs=yes
13029 ;;
13030
13031# No shared lib support for Linux oldld, aout, or coff.
13032linux*oldld* | linux*aout* | linux*coff*)
13033 dynamic_linker=no
13034 ;;
13035
13036# This must be Linux ELF.
ac40fd9e 13037linux* | k*bsd*-gnu)
d9898ee8 13038 version_type=linux
13039 need_lib_prefix=no
13040 need_version=no
13041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13042 soname_spec='${libname}${release}${shared_ext}$major'
13043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13044 shlibpath_var=LD_LIBRARY_PATH
13045 shlibpath_overrides_runpath=no
13046 # This implies no fast_install, which is unacceptable.
13047 # Some rework will be needed to allow for fast_install
13048 # before this can be enabled.
13049 hardcode_into_libs=yes
ac40fd9e 13050 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13051 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 13052
13053 # Append ld.so.conf contents to the search path
13054 if test -f /etc/ld.so.conf; then
ac40fd9e 13055 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13056 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 13057 fi
13058
13059 # We used to test for /lib/ld.so.1 and disable shared libraries on
13060 # powerpc, because MkLinux only supported shared libraries with the
13061 # GNU dynamic linker. Since this was broken with cross compilers,
13062 # most powerpc-linux boxes support dynamic linking these days and
13063 # people can always --disable-shared, the test was removed, and we
13064 # assume the GNU/Linux dynamic linker is in use.
13065 dynamic_linker='GNU/Linux ld.so'
13066 ;;
13067
d9898ee8 13068netbsd*)
13069 version_type=sunos
13070 need_lib_prefix=no
13071 need_version=no
13072 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13075 dynamic_linker='NetBSD (a.out) ld.so'
13076 else
13077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13078 soname_spec='${libname}${release}${shared_ext}$major'
13079 dynamic_linker='NetBSD ld.elf_so'
13080 fi
13081 shlibpath_var=LD_LIBRARY_PATH
13082 shlibpath_overrides_runpath=yes
13083 hardcode_into_libs=yes
13084 ;;
13085
13086newsos6)
13087 version_type=linux
13088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13089 shlibpath_var=LD_LIBRARY_PATH
13090 shlibpath_overrides_runpath=yes
13091 ;;
13092
13093nto-qnx*)
13094 version_type=linux
13095 need_lib_prefix=no
13096 need_version=no
13097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13098 soname_spec='${libname}${release}${shared_ext}$major'
13099 shlibpath_var=LD_LIBRARY_PATH
13100 shlibpath_overrides_runpath=yes
13101 ;;
13102
13103openbsd*)
13104 version_type=sunos
13105 sys_lib_dlsearch_path_spec="/usr/lib"
13106 need_lib_prefix=no
13107 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13108 case $host_os in
13109 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13110 *) need_version=no ;;
13111 esac
13112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13114 shlibpath_var=LD_LIBRARY_PATH
13115 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13116 case $host_os in
13117 openbsd2.[89] | openbsd2.[89].*)
13118 shlibpath_overrides_runpath=no
13119 ;;
13120 *)
13121 shlibpath_overrides_runpath=yes
13122 ;;
13123 esac
13124 else
13125 shlibpath_overrides_runpath=yes
13126 fi
13127 ;;
13128
13129os2*)
13130 libname_spec='$name'
13131 shrext_cmds=".dll"
13132 need_lib_prefix=no
13133 library_names_spec='$libname${shared_ext} $libname.a'
13134 dynamic_linker='OS/2 ld.exe'
13135 shlibpath_var=LIBPATH
13136 ;;
13137
13138osf3* | osf4* | osf5*)
13139 version_type=osf
13140 need_lib_prefix=no
13141 need_version=no
13142 soname_spec='${libname}${release}${shared_ext}$major'
13143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13144 shlibpath_var=LD_LIBRARY_PATH
13145 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13146 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13147 ;;
13148
ac40fd9e 13149rdos*)
13150 dynamic_linker=no
13151 ;;
13152
d9898ee8 13153solaris*)
13154 version_type=linux
13155 need_lib_prefix=no
13156 need_version=no
13157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13158 soname_spec='${libname}${release}${shared_ext}$major'
13159 shlibpath_var=LD_LIBRARY_PATH
13160 shlibpath_overrides_runpath=yes
13161 hardcode_into_libs=yes
13162 # ldd complains unless libraries are executable
13163 postinstall_cmds='chmod +x $lib'
13164 ;;
13165
13166sunos4*)
13167 version_type=sunos
13168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13169 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13170 shlibpath_var=LD_LIBRARY_PATH
13171 shlibpath_overrides_runpath=yes
13172 if test "$with_gnu_ld" = yes; then
13173 need_lib_prefix=no
13174 fi
13175 need_version=yes
13176 ;;
13177
13178sysv4 | sysv4.3*)
13179 version_type=linux
13180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13181 soname_spec='${libname}${release}${shared_ext}$major'
13182 shlibpath_var=LD_LIBRARY_PATH
13183 case $host_vendor in
13184 sni)
13185 shlibpath_overrides_runpath=no
13186 need_lib_prefix=no
13187 export_dynamic_flag_spec='${wl}-Blargedynsym'
13188 runpath_var=LD_RUN_PATH
13189 ;;
13190 siemens)
13191 need_lib_prefix=no
13192 ;;
13193 motorola)
13194 need_lib_prefix=no
13195 need_version=no
13196 shlibpath_overrides_runpath=no
13197 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13198 ;;
13199 esac
13200 ;;
13201
13202sysv4*MP*)
13203 if test -d /usr/nec ;then
13204 version_type=linux
13205 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13206 soname_spec='$libname${shared_ext}.$major'
13207 shlibpath_var=LD_LIBRARY_PATH
13208 fi
13209 ;;
13210
13211sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13212 version_type=freebsd-elf
13213 need_lib_prefix=no
13214 need_version=no
13215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13216 soname_spec='${libname}${release}${shared_ext}$major'
13217 shlibpath_var=LD_LIBRARY_PATH
13218 hardcode_into_libs=yes
13219 if test "$with_gnu_ld" = yes; then
13220 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13221 shlibpath_overrides_runpath=no
13222 else
13223 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13224 shlibpath_overrides_runpath=yes
13225 case $host_os in
13226 sco3.2v5*)
13227 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13228 ;;
13229 esac
13230 fi
13231 sys_lib_dlsearch_path_spec='/usr/lib'
13232 ;;
13233
13234uts4*)
13235 version_type=linux
13236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13237 soname_spec='${libname}${release}${shared_ext}$major'
13238 shlibpath_var=LD_LIBRARY_PATH
13239 ;;
13240
13241*)
13242 dynamic_linker=no
13243 ;;
13244esac
dd184caf 13245{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13246echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 13247test "$dynamic_linker" = no && can_build_shared=no
13248
13249variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13250if test "$GCC" = yes; then
13251 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13252fi
13253
dd184caf 13254{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13255echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 13256hardcode_action_CXX=
13257if test -n "$hardcode_libdir_flag_spec_CXX" || \
13258 test -n "$runpath_var_CXX" || \
13259 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13260
13261 # We can hardcode non-existant directories.
13262 if test "$hardcode_direct_CXX" != no &&
13263 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13264 # have to relink, otherwise we might link with an installed library
13265 # when we should be linking with a yet-to-be-installed one
13266 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13267 test "$hardcode_minus_L_CXX" != no; then
13268 # Linking always hardcodes the temporary library directory.
13269 hardcode_action_CXX=relink
13270 else
13271 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13272 hardcode_action_CXX=immediate
13273 fi
13274else
13275 # We cannot hardcode anything, or else we can only hardcode existing
13276 # directories.
13277 hardcode_action_CXX=unsupported
13278fi
dd184caf 13279{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13280echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d9898ee8 13281
13282if test "$hardcode_action_CXX" = relink; then
13283 # Fast installation is not supported
13284 enable_fast_install=no
13285elif test "$shlibpath_overrides_runpath" = yes ||
13286 test "$enable_shared" = no; then
13287 # Fast installation is not necessary
13288 enable_fast_install=needless
13289fi
13290
13291
13292# The else clause should only fire when bootstrapping the
13293# libtool distribution, otherwise you forgot to ship ltmain.sh
13294# with your package, and you will get complaints that there are
13295# no rules to generate ltmain.sh.
13296if test -f "$ltmain"; then
13297 # See if we are running on zsh, and set the options which allow our commands through
13298 # without removal of \ escapes.
13299 if test -n "${ZSH_VERSION+set}" ; then
13300 setopt NO_GLOB_SUBST
13301 fi
13302 # Now quote all the things that may contain metacharacters while being
13303 # careful not to overquote the AC_SUBSTed values. We take copies of the
13304 # variables and quote the copies for generation of the libtool script.
13305 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13306 SED SHELL STRIP \
13307 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13308 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13309 deplibs_check_method reload_flag reload_cmds need_locks \
13310 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13311 lt_cv_sys_global_symbol_to_c_name_address \
13312 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13313 old_postinstall_cmds old_postuninstall_cmds \
13314 compiler_CXX \
13315 CC_CXX \
13316 LD_CXX \
13317 lt_prog_compiler_wl_CXX \
13318 lt_prog_compiler_pic_CXX \
13319 lt_prog_compiler_static_CXX \
13320 lt_prog_compiler_no_builtin_flag_CXX \
13321 export_dynamic_flag_spec_CXX \
13322 thread_safe_flag_spec_CXX \
13323 whole_archive_flag_spec_CXX \
13324 enable_shared_with_static_runtimes_CXX \
13325 old_archive_cmds_CXX \
13326 old_archive_from_new_cmds_CXX \
13327 predep_objects_CXX \
13328 postdep_objects_CXX \
13329 predeps_CXX \
13330 postdeps_CXX \
13331 compiler_lib_search_path_CXX \
13332 archive_cmds_CXX \
13333 archive_expsym_cmds_CXX \
13334 postinstall_cmds_CXX \
13335 postuninstall_cmds_CXX \
13336 old_archive_from_expsyms_cmds_CXX \
13337 allow_undefined_flag_CXX \
13338 no_undefined_flag_CXX \
13339 export_symbols_cmds_CXX \
13340 hardcode_libdir_flag_spec_CXX \
13341 hardcode_libdir_flag_spec_ld_CXX \
13342 hardcode_libdir_separator_CXX \
13343 hardcode_automatic_CXX \
13344 module_cmds_CXX \
13345 module_expsym_cmds_CXX \
13346 lt_cv_prog_compiler_c_o_CXX \
ac40fd9e 13347 fix_srcfile_path_CXX \
d9898ee8 13348 exclude_expsyms_CXX \
13349 include_expsyms_CXX; do
13350
13351 case $var in
13352 old_archive_cmds_CXX | \
13353 old_archive_from_new_cmds_CXX | \
13354 archive_cmds_CXX | \
13355 archive_expsym_cmds_CXX | \
13356 module_cmds_CXX | \
13357 module_expsym_cmds_CXX | \
13358 old_archive_from_expsyms_cmds_CXX | \
13359 export_symbols_cmds_CXX | \
13360 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13361 postinstall_cmds | postuninstall_cmds | \
13362 old_postinstall_cmds | old_postuninstall_cmds | \
13363 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13364 # Double-quote double-evaled strings.
13365 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13366 ;;
13367 *)
13368 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13369 ;;
13370 esac
13371 done
13372
13373 case $lt_echo in
13374 *'\$0 --fallback-echo"')
13375 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13376 ;;
13377 esac
13378
13379cfgfile="$ofile"
13380
13381 cat <<__EOF__ >> "$cfgfile"
13382# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13383
13384# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13385
13386# Shell to use when invoking shell scripts.
13387SHELL=$lt_SHELL
13388
13389# Whether or not to build shared libraries.
13390build_libtool_libs=$enable_shared
13391
13392# Whether or not to build static libraries.
13393build_old_libs=$enable_static
13394
13395# Whether or not to add -lc for building shared libraries.
13396build_libtool_need_lc=$archive_cmds_need_lc_CXX
13397
13398# Whether or not to disallow shared libs when runtime libs are static
13399allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13400
13401# Whether or not to optimize for fast installation.
13402fast_install=$enable_fast_install
13403
13404# The host system.
13405host_alias=$host_alias
13406host=$host
13407host_os=$host_os
13408
13409# The build system.
13410build_alias=$build_alias
13411build=$build
13412build_os=$build_os
13413
13414# An echo program that does not interpret backslashes.
13415echo=$lt_echo
13416
13417# The archiver.
13418AR=$lt_AR
13419AR_FLAGS=$lt_AR_FLAGS
13420
13421# A C compiler.
13422LTCC=$lt_LTCC
13423
13424# LTCC compiler flags.
13425LTCFLAGS=$lt_LTCFLAGS
13426
13427# A language-specific compiler.
13428CC=$lt_compiler_CXX
13429
13430# Is the compiler the GNU C compiler?
13431with_gcc=$GCC_CXX
13432
d9898ee8 13433# An ERE matcher.
13434EGREP=$lt_EGREP
13435
13436# The linker used to build libraries.
13437LD=$lt_LD_CXX
13438
13439# Whether we need hard or soft links.
13440LN_S=$lt_LN_S
13441
13442# A BSD-compatible nm program.
13443NM=$lt_NM
13444
13445# A symbol stripping program
13446STRIP=$lt_STRIP
13447
13448# Used to examine libraries when file_magic_cmd begins "file"
13449MAGIC_CMD=$MAGIC_CMD
13450
13451# Used on cygwin: DLL creation program.
13452DLLTOOL="$DLLTOOL"
13453
13454# Used on cygwin: object dumper.
13455OBJDUMP="$OBJDUMP"
13456
13457# Used on cygwin: assembler.
13458AS="$AS"
13459
13460# The name of the directory that contains temporary libtool files.
13461objdir=$objdir
13462
13463# How to create reloadable object files.
13464reload_flag=$lt_reload_flag
13465reload_cmds=$lt_reload_cmds
13466
13467# How to pass a linker flag through the compiler.
13468wl=$lt_lt_prog_compiler_wl_CXX
13469
13470# Object file suffix (normally "o").
13471objext="$ac_objext"
13472
13473# Old archive suffix (normally "a").
13474libext="$libext"
13475
13476# Shared library suffix (normally ".so").
13477shrext_cmds='$shrext_cmds'
13478
13479# Executable file suffix (normally "").
13480exeext="$exeext"
13481
13482# Additional compiler flags for building library objects.
13483pic_flag=$lt_lt_prog_compiler_pic_CXX
13484pic_mode=$pic_mode
13485
13486# What is the maximum length of a command?
13487max_cmd_len=$lt_cv_sys_max_cmd_len
13488
13489# Does compiler simultaneously support -c and -o options?
13490compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13491
13492# Must we lock files when doing compilation?
13493need_locks=$lt_need_locks
13494
13495# Do we need the lib prefix for modules?
13496need_lib_prefix=$need_lib_prefix
13497
13498# Do we need a version for libraries?
13499need_version=$need_version
13500
13501# Whether dlopen is supported.
13502dlopen_support=$enable_dlopen
13503
13504# Whether dlopen of programs is supported.
13505dlopen_self=$enable_dlopen_self
13506
13507# Whether dlopen of statically linked programs is supported.
13508dlopen_self_static=$enable_dlopen_self_static
13509
13510# Compiler flag to prevent dynamic linking.
13511link_static_flag=$lt_lt_prog_compiler_static_CXX
13512
13513# Compiler flag to turn off builtin functions.
13514no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13515
13516# Compiler flag to allow reflexive dlopens.
13517export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13518
13519# Compiler flag to generate shared objects directly from archives.
13520whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13521
13522# Compiler flag to generate thread-safe objects.
13523thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13524
13525# Library versioning type.
13526version_type=$version_type
13527
13528# Format of library name prefix.
13529libname_spec=$lt_libname_spec
13530
13531# List of archive names. First name is the real one, the rest are links.
13532# The last name is the one that the linker finds with -lNAME.
13533library_names_spec=$lt_library_names_spec
13534
13535# The coded name of the library, if different from the real name.
13536soname_spec=$lt_soname_spec
13537
13538# Commands used to build and install an old-style archive.
13539RANLIB=$lt_RANLIB
13540old_archive_cmds=$lt_old_archive_cmds_CXX
13541old_postinstall_cmds=$lt_old_postinstall_cmds
13542old_postuninstall_cmds=$lt_old_postuninstall_cmds
13543
13544# Create an old-style archive from a shared archive.
13545old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13546
13547# Create a temporary old-style archive to link instead of a shared archive.
13548old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13549
13550# Commands used to build and install a shared archive.
13551archive_cmds=$lt_archive_cmds_CXX
13552archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13553postinstall_cmds=$lt_postinstall_cmds
13554postuninstall_cmds=$lt_postuninstall_cmds
13555
13556# Commands used to build a loadable module (assumed same as above if empty)
13557module_cmds=$lt_module_cmds_CXX
13558module_expsym_cmds=$lt_module_expsym_cmds_CXX
13559
13560# Commands to strip libraries.
13561old_striplib=$lt_old_striplib
13562striplib=$lt_striplib
13563
13564# Dependencies to place before the objects being linked to create a
13565# shared library.
dd184caf 13566predep_objects=$lt_predep_objects_CXX
d9898ee8 13567
13568# Dependencies to place after the objects being linked to create a
13569# shared library.
dd184caf 13570postdep_objects=$lt_postdep_objects_CXX
d9898ee8 13571
13572# Dependencies to place before the objects being linked to create a
13573# shared library.
13574predeps=$lt_predeps_CXX
13575
13576# Dependencies to place after the objects being linked to create a
13577# shared library.
13578postdeps=$lt_postdeps_CXX
13579
13580# The library search path used internally by the compiler when linking
13581# a shared library.
dd184caf 13582compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d9898ee8 13583
13584# Method to check whether dependent libraries are shared objects.
13585deplibs_check_method=$lt_deplibs_check_method
13586
13587# Command to use when deplibs_check_method == file_magic.
13588file_magic_cmd=$lt_file_magic_cmd
13589
13590# Flag that allows shared libraries with undefined symbols to be built.
13591allow_undefined_flag=$lt_allow_undefined_flag_CXX
13592
13593# Flag that forces no undefined symbols.
13594no_undefined_flag=$lt_no_undefined_flag_CXX
13595
13596# Commands used to finish a libtool library installation in a directory.
13597finish_cmds=$lt_finish_cmds
13598
13599# Same as above, but a single script fragment to be evaled but not shown.
13600finish_eval=$lt_finish_eval
13601
13602# Take the output of nm and produce a listing of raw symbols and C names.
13603global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13604
13605# Transform the output of nm in a proper C declaration
13606global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13607
13608# Transform the output of nm in a C name address pair
13609global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13610
13611# This is the shared library runtime path variable.
13612runpath_var=$runpath_var
13613
13614# This is the shared library path variable.
13615shlibpath_var=$shlibpath_var
13616
13617# Is shlibpath searched before the hard-coded library search path?
13618shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13619
13620# How to hardcode a shared library path into an executable.
13621hardcode_action=$hardcode_action_CXX
13622
13623# Whether we should hardcode library paths into libraries.
13624hardcode_into_libs=$hardcode_into_libs
13625
13626# Flag to hardcode \$libdir into a binary during linking.
13627# This must work even if \$libdir does not exist.
13628hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13629
13630# If ld is used when linking, flag to hardcode \$libdir into
13631# a binary during linking. This must work even if \$libdir does
13632# not exist.
13633hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13634
13635# Whether we need a single -rpath flag with a separated argument.
13636hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13637
13638# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13639# resulting binary.
13640hardcode_direct=$hardcode_direct_CXX
13641
13642# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13643# resulting binary.
13644hardcode_minus_L=$hardcode_minus_L_CXX
13645
13646# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13647# the resulting binary.
13648hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13649
13650# Set to yes if building a shared library automatically hardcodes DIR into the library
13651# and all subsequent libraries and executables linked against it.
13652hardcode_automatic=$hardcode_automatic_CXX
13653
13654# Variables whose values should be saved in libtool wrapper scripts and
13655# restored at relink time.
13656variables_saved_for_relink="$variables_saved_for_relink"
13657
13658# Whether libtool must link a program against all its dependency libraries.
13659link_all_deplibs=$link_all_deplibs_CXX
13660
13661# Compile-time system search path for libraries
dd184caf 13662sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 13663
13664# Run-time system search path for libraries
13665sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13666
13667# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 13668fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 13669
13670# Set to yes if exported symbols are required.
13671always_export_symbols=$always_export_symbols_CXX
13672
13673# The commands to list exported symbols.
13674export_symbols_cmds=$lt_export_symbols_cmds_CXX
13675
13676# The commands to extract the exported symbol list from a shared archive.
13677extract_expsyms_cmds=$lt_extract_expsyms_cmds
13678
13679# Symbols that should not be listed in the preloaded symbols.
13680exclude_expsyms=$lt_exclude_expsyms_CXX
13681
13682# Symbols that must always be exported.
13683include_expsyms=$lt_include_expsyms_CXX
13684
13685# ### END LIBTOOL TAG CONFIG: $tagname
13686
13687__EOF__
13688
13689
13690else
13691 # If there is no Makefile yet, we rely on a make rule to execute
13692 # `config.status --recheck' to rerun these tests and create the
13693 # libtool script then.
13694 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13695 if test -f "$ltmain_in"; then
13696 test -f Makefile && make "$ltmain"
13697 fi
13698fi
13699
13700
13701ac_ext=c
13702ac_cpp='$CPP $CPPFLAGS'
13703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13705ac_compiler_gnu=$ac_cv_c_compiler_gnu
13706
13707CC=$lt_save_CC
13708LDCXX=$LD
13709LD=$lt_save_LD
13710GCC=$lt_save_GCC
13711with_gnu_ldcxx=$with_gnu_ld
13712with_gnu_ld=$lt_save_with_gnu_ld
13713lt_cv_path_LDCXX=$lt_cv_path_LD
13714lt_cv_path_LD=$lt_save_path_LD
13715lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13716lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13717
13718 else
13719 tagname=""
13720 fi
13721 ;;
13722
13723 F77)
13724 if test -n "$F77" && test "X$F77" != "Xno"; then
13725
13726ac_ext=f
13727ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13728ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13729ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13730
13731
13732archive_cmds_need_lc_F77=no
13733allow_undefined_flag_F77=
13734always_export_symbols_F77=no
13735archive_expsym_cmds_F77=
13736export_dynamic_flag_spec_F77=
13737hardcode_direct_F77=no
13738hardcode_libdir_flag_spec_F77=
13739hardcode_libdir_flag_spec_ld_F77=
13740hardcode_libdir_separator_F77=
13741hardcode_minus_L_F77=no
13742hardcode_automatic_F77=no
13743module_cmds_F77=
13744module_expsym_cmds_F77=
13745link_all_deplibs_F77=unknown
13746old_archive_cmds_F77=$old_archive_cmds
13747no_undefined_flag_F77=
13748whole_archive_flag_spec_F77=
13749enable_shared_with_static_runtimes_F77=no
13750
13751# Source file extension for f77 test sources.
13752ac_ext=f
13753
13754# Object file extension for compiled f77 test sources.
13755objext=o
13756objext_F77=$objext
13757
13758# Code to be used in simple compile tests
ac40fd9e 13759lt_simple_compile_test_code="\
13760 subroutine t
13761 return
13762 end
13763"
d9898ee8 13764
13765# Code to be used in simple link tests
ac40fd9e 13766lt_simple_link_test_code="\
13767 program t
13768 end
13769"
d9898ee8 13770
13771# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13772
13773# If no C compiler was specified, use CC.
13774LTCC=${LTCC-"$CC"}
13775
13776# If no C compiler flags were specified, use CFLAGS.
13777LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13778
13779# Allow CC to be a program name with arguments.
13780compiler=$CC
13781
13782
13783# save warnings/boilerplate of simple test code
13784ac_outfile=conftest.$ac_objext
ac40fd9e 13785echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 13786eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13787_lt_compiler_boilerplate=`cat conftest.err`
13788$rm conftest*
13789
13790ac_outfile=conftest.$ac_objext
ac40fd9e 13791echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 13792eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13793_lt_linker_boilerplate=`cat conftest.err`
13794$rm conftest*
13795
13796
13797# Allow CC to be a program name with arguments.
13798lt_save_CC="$CC"
13799CC=${F77-"f77"}
13800compiler=$CC
13801compiler_F77=$CC
13802for cc_temp in $compiler""; do
13803 case $cc_temp in
13804 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13805 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13806 \-*) ;;
13807 *) break;;
13808 esac
13809done
13810cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13811
13812
dd184caf 13813{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13814echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13815{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13816echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 13817
dd184caf 13818{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13819echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 13820test "$can_build_shared" = "no" && enable_shared=no
13821
13822# On AIX, shared libraries and static libraries use the same namespace, and
13823# are all built from PIC.
13824case $host_os in
13825aix3*)
13826 test "$enable_shared" = yes && enable_static=no
13827 if test -n "$RANLIB"; then
13828 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13829 postinstall_cmds='$RANLIB $lib'
13830 fi
13831 ;;
13832aix4* | aix5*)
13833 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13834 test "$enable_shared" = yes && enable_static=no
13835 fi
13836 ;;
13837esac
dd184caf 13838{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13839echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 13840
dd184caf 13841{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13842echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 13843# Make sure either enable_shared or enable_static is yes.
13844test "$enable_shared" = yes || enable_static=yes
dd184caf 13845{ echo "$as_me:$LINENO: result: $enable_static" >&5
13846echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 13847
13848GCC_F77="$G77"
13849LD_F77="$LD"
13850
13851lt_prog_compiler_wl_F77=
13852lt_prog_compiler_pic_F77=
13853lt_prog_compiler_static_F77=
13854
dd184caf 13855{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13856echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 13857
13858 if test "$GCC" = yes; then
13859 lt_prog_compiler_wl_F77='-Wl,'
13860 lt_prog_compiler_static_F77='-static'
13861
13862 case $host_os in
13863 aix*)
13864 # All AIX code is PIC.
13865 if test "$host_cpu" = ia64; then
13866 # AIX 5 now supports IA64 processor
13867 lt_prog_compiler_static_F77='-Bstatic'
13868 fi
13869 ;;
13870
13871 amigaos*)
13872 # FIXME: we need at least 68020 code to build shared libraries, but
13873 # adding the `-m68020' flag to GCC prevents building anything better,
13874 # like `-m68040'.
13875 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13876 ;;
13877
ac40fd9e 13878 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 13879 # PIC is the default for these OSes.
13880 ;;
13881
ac40fd9e 13882 mingw* | cygwin* | pw32* | os2*)
d9898ee8 13883 # This hack is so that the source file can tell whether it is being
13884 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 13885 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13886 # (--disable-auto-import) libraries
d9898ee8 13887 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13888 ;;
13889
13890 darwin* | rhapsody*)
13891 # PIC is the default on this platform
13892 # Common symbols not allowed in MH_DYLIB files
13893 lt_prog_compiler_pic_F77='-fno-common'
13894 ;;
13895
ac40fd9e 13896 interix[3-9]*)
d9898ee8 13897 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13898 # Instead, we relocate shared libraries at runtime.
13899 ;;
13900
13901 msdosdjgpp*)
13902 # Just because we use GCC doesn't mean we suddenly get shared libraries
13903 # on systems that don't support them.
13904 lt_prog_compiler_can_build_shared_F77=no
13905 enable_shared=no
13906 ;;
13907
13908 sysv4*MP*)
13909 if test -d /usr/nec; then
13910 lt_prog_compiler_pic_F77=-Kconform_pic
13911 fi
13912 ;;
13913
13914 hpux*)
13915 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13916 # not for PA HP-UX.
13917 case $host_cpu in
13918 hppa*64*|ia64*)
13919 # +Z the default
13920 ;;
13921 *)
13922 lt_prog_compiler_pic_F77='-fPIC'
13923 ;;
13924 esac
13925 ;;
13926
13927 *)
13928 lt_prog_compiler_pic_F77='-fPIC'
13929 ;;
13930 esac
13931 else
13932 # PORTME Check for flag to pass linker flags through the system compiler.
13933 case $host_os in
13934 aix*)
13935 lt_prog_compiler_wl_F77='-Wl,'
13936 if test "$host_cpu" = ia64; then
13937 # AIX 5 now supports IA64 processor
13938 lt_prog_compiler_static_F77='-Bstatic'
13939 else
13940 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13941 fi
13942 ;;
13943 darwin*)
13944 # PIC is the default on this platform
13945 # Common symbols not allowed in MH_DYLIB files
13946 case $cc_basename in
13947 xlc*)
13948 lt_prog_compiler_pic_F77='-qnocommon'
13949 lt_prog_compiler_wl_F77='-Wl,'
13950 ;;
13951 esac
13952 ;;
13953
ac40fd9e 13954 mingw* | cygwin* | pw32* | os2*)
d9898ee8 13955 # This hack is so that the source file can tell whether it is being
13956 # built for inclusion in a dll (and should export symbols for example).
13957 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13958 ;;
13959
13960 hpux9* | hpux10* | hpux11*)
13961 lt_prog_compiler_wl_F77='-Wl,'
13962 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13963 # not for PA HP-UX.
13964 case $host_cpu in
13965 hppa*64*|ia64*)
13966 # +Z the default
13967 ;;
13968 *)
13969 lt_prog_compiler_pic_F77='+Z'
13970 ;;
13971 esac
13972 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13973 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13974 ;;
13975
13976 irix5* | irix6* | nonstopux*)
13977 lt_prog_compiler_wl_F77='-Wl,'
13978 # PIC (with -KPIC) is the default.
13979 lt_prog_compiler_static_F77='-non_shared'
13980 ;;
13981
13982 newsos6)
13983 lt_prog_compiler_pic_F77='-KPIC'
13984 lt_prog_compiler_static_F77='-Bstatic'
13985 ;;
13986
ac40fd9e 13987 linux* | k*bsd*-gnu)
d9898ee8 13988 case $cc_basename in
13989 icc* | ecc*)
13990 lt_prog_compiler_wl_F77='-Wl,'
13991 lt_prog_compiler_pic_F77='-KPIC'
13992 lt_prog_compiler_static_F77='-static'
13993 ;;
13994 pgcc* | pgf77* | pgf90* | pgf95*)
13995 # Portland Group compilers (*not* the Pentium gcc compiler,
13996 # which looks to be a dead project)
13997 lt_prog_compiler_wl_F77='-Wl,'
13998 lt_prog_compiler_pic_F77='-fpic'
13999 lt_prog_compiler_static_F77='-Bstatic'
14000 ;;
14001 ccc*)
14002 lt_prog_compiler_wl_F77='-Wl,'
14003 # All Alpha code is PIC.
14004 lt_prog_compiler_static_F77='-non_shared'
14005 ;;
ac40fd9e 14006 *)
14007 case `$CC -V 2>&1 | sed 5q` in
14008 *Sun\ C*)
14009 # Sun C 5.9
14010 lt_prog_compiler_pic_F77='-KPIC'
14011 lt_prog_compiler_static_F77='-Bstatic'
14012 lt_prog_compiler_wl_F77='-Wl,'
14013 ;;
14014 *Sun\ F*)
14015 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14016 lt_prog_compiler_pic_F77='-KPIC'
14017 lt_prog_compiler_static_F77='-Bstatic'
14018 lt_prog_compiler_wl_F77=''
14019 ;;
14020 esac
14021 ;;
d9898ee8 14022 esac
14023 ;;
14024
14025 osf3* | osf4* | osf5*)
14026 lt_prog_compiler_wl_F77='-Wl,'
14027 # All OSF/1 code is PIC.
14028 lt_prog_compiler_static_F77='-non_shared'
14029 ;;
14030
ac40fd9e 14031 rdos*)
14032 lt_prog_compiler_static_F77='-non_shared'
14033 ;;
14034
d9898ee8 14035 solaris*)
14036 lt_prog_compiler_pic_F77='-KPIC'
14037 lt_prog_compiler_static_F77='-Bstatic'
14038 case $cc_basename in
14039 f77* | f90* | f95*)
14040 lt_prog_compiler_wl_F77='-Qoption ld ';;
14041 *)
14042 lt_prog_compiler_wl_F77='-Wl,';;
14043 esac
14044 ;;
14045
14046 sunos4*)
14047 lt_prog_compiler_wl_F77='-Qoption ld '
14048 lt_prog_compiler_pic_F77='-PIC'
14049 lt_prog_compiler_static_F77='-Bstatic'
14050 ;;
14051
14052 sysv4 | sysv4.2uw2* | sysv4.3*)
14053 lt_prog_compiler_wl_F77='-Wl,'
14054 lt_prog_compiler_pic_F77='-KPIC'
14055 lt_prog_compiler_static_F77='-Bstatic'
14056 ;;
14057
14058 sysv4*MP*)
14059 if test -d /usr/nec ;then
14060 lt_prog_compiler_pic_F77='-Kconform_pic'
14061 lt_prog_compiler_static_F77='-Bstatic'
14062 fi
14063 ;;
14064
14065 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14066 lt_prog_compiler_wl_F77='-Wl,'
14067 lt_prog_compiler_pic_F77='-KPIC'
14068 lt_prog_compiler_static_F77='-Bstatic'
14069 ;;
14070
14071 unicos*)
14072 lt_prog_compiler_wl_F77='-Wl,'
14073 lt_prog_compiler_can_build_shared_F77=no
14074 ;;
14075
14076 uts4*)
14077 lt_prog_compiler_pic_F77='-pic'
14078 lt_prog_compiler_static_F77='-Bstatic'
14079 ;;
14080
14081 *)
14082 lt_prog_compiler_can_build_shared_F77=no
14083 ;;
14084 esac
14085 fi
14086
dd184caf 14087{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14088echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d9898ee8 14089
14090#
14091# Check to make sure the PIC flag actually works.
14092#
14093if test -n "$lt_prog_compiler_pic_F77"; then
14094
dd184caf 14095{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14096echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
d9898ee8 14097if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14099else
14100 lt_prog_compiler_pic_works_F77=no
14101 ac_outfile=conftest.$ac_objext
ac40fd9e 14102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14103 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14104 # Insert the option either (1) after the last *FLAGS variable, or
14105 # (2) before a word containing "conftest.", or (3) at the end.
14106 # Note that $ac_compile itself does not contain backslashes and begins
14107 # with a dollar sign (not a hyphen), so the echo should work correctly.
14108 # The option is referenced via a variable to avoid confusing sed.
14109 lt_compile=`echo "$ac_compile" | $SED \
14110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14112 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 14113 (eval echo "\"\$as_me:14113: $lt_compile\"" >&5)
d9898ee8 14114 (eval "$lt_compile" 2>conftest.err)
14115 ac_status=$?
14116 cat conftest.err >&5
ac40fd9e 14117 echo "$as_me:14117: \$? = $ac_status" >&5
d9898ee8 14118 if (exit $ac_status) && test -s "$ac_outfile"; then
14119 # The compiler can only warn and ignore the option if not recognized
14120 # So say no if there are warnings other than the usual output.
14121 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14123 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14124 lt_prog_compiler_pic_works_F77=yes
14125 fi
14126 fi
14127 $rm conftest*
14128
14129fi
dd184caf 14130{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14131echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d9898ee8 14132
14133if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14134 case $lt_prog_compiler_pic_F77 in
14135 "" | " "*) ;;
14136 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14137 esac
14138else
14139 lt_prog_compiler_pic_F77=
14140 lt_prog_compiler_can_build_shared_F77=no
14141fi
14142
14143fi
14144case $host_os in
14145 # For platforms which do not support PIC, -DPIC is meaningless:
14146 *djgpp*)
14147 lt_prog_compiler_pic_F77=
14148 ;;
14149 *)
14150 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14151 ;;
14152esac
14153
14154#
14155# Check to make sure the static flag actually works.
14156#
14157wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
dd184caf 14158{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14159echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 14160if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14162else
14163 lt_prog_compiler_static_works_F77=no
14164 save_LDFLAGS="$LDFLAGS"
14165 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 14166 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 14167 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14168 # The linker can only warn and ignore the option if not recognized
14169 # So say no if there are warnings
14170 if test -s conftest.err; then
14171 # Append any errors to the config.log.
14172 cat conftest.err 1>&5
14173 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14174 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14175 if diff conftest.exp conftest.er2 >/dev/null; then
14176 lt_prog_compiler_static_works_F77=yes
14177 fi
14178 else
14179 lt_prog_compiler_static_works_F77=yes
14180 fi
14181 fi
14182 $rm conftest*
14183 LDFLAGS="$save_LDFLAGS"
14184
14185fi
dd184caf 14186{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14187echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
d9898ee8 14188
14189if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14190 :
14191else
14192 lt_prog_compiler_static_F77=
14193fi
14194
14195
dd184caf 14196{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14197echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 14198if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14200else
14201 lt_cv_prog_compiler_c_o_F77=no
14202 $rm -r conftest 2>/dev/null
14203 mkdir conftest
14204 cd conftest
14205 mkdir out
ac40fd9e 14206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14207
14208 lt_compiler_flag="-o out/conftest2.$ac_objext"
14209 # Insert the option either (1) after the last *FLAGS variable, or
14210 # (2) before a word containing "conftest.", or (3) at the end.
14211 # Note that $ac_compile itself does not contain backslashes and begins
14212 # with a dollar sign (not a hyphen), so the echo should work correctly.
14213 lt_compile=`echo "$ac_compile" | $SED \
14214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14216 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 14217 (eval echo "\"\$as_me:14217: $lt_compile\"" >&5)
d9898ee8 14218 (eval "$lt_compile" 2>out/conftest.err)
14219 ac_status=$?
14220 cat out/conftest.err >&5
ac40fd9e 14221 echo "$as_me:14221: \$? = $ac_status" >&5
d9898ee8 14222 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14223 then
14224 # The compiler can only warn and ignore the option if not recognized
14225 # So say no if there are warnings
14226 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14227 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14228 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14229 lt_cv_prog_compiler_c_o_F77=yes
14230 fi
14231 fi
14232 chmod u+w . 2>&5
14233 $rm conftest*
14234 # SGI C++ compiler will create directory out/ii_files/ for
14235 # template instantiation
14236 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14237 $rm out/* && rmdir out
14238 cd ..
14239 rmdir conftest
14240 $rm conftest*
14241
14242fi
dd184caf 14243{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14244echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d9898ee8 14245
14246
14247hard_links="nottested"
14248if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14249 # do not overwrite the value of need_locks provided by the user
dd184caf 14250 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14251echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 14252 hard_links=yes
14253 $rm conftest*
14254 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14255 touch conftest.a
14256 ln conftest.a conftest.b 2>&5 || hard_links=no
14257 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 14258 { echo "$as_me:$LINENO: result: $hard_links" >&5
14259echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 14260 if test "$hard_links" = no; then
14261 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14262echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14263 need_locks=warn
14264 fi
14265else
14266 need_locks=no
14267fi
14268
dd184caf 14269{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14270echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 14271
14272 runpath_var=
14273 allow_undefined_flag_F77=
14274 enable_shared_with_static_runtimes_F77=no
14275 archive_cmds_F77=
14276 archive_expsym_cmds_F77=
14277 old_archive_From_new_cmds_F77=
14278 old_archive_from_expsyms_cmds_F77=
14279 export_dynamic_flag_spec_F77=
14280 whole_archive_flag_spec_F77=
14281 thread_safe_flag_spec_F77=
14282 hardcode_libdir_flag_spec_F77=
14283 hardcode_libdir_flag_spec_ld_F77=
14284 hardcode_libdir_separator_F77=
14285 hardcode_direct_F77=no
14286 hardcode_minus_L_F77=no
14287 hardcode_shlibpath_var_F77=unsupported
14288 link_all_deplibs_F77=unknown
14289 hardcode_automatic_F77=no
14290 module_cmds_F77=
14291 module_expsym_cmds_F77=
14292 always_export_symbols_F77=no
14293 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14294 # include_expsyms should be a list of space-separated symbols to be *always*
14295 # included in the symbol list
14296 include_expsyms_F77=
14297 # exclude_expsyms can be an extended regexp of symbols to exclude
14298 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14299 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14300 # as well as any symbol that contains `d'.
14301 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14302 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14303 # platforms (ab)use it in PIC code, but their linkers get confused if
14304 # the symbol is explicitly referenced. Since portable code cannot
14305 # rely on this symbol name, it's probably fine to never include it in
14306 # preloaded symbol tables.
14307 extract_expsyms_cmds=
14308 # Just being paranoid about ensuring that cc_basename is set.
14309 for cc_temp in $compiler""; do
14310 case $cc_temp in
14311 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14312 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14313 \-*) ;;
14314 *) break;;
14315 esac
14316done
14317cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14318
14319 case $host_os in
14320 cygwin* | mingw* | pw32*)
14321 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14322 # When not using gcc, we currently assume that we are using
14323 # Microsoft Visual C++.
14324 if test "$GCC" != yes; then
14325 with_gnu_ld=no
14326 fi
14327 ;;
14328 interix*)
14329 # we just hope/assume this is gcc and not c89 (= MSVC++)
14330 with_gnu_ld=yes
14331 ;;
14332 openbsd*)
14333 with_gnu_ld=no
14334 ;;
14335 esac
14336
14337 ld_shlibs_F77=yes
14338 if test "$with_gnu_ld" = yes; then
14339 # If archive_cmds runs LD, not CC, wlarc should be empty
14340 wlarc='${wl}'
14341
14342 # Set some defaults for GNU ld with shared library support. These
14343 # are reset later if shared libraries are not supported. Putting them
14344 # here allows them to be overridden if necessary.
14345 runpath_var=LD_RUN_PATH
14346 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14347 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14348 # ancient GNU ld didn't support --whole-archive et. al.
14349 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14350 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14351 else
14352 whole_archive_flag_spec_F77=
14353 fi
14354 supports_anon_versioning=no
14355 case `$LD -v 2>/dev/null` in
14356 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14357 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14358 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14359 *\ 2.11.*) ;; # other 2.11 versions
14360 *) supports_anon_versioning=yes ;;
14361 esac
14362
14363 # See if GNU ld supports shared libraries.
14364 case $host_os in
14365 aix3* | aix4* | aix5*)
14366 # On AIX/PPC, the GNU linker is very broken
14367 if test "$host_cpu" != ia64; then
14368 ld_shlibs_F77=no
14369 cat <<EOF 1>&2
14370
14371*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14372*** to be unable to reliably create shared libraries on AIX.
14373*** Therefore, libtool is disabling shared libraries support. If you
14374*** really care for shared libraries, you may want to modify your PATH
14375*** so that a non-GNU linker is found, and then restart.
14376
14377EOF
14378 fi
14379 ;;
14380
14381 amigaos*)
14382 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)'
14383 hardcode_libdir_flag_spec_F77='-L$libdir'
14384 hardcode_minus_L_F77=yes
14385
14386 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14387 # that the semantics of dynamic libraries on AmigaOS, at least up
14388 # to version 4, is to share data among multiple programs linked
14389 # with the same dynamic library. Since this doesn't match the
14390 # behavior of shared libraries on other platforms, we can't use
14391 # them.
14392 ld_shlibs_F77=no
14393 ;;
14394
14395 beos*)
14396 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14397 allow_undefined_flag_F77=unsupported
14398 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14399 # support --undefined. This deserves some investigation. FIXME
14400 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14401 else
14402 ld_shlibs_F77=no
14403 fi
14404 ;;
14405
14406 cygwin* | mingw* | pw32*)
14407 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14408 # as there is no search path for DLLs.
14409 hardcode_libdir_flag_spec_F77='-L$libdir'
14410 allow_undefined_flag_F77=unsupported
14411 always_export_symbols_F77=no
14412 enable_shared_with_static_runtimes_F77=yes
ac40fd9e 14413 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 14414
14415 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14416 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14417 # If the export-symbols file already is a .def file (1st line
14418 # is EXPORTS), use it as is; otherwise, prepend...
14419 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14420 cp $export_symbols $output_objdir/$soname.def;
14421 else
14422 echo EXPORTS > $output_objdir/$soname.def;
14423 cat $export_symbols >> $output_objdir/$soname.def;
14424 fi~
14425 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14426 else
14427 ld_shlibs_F77=no
14428 fi
14429 ;;
14430
ac40fd9e 14431 interix[3-9]*)
d9898ee8 14432 hardcode_direct_F77=no
14433 hardcode_shlibpath_var_F77=no
14434 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14435 export_dynamic_flag_spec_F77='${wl}-E'
14436 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14437 # Instead, shared libraries are loaded at an image base (0x10000000 by
14438 # default) and relocated if they conflict, which is a slow very memory
14439 # consuming and fragmenting process. To avoid this, we pick a random,
14440 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14441 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14442 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'
14443 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'
14444 ;;
14445
ac40fd9e 14446 gnu* | linux* | k*bsd*-gnu)
d9898ee8 14447 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14448 tmp_addflag=
14449 case $cc_basename,$host_cpu in
14450 pgcc*) # Portland Group C compiler
14451 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'
14452 tmp_addflag=' $pic_flag'
14453 ;;
14454 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14455 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'
14456 tmp_addflag=' $pic_flag -Mnomain' ;;
14457 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14458 tmp_addflag=' -i_dynamic' ;;
14459 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14460 tmp_addflag=' -i_dynamic -nofor_main' ;;
14461 ifc* | ifort*) # Intel Fortran compiler
14462 tmp_addflag=' -nofor_main' ;;
14463 esac
ac40fd9e 14464 case `$CC -V 2>&1 | sed 5q` in
14465 *Sun\ C*) # Sun C 5.9
14466 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14467 tmp_sharedflag='-G' ;;
14468 *Sun\ F*) # Sun Fortran 8.3
14469 tmp_sharedflag='-G' ;;
14470 *)
14471 tmp_sharedflag='-shared' ;;
14472 esac
14473 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 14474
14475 if test $supports_anon_versioning = yes; then
14476 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14477 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14478 $echo "local: *; };" >> $output_objdir/$libname.ver~
ac40fd9e 14479 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 14480 fi
14481 else
14482 ld_shlibs_F77=no
14483 fi
14484 ;;
14485
14486 netbsd*)
14487 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14488 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14489 wlarc=
14490 else
14491 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14492 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14493 fi
14494 ;;
14495
14496 solaris*)
14497 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14498 ld_shlibs_F77=no
14499 cat <<EOF 1>&2
14500
14501*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14502*** create shared libraries on Solaris systems. Therefore, libtool
14503*** is disabling shared libraries support. We urge you to upgrade GNU
14504*** binutils to release 2.9.1 or newer. Another option is to modify
14505*** your PATH or compiler configuration so that the native linker is
14506*** used, and then restart.
14507
14508EOF
14509 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14510 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14511 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14512 else
14513 ld_shlibs_F77=no
14514 fi
14515 ;;
14516
14517 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14518 case `$LD -v 2>&1` in
14519 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14520 ld_shlibs_F77=no
14521 cat <<_LT_EOF 1>&2
14522
14523*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14524*** reliably create shared libraries on SCO systems. Therefore, libtool
14525*** is disabling shared libraries support. We urge you to upgrade GNU
14526*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14527*** your PATH or compiler configuration so that the native linker is
14528*** used, and then restart.
14529
14530_LT_EOF
14531 ;;
14532 *)
14533 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14534 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14535 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14536 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14537 else
14538 ld_shlibs_F77=no
14539 fi
14540 ;;
14541 esac
14542 ;;
14543
14544 sunos4*)
14545 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14546 wlarc=
14547 hardcode_direct_F77=yes
14548 hardcode_shlibpath_var_F77=no
14549 ;;
14550
14551 *)
14552 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14553 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14554 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14555 else
14556 ld_shlibs_F77=no
14557 fi
14558 ;;
14559 esac
14560
14561 if test "$ld_shlibs_F77" = no; then
14562 runpath_var=
14563 hardcode_libdir_flag_spec_F77=
14564 export_dynamic_flag_spec_F77=
14565 whole_archive_flag_spec_F77=
14566 fi
14567 else
14568 # PORTME fill in a description of your system's linker (not GNU ld)
14569 case $host_os in
14570 aix3*)
14571 allow_undefined_flag_F77=unsupported
14572 always_export_symbols_F77=yes
14573 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'
14574 # Note: this linker hardcodes the directories in LIBPATH if there
14575 # are no directories specified by -L.
14576 hardcode_minus_L_F77=yes
14577 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14578 # Neither direct hardcoding nor static linking is supported with a
14579 # broken collect2.
14580 hardcode_direct_F77=unsupported
14581 fi
14582 ;;
14583
14584 aix4* | aix5*)
14585 if test "$host_cpu" = ia64; then
14586 # On IA64, the linker does run time linking by default, so we don't
14587 # have to do anything special.
14588 aix_use_runtimelinking=no
14589 exp_sym_flag='-Bexport'
14590 no_entry_flag=""
14591 else
14592 # If we're using GNU nm, then we don't want the "-C" option.
14593 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14594 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14595 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'
14596 else
14597 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'
14598 fi
14599 aix_use_runtimelinking=no
14600
14601 # Test if we are trying to use run time linking or normal
14602 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14603 # need to do runtime linking.
14604 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14605 for ld_flag in $LDFLAGS; do
14606 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14607 aix_use_runtimelinking=yes
14608 break
14609 fi
14610 done
14611 ;;
14612 esac
14613
14614 exp_sym_flag='-bexport'
14615 no_entry_flag='-bnoentry'
14616 fi
14617
14618 # When large executables or shared objects are built, AIX ld can
14619 # have problems creating the table of contents. If linking a library
14620 # or program results in "error TOC overflow" add -mminimal-toc to
14621 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14622 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14623
14624 archive_cmds_F77=''
14625 hardcode_direct_F77=yes
14626 hardcode_libdir_separator_F77=':'
14627 link_all_deplibs_F77=yes
14628
14629 if test "$GCC" = yes; then
14630 case $host_os in aix4.[012]|aix4.[012].*)
14631 # We only want to do this on AIX 4.2 and lower, the check
14632 # below for broken collect2 doesn't work under 4.3+
14633 collect2name=`${CC} -print-prog-name=collect2`
14634 if test -f "$collect2name" && \
14635 strings "$collect2name" | grep resolve_lib_name >/dev/null
14636 then
14637 # We have reworked collect2
ac40fd9e 14638 :
d9898ee8 14639 else
14640 # We have old collect2
14641 hardcode_direct_F77=unsupported
14642 # It fails to find uninstalled libraries when the uninstalled
14643 # path is not listed in the libpath. Setting hardcode_minus_L
14644 # to unsupported forces relinking
14645 hardcode_minus_L_F77=yes
14646 hardcode_libdir_flag_spec_F77='-L$libdir'
14647 hardcode_libdir_separator_F77=
14648 fi
14649 ;;
14650 esac
14651 shared_flag='-shared'
14652 if test "$aix_use_runtimelinking" = yes; then
14653 shared_flag="$shared_flag "'${wl}-G'
14654 fi
14655 else
14656 # not using gcc
14657 if test "$host_cpu" = ia64; then
14658 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14659 # chokes on -Wl,-G. The following line is correct:
14660 shared_flag='-G'
14661 else
14662 if test "$aix_use_runtimelinking" = yes; then
14663 shared_flag='${wl}-G'
14664 else
14665 shared_flag='${wl}-bM:SRE'
14666 fi
14667 fi
14668 fi
14669
14670 # It seems that -bexpall does not export symbols beginning with
14671 # underscore (_), so it is better to generate a list of symbols to export.
14672 always_export_symbols_F77=yes
14673 if test "$aix_use_runtimelinking" = yes; then
14674 # Warning - without using the other runtime loading flags (-brtl),
14675 # -berok will link without error, but may produce a broken library.
14676 allow_undefined_flag_F77='-berok'
14677 # Determine the default libpath from the value encoded in an empty executable.
14678 cat >conftest.$ac_ext <<_ACEOF
14679 program main
14680
14681 end
14682_ACEOF
14683rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14684if { (ac_try="$ac_link"
14685case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14688esac
14689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690 (eval "$ac_link") 2>conftest.er1
d9898ee8 14691 ac_status=$?
14692 grep -v '^ *+' conftest.er1 >conftest.err
14693 rm -f conftest.er1
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14696 (exit $ac_status); } && {
14697 test -z "$ac_f77_werror_flag" ||
14698 test ! -s conftest.err
14699 } && test -s conftest$ac_exeext &&
14700 $as_test_x conftest$ac_exeext; then
d9898ee8 14701
ac40fd9e 14702lt_aix_libpath_sed='
14703 /Import File Strings/,/^$/ {
14704 /^0/ {
14705 s/^0 *\(.*\)$/\1/
14706 p
14707 }
14708 }'
14709aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 14710# Check for a 64-bit object if we didn't find anything.
ac40fd9e 14711if test -z "$aix_libpath"; then
14712 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14713fi
d9898ee8 14714else
14715 echo "$as_me: failed program was:" >&5
14716sed 's/^/| /' conftest.$ac_ext >&5
14717
dd184caf 14718
d9898ee8 14719fi
dd184caf 14720
14721rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14722 conftest$ac_exeext conftest.$ac_ext
14723if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14724
14725 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14726 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"
14727 else
14728 if test "$host_cpu" = ia64; then
14729 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14730 allow_undefined_flag_F77="-z nodefs"
14731 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"
14732 else
14733 # Determine the default libpath from the value encoded in an empty executable.
14734 cat >conftest.$ac_ext <<_ACEOF
14735 program main
14736
14737 end
14738_ACEOF
14739rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14740if { (ac_try="$ac_link"
14741case "(($ac_try" in
14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743 *) ac_try_echo=$ac_try;;
14744esac
14745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746 (eval "$ac_link") 2>conftest.er1
d9898ee8 14747 ac_status=$?
14748 grep -v '^ *+' conftest.er1 >conftest.err
14749 rm -f conftest.er1
14750 cat conftest.err >&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14752 (exit $ac_status); } && {
14753 test -z "$ac_f77_werror_flag" ||
14754 test ! -s conftest.err
14755 } && test -s conftest$ac_exeext &&
14756 $as_test_x conftest$ac_exeext; then
d9898ee8 14757
ac40fd9e 14758lt_aix_libpath_sed='
14759 /Import File Strings/,/^$/ {
14760 /^0/ {
14761 s/^0 *\(.*\)$/\1/
14762 p
14763 }
14764 }'
14765aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 14766# Check for a 64-bit object if we didn't find anything.
ac40fd9e 14767if test -z "$aix_libpath"; then
14768 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14769fi
d9898ee8 14770else
14771 echo "$as_me: failed program was:" >&5
14772sed 's/^/| /' conftest.$ac_ext >&5
14773
dd184caf 14774
d9898ee8 14775fi
dd184caf 14776
14777rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14778 conftest$ac_exeext conftest.$ac_ext
14779if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14780
14781 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14782 # Warning - without using the other run time loading flags,
14783 # -berok will link without error, but may produce a broken library.
14784 no_undefined_flag_F77=' ${wl}-bernotok'
14785 allow_undefined_flag_F77=' ${wl}-berok'
14786 # Exported symbols can be pulled into shared objects from archives
14787 whole_archive_flag_spec_F77='$convenience'
14788 archive_cmds_need_lc_F77=yes
14789 # This is similar to how AIX traditionally builds its shared libraries.
14790 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'
14791 fi
14792 fi
14793 ;;
14794
14795 amigaos*)
14796 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)'
14797 hardcode_libdir_flag_spec_F77='-L$libdir'
14798 hardcode_minus_L_F77=yes
14799 # see comment about different semantics on the GNU ld section
14800 ld_shlibs_F77=no
14801 ;;
14802
14803 bsdi[45]*)
14804 export_dynamic_flag_spec_F77=-rdynamic
14805 ;;
14806
14807 cygwin* | mingw* | pw32*)
14808 # When not using gcc, we currently assume that we are using
14809 # Microsoft Visual C++.
14810 # hardcode_libdir_flag_spec is actually meaningless, as there is
14811 # no search path for DLLs.
14812 hardcode_libdir_flag_spec_F77=' '
14813 allow_undefined_flag_F77=unsupported
14814 # Tell ltmain to make .lib files, not .a files.
14815 libext=lib
14816 # Tell ltmain to make .dll files, not .so files.
14817 shrext_cmds=".dll"
14818 # FIXME: Setting linknames here is a bad hack.
14819 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14820 # The linker will automatically build a .lib file if we build a DLL.
14821 old_archive_From_new_cmds_F77='true'
14822 # FIXME: Should let the user specify the lib program.
ac40fd9e 14823 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 14824 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14825 enable_shared_with_static_runtimes_F77=yes
14826 ;;
14827
14828 darwin* | rhapsody*)
14829 case $host_os in
14830 rhapsody* | darwin1.[012])
14831 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14832 ;;
14833 *) # Darwin 1.3 on
14834 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14835 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14836 else
14837 case ${MACOSX_DEPLOYMENT_TARGET} in
14838 10.[012])
14839 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14840 ;;
14841 10.*)
14842 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14843 ;;
14844 esac
14845 fi
14846 ;;
14847 esac
14848 archive_cmds_need_lc_F77=no
14849 hardcode_direct_F77=no
14850 hardcode_automatic_F77=yes
14851 hardcode_shlibpath_var_F77=unsupported
14852 whole_archive_flag_spec_F77=''
14853 link_all_deplibs_F77=yes
14854 if test "$GCC" = yes ; then
14855 output_verbose_link_cmd='echo'
14856 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14857 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14858 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14859 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}'
14860 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}'
14861 else
14862 case $cc_basename in
14863 xlc*)
14864 output_verbose_link_cmd='echo'
ac40fd9e 14865 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 14866 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14867 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ac40fd9e 14868 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 14869 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}'
14870 ;;
14871 *)
14872 ld_shlibs_F77=no
14873 ;;
14874 esac
14875 fi
14876 ;;
14877
14878 dgux*)
14879 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14880 hardcode_libdir_flag_spec_F77='-L$libdir'
14881 hardcode_shlibpath_var_F77=no
14882 ;;
14883
14884 freebsd1*)
14885 ld_shlibs_F77=no
14886 ;;
14887
14888 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14889 # support. Future versions do this automatically, but an explicit c++rt0.o
14890 # does not break anything, and helps significantly (at the cost of a little
14891 # extra space).
14892 freebsd2.2*)
14893 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14894 hardcode_libdir_flag_spec_F77='-R$libdir'
14895 hardcode_direct_F77=yes
14896 hardcode_shlibpath_var_F77=no
14897 ;;
14898
14899 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14900 freebsd2*)
14901 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14902 hardcode_direct_F77=yes
14903 hardcode_minus_L_F77=yes
14904 hardcode_shlibpath_var_F77=no
14905 ;;
14906
14907 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ac40fd9e 14908 freebsd* | dragonfly*)
d9898ee8 14909 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14910 hardcode_libdir_flag_spec_F77='-R$libdir'
14911 hardcode_direct_F77=yes
14912 hardcode_shlibpath_var_F77=no
14913 ;;
14914
14915 hpux9*)
14916 if test "$GCC" = yes; then
14917 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'
14918 else
14919 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'
14920 fi
14921 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14922 hardcode_libdir_separator_F77=:
14923 hardcode_direct_F77=yes
14924
14925 # hardcode_minus_L: Not really in the search PATH,
14926 # but as the default location of the library.
14927 hardcode_minus_L_F77=yes
14928 export_dynamic_flag_spec_F77='${wl}-E'
14929 ;;
14930
14931 hpux10*)
14932 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14933 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14934 else
14935 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14936 fi
14937 if test "$with_gnu_ld" = no; then
14938 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14939 hardcode_libdir_separator_F77=:
14940
14941 hardcode_direct_F77=yes
14942 export_dynamic_flag_spec_F77='${wl}-E'
14943
14944 # hardcode_minus_L: Not really in the search PATH,
14945 # but as the default location of the library.
14946 hardcode_minus_L_F77=yes
14947 fi
14948 ;;
14949
14950 hpux11*)
14951 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14952 case $host_cpu in
14953 hppa*64*)
14954 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14955 ;;
14956 ia64*)
14957 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14958 ;;
14959 *)
14960 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14961 ;;
14962 esac
14963 else
14964 case $host_cpu in
14965 hppa*64*)
14966 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14967 ;;
14968 ia64*)
14969 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14970 ;;
14971 *)
14972 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14973 ;;
14974 esac
14975 fi
14976 if test "$with_gnu_ld" = no; then
14977 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14978 hardcode_libdir_separator_F77=:
14979
14980 case $host_cpu in
14981 hppa*64*|ia64*)
14982 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14983 hardcode_direct_F77=no
14984 hardcode_shlibpath_var_F77=no
14985 ;;
14986 *)
14987 hardcode_direct_F77=yes
14988 export_dynamic_flag_spec_F77='${wl}-E'
14989
14990 # hardcode_minus_L: Not really in the search PATH,
14991 # but as the default location of the library.
14992 hardcode_minus_L_F77=yes
14993 ;;
14994 esac
14995 fi
14996 ;;
14997
14998 irix5* | irix6* | nonstopux*)
14999 if test "$GCC" = yes; then
15000 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'
15001 else
15002 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'
15003 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15004 fi
15005 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15006 hardcode_libdir_separator_F77=:
15007 link_all_deplibs_F77=yes
15008 ;;
15009
15010 netbsd*)
15011 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15012 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15013 else
15014 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15015 fi
15016 hardcode_libdir_flag_spec_F77='-R$libdir'
15017 hardcode_direct_F77=yes
15018 hardcode_shlibpath_var_F77=no
15019 ;;
15020
15021 newsos6)
15022 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15023 hardcode_direct_F77=yes
15024 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15025 hardcode_libdir_separator_F77=:
15026 hardcode_shlibpath_var_F77=no
15027 ;;
15028
15029 openbsd*)
ac40fd9e 15030 if test -f /usr/libexec/ld.so; then
15031 hardcode_direct_F77=yes
15032 hardcode_shlibpath_var_F77=no
15033 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15034 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15035 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15036 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15037 export_dynamic_flag_spec_F77='${wl}-E'
15038 else
15039 case $host_os in
15040 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15041 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15042 hardcode_libdir_flag_spec_F77='-R$libdir'
15043 ;;
15044 *)
15045 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15046 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15047 ;;
15048 esac
15049 fi
d9898ee8 15050 else
ac40fd9e 15051 ld_shlibs_F77=no
d9898ee8 15052 fi
15053 ;;
15054
15055 os2*)
15056 hardcode_libdir_flag_spec_F77='-L$libdir'
15057 hardcode_minus_L_F77=yes
15058 allow_undefined_flag_F77=unsupported
15059 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'
15060 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15061 ;;
15062
15063 osf3*)
15064 if test "$GCC" = yes; then
15065 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15066 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'
15067 else
15068 allow_undefined_flag_F77=' -expect_unresolved \*'
15069 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'
15070 fi
15071 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15072 hardcode_libdir_separator_F77=:
15073 ;;
15074
15075 osf4* | osf5*) # as osf3* with the addition of -msym flag
15076 if test "$GCC" = yes; then
15077 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15078 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'
15079 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15080 else
15081 allow_undefined_flag_F77=' -expect_unresolved \*'
15082 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'
15083 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~
15084 $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'
15085
15086 # Both c and cxx compiler support -rpath directly
15087 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15088 fi
15089 hardcode_libdir_separator_F77=:
15090 ;;
15091
15092 solaris*)
15093 no_undefined_flag_F77=' -z text'
15094 if test "$GCC" = yes; then
15095 wlarc='${wl}'
15096 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15097 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15098 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15099 else
15100 wlarc=''
15101 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15102 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15103 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15104 fi
15105 hardcode_libdir_flag_spec_F77='-R$libdir'
15106 hardcode_shlibpath_var_F77=no
15107 case $host_os in
15108 solaris2.[0-5] | solaris2.[0-5].*) ;;
15109 *)
ac40fd9e 15110 # The compiler driver will combine and reorder linker options,
15111 # but understands `-z linker_flag'. GCC discards it without `$wl',
15112 # but is careful enough not to reorder.
d9898ee8 15113 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 15114 if test "$GCC" = yes; then
15115 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15116 else
15117 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15118 fi
15119 ;;
d9898ee8 15120 esac
15121 link_all_deplibs_F77=yes
15122 ;;
15123
15124 sunos4*)
15125 if test "x$host_vendor" = xsequent; then
15126 # Use $CC to link under sequent, because it throws in some extra .o
15127 # files that make .init and .fini sections work.
15128 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15129 else
15130 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15131 fi
15132 hardcode_libdir_flag_spec_F77='-L$libdir'
15133 hardcode_direct_F77=yes
15134 hardcode_minus_L_F77=yes
15135 hardcode_shlibpath_var_F77=no
15136 ;;
15137
15138 sysv4)
15139 case $host_vendor in
15140 sni)
15141 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15142 hardcode_direct_F77=yes # is this really true???
15143 ;;
15144 siemens)
15145 ## LD is ld it makes a PLAMLIB
15146 ## CC just makes a GrossModule.
15147 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15148 reload_cmds_F77='$CC -r -o $output$reload_objs'
15149 hardcode_direct_F77=no
15150 ;;
15151 motorola)
15152 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15153 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15154 ;;
15155 esac
15156 runpath_var='LD_RUN_PATH'
15157 hardcode_shlibpath_var_F77=no
15158 ;;
15159
15160 sysv4.3*)
15161 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15162 hardcode_shlibpath_var_F77=no
15163 export_dynamic_flag_spec_F77='-Bexport'
15164 ;;
15165
15166 sysv4*MP*)
15167 if test -d /usr/nec; then
15168 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15169 hardcode_shlibpath_var_F77=no
15170 runpath_var=LD_RUN_PATH
15171 hardcode_runpath_var=yes
15172 ld_shlibs_F77=yes
15173 fi
15174 ;;
15175
ac40fd9e 15176 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 15177 no_undefined_flag_F77='${wl}-z,text'
15178 archive_cmds_need_lc_F77=no
15179 hardcode_shlibpath_var_F77=no
15180 runpath_var='LD_RUN_PATH'
15181
15182 if test "$GCC" = yes; then
15183 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15184 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15185 else
15186 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15187 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15188 fi
15189 ;;
15190
15191 sysv5* | sco3.2v5* | sco5v6*)
15192 # Note: We can NOT use -z defs as we might desire, because we do not
15193 # link with -lc, and that would cause any symbols used from libc to
15194 # always be unresolved, which means just about no library would
15195 # ever link correctly. If we're not using GNU ld we use -z text
15196 # though, which does catch some bad symbols but isn't as heavy-handed
15197 # as -z defs.
15198 no_undefined_flag_F77='${wl}-z,text'
15199 allow_undefined_flag_F77='${wl}-z,nodefs'
15200 archive_cmds_need_lc_F77=no
15201 hardcode_shlibpath_var_F77=no
15202 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15203 hardcode_libdir_separator_F77=':'
15204 link_all_deplibs_F77=yes
15205 export_dynamic_flag_spec_F77='${wl}-Bexport'
15206 runpath_var='LD_RUN_PATH'
15207
15208 if test "$GCC" = yes; then
15209 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15210 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15211 else
15212 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15213 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15214 fi
15215 ;;
15216
15217 uts4*)
15218 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15219 hardcode_libdir_flag_spec_F77='-L$libdir'
15220 hardcode_shlibpath_var_F77=no
15221 ;;
15222
15223 *)
15224 ld_shlibs_F77=no
15225 ;;
15226 esac
15227 fi
15228
dd184caf 15229{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15230echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d9898ee8 15231test "$ld_shlibs_F77" = no && can_build_shared=no
15232
15233#
15234# Do we need to explicitly link libc?
15235#
15236case "x$archive_cmds_need_lc_F77" in
15237x|xyes)
15238 # Assume -lc should be added
15239 archive_cmds_need_lc_F77=yes
15240
15241 if test "$enable_shared" = yes && test "$GCC" = yes; then
15242 case $archive_cmds_F77 in
15243 *'~'*)
15244 # FIXME: we may have to deal with multi-command sequences.
15245 ;;
15246 '$CC '*)
15247 # Test whether the compiler implicitly links with -lc since on some
15248 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15249 # to ld, don't add -lc before -lgcc.
dd184caf 15250 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15251echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 15252 $rm conftest*
ac40fd9e 15253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 15254
15255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15256 (eval $ac_compile) 2>&5
15257 ac_status=$?
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } 2>conftest.err; then
15260 soname=conftest
15261 lib=conftest
15262 libobjs=conftest.$ac_objext
15263 deplibs=
15264 wl=$lt_prog_compiler_wl_F77
15265 pic_flag=$lt_prog_compiler_pic_F77
15266 compiler_flags=-v
15267 linker_flags=-v
15268 verstring=
15269 output_objdir=.
15270 libname=conftest
15271 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15272 allow_undefined_flag_F77=
15273 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15274 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15275 ac_status=$?
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }
15278 then
15279 archive_cmds_need_lc_F77=no
15280 else
15281 archive_cmds_need_lc_F77=yes
15282 fi
15283 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15284 else
15285 cat conftest.err 1>&5
15286 fi
15287 $rm conftest*
dd184caf 15288 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15289echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d9898ee8 15290 ;;
15291 esac
15292 fi
15293 ;;
15294esac
15295
dd184caf 15296{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15297echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 15298library_names_spec=
15299libname_spec='lib$name'
15300soname_spec=
15301shrext_cmds=".so"
15302postinstall_cmds=
15303postuninstall_cmds=
15304finish_cmds=
15305finish_eval=
15306shlibpath_var=
15307shlibpath_overrides_runpath=unknown
15308version_type=none
15309dynamic_linker="$host_os ld.so"
15310sys_lib_dlsearch_path_spec="/lib /usr/lib"
ac40fd9e 15311
d9898ee8 15312need_lib_prefix=unknown
15313hardcode_into_libs=no
15314
15315# when you set need_version to no, make sure it does not cause -set_version
15316# flags to be left without arguments
15317need_version=unknown
15318
15319case $host_os in
15320aix3*)
15321 version_type=linux
15322 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15323 shlibpath_var=LIBPATH
15324
15325 # AIX 3 has no versioning support, so we append a major version to the name.
15326 soname_spec='${libname}${release}${shared_ext}$major'
15327 ;;
15328
15329aix4* | aix5*)
15330 version_type=linux
15331 need_lib_prefix=no
15332 need_version=no
15333 hardcode_into_libs=yes
15334 if test "$host_cpu" = ia64; then
15335 # AIX 5 supports IA64
15336 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15337 shlibpath_var=LD_LIBRARY_PATH
15338 else
15339 # With GCC up to 2.95.x, collect2 would create an import file
15340 # for dependence libraries. The import file would start with
15341 # the line `#! .'. This would cause the generated library to
15342 # depend on `.', always an invalid library. This was fixed in
15343 # development snapshots of GCC prior to 3.0.
15344 case $host_os in
15345 aix4 | aix4.[01] | aix4.[01].*)
15346 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15347 echo ' yes '
15348 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15349 :
15350 else
15351 can_build_shared=no
15352 fi
15353 ;;
15354 esac
15355 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15356 # soname into executable. Probably we can add versioning support to
15357 # collect2, so additional links can be useful in future.
15358 if test "$aix_use_runtimelinking" = yes; then
15359 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15360 # instead of lib<name>.a to let people know that these are not
15361 # typical AIX shared libraries.
15362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15363 else
15364 # We preserve .a as extension for shared libraries through AIX4.2
15365 # and later when we are not doing run time linking.
15366 library_names_spec='${libname}${release}.a $libname.a'
15367 soname_spec='${libname}${release}${shared_ext}$major'
15368 fi
15369 shlibpath_var=LIBPATH
15370 fi
15371 ;;
15372
15373amigaos*)
15374 library_names_spec='$libname.ixlibrary $libname.a'
15375 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15376 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'
15377 ;;
15378
15379beos*)
15380 library_names_spec='${libname}${shared_ext}'
15381 dynamic_linker="$host_os ld.so"
15382 shlibpath_var=LIBRARY_PATH
15383 ;;
15384
15385bsdi[45]*)
15386 version_type=linux
15387 need_version=no
15388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15389 soname_spec='${libname}${release}${shared_ext}$major'
15390 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15391 shlibpath_var=LD_LIBRARY_PATH
15392 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15393 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15394 # the default ld.so.conf also contains /usr/contrib/lib and
15395 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15396 # libtool to hard-code these into programs
15397 ;;
15398
15399cygwin* | mingw* | pw32*)
15400 version_type=windows
15401 shrext_cmds=".dll"
15402 need_version=no
15403 need_lib_prefix=no
15404
15405 case $GCC,$host_os in
15406 yes,cygwin* | yes,mingw* | yes,pw32*)
15407 library_names_spec='$libname.dll.a'
15408 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15409 postinstall_cmds='base_file=`basename \${file}`~
15410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15411 dldir=$destdir/`dirname \$dlpath`~
15412 test -d \$dldir || mkdir -p \$dldir~
15413 $install_prog $dir/$dlname \$dldir/$dlname~
15414 chmod a+x \$dldir/$dlname'
15415 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15416 dlpath=$dir/\$dldll~
15417 $rm \$dlpath'
15418 shlibpath_overrides_runpath=yes
15419
15420 case $host_os in
15421 cygwin*)
15422 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15423 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15424 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15425 ;;
15426 mingw*)
15427 # MinGW DLLs use traditional 'lib' prefix
15428 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15429 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15430 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15431 # It is most probably a Windows format PATH printed by
15432 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15433 # path with ; separators, and with drive letters. We can handle the
15434 # drive letters (cygwin fileutils understands them), so leave them,
15435 # especially as we might pass files found there to a mingw objdump,
15436 # which wouldn't understand a cygwinified path. Ahh.
15437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15438 else
15439 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15440 fi
15441 ;;
15442 pw32*)
15443 # pw32 DLLs use 'pw' prefix rather than 'lib'
15444 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15445 ;;
15446 esac
15447 ;;
15448
15449 *)
15450 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15451 ;;
15452 esac
15453 dynamic_linker='Win32 ld.exe'
15454 # FIXME: first we should search . and the directory the executable is in
15455 shlibpath_var=PATH
15456 ;;
15457
15458darwin* | rhapsody*)
15459 dynamic_linker="$host_os dyld"
15460 version_type=darwin
15461 need_lib_prefix=no
15462 need_version=no
15463 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15464 soname_spec='${libname}${release}${major}$shared_ext'
15465 shlibpath_overrides_runpath=yes
15466 shlibpath_var=DYLD_LIBRARY_PATH
15467 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 15468
d9898ee8 15469 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15470 ;;
15471
15472dgux*)
15473 version_type=linux
15474 need_lib_prefix=no
15475 need_version=no
15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15477 soname_spec='${libname}${release}${shared_ext}$major'
15478 shlibpath_var=LD_LIBRARY_PATH
15479 ;;
15480
15481freebsd1*)
15482 dynamic_linker=no
15483 ;;
15484
d9898ee8 15485freebsd* | dragonfly*)
15486 # DragonFly does not have aout. When/if they implement a new
15487 # versioning mechanism, adjust this.
15488 if test -x /usr/bin/objformat; then
15489 objformat=`/usr/bin/objformat`
15490 else
15491 case $host_os in
15492 freebsd[123]*) objformat=aout ;;
15493 *) objformat=elf ;;
15494 esac
15495 fi
15496 version_type=freebsd-$objformat
15497 case $version_type in
15498 freebsd-elf*)
15499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15500 need_version=no
15501 need_lib_prefix=no
15502 ;;
15503 freebsd-*)
15504 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15505 need_version=yes
15506 ;;
15507 esac
15508 shlibpath_var=LD_LIBRARY_PATH
15509 case $host_os in
15510 freebsd2*)
15511 shlibpath_overrides_runpath=yes
15512 ;;
15513 freebsd3.[01]* | freebsdelf3.[01]*)
15514 shlibpath_overrides_runpath=yes
15515 hardcode_into_libs=yes
15516 ;;
15517 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15518 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15519 shlibpath_overrides_runpath=no
15520 hardcode_into_libs=yes
15521 ;;
ac40fd9e 15522 *) # from 4.6 on, and DragonFly
d9898ee8 15523 shlibpath_overrides_runpath=yes
15524 hardcode_into_libs=yes
15525 ;;
15526 esac
15527 ;;
15528
15529gnu*)
15530 version_type=linux
15531 need_lib_prefix=no
15532 need_version=no
15533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15534 soname_spec='${libname}${release}${shared_ext}$major'
15535 shlibpath_var=LD_LIBRARY_PATH
15536 hardcode_into_libs=yes
15537 ;;
15538
15539hpux9* | hpux10* | hpux11*)
15540 # Give a soname corresponding to the major version so that dld.sl refuses to
15541 # link against other versions.
15542 version_type=sunos
15543 need_lib_prefix=no
15544 need_version=no
15545 case $host_cpu in
15546 ia64*)
15547 shrext_cmds='.so'
15548 hardcode_into_libs=yes
15549 dynamic_linker="$host_os dld.so"
15550 shlibpath_var=LD_LIBRARY_PATH
15551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15553 soname_spec='${libname}${release}${shared_ext}$major'
15554 if test "X$HPUX_IA64_MODE" = X32; then
15555 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15556 else
15557 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15558 fi
15559 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15560 ;;
15561 hppa*64*)
15562 shrext_cmds='.sl'
15563 hardcode_into_libs=yes
15564 dynamic_linker="$host_os dld.sl"
15565 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15568 soname_spec='${libname}${release}${shared_ext}$major'
15569 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15571 ;;
15572 *)
15573 shrext_cmds='.sl'
15574 dynamic_linker="$host_os dld.sl"
15575 shlibpath_var=SHLIB_PATH
15576 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578 soname_spec='${libname}${release}${shared_ext}$major'
15579 ;;
15580 esac
15581 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15582 postinstall_cmds='chmod 555 $lib'
15583 ;;
15584
ac40fd9e 15585interix[3-9]*)
d9898ee8 15586 version_type=linux
15587 need_lib_prefix=no
15588 need_version=no
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15590 soname_spec='${libname}${release}${shared_ext}$major'
15591 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15592 shlibpath_var=LD_LIBRARY_PATH
15593 shlibpath_overrides_runpath=no
15594 hardcode_into_libs=yes
15595 ;;
15596
15597irix5* | irix6* | nonstopux*)
15598 case $host_os in
15599 nonstopux*) version_type=nonstopux ;;
15600 *)
15601 if test "$lt_cv_prog_gnu_ld" = yes; then
15602 version_type=linux
15603 else
15604 version_type=irix
15605 fi ;;
15606 esac
15607 need_lib_prefix=no
15608 need_version=no
15609 soname_spec='${libname}${release}${shared_ext}$major'
15610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15611 case $host_os in
15612 irix5* | nonstopux*)
15613 libsuff= shlibsuff=
15614 ;;
15615 *)
15616 case $LD in # libtool.m4 will add one of these switches to LD
15617 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15618 libsuff= shlibsuff= libmagic=32-bit;;
15619 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15620 libsuff=32 shlibsuff=N32 libmagic=N32;;
15621 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15622 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15623 *) libsuff= shlibsuff= libmagic=never-match;;
15624 esac
15625 ;;
15626 esac
15627 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15628 shlibpath_overrides_runpath=no
15629 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15630 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15631 hardcode_into_libs=yes
15632 ;;
15633
15634# No shared lib support for Linux oldld, aout, or coff.
15635linux*oldld* | linux*aout* | linux*coff*)
15636 dynamic_linker=no
15637 ;;
15638
15639# This must be Linux ELF.
ac40fd9e 15640linux* | k*bsd*-gnu)
d9898ee8 15641 version_type=linux
15642 need_lib_prefix=no
15643 need_version=no
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645 soname_spec='${libname}${release}${shared_ext}$major'
15646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15647 shlibpath_var=LD_LIBRARY_PATH
15648 shlibpath_overrides_runpath=no
15649 # This implies no fast_install, which is unacceptable.
15650 # Some rework will be needed to allow for fast_install
15651 # before this can be enabled.
15652 hardcode_into_libs=yes
ac40fd9e 15653 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15654 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 15655
15656 # Append ld.so.conf contents to the search path
15657 if test -f /etc/ld.so.conf; then
ac40fd9e 15658 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15659 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 15660 fi
15661
15662 # We used to test for /lib/ld.so.1 and disable shared libraries on
15663 # powerpc, because MkLinux only supported shared libraries with the
15664 # GNU dynamic linker. Since this was broken with cross compilers,
15665 # most powerpc-linux boxes support dynamic linking these days and
15666 # people can always --disable-shared, the test was removed, and we
15667 # assume the GNU/Linux dynamic linker is in use.
15668 dynamic_linker='GNU/Linux ld.so'
15669 ;;
15670
d9898ee8 15671netbsd*)
15672 version_type=sunos
15673 need_lib_prefix=no
15674 need_version=no
15675 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15678 dynamic_linker='NetBSD (a.out) ld.so'
15679 else
15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15681 soname_spec='${libname}${release}${shared_ext}$major'
15682 dynamic_linker='NetBSD ld.elf_so'
15683 fi
15684 shlibpath_var=LD_LIBRARY_PATH
15685 shlibpath_overrides_runpath=yes
15686 hardcode_into_libs=yes
15687 ;;
15688
15689newsos6)
15690 version_type=linux
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15692 shlibpath_var=LD_LIBRARY_PATH
15693 shlibpath_overrides_runpath=yes
15694 ;;
15695
15696nto-qnx*)
15697 version_type=linux
15698 need_lib_prefix=no
15699 need_version=no
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15701 soname_spec='${libname}${release}${shared_ext}$major'
15702 shlibpath_var=LD_LIBRARY_PATH
15703 shlibpath_overrides_runpath=yes
15704 ;;
15705
15706openbsd*)
15707 version_type=sunos
15708 sys_lib_dlsearch_path_spec="/usr/lib"
15709 need_lib_prefix=no
15710 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15711 case $host_os in
15712 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15713 *) need_version=no ;;
15714 esac
15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15717 shlibpath_var=LD_LIBRARY_PATH
15718 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15719 case $host_os in
15720 openbsd2.[89] | openbsd2.[89].*)
15721 shlibpath_overrides_runpath=no
15722 ;;
15723 *)
15724 shlibpath_overrides_runpath=yes
15725 ;;
15726 esac
15727 else
15728 shlibpath_overrides_runpath=yes
15729 fi
15730 ;;
15731
15732os2*)
15733 libname_spec='$name'
15734 shrext_cmds=".dll"
15735 need_lib_prefix=no
15736 library_names_spec='$libname${shared_ext} $libname.a'
15737 dynamic_linker='OS/2 ld.exe'
15738 shlibpath_var=LIBPATH
15739 ;;
15740
15741osf3* | osf4* | osf5*)
15742 version_type=osf
15743 need_lib_prefix=no
15744 need_version=no
15745 soname_spec='${libname}${release}${shared_ext}$major'
15746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15747 shlibpath_var=LD_LIBRARY_PATH
15748 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15749 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15750 ;;
15751
ac40fd9e 15752rdos*)
15753 dynamic_linker=no
15754 ;;
15755
d9898ee8 15756solaris*)
15757 version_type=linux
15758 need_lib_prefix=no
15759 need_version=no
15760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15761 soname_spec='${libname}${release}${shared_ext}$major'
15762 shlibpath_var=LD_LIBRARY_PATH
15763 shlibpath_overrides_runpath=yes
15764 hardcode_into_libs=yes
15765 # ldd complains unless libraries are executable
15766 postinstall_cmds='chmod +x $lib'
15767 ;;
15768
15769sunos4*)
15770 version_type=sunos
15771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15772 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15773 shlibpath_var=LD_LIBRARY_PATH
15774 shlibpath_overrides_runpath=yes
15775 if test "$with_gnu_ld" = yes; then
15776 need_lib_prefix=no
15777 fi
15778 need_version=yes
15779 ;;
15780
15781sysv4 | sysv4.3*)
15782 version_type=linux
15783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15784 soname_spec='${libname}${release}${shared_ext}$major'
15785 shlibpath_var=LD_LIBRARY_PATH
15786 case $host_vendor in
15787 sni)
15788 shlibpath_overrides_runpath=no
15789 need_lib_prefix=no
15790 export_dynamic_flag_spec='${wl}-Blargedynsym'
15791 runpath_var=LD_RUN_PATH
15792 ;;
15793 siemens)
15794 need_lib_prefix=no
15795 ;;
15796 motorola)
15797 need_lib_prefix=no
15798 need_version=no
15799 shlibpath_overrides_runpath=no
15800 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15801 ;;
15802 esac
15803 ;;
15804
15805sysv4*MP*)
15806 if test -d /usr/nec ;then
15807 version_type=linux
15808 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15809 soname_spec='$libname${shared_ext}.$major'
15810 shlibpath_var=LD_LIBRARY_PATH
15811 fi
15812 ;;
15813
15814sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15815 version_type=freebsd-elf
15816 need_lib_prefix=no
15817 need_version=no
15818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15819 soname_spec='${libname}${release}${shared_ext}$major'
15820 shlibpath_var=LD_LIBRARY_PATH
15821 hardcode_into_libs=yes
15822 if test "$with_gnu_ld" = yes; then
15823 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15824 shlibpath_overrides_runpath=no
15825 else
15826 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15827 shlibpath_overrides_runpath=yes
15828 case $host_os in
15829 sco3.2v5*)
15830 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15831 ;;
15832 esac
15833 fi
15834 sys_lib_dlsearch_path_spec='/usr/lib'
15835 ;;
15836
15837uts4*)
15838 version_type=linux
15839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15840 soname_spec='${libname}${release}${shared_ext}$major'
15841 shlibpath_var=LD_LIBRARY_PATH
15842 ;;
15843
15844*)
15845 dynamic_linker=no
15846 ;;
15847esac
dd184caf 15848{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15849echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 15850test "$dynamic_linker" = no && can_build_shared=no
15851
15852variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15853if test "$GCC" = yes; then
15854 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15855fi
15856
dd184caf 15857{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15858echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 15859hardcode_action_F77=
15860if test -n "$hardcode_libdir_flag_spec_F77" || \
15861 test -n "$runpath_var_F77" || \
15862 test "X$hardcode_automatic_F77" = "Xyes" ; then
15863
15864 # We can hardcode non-existant directories.
15865 if test "$hardcode_direct_F77" != no &&
15866 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15867 # have to relink, otherwise we might link with an installed library
15868 # when we should be linking with a yet-to-be-installed one
15869 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15870 test "$hardcode_minus_L_F77" != no; then
15871 # Linking always hardcodes the temporary library directory.
15872 hardcode_action_F77=relink
15873 else
15874 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15875 hardcode_action_F77=immediate
15876 fi
15877else
15878 # We cannot hardcode anything, or else we can only hardcode existing
15879 # directories.
15880 hardcode_action_F77=unsupported
15881fi
dd184caf 15882{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15883echo "${ECHO_T}$hardcode_action_F77" >&6; }
d9898ee8 15884
15885if test "$hardcode_action_F77" = relink; then
15886 # Fast installation is not supported
15887 enable_fast_install=no
15888elif test "$shlibpath_overrides_runpath" = yes ||
15889 test "$enable_shared" = no; then
15890 # Fast installation is not necessary
15891 enable_fast_install=needless
15892fi
15893
15894
15895# The else clause should only fire when bootstrapping the
15896# libtool distribution, otherwise you forgot to ship ltmain.sh
15897# with your package, and you will get complaints that there are
15898# no rules to generate ltmain.sh.
15899if test -f "$ltmain"; then
15900 # See if we are running on zsh, and set the options which allow our commands through
15901 # without removal of \ escapes.
15902 if test -n "${ZSH_VERSION+set}" ; then
15903 setopt NO_GLOB_SUBST
15904 fi
15905 # Now quote all the things that may contain metacharacters while being
15906 # careful not to overquote the AC_SUBSTed values. We take copies of the
15907 # variables and quote the copies for generation of the libtool script.
15908 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15909 SED SHELL STRIP \
15910 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15911 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15912 deplibs_check_method reload_flag reload_cmds need_locks \
15913 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15914 lt_cv_sys_global_symbol_to_c_name_address \
15915 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15916 old_postinstall_cmds old_postuninstall_cmds \
15917 compiler_F77 \
15918 CC_F77 \
15919 LD_F77 \
15920 lt_prog_compiler_wl_F77 \
15921 lt_prog_compiler_pic_F77 \
15922 lt_prog_compiler_static_F77 \
15923 lt_prog_compiler_no_builtin_flag_F77 \
15924 export_dynamic_flag_spec_F77 \
15925 thread_safe_flag_spec_F77 \
15926 whole_archive_flag_spec_F77 \
15927 enable_shared_with_static_runtimes_F77 \
15928 old_archive_cmds_F77 \
15929 old_archive_from_new_cmds_F77 \
15930 predep_objects_F77 \
15931 postdep_objects_F77 \
15932 predeps_F77 \
15933 postdeps_F77 \
15934 compiler_lib_search_path_F77 \
15935 archive_cmds_F77 \
15936 archive_expsym_cmds_F77 \
15937 postinstall_cmds_F77 \
15938 postuninstall_cmds_F77 \
15939 old_archive_from_expsyms_cmds_F77 \
15940 allow_undefined_flag_F77 \
15941 no_undefined_flag_F77 \
15942 export_symbols_cmds_F77 \
15943 hardcode_libdir_flag_spec_F77 \
15944 hardcode_libdir_flag_spec_ld_F77 \
15945 hardcode_libdir_separator_F77 \
15946 hardcode_automatic_F77 \
15947 module_cmds_F77 \
15948 module_expsym_cmds_F77 \
15949 lt_cv_prog_compiler_c_o_F77 \
ac40fd9e 15950 fix_srcfile_path_F77 \
d9898ee8 15951 exclude_expsyms_F77 \
15952 include_expsyms_F77; do
15953
15954 case $var in
15955 old_archive_cmds_F77 | \
15956 old_archive_from_new_cmds_F77 | \
15957 archive_cmds_F77 | \
15958 archive_expsym_cmds_F77 | \
15959 module_cmds_F77 | \
15960 module_expsym_cmds_F77 | \
15961 old_archive_from_expsyms_cmds_F77 | \
15962 export_symbols_cmds_F77 | \
15963 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15964 postinstall_cmds | postuninstall_cmds | \
15965 old_postinstall_cmds | old_postuninstall_cmds | \
15966 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15967 # Double-quote double-evaled strings.
15968 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15969 ;;
15970 *)
15971 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15972 ;;
15973 esac
15974 done
15975
15976 case $lt_echo in
15977 *'\$0 --fallback-echo"')
15978 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15979 ;;
15980 esac
15981
15982cfgfile="$ofile"
15983
15984 cat <<__EOF__ >> "$cfgfile"
15985# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15986
15987# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15988
15989# Shell to use when invoking shell scripts.
15990SHELL=$lt_SHELL
15991
15992# Whether or not to build shared libraries.
15993build_libtool_libs=$enable_shared
15994
15995# Whether or not to build static libraries.
15996build_old_libs=$enable_static
15997
15998# Whether or not to add -lc for building shared libraries.
15999build_libtool_need_lc=$archive_cmds_need_lc_F77
16000
16001# Whether or not to disallow shared libs when runtime libs are static
16002allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16003
16004# Whether or not to optimize for fast installation.
16005fast_install=$enable_fast_install
16006
16007# The host system.
16008host_alias=$host_alias
16009host=$host
16010host_os=$host_os
16011
16012# The build system.
16013build_alias=$build_alias
16014build=$build
16015build_os=$build_os
16016
16017# An echo program that does not interpret backslashes.
16018echo=$lt_echo
16019
16020# The archiver.
16021AR=$lt_AR
16022AR_FLAGS=$lt_AR_FLAGS
16023
16024# A C compiler.
16025LTCC=$lt_LTCC
16026
16027# LTCC compiler flags.
16028LTCFLAGS=$lt_LTCFLAGS
16029
16030# A language-specific compiler.
16031CC=$lt_compiler_F77
16032
16033# Is the compiler the GNU C compiler?
16034with_gcc=$GCC_F77
16035
d9898ee8 16036# An ERE matcher.
16037EGREP=$lt_EGREP
16038
16039# The linker used to build libraries.
16040LD=$lt_LD_F77
16041
16042# Whether we need hard or soft links.
16043LN_S=$lt_LN_S
16044
16045# A BSD-compatible nm program.
16046NM=$lt_NM
16047
16048# A symbol stripping program
16049STRIP=$lt_STRIP
16050
16051# Used to examine libraries when file_magic_cmd begins "file"
16052MAGIC_CMD=$MAGIC_CMD
16053
16054# Used on cygwin: DLL creation program.
16055DLLTOOL="$DLLTOOL"
16056
16057# Used on cygwin: object dumper.
16058OBJDUMP="$OBJDUMP"
16059
16060# Used on cygwin: assembler.
16061AS="$AS"
16062
16063# The name of the directory that contains temporary libtool files.
16064objdir=$objdir
16065
16066# How to create reloadable object files.
16067reload_flag=$lt_reload_flag
16068reload_cmds=$lt_reload_cmds
16069
16070# How to pass a linker flag through the compiler.
16071wl=$lt_lt_prog_compiler_wl_F77
16072
16073# Object file suffix (normally "o").
16074objext="$ac_objext"
16075
16076# Old archive suffix (normally "a").
16077libext="$libext"
16078
16079# Shared library suffix (normally ".so").
16080shrext_cmds='$shrext_cmds'
16081
16082# Executable file suffix (normally "").
16083exeext="$exeext"
16084
16085# Additional compiler flags for building library objects.
16086pic_flag=$lt_lt_prog_compiler_pic_F77
16087pic_mode=$pic_mode
16088
16089# What is the maximum length of a command?
16090max_cmd_len=$lt_cv_sys_max_cmd_len
16091
16092# Does compiler simultaneously support -c and -o options?
16093compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16094
16095# Must we lock files when doing compilation?
16096need_locks=$lt_need_locks
16097
16098# Do we need the lib prefix for modules?
16099need_lib_prefix=$need_lib_prefix
16100
16101# Do we need a version for libraries?
16102need_version=$need_version
16103
16104# Whether dlopen is supported.
16105dlopen_support=$enable_dlopen
16106
16107# Whether dlopen of programs is supported.
16108dlopen_self=$enable_dlopen_self
16109
16110# Whether dlopen of statically linked programs is supported.
16111dlopen_self_static=$enable_dlopen_self_static
16112
16113# Compiler flag to prevent dynamic linking.
16114link_static_flag=$lt_lt_prog_compiler_static_F77
16115
16116# Compiler flag to turn off builtin functions.
16117no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16118
16119# Compiler flag to allow reflexive dlopens.
16120export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16121
16122# Compiler flag to generate shared objects directly from archives.
16123whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16124
16125# Compiler flag to generate thread-safe objects.
16126thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16127
16128# Library versioning type.
16129version_type=$version_type
16130
16131# Format of library name prefix.
16132libname_spec=$lt_libname_spec
16133
16134# List of archive names. First name is the real one, the rest are links.
16135# The last name is the one that the linker finds with -lNAME.
16136library_names_spec=$lt_library_names_spec
16137
16138# The coded name of the library, if different from the real name.
16139soname_spec=$lt_soname_spec
16140
16141# Commands used to build and install an old-style archive.
16142RANLIB=$lt_RANLIB
16143old_archive_cmds=$lt_old_archive_cmds_F77
16144old_postinstall_cmds=$lt_old_postinstall_cmds
16145old_postuninstall_cmds=$lt_old_postuninstall_cmds
16146
16147# Create an old-style archive from a shared archive.
16148old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16149
16150# Create a temporary old-style archive to link instead of a shared archive.
16151old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16152
16153# Commands used to build and install a shared archive.
16154archive_cmds=$lt_archive_cmds_F77
16155archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16156postinstall_cmds=$lt_postinstall_cmds
16157postuninstall_cmds=$lt_postuninstall_cmds
16158
16159# Commands used to build a loadable module (assumed same as above if empty)
16160module_cmds=$lt_module_cmds_F77
16161module_expsym_cmds=$lt_module_expsym_cmds_F77
16162
16163# Commands to strip libraries.
16164old_striplib=$lt_old_striplib
16165striplib=$lt_striplib
16166
16167# Dependencies to place before the objects being linked to create a
16168# shared library.
dd184caf 16169predep_objects=$lt_predep_objects_F77
d9898ee8 16170
16171# Dependencies to place after the objects being linked to create a
16172# shared library.
dd184caf 16173postdep_objects=$lt_postdep_objects_F77
d9898ee8 16174
16175# Dependencies to place before the objects being linked to create a
16176# shared library.
16177predeps=$lt_predeps_F77
16178
16179# Dependencies to place after the objects being linked to create a
16180# shared library.
16181postdeps=$lt_postdeps_F77
16182
16183# The library search path used internally by the compiler when linking
16184# a shared library.
dd184caf 16185compiler_lib_search_path=$lt_compiler_lib_search_path_F77
d9898ee8 16186
16187# Method to check whether dependent libraries are shared objects.
16188deplibs_check_method=$lt_deplibs_check_method
16189
16190# Command to use when deplibs_check_method == file_magic.
16191file_magic_cmd=$lt_file_magic_cmd
16192
16193# Flag that allows shared libraries with undefined symbols to be built.
16194allow_undefined_flag=$lt_allow_undefined_flag_F77
16195
16196# Flag that forces no undefined symbols.
16197no_undefined_flag=$lt_no_undefined_flag_F77
16198
16199# Commands used to finish a libtool library installation in a directory.
16200finish_cmds=$lt_finish_cmds
16201
16202# Same as above, but a single script fragment to be evaled but not shown.
16203finish_eval=$lt_finish_eval
16204
16205# Take the output of nm and produce a listing of raw symbols and C names.
16206global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16207
16208# Transform the output of nm in a proper C declaration
16209global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16210
16211# Transform the output of nm in a C name address pair
16212global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16213
16214# This is the shared library runtime path variable.
16215runpath_var=$runpath_var
16216
16217# This is the shared library path variable.
16218shlibpath_var=$shlibpath_var
16219
16220# Is shlibpath searched before the hard-coded library search path?
16221shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16222
16223# How to hardcode a shared library path into an executable.
16224hardcode_action=$hardcode_action_F77
16225
16226# Whether we should hardcode library paths into libraries.
16227hardcode_into_libs=$hardcode_into_libs
16228
16229# Flag to hardcode \$libdir into a binary during linking.
16230# This must work even if \$libdir does not exist.
16231hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16232
16233# If ld is used when linking, flag to hardcode \$libdir into
16234# a binary during linking. This must work even if \$libdir does
16235# not exist.
16236hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16237
16238# Whether we need a single -rpath flag with a separated argument.
16239hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16240
16241# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16242# resulting binary.
16243hardcode_direct=$hardcode_direct_F77
16244
16245# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16246# resulting binary.
16247hardcode_minus_L=$hardcode_minus_L_F77
16248
16249# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16250# the resulting binary.
16251hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16252
16253# Set to yes if building a shared library automatically hardcodes DIR into the library
16254# and all subsequent libraries and executables linked against it.
16255hardcode_automatic=$hardcode_automatic_F77
16256
16257# Variables whose values should be saved in libtool wrapper scripts and
16258# restored at relink time.
16259variables_saved_for_relink="$variables_saved_for_relink"
16260
16261# Whether libtool must link a program against all its dependency libraries.
16262link_all_deplibs=$link_all_deplibs_F77
16263
16264# Compile-time system search path for libraries
dd184caf 16265sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 16266
16267# Run-time system search path for libraries
16268sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16269
16270# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 16271fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 16272
16273# Set to yes if exported symbols are required.
16274always_export_symbols=$always_export_symbols_F77
16275
16276# The commands to list exported symbols.
16277export_symbols_cmds=$lt_export_symbols_cmds_F77
16278
16279# The commands to extract the exported symbol list from a shared archive.
16280extract_expsyms_cmds=$lt_extract_expsyms_cmds
16281
16282# Symbols that should not be listed in the preloaded symbols.
16283exclude_expsyms=$lt_exclude_expsyms_F77
16284
16285# Symbols that must always be exported.
16286include_expsyms=$lt_include_expsyms_F77
16287
16288# ### END LIBTOOL TAG CONFIG: $tagname
16289
16290__EOF__
16291
16292
16293else
16294 # If there is no Makefile yet, we rely on a make rule to execute
16295 # `config.status --recheck' to rerun these tests and create the
16296 # libtool script then.
16297 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16298 if test -f "$ltmain_in"; then
16299 test -f Makefile && make "$ltmain"
16300 fi
16301fi
16302
16303
16304ac_ext=c
16305ac_cpp='$CPP $CPPFLAGS'
16306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16308ac_compiler_gnu=$ac_cv_c_compiler_gnu
16309
16310CC="$lt_save_CC"
16311
16312 else
16313 tagname=""
16314 fi
16315 ;;
16316
16317 GCJ)
16318 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16319
16320
d9898ee8 16321# Source file extension for Java test sources.
16322ac_ext=java
16323
16324# Object file extension for compiled Java test sources.
16325objext=o
16326objext_GCJ=$objext
16327
16328# Code to be used in simple compile tests
ac40fd9e 16329lt_simple_compile_test_code="class foo {}"
d9898ee8 16330
16331# Code to be used in simple link tests
ac40fd9e 16332lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
d9898ee8 16333
16334# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16335
16336# If no C compiler was specified, use CC.
16337LTCC=${LTCC-"$CC"}
16338
16339# If no C compiler flags were specified, use CFLAGS.
16340LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16341
16342# Allow CC to be a program name with arguments.
16343compiler=$CC
16344
16345
16346# save warnings/boilerplate of simple test code
16347ac_outfile=conftest.$ac_objext
ac40fd9e 16348echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 16349eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16350_lt_compiler_boilerplate=`cat conftest.err`
16351$rm conftest*
16352
16353ac_outfile=conftest.$ac_objext
ac40fd9e 16354echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 16355eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16356_lt_linker_boilerplate=`cat conftest.err`
16357$rm conftest*
16358
16359
16360# Allow CC to be a program name with arguments.
16361lt_save_CC="$CC"
16362CC=${GCJ-"gcj"}
16363compiler=$CC
16364compiler_GCJ=$CC
16365for cc_temp in $compiler""; do
16366 case $cc_temp in
16367 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16368 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16369 \-*) ;;
16370 *) break;;
16371 esac
16372done
16373cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16374
16375
16376# GCJ did not exist at the time GCC didn't implicitly link libc in.
16377archive_cmds_need_lc_GCJ=no
16378
16379old_archive_cmds_GCJ=$old_archive_cmds
16380
16381
16382lt_prog_compiler_no_builtin_flag_GCJ=
16383
16384if test "$GCC" = yes; then
16385 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16386
16387
dd184caf 16388{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16389echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 16390if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16392else
16393 lt_cv_prog_compiler_rtti_exceptions=no
16394 ac_outfile=conftest.$ac_objext
ac40fd9e 16395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16396 lt_compiler_flag="-fno-rtti -fno-exceptions"
16397 # Insert the option either (1) after the last *FLAGS variable, or
16398 # (2) before a word containing "conftest.", or (3) at the end.
16399 # Note that $ac_compile itself does not contain backslashes and begins
16400 # with a dollar sign (not a hyphen), so the echo should work correctly.
16401 # The option is referenced via a variable to avoid confusing sed.
16402 lt_compile=`echo "$ac_compile" | $SED \
16403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16405 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 16406 (eval echo "\"\$as_me:16406: $lt_compile\"" >&5)
d9898ee8 16407 (eval "$lt_compile" 2>conftest.err)
16408 ac_status=$?
16409 cat conftest.err >&5
ac40fd9e 16410 echo "$as_me:16410: \$? = $ac_status" >&5
d9898ee8 16411 if (exit $ac_status) && test -s "$ac_outfile"; then
16412 # The compiler can only warn and ignore the option if not recognized
16413 # So say no if there are warnings other than the usual output.
16414 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16416 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16417 lt_cv_prog_compiler_rtti_exceptions=yes
16418 fi
16419 fi
16420 $rm conftest*
16421
16422fi
dd184caf 16423{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16424echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 16425
16426if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16427 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16428else
16429 :
16430fi
16431
16432fi
16433
16434lt_prog_compiler_wl_GCJ=
16435lt_prog_compiler_pic_GCJ=
16436lt_prog_compiler_static_GCJ=
16437
dd184caf 16438{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16439echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 16440
16441 if test "$GCC" = yes; then
16442 lt_prog_compiler_wl_GCJ='-Wl,'
16443 lt_prog_compiler_static_GCJ='-static'
16444
16445 case $host_os in
16446 aix*)
16447 # All AIX code is PIC.
16448 if test "$host_cpu" = ia64; then
16449 # AIX 5 now supports IA64 processor
16450 lt_prog_compiler_static_GCJ='-Bstatic'
16451 fi
16452 ;;
16453
16454 amigaos*)
16455 # FIXME: we need at least 68020 code to build shared libraries, but
16456 # adding the `-m68020' flag to GCC prevents building anything better,
16457 # like `-m68040'.
16458 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16459 ;;
16460
ac40fd9e 16461 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 16462 # PIC is the default for these OSes.
16463 ;;
16464
ac40fd9e 16465 mingw* | cygwin* | pw32* | os2*)
d9898ee8 16466 # This hack is so that the source file can tell whether it is being
16467 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 16468 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16469 # (--disable-auto-import) libraries
d9898ee8 16470 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16471 ;;
16472
16473 darwin* | rhapsody*)
16474 # PIC is the default on this platform
16475 # Common symbols not allowed in MH_DYLIB files
16476 lt_prog_compiler_pic_GCJ='-fno-common'
16477 ;;
16478
ac40fd9e 16479 interix[3-9]*)
d9898ee8 16480 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16481 # Instead, we relocate shared libraries at runtime.
16482 ;;
16483
16484 msdosdjgpp*)
16485 # Just because we use GCC doesn't mean we suddenly get shared libraries
16486 # on systems that don't support them.
16487 lt_prog_compiler_can_build_shared_GCJ=no
16488 enable_shared=no
16489 ;;
16490
16491 sysv4*MP*)
16492 if test -d /usr/nec; then
16493 lt_prog_compiler_pic_GCJ=-Kconform_pic
16494 fi
16495 ;;
16496
16497 hpux*)
16498 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16499 # not for PA HP-UX.
16500 case $host_cpu in
16501 hppa*64*|ia64*)
16502 # +Z the default
16503 ;;
16504 *)
16505 lt_prog_compiler_pic_GCJ='-fPIC'
16506 ;;
16507 esac
16508 ;;
16509
16510 *)
16511 lt_prog_compiler_pic_GCJ='-fPIC'
16512 ;;
16513 esac
16514 else
16515 # PORTME Check for flag to pass linker flags through the system compiler.
16516 case $host_os in
16517 aix*)
16518 lt_prog_compiler_wl_GCJ='-Wl,'
16519 if test "$host_cpu" = ia64; then
16520 # AIX 5 now supports IA64 processor
16521 lt_prog_compiler_static_GCJ='-Bstatic'
16522 else
16523 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16524 fi
16525 ;;
16526 darwin*)
16527 # PIC is the default on this platform
16528 # Common symbols not allowed in MH_DYLIB files
16529 case $cc_basename in
16530 xlc*)
16531 lt_prog_compiler_pic_GCJ='-qnocommon'
16532 lt_prog_compiler_wl_GCJ='-Wl,'
16533 ;;
16534 esac
16535 ;;
16536
ac40fd9e 16537 mingw* | cygwin* | pw32* | os2*)
d9898ee8 16538 # This hack is so that the source file can tell whether it is being
16539 # built for inclusion in a dll (and should export symbols for example).
16540 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16541 ;;
16542
16543 hpux9* | hpux10* | hpux11*)
16544 lt_prog_compiler_wl_GCJ='-Wl,'
16545 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16546 # not for PA HP-UX.
16547 case $host_cpu in
16548 hppa*64*|ia64*)
16549 # +Z the default
16550 ;;
16551 *)
16552 lt_prog_compiler_pic_GCJ='+Z'
16553 ;;
16554 esac
16555 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16556 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16557 ;;
16558
16559 irix5* | irix6* | nonstopux*)
16560 lt_prog_compiler_wl_GCJ='-Wl,'
16561 # PIC (with -KPIC) is the default.
16562 lt_prog_compiler_static_GCJ='-non_shared'
16563 ;;
16564
16565 newsos6)
16566 lt_prog_compiler_pic_GCJ='-KPIC'
16567 lt_prog_compiler_static_GCJ='-Bstatic'
16568 ;;
16569
ac40fd9e 16570 linux* | k*bsd*-gnu)
d9898ee8 16571 case $cc_basename in
16572 icc* | ecc*)
16573 lt_prog_compiler_wl_GCJ='-Wl,'
16574 lt_prog_compiler_pic_GCJ='-KPIC'
16575 lt_prog_compiler_static_GCJ='-static'
16576 ;;
16577 pgcc* | pgf77* | pgf90* | pgf95*)
16578 # Portland Group compilers (*not* the Pentium gcc compiler,
16579 # which looks to be a dead project)
16580 lt_prog_compiler_wl_GCJ='-Wl,'
16581 lt_prog_compiler_pic_GCJ='-fpic'
16582 lt_prog_compiler_static_GCJ='-Bstatic'
16583 ;;
16584 ccc*)
16585 lt_prog_compiler_wl_GCJ='-Wl,'
16586 # All Alpha code is PIC.
16587 lt_prog_compiler_static_GCJ='-non_shared'
16588 ;;
ac40fd9e 16589 *)
16590 case `$CC -V 2>&1 | sed 5q` in
16591 *Sun\ C*)
16592 # Sun C 5.9
16593 lt_prog_compiler_pic_GCJ='-KPIC'
16594 lt_prog_compiler_static_GCJ='-Bstatic'
16595 lt_prog_compiler_wl_GCJ='-Wl,'
16596 ;;
16597 *Sun\ F*)
16598 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16599 lt_prog_compiler_pic_GCJ='-KPIC'
16600 lt_prog_compiler_static_GCJ='-Bstatic'
16601 lt_prog_compiler_wl_GCJ=''
16602 ;;
16603 esac
16604 ;;
d9898ee8 16605 esac
16606 ;;
16607
16608 osf3* | osf4* | osf5*)
16609 lt_prog_compiler_wl_GCJ='-Wl,'
16610 # All OSF/1 code is PIC.
16611 lt_prog_compiler_static_GCJ='-non_shared'
16612 ;;
16613
ac40fd9e 16614 rdos*)
16615 lt_prog_compiler_static_GCJ='-non_shared'
16616 ;;
16617
d9898ee8 16618 solaris*)
16619 lt_prog_compiler_pic_GCJ='-KPIC'
16620 lt_prog_compiler_static_GCJ='-Bstatic'
16621 case $cc_basename in
16622 f77* | f90* | f95*)
16623 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16624 *)
16625 lt_prog_compiler_wl_GCJ='-Wl,';;
16626 esac
16627 ;;
16628
16629 sunos4*)
16630 lt_prog_compiler_wl_GCJ='-Qoption ld '
16631 lt_prog_compiler_pic_GCJ='-PIC'
16632 lt_prog_compiler_static_GCJ='-Bstatic'
16633 ;;
16634
16635 sysv4 | sysv4.2uw2* | sysv4.3*)
16636 lt_prog_compiler_wl_GCJ='-Wl,'
16637 lt_prog_compiler_pic_GCJ='-KPIC'
16638 lt_prog_compiler_static_GCJ='-Bstatic'
16639 ;;
16640
16641 sysv4*MP*)
16642 if test -d /usr/nec ;then
16643 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16644 lt_prog_compiler_static_GCJ='-Bstatic'
16645 fi
16646 ;;
16647
16648 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16649 lt_prog_compiler_wl_GCJ='-Wl,'
16650 lt_prog_compiler_pic_GCJ='-KPIC'
16651 lt_prog_compiler_static_GCJ='-Bstatic'
16652 ;;
16653
16654 unicos*)
16655 lt_prog_compiler_wl_GCJ='-Wl,'
16656 lt_prog_compiler_can_build_shared_GCJ=no
16657 ;;
16658
16659 uts4*)
16660 lt_prog_compiler_pic_GCJ='-pic'
16661 lt_prog_compiler_static_GCJ='-Bstatic'
16662 ;;
16663
16664 *)
16665 lt_prog_compiler_can_build_shared_GCJ=no
16666 ;;
16667 esac
16668 fi
16669
dd184caf 16670{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16671echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d9898ee8 16672
16673#
16674# Check to make sure the PIC flag actually works.
16675#
16676if test -n "$lt_prog_compiler_pic_GCJ"; then
16677
dd184caf 16678{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16679echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d9898ee8 16680if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16681 echo $ECHO_N "(cached) $ECHO_C" >&6
16682else
16683 lt_prog_compiler_pic_works_GCJ=no
16684 ac_outfile=conftest.$ac_objext
ac40fd9e 16685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16686 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16687 # Insert the option either (1) after the last *FLAGS variable, or
16688 # (2) before a word containing "conftest.", or (3) at the end.
16689 # Note that $ac_compile itself does not contain backslashes and begins
16690 # with a dollar sign (not a hyphen), so the echo should work correctly.
16691 # The option is referenced via a variable to avoid confusing sed.
16692 lt_compile=`echo "$ac_compile" | $SED \
16693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16695 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 16696 (eval echo "\"\$as_me:16696: $lt_compile\"" >&5)
d9898ee8 16697 (eval "$lt_compile" 2>conftest.err)
16698 ac_status=$?
16699 cat conftest.err >&5
ac40fd9e 16700 echo "$as_me:16700: \$? = $ac_status" >&5
d9898ee8 16701 if (exit $ac_status) && test -s "$ac_outfile"; then
16702 # The compiler can only warn and ignore the option if not recognized
16703 # So say no if there are warnings other than the usual output.
16704 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16707 lt_prog_compiler_pic_works_GCJ=yes
16708 fi
16709 fi
16710 $rm conftest*
16711
16712fi
dd184caf 16713{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16714echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d9898ee8 16715
16716if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16717 case $lt_prog_compiler_pic_GCJ in
16718 "" | " "*) ;;
16719 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16720 esac
16721else
16722 lt_prog_compiler_pic_GCJ=
16723 lt_prog_compiler_can_build_shared_GCJ=no
16724fi
16725
16726fi
16727case $host_os in
16728 # For platforms which do not support PIC, -DPIC is meaningless:
16729 *djgpp*)
16730 lt_prog_compiler_pic_GCJ=
16731 ;;
16732 *)
16733 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16734 ;;
16735esac
16736
16737#
16738# Check to make sure the static flag actually works.
16739#
16740wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
dd184caf 16741{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16742echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 16743if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16744 echo $ECHO_N "(cached) $ECHO_C" >&6
16745else
16746 lt_prog_compiler_static_works_GCJ=no
16747 save_LDFLAGS="$LDFLAGS"
16748 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 16749 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 16750 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16751 # The linker can only warn and ignore the option if not recognized
16752 # So say no if there are warnings
16753 if test -s conftest.err; then
16754 # Append any errors to the config.log.
16755 cat conftest.err 1>&5
16756 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16758 if diff conftest.exp conftest.er2 >/dev/null; then
16759 lt_prog_compiler_static_works_GCJ=yes
16760 fi
16761 else
16762 lt_prog_compiler_static_works_GCJ=yes
16763 fi
16764 fi
16765 $rm conftest*
16766 LDFLAGS="$save_LDFLAGS"
16767
16768fi
dd184caf 16769{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16770echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
d9898ee8 16771
16772if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16773 :
16774else
16775 lt_prog_compiler_static_GCJ=
16776fi
16777
16778
dd184caf 16779{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16780echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 16781if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16782 echo $ECHO_N "(cached) $ECHO_C" >&6
16783else
16784 lt_cv_prog_compiler_c_o_GCJ=no
16785 $rm -r conftest 2>/dev/null
16786 mkdir conftest
16787 cd conftest
16788 mkdir out
ac40fd9e 16789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16790
16791 lt_compiler_flag="-o out/conftest2.$ac_objext"
16792 # Insert the option either (1) after the last *FLAGS variable, or
16793 # (2) before a word containing "conftest.", or (3) at the end.
16794 # Note that $ac_compile itself does not contain backslashes and begins
16795 # with a dollar sign (not a hyphen), so the echo should work correctly.
16796 lt_compile=`echo "$ac_compile" | $SED \
16797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16799 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 16800 (eval echo "\"\$as_me:16800: $lt_compile\"" >&5)
d9898ee8 16801 (eval "$lt_compile" 2>out/conftest.err)
16802 ac_status=$?
16803 cat out/conftest.err >&5
ac40fd9e 16804 echo "$as_me:16804: \$? = $ac_status" >&5
d9898ee8 16805 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16806 then
16807 # The compiler can only warn and ignore the option if not recognized
16808 # So say no if there are warnings
16809 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16810 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16811 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16812 lt_cv_prog_compiler_c_o_GCJ=yes
16813 fi
16814 fi
16815 chmod u+w . 2>&5
16816 $rm conftest*
16817 # SGI C++ compiler will create directory out/ii_files/ for
16818 # template instantiation
16819 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16820 $rm out/* && rmdir out
16821 cd ..
16822 rmdir conftest
16823 $rm conftest*
16824
16825fi
dd184caf 16826{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16827echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d9898ee8 16828
16829
16830hard_links="nottested"
16831if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16832 # do not overwrite the value of need_locks provided by the user
dd184caf 16833 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16834echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 16835 hard_links=yes
16836 $rm conftest*
16837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16838 touch conftest.a
16839 ln conftest.a conftest.b 2>&5 || hard_links=no
16840 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 16841 { echo "$as_me:$LINENO: result: $hard_links" >&5
16842echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 16843 if test "$hard_links" = no; then
16844 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16845echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16846 need_locks=warn
16847 fi
16848else
16849 need_locks=no
16850fi
16851
dd184caf 16852{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16853echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 16854
16855 runpath_var=
16856 allow_undefined_flag_GCJ=
16857 enable_shared_with_static_runtimes_GCJ=no
16858 archive_cmds_GCJ=
16859 archive_expsym_cmds_GCJ=
16860 old_archive_From_new_cmds_GCJ=
16861 old_archive_from_expsyms_cmds_GCJ=
16862 export_dynamic_flag_spec_GCJ=
16863 whole_archive_flag_spec_GCJ=
16864 thread_safe_flag_spec_GCJ=
16865 hardcode_libdir_flag_spec_GCJ=
16866 hardcode_libdir_flag_spec_ld_GCJ=
16867 hardcode_libdir_separator_GCJ=
16868 hardcode_direct_GCJ=no
16869 hardcode_minus_L_GCJ=no
16870 hardcode_shlibpath_var_GCJ=unsupported
16871 link_all_deplibs_GCJ=unknown
16872 hardcode_automatic_GCJ=no
16873 module_cmds_GCJ=
16874 module_expsym_cmds_GCJ=
16875 always_export_symbols_GCJ=no
16876 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16877 # include_expsyms should be a list of space-separated symbols to be *always*
16878 # included in the symbol list
16879 include_expsyms_GCJ=
16880 # exclude_expsyms can be an extended regexp of symbols to exclude
16881 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16882 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16883 # as well as any symbol that contains `d'.
16884 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16885 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16886 # platforms (ab)use it in PIC code, but their linkers get confused if
16887 # the symbol is explicitly referenced. Since portable code cannot
16888 # rely on this symbol name, it's probably fine to never include it in
16889 # preloaded symbol tables.
16890 extract_expsyms_cmds=
16891 # Just being paranoid about ensuring that cc_basename is set.
16892 for cc_temp in $compiler""; do
16893 case $cc_temp in
16894 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16895 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16896 \-*) ;;
16897 *) break;;
16898 esac
16899done
16900cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16901
16902 case $host_os in
16903 cygwin* | mingw* | pw32*)
16904 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16905 # When not using gcc, we currently assume that we are using
16906 # Microsoft Visual C++.
16907 if test "$GCC" != yes; then
16908 with_gnu_ld=no
16909 fi
16910 ;;
16911 interix*)
16912 # we just hope/assume this is gcc and not c89 (= MSVC++)
16913 with_gnu_ld=yes
16914 ;;
16915 openbsd*)
16916 with_gnu_ld=no
16917 ;;
16918 esac
16919
16920 ld_shlibs_GCJ=yes
16921 if test "$with_gnu_ld" = yes; then
16922 # If archive_cmds runs LD, not CC, wlarc should be empty
16923 wlarc='${wl}'
16924
16925 # Set some defaults for GNU ld with shared library support. These
16926 # are reset later if shared libraries are not supported. Putting them
16927 # here allows them to be overridden if necessary.
16928 runpath_var=LD_RUN_PATH
16929 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16930 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16931 # ancient GNU ld didn't support --whole-archive et. al.
16932 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16933 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16934 else
16935 whole_archive_flag_spec_GCJ=
16936 fi
16937 supports_anon_versioning=no
16938 case `$LD -v 2>/dev/null` in
16939 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16940 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16941 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16942 *\ 2.11.*) ;; # other 2.11 versions
16943 *) supports_anon_versioning=yes ;;
16944 esac
16945
16946 # See if GNU ld supports shared libraries.
16947 case $host_os in
16948 aix3* | aix4* | aix5*)
16949 # On AIX/PPC, the GNU linker is very broken
16950 if test "$host_cpu" != ia64; then
16951 ld_shlibs_GCJ=no
16952 cat <<EOF 1>&2
16953
16954*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16955*** to be unable to reliably create shared libraries on AIX.
16956*** Therefore, libtool is disabling shared libraries support. If you
16957*** really care for shared libraries, you may want to modify your PATH
16958*** so that a non-GNU linker is found, and then restart.
16959
16960EOF
16961 fi
16962 ;;
16963
16964 amigaos*)
16965 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)'
16966 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16967 hardcode_minus_L_GCJ=yes
16968
16969 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16970 # that the semantics of dynamic libraries on AmigaOS, at least up
16971 # to version 4, is to share data among multiple programs linked
16972 # with the same dynamic library. Since this doesn't match the
16973 # behavior of shared libraries on other platforms, we can't use
16974 # them.
16975 ld_shlibs_GCJ=no
16976 ;;
16977
16978 beos*)
16979 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16980 allow_undefined_flag_GCJ=unsupported
16981 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16982 # support --undefined. This deserves some investigation. FIXME
16983 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16984 else
16985 ld_shlibs_GCJ=no
16986 fi
16987 ;;
16988
16989 cygwin* | mingw* | pw32*)
16990 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16991 # as there is no search path for DLLs.
16992 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16993 allow_undefined_flag_GCJ=unsupported
16994 always_export_symbols_GCJ=no
16995 enable_shared_with_static_runtimes_GCJ=yes
ac40fd9e 16996 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 16997
16998 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16999 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17000 # If the export-symbols file already is a .def file (1st line
17001 # is EXPORTS), use it as is; otherwise, prepend...
17002 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17003 cp $export_symbols $output_objdir/$soname.def;
17004 else
17005 echo EXPORTS > $output_objdir/$soname.def;
17006 cat $export_symbols >> $output_objdir/$soname.def;
17007 fi~
17008 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17009 else
17010 ld_shlibs_GCJ=no
17011 fi
17012 ;;
17013
ac40fd9e 17014 interix[3-9]*)
d9898ee8 17015 hardcode_direct_GCJ=no
17016 hardcode_shlibpath_var_GCJ=no
17017 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17018 export_dynamic_flag_spec_GCJ='${wl}-E'
17019 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17020 # Instead, shared libraries are loaded at an image base (0x10000000 by
17021 # default) and relocated if they conflict, which is a slow very memory
17022 # consuming and fragmenting process. To avoid this, we pick a random,
17023 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17024 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17025 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'
17026 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'
17027 ;;
17028
ac40fd9e 17029 gnu* | linux* | k*bsd*-gnu)
d9898ee8 17030 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17031 tmp_addflag=
17032 case $cc_basename,$host_cpu in
17033 pgcc*) # Portland Group C compiler
17034 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'
17035 tmp_addflag=' $pic_flag'
17036 ;;
17037 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17038 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'
17039 tmp_addflag=' $pic_flag -Mnomain' ;;
17040 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17041 tmp_addflag=' -i_dynamic' ;;
17042 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17043 tmp_addflag=' -i_dynamic -nofor_main' ;;
17044 ifc* | ifort*) # Intel Fortran compiler
17045 tmp_addflag=' -nofor_main' ;;
17046 esac
ac40fd9e 17047 case `$CC -V 2>&1 | sed 5q` in
17048 *Sun\ C*) # Sun C 5.9
17049 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17050 tmp_sharedflag='-G' ;;
17051 *Sun\ F*) # Sun Fortran 8.3
17052 tmp_sharedflag='-G' ;;
17053 *)
17054 tmp_sharedflag='-shared' ;;
17055 esac
17056 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 17057
17058 if test $supports_anon_versioning = yes; then
17059 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17060 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17061 $echo "local: *; };" >> $output_objdir/$libname.ver~
ac40fd9e 17062 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 17063 fi
17064 else
17065 ld_shlibs_GCJ=no
17066 fi
17067 ;;
17068
17069 netbsd*)
17070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17071 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17072 wlarc=
17073 else
17074 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17075 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17076 fi
17077 ;;
17078
17079 solaris*)
17080 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17081 ld_shlibs_GCJ=no
17082 cat <<EOF 1>&2
17083
17084*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17085*** create shared libraries on Solaris systems. Therefore, libtool
17086*** is disabling shared libraries support. We urge you to upgrade GNU
17087*** binutils to release 2.9.1 or newer. Another option is to modify
17088*** your PATH or compiler configuration so that the native linker is
17089*** used, and then restart.
17090
17091EOF
17092 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17093 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17094 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17095 else
17096 ld_shlibs_GCJ=no
17097 fi
17098 ;;
17099
17100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17101 case `$LD -v 2>&1` in
17102 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17103 ld_shlibs_GCJ=no
17104 cat <<_LT_EOF 1>&2
17105
17106*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17107*** reliably create shared libraries on SCO systems. Therefore, libtool
17108*** is disabling shared libraries support. We urge you to upgrade GNU
17109*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17110*** your PATH or compiler configuration so that the native linker is
17111*** used, and then restart.
17112
17113_LT_EOF
17114 ;;
17115 *)
17116 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17117 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17118 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17119 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17120 else
17121 ld_shlibs_GCJ=no
17122 fi
17123 ;;
17124 esac
17125 ;;
17126
17127 sunos4*)
17128 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17129 wlarc=
17130 hardcode_direct_GCJ=yes
17131 hardcode_shlibpath_var_GCJ=no
17132 ;;
17133
17134 *)
17135 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17136 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17137 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17138 else
17139 ld_shlibs_GCJ=no
17140 fi
17141 ;;
17142 esac
17143
17144 if test "$ld_shlibs_GCJ" = no; then
17145 runpath_var=
17146 hardcode_libdir_flag_spec_GCJ=
17147 export_dynamic_flag_spec_GCJ=
17148 whole_archive_flag_spec_GCJ=
17149 fi
17150 else
17151 # PORTME fill in a description of your system's linker (not GNU ld)
17152 case $host_os in
17153 aix3*)
17154 allow_undefined_flag_GCJ=unsupported
17155 always_export_symbols_GCJ=yes
17156 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'
17157 # Note: this linker hardcodes the directories in LIBPATH if there
17158 # are no directories specified by -L.
17159 hardcode_minus_L_GCJ=yes
17160 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17161 # Neither direct hardcoding nor static linking is supported with a
17162 # broken collect2.
17163 hardcode_direct_GCJ=unsupported
17164 fi
17165 ;;
17166
17167 aix4* | aix5*)
17168 if test "$host_cpu" = ia64; then
17169 # On IA64, the linker does run time linking by default, so we don't
17170 # have to do anything special.
17171 aix_use_runtimelinking=no
17172 exp_sym_flag='-Bexport'
17173 no_entry_flag=""
17174 else
17175 # If we're using GNU nm, then we don't want the "-C" option.
17176 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17177 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17178 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'
17179 else
17180 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'
17181 fi
17182 aix_use_runtimelinking=no
17183
17184 # Test if we are trying to use run time linking or normal
17185 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17186 # need to do runtime linking.
17187 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17188 for ld_flag in $LDFLAGS; do
17189 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17190 aix_use_runtimelinking=yes
17191 break
17192 fi
17193 done
17194 ;;
17195 esac
17196
17197 exp_sym_flag='-bexport'
17198 no_entry_flag='-bnoentry'
17199 fi
17200
17201 # When large executables or shared objects are built, AIX ld can
17202 # have problems creating the table of contents. If linking a library
17203 # or program results in "error TOC overflow" add -mminimal-toc to
17204 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17205 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17206
17207 archive_cmds_GCJ=''
17208 hardcode_direct_GCJ=yes
17209 hardcode_libdir_separator_GCJ=':'
17210 link_all_deplibs_GCJ=yes
17211
17212 if test "$GCC" = yes; then
17213 case $host_os in aix4.[012]|aix4.[012].*)
17214 # We only want to do this on AIX 4.2 and lower, the check
17215 # below for broken collect2 doesn't work under 4.3+
17216 collect2name=`${CC} -print-prog-name=collect2`
17217 if test -f "$collect2name" && \
17218 strings "$collect2name" | grep resolve_lib_name >/dev/null
17219 then
17220 # We have reworked collect2
ac40fd9e 17221 :
d9898ee8 17222 else
17223 # We have old collect2
17224 hardcode_direct_GCJ=unsupported
17225 # It fails to find uninstalled libraries when the uninstalled
17226 # path is not listed in the libpath. Setting hardcode_minus_L
17227 # to unsupported forces relinking
17228 hardcode_minus_L_GCJ=yes
17229 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17230 hardcode_libdir_separator_GCJ=
17231 fi
17232 ;;
17233 esac
17234 shared_flag='-shared'
17235 if test "$aix_use_runtimelinking" = yes; then
17236 shared_flag="$shared_flag "'${wl}-G'
17237 fi
17238 else
17239 # not using gcc
17240 if test "$host_cpu" = ia64; then
17241 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17242 # chokes on -Wl,-G. The following line is correct:
17243 shared_flag='-G'
17244 else
17245 if test "$aix_use_runtimelinking" = yes; then
17246 shared_flag='${wl}-G'
17247 else
17248 shared_flag='${wl}-bM:SRE'
17249 fi
17250 fi
17251 fi
17252
17253 # It seems that -bexpall does not export symbols beginning with
17254 # underscore (_), so it is better to generate a list of symbols to export.
17255 always_export_symbols_GCJ=yes
17256 if test "$aix_use_runtimelinking" = yes; then
17257 # Warning - without using the other runtime loading flags (-brtl),
17258 # -berok will link without error, but may produce a broken library.
17259 allow_undefined_flag_GCJ='-berok'
17260 # Determine the default libpath from the value encoded in an empty executable.
17261 cat >conftest.$ac_ext <<_ACEOF
17262/* confdefs.h. */
17263_ACEOF
17264cat confdefs.h >>conftest.$ac_ext
17265cat >>conftest.$ac_ext <<_ACEOF
17266/* end confdefs.h. */
17267
17268int
17269main ()
17270{
17271
17272 ;
17273 return 0;
17274}
17275_ACEOF
17276rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17277if { (ac_try="$ac_link"
17278case "(($ac_try" in
17279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17280 *) ac_try_echo=$ac_try;;
17281esac
17282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17283 (eval "$ac_link") 2>conftest.er1
d9898ee8 17284 ac_status=$?
17285 grep -v '^ *+' conftest.er1 >conftest.err
17286 rm -f conftest.er1
17287 cat conftest.err >&5
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17289 (exit $ac_status); } && {
17290 test -z "$ac_c_werror_flag" ||
17291 test ! -s conftest.err
17292 } && test -s conftest$ac_exeext &&
17293 $as_test_x conftest$ac_exeext; then
d9898ee8 17294
ac40fd9e 17295lt_aix_libpath_sed='
17296 /Import File Strings/,/^$/ {
17297 /^0/ {
17298 s/^0 *\(.*\)$/\1/
17299 p
17300 }
17301 }'
17302aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 17303# Check for a 64-bit object if we didn't find anything.
ac40fd9e 17304if test -z "$aix_libpath"; then
17305 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17306fi
d9898ee8 17307else
17308 echo "$as_me: failed program was:" >&5
17309sed 's/^/| /' conftest.$ac_ext >&5
17310
dd184caf 17311
d9898ee8 17312fi
dd184caf 17313
17314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17315 conftest$ac_exeext conftest.$ac_ext
17316if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17317
17318 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17319 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"
17320 else
17321 if test "$host_cpu" = ia64; then
17322 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17323 allow_undefined_flag_GCJ="-z nodefs"
17324 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"
17325 else
17326 # Determine the default libpath from the value encoded in an empty executable.
17327 cat >conftest.$ac_ext <<_ACEOF
17328/* confdefs.h. */
17329_ACEOF
17330cat confdefs.h >>conftest.$ac_ext
17331cat >>conftest.$ac_ext <<_ACEOF
17332/* end confdefs.h. */
17333
17334int
17335main ()
17336{
17337
17338 ;
17339 return 0;
17340}
17341_ACEOF
17342rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17343if { (ac_try="$ac_link"
17344case "(($ac_try" in
17345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346 *) ac_try_echo=$ac_try;;
17347esac
17348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17349 (eval "$ac_link") 2>conftest.er1
d9898ee8 17350 ac_status=$?
17351 grep -v '^ *+' conftest.er1 >conftest.err
17352 rm -f conftest.er1
17353 cat conftest.err >&5
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17355 (exit $ac_status); } && {
17356 test -z "$ac_c_werror_flag" ||
17357 test ! -s conftest.err
17358 } && test -s conftest$ac_exeext &&
17359 $as_test_x conftest$ac_exeext; then
d9898ee8 17360
ac40fd9e 17361lt_aix_libpath_sed='
17362 /Import File Strings/,/^$/ {
17363 /^0/ {
17364 s/^0 *\(.*\)$/\1/
17365 p
17366 }
17367 }'
17368aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 17369# Check for a 64-bit object if we didn't find anything.
ac40fd9e 17370if test -z "$aix_libpath"; then
17371 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17372fi
d9898ee8 17373else
17374 echo "$as_me: failed program was:" >&5
17375sed 's/^/| /' conftest.$ac_ext >&5
17376
dd184caf 17377
d9898ee8 17378fi
dd184caf 17379
17380rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17381 conftest$ac_exeext conftest.$ac_ext
17382if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17383
17384 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17385 # Warning - without using the other run time loading flags,
17386 # -berok will link without error, but may produce a broken library.
17387 no_undefined_flag_GCJ=' ${wl}-bernotok'
17388 allow_undefined_flag_GCJ=' ${wl}-berok'
17389 # Exported symbols can be pulled into shared objects from archives
17390 whole_archive_flag_spec_GCJ='$convenience'
17391 archive_cmds_need_lc_GCJ=yes
17392 # This is similar to how AIX traditionally builds its shared libraries.
17393 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'
17394 fi
17395 fi
17396 ;;
17397
17398 amigaos*)
17399 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)'
17400 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17401 hardcode_minus_L_GCJ=yes
17402 # see comment about different semantics on the GNU ld section
17403 ld_shlibs_GCJ=no
17404 ;;
17405
17406 bsdi[45]*)
17407 export_dynamic_flag_spec_GCJ=-rdynamic
17408 ;;
17409
17410 cygwin* | mingw* | pw32*)
17411 # When not using gcc, we currently assume that we are using
17412 # Microsoft Visual C++.
17413 # hardcode_libdir_flag_spec is actually meaningless, as there is
17414 # no search path for DLLs.
17415 hardcode_libdir_flag_spec_GCJ=' '
17416 allow_undefined_flag_GCJ=unsupported
17417 # Tell ltmain to make .lib files, not .a files.
17418 libext=lib
17419 # Tell ltmain to make .dll files, not .so files.
17420 shrext_cmds=".dll"
17421 # FIXME: Setting linknames here is a bad hack.
17422 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17423 # The linker will automatically build a .lib file if we build a DLL.
17424 old_archive_From_new_cmds_GCJ='true'
17425 # FIXME: Should let the user specify the lib program.
ac40fd9e 17426 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 17427 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17428 enable_shared_with_static_runtimes_GCJ=yes
17429 ;;
17430
17431 darwin* | rhapsody*)
17432 case $host_os in
17433 rhapsody* | darwin1.[012])
17434 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17435 ;;
17436 *) # Darwin 1.3 on
17437 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17438 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17439 else
17440 case ${MACOSX_DEPLOYMENT_TARGET} in
17441 10.[012])
17442 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17443 ;;
17444 10.*)
17445 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17446 ;;
17447 esac
17448 fi
17449 ;;
17450 esac
17451 archive_cmds_need_lc_GCJ=no
17452 hardcode_direct_GCJ=no
17453 hardcode_automatic_GCJ=yes
17454 hardcode_shlibpath_var_GCJ=unsupported
17455 whole_archive_flag_spec_GCJ=''
17456 link_all_deplibs_GCJ=yes
17457 if test "$GCC" = yes ; then
17458 output_verbose_link_cmd='echo'
17459 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17460 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17461 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17462 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}'
17463 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}'
17464 else
17465 case $cc_basename in
17466 xlc*)
17467 output_verbose_link_cmd='echo'
ac40fd9e 17468 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 17469 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17470 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ac40fd9e 17471 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 17472 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}'
17473 ;;
17474 *)
17475 ld_shlibs_GCJ=no
17476 ;;
17477 esac
17478 fi
17479 ;;
17480
17481 dgux*)
17482 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17483 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17484 hardcode_shlibpath_var_GCJ=no
17485 ;;
17486
17487 freebsd1*)
17488 ld_shlibs_GCJ=no
17489 ;;
17490
17491 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17492 # support. Future versions do this automatically, but an explicit c++rt0.o
17493 # does not break anything, and helps significantly (at the cost of a little
17494 # extra space).
17495 freebsd2.2*)
17496 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17497 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17498 hardcode_direct_GCJ=yes
17499 hardcode_shlibpath_var_GCJ=no
17500 ;;
17501
17502 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17503 freebsd2*)
17504 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17505 hardcode_direct_GCJ=yes
17506 hardcode_minus_L_GCJ=yes
17507 hardcode_shlibpath_var_GCJ=no
17508 ;;
17509
17510 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ac40fd9e 17511 freebsd* | dragonfly*)
d9898ee8 17512 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17513 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17514 hardcode_direct_GCJ=yes
17515 hardcode_shlibpath_var_GCJ=no
17516 ;;
17517
17518 hpux9*)
17519 if test "$GCC" = yes; then
17520 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'
17521 else
17522 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'
17523 fi
17524 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17525 hardcode_libdir_separator_GCJ=:
17526 hardcode_direct_GCJ=yes
17527
17528 # hardcode_minus_L: Not really in the search PATH,
17529 # but as the default location of the library.
17530 hardcode_minus_L_GCJ=yes
17531 export_dynamic_flag_spec_GCJ='${wl}-E'
17532 ;;
17533
17534 hpux10*)
17535 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17536 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17537 else
17538 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17539 fi
17540 if test "$with_gnu_ld" = no; then
17541 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17542 hardcode_libdir_separator_GCJ=:
17543
17544 hardcode_direct_GCJ=yes
17545 export_dynamic_flag_spec_GCJ='${wl}-E'
17546
17547 # hardcode_minus_L: Not really in the search PATH,
17548 # but as the default location of the library.
17549 hardcode_minus_L_GCJ=yes
17550 fi
17551 ;;
17552
17553 hpux11*)
17554 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17555 case $host_cpu in
17556 hppa*64*)
17557 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17558 ;;
17559 ia64*)
17560 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17561 ;;
17562 *)
17563 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17564 ;;
17565 esac
17566 else
17567 case $host_cpu in
17568 hppa*64*)
17569 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17570 ;;
17571 ia64*)
17572 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17573 ;;
17574 *)
17575 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17576 ;;
17577 esac
17578 fi
17579 if test "$with_gnu_ld" = no; then
17580 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17581 hardcode_libdir_separator_GCJ=:
17582
17583 case $host_cpu in
17584 hppa*64*|ia64*)
17585 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17586 hardcode_direct_GCJ=no
17587 hardcode_shlibpath_var_GCJ=no
17588 ;;
17589 *)
17590 hardcode_direct_GCJ=yes
17591 export_dynamic_flag_spec_GCJ='${wl}-E'
17592
17593 # hardcode_minus_L: Not really in the search PATH,
17594 # but as the default location of the library.
17595 hardcode_minus_L_GCJ=yes
17596 ;;
17597 esac
17598 fi
17599 ;;
17600
17601 irix5* | irix6* | nonstopux*)
17602 if test "$GCC" = yes; then
17603 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'
17604 else
17605 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'
17606 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17607 fi
17608 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17609 hardcode_libdir_separator_GCJ=:
17610 link_all_deplibs_GCJ=yes
17611 ;;
17612
17613 netbsd*)
17614 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17615 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17616 else
17617 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17618 fi
17619 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17620 hardcode_direct_GCJ=yes
17621 hardcode_shlibpath_var_GCJ=no
17622 ;;
17623
17624 newsos6)
17625 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17626 hardcode_direct_GCJ=yes
17627 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17628 hardcode_libdir_separator_GCJ=:
17629 hardcode_shlibpath_var_GCJ=no
17630 ;;
17631
17632 openbsd*)
ac40fd9e 17633 if test -f /usr/libexec/ld.so; then
17634 hardcode_direct_GCJ=yes
17635 hardcode_shlibpath_var_GCJ=no
17636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17637 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17638 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17639 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17640 export_dynamic_flag_spec_GCJ='${wl}-E'
17641 else
17642 case $host_os in
17643 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17644 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17645 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17646 ;;
17647 *)
17648 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17649 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17650 ;;
17651 esac
17652 fi
d9898ee8 17653 else
ac40fd9e 17654 ld_shlibs_GCJ=no
d9898ee8 17655 fi
17656 ;;
17657
17658 os2*)
17659 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17660 hardcode_minus_L_GCJ=yes
17661 allow_undefined_flag_GCJ=unsupported
17662 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'
17663 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17664 ;;
17665
17666 osf3*)
17667 if test "$GCC" = yes; then
17668 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17669 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'
17670 else
17671 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17672 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'
17673 fi
17674 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17675 hardcode_libdir_separator_GCJ=:
17676 ;;
17677
17678 osf4* | osf5*) # as osf3* with the addition of -msym flag
17679 if test "$GCC" = yes; then
17680 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17681 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'
17682 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17683 else
17684 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17685 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'
17686 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~
17687 $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'
17688
17689 # Both c and cxx compiler support -rpath directly
17690 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17691 fi
17692 hardcode_libdir_separator_GCJ=:
17693 ;;
17694
17695 solaris*)
17696 no_undefined_flag_GCJ=' -z text'
17697 if test "$GCC" = yes; then
17698 wlarc='${wl}'
17699 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17700 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17701 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17702 else
17703 wlarc=''
17704 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17705 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17706 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17707 fi
17708 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17709 hardcode_shlibpath_var_GCJ=no
17710 case $host_os in
17711 solaris2.[0-5] | solaris2.[0-5].*) ;;
17712 *)
ac40fd9e 17713 # The compiler driver will combine and reorder linker options,
17714 # but understands `-z linker_flag'. GCC discards it without `$wl',
17715 # but is careful enough not to reorder.
d9898ee8 17716 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 17717 if test "$GCC" = yes; then
17718 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17719 else
17720 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17721 fi
17722 ;;
d9898ee8 17723 esac
17724 link_all_deplibs_GCJ=yes
17725 ;;
17726
17727 sunos4*)
17728 if test "x$host_vendor" = xsequent; then
17729 # Use $CC to link under sequent, because it throws in some extra .o
17730 # files that make .init and .fini sections work.
17731 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17732 else
17733 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17734 fi
17735 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17736 hardcode_direct_GCJ=yes
17737 hardcode_minus_L_GCJ=yes
17738 hardcode_shlibpath_var_GCJ=no
17739 ;;
17740
17741 sysv4)
17742 case $host_vendor in
17743 sni)
17744 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17745 hardcode_direct_GCJ=yes # is this really true???
17746 ;;
17747 siemens)
17748 ## LD is ld it makes a PLAMLIB
17749 ## CC just makes a GrossModule.
17750 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17751 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17752 hardcode_direct_GCJ=no
17753 ;;
17754 motorola)
17755 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17756 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17757 ;;
17758 esac
17759 runpath_var='LD_RUN_PATH'
17760 hardcode_shlibpath_var_GCJ=no
17761 ;;
17762
17763 sysv4.3*)
17764 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17765 hardcode_shlibpath_var_GCJ=no
17766 export_dynamic_flag_spec_GCJ='-Bexport'
17767 ;;
17768
17769 sysv4*MP*)
17770 if test -d /usr/nec; then
17771 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17772 hardcode_shlibpath_var_GCJ=no
17773 runpath_var=LD_RUN_PATH
17774 hardcode_runpath_var=yes
17775 ld_shlibs_GCJ=yes
17776 fi
17777 ;;
17778
ac40fd9e 17779 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 17780 no_undefined_flag_GCJ='${wl}-z,text'
17781 archive_cmds_need_lc_GCJ=no
17782 hardcode_shlibpath_var_GCJ=no
17783 runpath_var='LD_RUN_PATH'
17784
17785 if test "$GCC" = yes; then
17786 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17787 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17788 else
17789 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17790 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17791 fi
17792 ;;
17793
17794 sysv5* | sco3.2v5* | sco5v6*)
17795 # Note: We can NOT use -z defs as we might desire, because we do not
17796 # link with -lc, and that would cause any symbols used from libc to
17797 # always be unresolved, which means just about no library would
17798 # ever link correctly. If we're not using GNU ld we use -z text
17799 # though, which does catch some bad symbols but isn't as heavy-handed
17800 # as -z defs.
17801 no_undefined_flag_GCJ='${wl}-z,text'
17802 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17803 archive_cmds_need_lc_GCJ=no
17804 hardcode_shlibpath_var_GCJ=no
17805 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17806 hardcode_libdir_separator_GCJ=':'
17807 link_all_deplibs_GCJ=yes
17808 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17809 runpath_var='LD_RUN_PATH'
17810
17811 if test "$GCC" = yes; then
17812 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17813 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17814 else
17815 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17816 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17817 fi
17818 ;;
17819
17820 uts4*)
17821 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17822 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17823 hardcode_shlibpath_var_GCJ=no
17824 ;;
17825
17826 *)
17827 ld_shlibs_GCJ=no
17828 ;;
17829 esac
17830 fi
17831
dd184caf 17832{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17833echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d9898ee8 17834test "$ld_shlibs_GCJ" = no && can_build_shared=no
17835
17836#
17837# Do we need to explicitly link libc?
17838#
17839case "x$archive_cmds_need_lc_GCJ" in
17840x|xyes)
17841 # Assume -lc should be added
17842 archive_cmds_need_lc_GCJ=yes
17843
17844 if test "$enable_shared" = yes && test "$GCC" = yes; then
17845 case $archive_cmds_GCJ in
17846 *'~'*)
17847 # FIXME: we may have to deal with multi-command sequences.
17848 ;;
17849 '$CC '*)
17850 # Test whether the compiler implicitly links with -lc since on some
17851 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17852 # to ld, don't add -lc before -lgcc.
dd184caf 17853 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17854echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 17855 $rm conftest*
ac40fd9e 17856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 17857
17858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17859 (eval $ac_compile) 2>&5
17860 ac_status=$?
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } 2>conftest.err; then
17863 soname=conftest
17864 lib=conftest
17865 libobjs=conftest.$ac_objext
17866 deplibs=
17867 wl=$lt_prog_compiler_wl_GCJ
17868 pic_flag=$lt_prog_compiler_pic_GCJ
17869 compiler_flags=-v
17870 linker_flags=-v
17871 verstring=
17872 output_objdir=.
17873 libname=conftest
17874 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17875 allow_undefined_flag_GCJ=
17876 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17877 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17878 ac_status=$?
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }
17881 then
17882 archive_cmds_need_lc_GCJ=no
17883 else
17884 archive_cmds_need_lc_GCJ=yes
17885 fi
17886 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17887 else
17888 cat conftest.err 1>&5
17889 fi
17890 $rm conftest*
dd184caf 17891 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17892echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d9898ee8 17893 ;;
17894 esac
17895 fi
17896 ;;
17897esac
17898
dd184caf 17899{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17900echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 17901library_names_spec=
17902libname_spec='lib$name'
17903soname_spec=
17904shrext_cmds=".so"
17905postinstall_cmds=
17906postuninstall_cmds=
17907finish_cmds=
17908finish_eval=
17909shlibpath_var=
17910shlibpath_overrides_runpath=unknown
17911version_type=none
17912dynamic_linker="$host_os ld.so"
17913sys_lib_dlsearch_path_spec="/lib /usr/lib"
ac40fd9e 17914
d9898ee8 17915need_lib_prefix=unknown
17916hardcode_into_libs=no
17917
17918# when you set need_version to no, make sure it does not cause -set_version
17919# flags to be left without arguments
17920need_version=unknown
17921
17922case $host_os in
17923aix3*)
17924 version_type=linux
17925 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17926 shlibpath_var=LIBPATH
17927
17928 # AIX 3 has no versioning support, so we append a major version to the name.
17929 soname_spec='${libname}${release}${shared_ext}$major'
17930 ;;
17931
17932aix4* | aix5*)
17933 version_type=linux
17934 need_lib_prefix=no
17935 need_version=no
17936 hardcode_into_libs=yes
17937 if test "$host_cpu" = ia64; then
17938 # AIX 5 supports IA64
17939 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17940 shlibpath_var=LD_LIBRARY_PATH
17941 else
17942 # With GCC up to 2.95.x, collect2 would create an import file
17943 # for dependence libraries. The import file would start with
17944 # the line `#! .'. This would cause the generated library to
17945 # depend on `.', always an invalid library. This was fixed in
17946 # development snapshots of GCC prior to 3.0.
17947 case $host_os in
17948 aix4 | aix4.[01] | aix4.[01].*)
17949 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17950 echo ' yes '
17951 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17952 :
17953 else
17954 can_build_shared=no
17955 fi
17956 ;;
17957 esac
17958 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17959 # soname into executable. Probably we can add versioning support to
17960 # collect2, so additional links can be useful in future.
17961 if test "$aix_use_runtimelinking" = yes; then
17962 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17963 # instead of lib<name>.a to let people know that these are not
17964 # typical AIX shared libraries.
17965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17966 else
17967 # We preserve .a as extension for shared libraries through AIX4.2
17968 # and later when we are not doing run time linking.
17969 library_names_spec='${libname}${release}.a $libname.a'
17970 soname_spec='${libname}${release}${shared_ext}$major'
17971 fi
17972 shlibpath_var=LIBPATH
17973 fi
17974 ;;
17975
17976amigaos*)
17977 library_names_spec='$libname.ixlibrary $libname.a'
17978 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17979 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'
17980 ;;
17981
17982beos*)
17983 library_names_spec='${libname}${shared_ext}'
17984 dynamic_linker="$host_os ld.so"
17985 shlibpath_var=LIBRARY_PATH
17986 ;;
17987
17988bsdi[45]*)
17989 version_type=linux
17990 need_version=no
17991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17992 soname_spec='${libname}${release}${shared_ext}$major'
17993 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17994 shlibpath_var=LD_LIBRARY_PATH
17995 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17996 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17997 # the default ld.so.conf also contains /usr/contrib/lib and
17998 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17999 # libtool to hard-code these into programs
18000 ;;
18001
18002cygwin* | mingw* | pw32*)
18003 version_type=windows
18004 shrext_cmds=".dll"
18005 need_version=no
18006 need_lib_prefix=no
18007
18008 case $GCC,$host_os in
18009 yes,cygwin* | yes,mingw* | yes,pw32*)
18010 library_names_spec='$libname.dll.a'
18011 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18012 postinstall_cmds='base_file=`basename \${file}`~
18013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18014 dldir=$destdir/`dirname \$dlpath`~
18015 test -d \$dldir || mkdir -p \$dldir~
18016 $install_prog $dir/$dlname \$dldir/$dlname~
18017 chmod a+x \$dldir/$dlname'
18018 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18019 dlpath=$dir/\$dldll~
18020 $rm \$dlpath'
18021 shlibpath_overrides_runpath=yes
18022
18023 case $host_os in
18024 cygwin*)
18025 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18026 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18027 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18028 ;;
18029 mingw*)
18030 # MinGW DLLs use traditional 'lib' prefix
18031 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18032 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18033 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18034 # It is most probably a Windows format PATH printed by
18035 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18036 # path with ; separators, and with drive letters. We can handle the
18037 # drive letters (cygwin fileutils understands them), so leave them,
18038 # especially as we might pass files found there to a mingw objdump,
18039 # which wouldn't understand a cygwinified path. Ahh.
18040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18041 else
18042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18043 fi
18044 ;;
18045 pw32*)
18046 # pw32 DLLs use 'pw' prefix rather than 'lib'
18047 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18048 ;;
18049 esac
18050 ;;
18051
18052 *)
18053 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18054 ;;
18055 esac
18056 dynamic_linker='Win32 ld.exe'
18057 # FIXME: first we should search . and the directory the executable is in
18058 shlibpath_var=PATH
18059 ;;
18060
18061darwin* | rhapsody*)
18062 dynamic_linker="$host_os dyld"
18063 version_type=darwin
18064 need_lib_prefix=no
18065 need_version=no
18066 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18067 soname_spec='${libname}${release}${major}$shared_ext'
18068 shlibpath_overrides_runpath=yes
18069 shlibpath_var=DYLD_LIBRARY_PATH
18070 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 18071
d9898ee8 18072 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18073 ;;
18074
18075dgux*)
18076 version_type=linux
18077 need_lib_prefix=no
18078 need_version=no
18079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18080 soname_spec='${libname}${release}${shared_ext}$major'
18081 shlibpath_var=LD_LIBRARY_PATH
18082 ;;
18083
18084freebsd1*)
18085 dynamic_linker=no
18086 ;;
18087
d9898ee8 18088freebsd* | dragonfly*)
18089 # DragonFly does not have aout. When/if they implement a new
18090 # versioning mechanism, adjust this.
18091 if test -x /usr/bin/objformat; then
18092 objformat=`/usr/bin/objformat`
18093 else
18094 case $host_os in
18095 freebsd[123]*) objformat=aout ;;
18096 *) objformat=elf ;;
18097 esac
18098 fi
18099 version_type=freebsd-$objformat
18100 case $version_type in
18101 freebsd-elf*)
18102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18103 need_version=no
18104 need_lib_prefix=no
18105 ;;
18106 freebsd-*)
18107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18108 need_version=yes
18109 ;;
18110 esac
18111 shlibpath_var=LD_LIBRARY_PATH
18112 case $host_os in
18113 freebsd2*)
18114 shlibpath_overrides_runpath=yes
18115 ;;
18116 freebsd3.[01]* | freebsdelf3.[01]*)
18117 shlibpath_overrides_runpath=yes
18118 hardcode_into_libs=yes
18119 ;;
18120 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18121 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18122 shlibpath_overrides_runpath=no
18123 hardcode_into_libs=yes
18124 ;;
ac40fd9e 18125 *) # from 4.6 on, and DragonFly
d9898ee8 18126 shlibpath_overrides_runpath=yes
18127 hardcode_into_libs=yes
18128 ;;
18129 esac
18130 ;;
18131
18132gnu*)
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 shlibpath_var=LD_LIBRARY_PATH
18139 hardcode_into_libs=yes
18140 ;;
18141
18142hpux9* | hpux10* | hpux11*)
18143 # Give a soname corresponding to the major version so that dld.sl refuses to
18144 # link against other versions.
18145 version_type=sunos
18146 need_lib_prefix=no
18147 need_version=no
18148 case $host_cpu in
18149 ia64*)
18150 shrext_cmds='.so'
18151 hardcode_into_libs=yes
18152 dynamic_linker="$host_os dld.so"
18153 shlibpath_var=LD_LIBRARY_PATH
18154 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18156 soname_spec='${libname}${release}${shared_ext}$major'
18157 if test "X$HPUX_IA64_MODE" = X32; then
18158 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18159 else
18160 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18161 fi
18162 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18163 ;;
18164 hppa*64*)
18165 shrext_cmds='.sl'
18166 hardcode_into_libs=yes
18167 dynamic_linker="$host_os dld.sl"
18168 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18171 soname_spec='${libname}${release}${shared_ext}$major'
18172 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18174 ;;
18175 *)
18176 shrext_cmds='.sl'
18177 dynamic_linker="$host_os dld.sl"
18178 shlibpath_var=SHLIB_PATH
18179 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181 soname_spec='${libname}${release}${shared_ext}$major'
18182 ;;
18183 esac
18184 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18185 postinstall_cmds='chmod 555 $lib'
18186 ;;
18187
ac40fd9e 18188interix[3-9]*)
d9898ee8 18189 version_type=linux
18190 need_lib_prefix=no
18191 need_version=no
18192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18193 soname_spec='${libname}${release}${shared_ext}$major'
18194 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18195 shlibpath_var=LD_LIBRARY_PATH
18196 shlibpath_overrides_runpath=no
18197 hardcode_into_libs=yes
18198 ;;
18199
18200irix5* | irix6* | nonstopux*)
18201 case $host_os in
18202 nonstopux*) version_type=nonstopux ;;
18203 *)
18204 if test "$lt_cv_prog_gnu_ld" = yes; then
18205 version_type=linux
18206 else
18207 version_type=irix
18208 fi ;;
18209 esac
18210 need_lib_prefix=no
18211 need_version=no
18212 soname_spec='${libname}${release}${shared_ext}$major'
18213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18214 case $host_os in
18215 irix5* | nonstopux*)
18216 libsuff= shlibsuff=
18217 ;;
18218 *)
18219 case $LD in # libtool.m4 will add one of these switches to LD
18220 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18221 libsuff= shlibsuff= libmagic=32-bit;;
18222 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18223 libsuff=32 shlibsuff=N32 libmagic=N32;;
18224 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18225 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18226 *) libsuff= shlibsuff= libmagic=never-match;;
18227 esac
18228 ;;
18229 esac
18230 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18231 shlibpath_overrides_runpath=no
18232 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18233 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18234 hardcode_into_libs=yes
18235 ;;
18236
18237# No shared lib support for Linux oldld, aout, or coff.
18238linux*oldld* | linux*aout* | linux*coff*)
18239 dynamic_linker=no
18240 ;;
18241
18242# This must be Linux ELF.
ac40fd9e 18243linux* | k*bsd*-gnu)
d9898ee8 18244 version_type=linux
18245 need_lib_prefix=no
18246 need_version=no
18247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18248 soname_spec='${libname}${release}${shared_ext}$major'
18249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18250 shlibpath_var=LD_LIBRARY_PATH
18251 shlibpath_overrides_runpath=no
18252 # This implies no fast_install, which is unacceptable.
18253 # Some rework will be needed to allow for fast_install
18254 # before this can be enabled.
18255 hardcode_into_libs=yes
ac40fd9e 18256 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18257 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 18258
18259 # Append ld.so.conf contents to the search path
18260 if test -f /etc/ld.so.conf; then
ac40fd9e 18261 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18262 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 18263 fi
18264
18265 # We used to test for /lib/ld.so.1 and disable shared libraries on
18266 # powerpc, because MkLinux only supported shared libraries with the
18267 # GNU dynamic linker. Since this was broken with cross compilers,
18268 # most powerpc-linux boxes support dynamic linking these days and
18269 # people can always --disable-shared, the test was removed, and we
18270 # assume the GNU/Linux dynamic linker is in use.
18271 dynamic_linker='GNU/Linux ld.so'
18272 ;;
18273
d9898ee8 18274netbsd*)
18275 version_type=sunos
18276 need_lib_prefix=no
18277 need_version=no
18278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18281 dynamic_linker='NetBSD (a.out) ld.so'
18282 else
18283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18284 soname_spec='${libname}${release}${shared_ext}$major'
18285 dynamic_linker='NetBSD ld.elf_so'
18286 fi
18287 shlibpath_var=LD_LIBRARY_PATH
18288 shlibpath_overrides_runpath=yes
18289 hardcode_into_libs=yes
18290 ;;
18291
18292newsos6)
18293 version_type=linux
18294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18295 shlibpath_var=LD_LIBRARY_PATH
18296 shlibpath_overrides_runpath=yes
18297 ;;
18298
18299nto-qnx*)
18300 version_type=linux
18301 need_lib_prefix=no
18302 need_version=no
18303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18304 soname_spec='${libname}${release}${shared_ext}$major'
18305 shlibpath_var=LD_LIBRARY_PATH
18306 shlibpath_overrides_runpath=yes
18307 ;;
18308
18309openbsd*)
18310 version_type=sunos
18311 sys_lib_dlsearch_path_spec="/usr/lib"
18312 need_lib_prefix=no
18313 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18314 case $host_os in
18315 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18316 *) need_version=no ;;
18317 esac
18318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18320 shlibpath_var=LD_LIBRARY_PATH
18321 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18322 case $host_os in
18323 openbsd2.[89] | openbsd2.[89].*)
18324 shlibpath_overrides_runpath=no
18325 ;;
18326 *)
18327 shlibpath_overrides_runpath=yes
18328 ;;
18329 esac
18330 else
18331 shlibpath_overrides_runpath=yes
18332 fi
18333 ;;
18334
18335os2*)
18336 libname_spec='$name'
18337 shrext_cmds=".dll"
18338 need_lib_prefix=no
18339 library_names_spec='$libname${shared_ext} $libname.a'
18340 dynamic_linker='OS/2 ld.exe'
18341 shlibpath_var=LIBPATH
18342 ;;
18343
18344osf3* | osf4* | osf5*)
18345 version_type=osf
18346 need_lib_prefix=no
18347 need_version=no
18348 soname_spec='${libname}${release}${shared_ext}$major'
18349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18350 shlibpath_var=LD_LIBRARY_PATH
18351 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18352 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18353 ;;
18354
ac40fd9e 18355rdos*)
18356 dynamic_linker=no
18357 ;;
18358
d9898ee8 18359solaris*)
18360 version_type=linux
18361 need_lib_prefix=no
18362 need_version=no
18363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18364 soname_spec='${libname}${release}${shared_ext}$major'
18365 shlibpath_var=LD_LIBRARY_PATH
18366 shlibpath_overrides_runpath=yes
18367 hardcode_into_libs=yes
18368 # ldd complains unless libraries are executable
18369 postinstall_cmds='chmod +x $lib'
18370 ;;
18371
18372sunos4*)
18373 version_type=sunos
18374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18375 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18376 shlibpath_var=LD_LIBRARY_PATH
18377 shlibpath_overrides_runpath=yes
18378 if test "$with_gnu_ld" = yes; then
18379 need_lib_prefix=no
18380 fi
18381 need_version=yes
18382 ;;
18383
18384sysv4 | sysv4.3*)
18385 version_type=linux
18386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18387 soname_spec='${libname}${release}${shared_ext}$major'
18388 shlibpath_var=LD_LIBRARY_PATH
18389 case $host_vendor in
18390 sni)
18391 shlibpath_overrides_runpath=no
18392 need_lib_prefix=no
18393 export_dynamic_flag_spec='${wl}-Blargedynsym'
18394 runpath_var=LD_RUN_PATH
18395 ;;
18396 siemens)
18397 need_lib_prefix=no
18398 ;;
18399 motorola)
18400 need_lib_prefix=no
18401 need_version=no
18402 shlibpath_overrides_runpath=no
18403 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18404 ;;
18405 esac
18406 ;;
18407
18408sysv4*MP*)
18409 if test -d /usr/nec ;then
18410 version_type=linux
18411 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18412 soname_spec='$libname${shared_ext}.$major'
18413 shlibpath_var=LD_LIBRARY_PATH
18414 fi
18415 ;;
18416
18417sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18418 version_type=freebsd-elf
18419 need_lib_prefix=no
18420 need_version=no
18421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18422 soname_spec='${libname}${release}${shared_ext}$major'
18423 shlibpath_var=LD_LIBRARY_PATH
18424 hardcode_into_libs=yes
18425 if test "$with_gnu_ld" = yes; then
18426 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18427 shlibpath_overrides_runpath=no
18428 else
18429 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18430 shlibpath_overrides_runpath=yes
18431 case $host_os in
18432 sco3.2v5*)
18433 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18434 ;;
18435 esac
18436 fi
18437 sys_lib_dlsearch_path_spec='/usr/lib'
18438 ;;
18439
18440uts4*)
18441 version_type=linux
18442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18443 soname_spec='${libname}${release}${shared_ext}$major'
18444 shlibpath_var=LD_LIBRARY_PATH
18445 ;;
18446
18447*)
18448 dynamic_linker=no
18449 ;;
18450esac
dd184caf 18451{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18452echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 18453test "$dynamic_linker" = no && can_build_shared=no
18454
18455variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18456if test "$GCC" = yes; then
18457 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18458fi
18459
dd184caf 18460{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18461echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 18462hardcode_action_GCJ=
18463if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18464 test -n "$runpath_var_GCJ" || \
18465 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18466
18467 # We can hardcode non-existant directories.
18468 if test "$hardcode_direct_GCJ" != no &&
18469 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18470 # have to relink, otherwise we might link with an installed library
18471 # when we should be linking with a yet-to-be-installed one
18472 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18473 test "$hardcode_minus_L_GCJ" != no; then
18474 # Linking always hardcodes the temporary library directory.
18475 hardcode_action_GCJ=relink
18476 else
18477 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18478 hardcode_action_GCJ=immediate
18479 fi
18480else
18481 # We cannot hardcode anything, or else we can only hardcode existing
18482 # directories.
18483 hardcode_action_GCJ=unsupported
18484fi
dd184caf 18485{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18486echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d9898ee8 18487
18488if test "$hardcode_action_GCJ" = relink; then
18489 # Fast installation is not supported
18490 enable_fast_install=no
18491elif test "$shlibpath_overrides_runpath" = yes ||
18492 test "$enable_shared" = no; then
18493 # Fast installation is not necessary
18494 enable_fast_install=needless
18495fi
18496
18497
18498# The else clause should only fire when bootstrapping the
18499# libtool distribution, otherwise you forgot to ship ltmain.sh
18500# with your package, and you will get complaints that there are
18501# no rules to generate ltmain.sh.
18502if test -f "$ltmain"; then
18503 # See if we are running on zsh, and set the options which allow our commands through
18504 # without removal of \ escapes.
18505 if test -n "${ZSH_VERSION+set}" ; then
18506 setopt NO_GLOB_SUBST
18507 fi
18508 # Now quote all the things that may contain metacharacters while being
18509 # careful not to overquote the AC_SUBSTed values. We take copies of the
18510 # variables and quote the copies for generation of the libtool script.
18511 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18512 SED SHELL STRIP \
18513 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18514 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18515 deplibs_check_method reload_flag reload_cmds need_locks \
18516 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18517 lt_cv_sys_global_symbol_to_c_name_address \
18518 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18519 old_postinstall_cmds old_postuninstall_cmds \
18520 compiler_GCJ \
18521 CC_GCJ \
18522 LD_GCJ \
18523 lt_prog_compiler_wl_GCJ \
18524 lt_prog_compiler_pic_GCJ \
18525 lt_prog_compiler_static_GCJ \
18526 lt_prog_compiler_no_builtin_flag_GCJ \
18527 export_dynamic_flag_spec_GCJ \
18528 thread_safe_flag_spec_GCJ \
18529 whole_archive_flag_spec_GCJ \
18530 enable_shared_with_static_runtimes_GCJ \
18531 old_archive_cmds_GCJ \
18532 old_archive_from_new_cmds_GCJ \
18533 predep_objects_GCJ \
18534 postdep_objects_GCJ \
18535 predeps_GCJ \
18536 postdeps_GCJ \
18537 compiler_lib_search_path_GCJ \
18538 archive_cmds_GCJ \
18539 archive_expsym_cmds_GCJ \
18540 postinstall_cmds_GCJ \
18541 postuninstall_cmds_GCJ \
18542 old_archive_from_expsyms_cmds_GCJ \
18543 allow_undefined_flag_GCJ \
18544 no_undefined_flag_GCJ \
18545 export_symbols_cmds_GCJ \
18546 hardcode_libdir_flag_spec_GCJ \
18547 hardcode_libdir_flag_spec_ld_GCJ \
18548 hardcode_libdir_separator_GCJ \
18549 hardcode_automatic_GCJ \
18550 module_cmds_GCJ \
18551 module_expsym_cmds_GCJ \
18552 lt_cv_prog_compiler_c_o_GCJ \
ac40fd9e 18553 fix_srcfile_path_GCJ \
d9898ee8 18554 exclude_expsyms_GCJ \
18555 include_expsyms_GCJ; do
18556
18557 case $var in
18558 old_archive_cmds_GCJ | \
18559 old_archive_from_new_cmds_GCJ | \
18560 archive_cmds_GCJ | \
18561 archive_expsym_cmds_GCJ | \
18562 module_cmds_GCJ | \
18563 module_expsym_cmds_GCJ | \
18564 old_archive_from_expsyms_cmds_GCJ | \
18565 export_symbols_cmds_GCJ | \
18566 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18567 postinstall_cmds | postuninstall_cmds | \
18568 old_postinstall_cmds | old_postuninstall_cmds | \
18569 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18570 # Double-quote double-evaled strings.
18571 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18572 ;;
18573 *)
18574 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18575 ;;
18576 esac
18577 done
18578
18579 case $lt_echo in
18580 *'\$0 --fallback-echo"')
18581 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18582 ;;
18583 esac
18584
18585cfgfile="$ofile"
18586
18587 cat <<__EOF__ >> "$cfgfile"
18588# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18589
18590# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18591
18592# Shell to use when invoking shell scripts.
18593SHELL=$lt_SHELL
18594
18595# Whether or not to build shared libraries.
18596build_libtool_libs=$enable_shared
18597
18598# Whether or not to build static libraries.
18599build_old_libs=$enable_static
18600
18601# Whether or not to add -lc for building shared libraries.
18602build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18603
18604# Whether or not to disallow shared libs when runtime libs are static
18605allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18606
18607# Whether or not to optimize for fast installation.
18608fast_install=$enable_fast_install
18609
18610# The host system.
18611host_alias=$host_alias
18612host=$host
18613host_os=$host_os
18614
18615# The build system.
18616build_alias=$build_alias
18617build=$build
18618build_os=$build_os
18619
18620# An echo program that does not interpret backslashes.
18621echo=$lt_echo
18622
18623# The archiver.
18624AR=$lt_AR
18625AR_FLAGS=$lt_AR_FLAGS
18626
18627# A C compiler.
18628LTCC=$lt_LTCC
18629
18630# LTCC compiler flags.
18631LTCFLAGS=$lt_LTCFLAGS
18632
18633# A language-specific compiler.
18634CC=$lt_compiler_GCJ
18635
18636# Is the compiler the GNU C compiler?
18637with_gcc=$GCC_GCJ
18638
d9898ee8 18639# An ERE matcher.
18640EGREP=$lt_EGREP
18641
18642# The linker used to build libraries.
18643LD=$lt_LD_GCJ
18644
18645# Whether we need hard or soft links.
18646LN_S=$lt_LN_S
18647
18648# A BSD-compatible nm program.
18649NM=$lt_NM
18650
18651# A symbol stripping program
18652STRIP=$lt_STRIP
18653
18654# Used to examine libraries when file_magic_cmd begins "file"
18655MAGIC_CMD=$MAGIC_CMD
18656
18657# Used on cygwin: DLL creation program.
18658DLLTOOL="$DLLTOOL"
18659
18660# Used on cygwin: object dumper.
18661OBJDUMP="$OBJDUMP"
18662
18663# Used on cygwin: assembler.
18664AS="$AS"
18665
18666# The name of the directory that contains temporary libtool files.
18667objdir=$objdir
18668
18669# How to create reloadable object files.
18670reload_flag=$lt_reload_flag
18671reload_cmds=$lt_reload_cmds
18672
18673# How to pass a linker flag through the compiler.
18674wl=$lt_lt_prog_compiler_wl_GCJ
18675
18676# Object file suffix (normally "o").
18677objext="$ac_objext"
18678
18679# Old archive suffix (normally "a").
18680libext="$libext"
18681
18682# Shared library suffix (normally ".so").
18683shrext_cmds='$shrext_cmds'
18684
18685# Executable file suffix (normally "").
18686exeext="$exeext"
18687
18688# Additional compiler flags for building library objects.
18689pic_flag=$lt_lt_prog_compiler_pic_GCJ
18690pic_mode=$pic_mode
18691
18692# What is the maximum length of a command?
18693max_cmd_len=$lt_cv_sys_max_cmd_len
18694
18695# Does compiler simultaneously support -c and -o options?
18696compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18697
18698# Must we lock files when doing compilation?
18699need_locks=$lt_need_locks
18700
18701# Do we need the lib prefix for modules?
18702need_lib_prefix=$need_lib_prefix
18703
18704# Do we need a version for libraries?
18705need_version=$need_version
18706
18707# Whether dlopen is supported.
18708dlopen_support=$enable_dlopen
18709
18710# Whether dlopen of programs is supported.
18711dlopen_self=$enable_dlopen_self
18712
18713# Whether dlopen of statically linked programs is supported.
18714dlopen_self_static=$enable_dlopen_self_static
18715
18716# Compiler flag to prevent dynamic linking.
18717link_static_flag=$lt_lt_prog_compiler_static_GCJ
18718
18719# Compiler flag to turn off builtin functions.
18720no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18721
18722# Compiler flag to allow reflexive dlopens.
18723export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18724
18725# Compiler flag to generate shared objects directly from archives.
18726whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18727
18728# Compiler flag to generate thread-safe objects.
18729thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18730
18731# Library versioning type.
18732version_type=$version_type
18733
18734# Format of library name prefix.
18735libname_spec=$lt_libname_spec
18736
18737# List of archive names. First name is the real one, the rest are links.
18738# The last name is the one that the linker finds with -lNAME.
18739library_names_spec=$lt_library_names_spec
18740
18741# The coded name of the library, if different from the real name.
18742soname_spec=$lt_soname_spec
18743
18744# Commands used to build and install an old-style archive.
18745RANLIB=$lt_RANLIB
18746old_archive_cmds=$lt_old_archive_cmds_GCJ
18747old_postinstall_cmds=$lt_old_postinstall_cmds
18748old_postuninstall_cmds=$lt_old_postuninstall_cmds
18749
18750# Create an old-style archive from a shared archive.
18751old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18752
18753# Create a temporary old-style archive to link instead of a shared archive.
18754old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18755
18756# Commands used to build and install a shared archive.
18757archive_cmds=$lt_archive_cmds_GCJ
18758archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18759postinstall_cmds=$lt_postinstall_cmds
18760postuninstall_cmds=$lt_postuninstall_cmds
18761
18762# Commands used to build a loadable module (assumed same as above if empty)
18763module_cmds=$lt_module_cmds_GCJ
18764module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18765
18766# Commands to strip libraries.
18767old_striplib=$lt_old_striplib
18768striplib=$lt_striplib
18769
18770# Dependencies to place before the objects being linked to create a
18771# shared library.
dd184caf 18772predep_objects=$lt_predep_objects_GCJ
d9898ee8 18773
18774# Dependencies to place after the objects being linked to create a
18775# shared library.
dd184caf 18776postdep_objects=$lt_postdep_objects_GCJ
d9898ee8 18777
18778# Dependencies to place before the objects being linked to create a
18779# shared library.
18780predeps=$lt_predeps_GCJ
18781
18782# Dependencies to place after the objects being linked to create a
18783# shared library.
18784postdeps=$lt_postdeps_GCJ
18785
18786# The library search path used internally by the compiler when linking
18787# a shared library.
dd184caf 18788compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
d9898ee8 18789
18790# Method to check whether dependent libraries are shared objects.
18791deplibs_check_method=$lt_deplibs_check_method
18792
18793# Command to use when deplibs_check_method == file_magic.
18794file_magic_cmd=$lt_file_magic_cmd
18795
18796# Flag that allows shared libraries with undefined symbols to be built.
18797allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18798
18799# Flag that forces no undefined symbols.
18800no_undefined_flag=$lt_no_undefined_flag_GCJ
18801
18802# Commands used to finish a libtool library installation in a directory.
18803finish_cmds=$lt_finish_cmds
18804
18805# Same as above, but a single script fragment to be evaled but not shown.
18806finish_eval=$lt_finish_eval
18807
18808# Take the output of nm and produce a listing of raw symbols and C names.
18809global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18810
18811# Transform the output of nm in a proper C declaration
18812global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18813
18814# Transform the output of nm in a C name address pair
18815global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18816
18817# This is the shared library runtime path variable.
18818runpath_var=$runpath_var
18819
18820# This is the shared library path variable.
18821shlibpath_var=$shlibpath_var
18822
18823# Is shlibpath searched before the hard-coded library search path?
18824shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18825
18826# How to hardcode a shared library path into an executable.
18827hardcode_action=$hardcode_action_GCJ
18828
18829# Whether we should hardcode library paths into libraries.
18830hardcode_into_libs=$hardcode_into_libs
18831
18832# Flag to hardcode \$libdir into a binary during linking.
18833# This must work even if \$libdir does not exist.
18834hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18835
18836# If ld is used when linking, flag to hardcode \$libdir into
18837# a binary during linking. This must work even if \$libdir does
18838# not exist.
18839hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18840
18841# Whether we need a single -rpath flag with a separated argument.
18842hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18843
18844# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18845# resulting binary.
18846hardcode_direct=$hardcode_direct_GCJ
18847
18848# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18849# resulting binary.
18850hardcode_minus_L=$hardcode_minus_L_GCJ
18851
18852# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18853# the resulting binary.
18854hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18855
18856# Set to yes if building a shared library automatically hardcodes DIR into the library
18857# and all subsequent libraries and executables linked against it.
18858hardcode_automatic=$hardcode_automatic_GCJ
18859
18860# Variables whose values should be saved in libtool wrapper scripts and
18861# restored at relink time.
18862variables_saved_for_relink="$variables_saved_for_relink"
18863
18864# Whether libtool must link a program against all its dependency libraries.
18865link_all_deplibs=$link_all_deplibs_GCJ
18866
18867# Compile-time system search path for libraries
dd184caf 18868sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 18869
18870# Run-time system search path for libraries
18871sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18872
18873# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 18874fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 18875
18876# Set to yes if exported symbols are required.
18877always_export_symbols=$always_export_symbols_GCJ
18878
18879# The commands to list exported symbols.
18880export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18881
18882# The commands to extract the exported symbol list from a shared archive.
18883extract_expsyms_cmds=$lt_extract_expsyms_cmds
18884
18885# Symbols that should not be listed in the preloaded symbols.
18886exclude_expsyms=$lt_exclude_expsyms_GCJ
18887
18888# Symbols that must always be exported.
18889include_expsyms=$lt_include_expsyms_GCJ
18890
18891# ### END LIBTOOL TAG CONFIG: $tagname
18892
18893__EOF__
18894
18895
18896else
18897 # If there is no Makefile yet, we rely on a make rule to execute
18898 # `config.status --recheck' to rerun these tests and create the
18899 # libtool script then.
18900 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18901 if test -f "$ltmain_in"; then
18902 test -f Makefile && make "$ltmain"
18903 fi
18904fi
18905
18906
18907ac_ext=c
18908ac_cpp='$CPP $CPPFLAGS'
18909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18911ac_compiler_gnu=$ac_cv_c_compiler_gnu
18912
18913CC="$lt_save_CC"
18914
18915 else
18916 tagname=""
18917 fi
18918 ;;
18919
18920 RC)
18921
18922
d9898ee8 18923# Source file extension for RC test sources.
18924ac_ext=rc
18925
18926# Object file extension for compiled RC test sources.
18927objext=o
18928objext_RC=$objext
18929
18930# Code to be used in simple compile tests
ac40fd9e 18931lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
d9898ee8 18932
18933# Code to be used in simple link tests
18934lt_simple_link_test_code="$lt_simple_compile_test_code"
18935
18936# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18937
18938# If no C compiler was specified, use CC.
18939LTCC=${LTCC-"$CC"}
18940
18941# If no C compiler flags were specified, use CFLAGS.
18942LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18943
18944# Allow CC to be a program name with arguments.
18945compiler=$CC
18946
18947
18948# save warnings/boilerplate of simple test code
18949ac_outfile=conftest.$ac_objext
ac40fd9e 18950echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 18951eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18952_lt_compiler_boilerplate=`cat conftest.err`
18953$rm conftest*
18954
18955ac_outfile=conftest.$ac_objext
ac40fd9e 18956echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 18957eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18958_lt_linker_boilerplate=`cat conftest.err`
18959$rm conftest*
18960
18961
18962# Allow CC to be a program name with arguments.
18963lt_save_CC="$CC"
18964CC=${RC-"windres"}
18965compiler=$CC
18966compiler_RC=$CC
18967for cc_temp in $compiler""; do
18968 case $cc_temp in
18969 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18970 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18971 \-*) ;;
18972 *) break;;
18973 esac
18974done
18975cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18976
18977lt_cv_prog_compiler_c_o_RC=yes
18978
18979# The else clause should only fire when bootstrapping the
18980# libtool distribution, otherwise you forgot to ship ltmain.sh
18981# with your package, and you will get complaints that there are
18982# no rules to generate ltmain.sh.
18983if test -f "$ltmain"; then
18984 # See if we are running on zsh, and set the options which allow our commands through
18985 # without removal of \ escapes.
18986 if test -n "${ZSH_VERSION+set}" ; then
18987 setopt NO_GLOB_SUBST
18988 fi
18989 # Now quote all the things that may contain metacharacters while being
18990 # careful not to overquote the AC_SUBSTed values. We take copies of the
18991 # variables and quote the copies for generation of the libtool script.
18992 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18993 SED SHELL STRIP \
18994 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18995 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18996 deplibs_check_method reload_flag reload_cmds need_locks \
18997 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18998 lt_cv_sys_global_symbol_to_c_name_address \
18999 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19000 old_postinstall_cmds old_postuninstall_cmds \
19001 compiler_RC \
19002 CC_RC \
19003 LD_RC \
19004 lt_prog_compiler_wl_RC \
19005 lt_prog_compiler_pic_RC \
19006 lt_prog_compiler_static_RC \
19007 lt_prog_compiler_no_builtin_flag_RC \
19008 export_dynamic_flag_spec_RC \
19009 thread_safe_flag_spec_RC \
19010 whole_archive_flag_spec_RC \
19011 enable_shared_with_static_runtimes_RC \
19012 old_archive_cmds_RC \
19013 old_archive_from_new_cmds_RC \
19014 predep_objects_RC \
19015 postdep_objects_RC \
19016 predeps_RC \
19017 postdeps_RC \
19018 compiler_lib_search_path_RC \
19019 archive_cmds_RC \
19020 archive_expsym_cmds_RC \
19021 postinstall_cmds_RC \
19022 postuninstall_cmds_RC \
19023 old_archive_from_expsyms_cmds_RC \
19024 allow_undefined_flag_RC \
19025 no_undefined_flag_RC \
19026 export_symbols_cmds_RC \
19027 hardcode_libdir_flag_spec_RC \
19028 hardcode_libdir_flag_spec_ld_RC \
19029 hardcode_libdir_separator_RC \
19030 hardcode_automatic_RC \
19031 module_cmds_RC \
19032 module_expsym_cmds_RC \
19033 lt_cv_prog_compiler_c_o_RC \
ac40fd9e 19034 fix_srcfile_path_RC \
d9898ee8 19035 exclude_expsyms_RC \
19036 include_expsyms_RC; do
19037
19038 case $var in
19039 old_archive_cmds_RC | \
19040 old_archive_from_new_cmds_RC | \
19041 archive_cmds_RC | \
19042 archive_expsym_cmds_RC | \
19043 module_cmds_RC | \
19044 module_expsym_cmds_RC | \
19045 old_archive_from_expsyms_cmds_RC | \
19046 export_symbols_cmds_RC | \
19047 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19048 postinstall_cmds | postuninstall_cmds | \
19049 old_postinstall_cmds | old_postuninstall_cmds | \
19050 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19051 # Double-quote double-evaled strings.
19052 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19053 ;;
19054 *)
19055 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19056 ;;
19057 esac
19058 done
19059
19060 case $lt_echo in
19061 *'\$0 --fallback-echo"')
19062 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19063 ;;
19064 esac
19065
19066cfgfile="$ofile"
19067
19068 cat <<__EOF__ >> "$cfgfile"
19069# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19070
19071# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19072
19073# Shell to use when invoking shell scripts.
19074SHELL=$lt_SHELL
19075
19076# Whether or not to build shared libraries.
19077build_libtool_libs=$enable_shared
19078
19079# Whether or not to build static libraries.
19080build_old_libs=$enable_static
19081
19082# Whether or not to add -lc for building shared libraries.
19083build_libtool_need_lc=$archive_cmds_need_lc_RC
19084
19085# Whether or not to disallow shared libs when runtime libs are static
19086allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19087
19088# Whether or not to optimize for fast installation.
19089fast_install=$enable_fast_install
19090
19091# The host system.
19092host_alias=$host_alias
19093host=$host
19094host_os=$host_os
19095
19096# The build system.
19097build_alias=$build_alias
19098build=$build
19099build_os=$build_os
19100
19101# An echo program that does not interpret backslashes.
19102echo=$lt_echo
19103
19104# The archiver.
19105AR=$lt_AR
19106AR_FLAGS=$lt_AR_FLAGS
19107
19108# A C compiler.
19109LTCC=$lt_LTCC
19110
19111# LTCC compiler flags.
19112LTCFLAGS=$lt_LTCFLAGS
19113
19114# A language-specific compiler.
19115CC=$lt_compiler_RC
19116
19117# Is the compiler the GNU C compiler?
19118with_gcc=$GCC_RC
19119
d9898ee8 19120# An ERE matcher.
19121EGREP=$lt_EGREP
19122
19123# The linker used to build libraries.
19124LD=$lt_LD_RC
19125
19126# Whether we need hard or soft links.
19127LN_S=$lt_LN_S
19128
19129# A BSD-compatible nm program.
19130NM=$lt_NM
19131
19132# A symbol stripping program
19133STRIP=$lt_STRIP
19134
19135# Used to examine libraries when file_magic_cmd begins "file"
19136MAGIC_CMD=$MAGIC_CMD
19137
19138# Used on cygwin: DLL creation program.
19139DLLTOOL="$DLLTOOL"
19140
19141# Used on cygwin: object dumper.
19142OBJDUMP="$OBJDUMP"
19143
19144# Used on cygwin: assembler.
19145AS="$AS"
19146
19147# The name of the directory that contains temporary libtool files.
19148objdir=$objdir
19149
19150# How to create reloadable object files.
19151reload_flag=$lt_reload_flag
19152reload_cmds=$lt_reload_cmds
19153
19154# How to pass a linker flag through the compiler.
19155wl=$lt_lt_prog_compiler_wl_RC
19156
19157# Object file suffix (normally "o").
19158objext="$ac_objext"
19159
19160# Old archive suffix (normally "a").
19161libext="$libext"
19162
19163# Shared library suffix (normally ".so").
19164shrext_cmds='$shrext_cmds'
19165
19166# Executable file suffix (normally "").
19167exeext="$exeext"
19168
19169# Additional compiler flags for building library objects.
19170pic_flag=$lt_lt_prog_compiler_pic_RC
19171pic_mode=$pic_mode
19172
19173# What is the maximum length of a command?
19174max_cmd_len=$lt_cv_sys_max_cmd_len
19175
19176# Does compiler simultaneously support -c and -o options?
19177compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19178
19179# Must we lock files when doing compilation?
19180need_locks=$lt_need_locks
19181
19182# Do we need the lib prefix for modules?
19183need_lib_prefix=$need_lib_prefix
19184
19185# Do we need a version for libraries?
19186need_version=$need_version
19187
19188# Whether dlopen is supported.
19189dlopen_support=$enable_dlopen
19190
19191# Whether dlopen of programs is supported.
19192dlopen_self=$enable_dlopen_self
19193
19194# Whether dlopen of statically linked programs is supported.
19195dlopen_self_static=$enable_dlopen_self_static
19196
19197# Compiler flag to prevent dynamic linking.
19198link_static_flag=$lt_lt_prog_compiler_static_RC
19199
19200# Compiler flag to turn off builtin functions.
19201no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19202
19203# Compiler flag to allow reflexive dlopens.
19204export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19205
19206# Compiler flag to generate shared objects directly from archives.
19207whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19208
19209# Compiler flag to generate thread-safe objects.
19210thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19211
19212# Library versioning type.
19213version_type=$version_type
19214
19215# Format of library name prefix.
19216libname_spec=$lt_libname_spec
19217
19218# List of archive names. First name is the real one, the rest are links.
19219# The last name is the one that the linker finds with -lNAME.
19220library_names_spec=$lt_library_names_spec
19221
19222# The coded name of the library, if different from the real name.
19223soname_spec=$lt_soname_spec
19224
19225# Commands used to build and install an old-style archive.
19226RANLIB=$lt_RANLIB
19227old_archive_cmds=$lt_old_archive_cmds_RC
19228old_postinstall_cmds=$lt_old_postinstall_cmds
19229old_postuninstall_cmds=$lt_old_postuninstall_cmds
19230
19231# Create an old-style archive from a shared archive.
19232old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19233
19234# Create a temporary old-style archive to link instead of a shared archive.
19235old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19236
19237# Commands used to build and install a shared archive.
19238archive_cmds=$lt_archive_cmds_RC
19239archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19240postinstall_cmds=$lt_postinstall_cmds
19241postuninstall_cmds=$lt_postuninstall_cmds
19242
19243# Commands used to build a loadable module (assumed same as above if empty)
19244module_cmds=$lt_module_cmds_RC
19245module_expsym_cmds=$lt_module_expsym_cmds_RC
19246
19247# Commands to strip libraries.
19248old_striplib=$lt_old_striplib
19249striplib=$lt_striplib
19250
19251# Dependencies to place before the objects being linked to create a
19252# shared library.
dd184caf 19253predep_objects=$lt_predep_objects_RC
d9898ee8 19254
19255# Dependencies to place after the objects being linked to create a
19256# shared library.
dd184caf 19257postdep_objects=$lt_postdep_objects_RC
d9898ee8 19258
19259# Dependencies to place before the objects being linked to create a
19260# shared library.
19261predeps=$lt_predeps_RC
19262
19263# Dependencies to place after the objects being linked to create a
19264# shared library.
19265postdeps=$lt_postdeps_RC
19266
19267# The library search path used internally by the compiler when linking
19268# a shared library.
dd184caf 19269compiler_lib_search_path=$lt_compiler_lib_search_path_RC
d9898ee8 19270
19271# Method to check whether dependent libraries are shared objects.
19272deplibs_check_method=$lt_deplibs_check_method
19273
19274# Command to use when deplibs_check_method == file_magic.
19275file_magic_cmd=$lt_file_magic_cmd
19276
19277# Flag that allows shared libraries with undefined symbols to be built.
19278allow_undefined_flag=$lt_allow_undefined_flag_RC
19279
19280# Flag that forces no undefined symbols.
19281no_undefined_flag=$lt_no_undefined_flag_RC
19282
19283# Commands used to finish a libtool library installation in a directory.
19284finish_cmds=$lt_finish_cmds
19285
19286# Same as above, but a single script fragment to be evaled but not shown.
19287finish_eval=$lt_finish_eval
19288
19289# Take the output of nm and produce a listing of raw symbols and C names.
19290global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19291
19292# Transform the output of nm in a proper C declaration
19293global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19294
19295# Transform the output of nm in a C name address pair
19296global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19297
19298# This is the shared library runtime path variable.
19299runpath_var=$runpath_var
19300
19301# This is the shared library path variable.
19302shlibpath_var=$shlibpath_var
19303
19304# Is shlibpath searched before the hard-coded library search path?
19305shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19306
19307# How to hardcode a shared library path into an executable.
19308hardcode_action=$hardcode_action_RC
19309
19310# Whether we should hardcode library paths into libraries.
19311hardcode_into_libs=$hardcode_into_libs
19312
19313# Flag to hardcode \$libdir into a binary during linking.
19314# This must work even if \$libdir does not exist.
19315hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19316
19317# If ld is used when linking, flag to hardcode \$libdir into
19318# a binary during linking. This must work even if \$libdir does
19319# not exist.
19320hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19321
19322# Whether we need a single -rpath flag with a separated argument.
19323hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19324
19325# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19326# resulting binary.
19327hardcode_direct=$hardcode_direct_RC
19328
19329# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19330# resulting binary.
19331hardcode_minus_L=$hardcode_minus_L_RC
19332
19333# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19334# the resulting binary.
19335hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19336
19337# Set to yes if building a shared library automatically hardcodes DIR into the library
19338# and all subsequent libraries and executables linked against it.
19339hardcode_automatic=$hardcode_automatic_RC
19340
19341# Variables whose values should be saved in libtool wrapper scripts and
19342# restored at relink time.
19343variables_saved_for_relink="$variables_saved_for_relink"
19344
19345# Whether libtool must link a program against all its dependency libraries.
19346link_all_deplibs=$link_all_deplibs_RC
19347
19348# Compile-time system search path for libraries
dd184caf 19349sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19350
19351# Run-time system search path for libraries
19352sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19353
19354# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 19355fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 19356
19357# Set to yes if exported symbols are required.
19358always_export_symbols=$always_export_symbols_RC
19359
19360# The commands to list exported symbols.
19361export_symbols_cmds=$lt_export_symbols_cmds_RC
19362
19363# The commands to extract the exported symbol list from a shared archive.
19364extract_expsyms_cmds=$lt_extract_expsyms_cmds
19365
19366# Symbols that should not be listed in the preloaded symbols.
19367exclude_expsyms=$lt_exclude_expsyms_RC
19368
19369# Symbols that must always be exported.
19370include_expsyms=$lt_include_expsyms_RC
19371
19372# ### END LIBTOOL TAG CONFIG: $tagname
19373
19374__EOF__
19375
19376
19377else
19378 # If there is no Makefile yet, we rely on a make rule to execute
19379 # `config.status --recheck' to rerun these tests and create the
19380 # libtool script then.
19381 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19382 if test -f "$ltmain_in"; then
19383 test -f Makefile && make "$ltmain"
19384 fi
19385fi
19386
19387
19388ac_ext=c
19389ac_cpp='$CPP $CPPFLAGS'
19390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19392ac_compiler_gnu=$ac_cv_c_compiler_gnu
19393
19394CC="$lt_save_CC"
19395
19396 ;;
19397
19398 *)
19399 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19400echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19401 { (exit 1); exit 1; }; }
19402 ;;
19403 esac
19404
19405 # Append the new tag name to the list of available tags.
19406 if test -n "$tagname" ; then
19407 available_tags="$available_tags $tagname"
19408 fi
19409 fi
19410 done
19411 IFS="$lt_save_ifs"
19412
19413 # Now substitute the updated list of available tags.
19414 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19415 mv "${ofile}T" "$ofile"
19416 chmod +x "$ofile"
19417 else
19418 rm -f "${ofile}T"
19419 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19420echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19421 { (exit 1); exit 1; }; }
19422 fi
19423fi
19424
19425
19426
19427# This can be used to rebuild libtool when needed
19428LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19429
19430# Always use our own libtool.
19431LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19432
19433# Prevent multiple expansion
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455if test "$GCC" = yes
19456then
19457 CFLAGS="-Wall $CFLAGS"
19458fi
19459
19460CPPFLAGS="$CPPFLAGS -I$srcdir/.. -I.."
19461
19462
dd184caf 19463{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19464echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 19465if test "${ac_cv_header_stdc+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19467else
19468 cat >conftest.$ac_ext <<_ACEOF
19469/* confdefs.h. */
19470_ACEOF
19471cat confdefs.h >>conftest.$ac_ext
19472cat >>conftest.$ac_ext <<_ACEOF
19473/* end confdefs.h. */
19474#include <stdlib.h>
19475#include <stdarg.h>
19476#include <string.h>
19477#include <float.h>
19478
19479int
19480main ()
19481{
19482
19483 ;
19484 return 0;
19485}
19486_ACEOF
19487rm -f conftest.$ac_objext
dd184caf 19488if { (ac_try="$ac_compile"
19489case "(($ac_try" in
19490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19491 *) ac_try_echo=$ac_try;;
19492esac
19493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19494 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19495 ac_status=$?
19496 grep -v '^ *+' conftest.er1 >conftest.err
19497 rm -f conftest.er1
19498 cat conftest.err >&5
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19500 (exit $ac_status); } && {
19501 test -z "$ac_c_werror_flag" ||
19502 test ! -s conftest.err
19503 } && test -s conftest.$ac_objext; then
d9898ee8 19504 ac_cv_header_stdc=yes
19505else
19506 echo "$as_me: failed program was:" >&5
19507sed 's/^/| /' conftest.$ac_ext >&5
19508
dd184caf 19509 ac_cv_header_stdc=no
d9898ee8 19510fi
dd184caf 19511
19512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19513
19514if test $ac_cv_header_stdc = yes; then
19515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19516 cat >conftest.$ac_ext <<_ACEOF
19517/* confdefs.h. */
19518_ACEOF
19519cat confdefs.h >>conftest.$ac_ext
19520cat >>conftest.$ac_ext <<_ACEOF
19521/* end confdefs.h. */
19522#include <string.h>
19523
19524_ACEOF
19525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19526 $EGREP "memchr" >/dev/null 2>&1; then
19527 :
19528else
19529 ac_cv_header_stdc=no
19530fi
19531rm -f conftest*
19532
19533fi
19534
19535if test $ac_cv_header_stdc = yes; then
19536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19537 cat >conftest.$ac_ext <<_ACEOF
19538/* confdefs.h. */
19539_ACEOF
19540cat confdefs.h >>conftest.$ac_ext
19541cat >>conftest.$ac_ext <<_ACEOF
19542/* end confdefs.h. */
19543#include <stdlib.h>
19544
19545_ACEOF
19546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19547 $EGREP "free" >/dev/null 2>&1; then
19548 :
19549else
19550 ac_cv_header_stdc=no
19551fi
19552rm -f conftest*
19553
19554fi
19555
19556if test $ac_cv_header_stdc = yes; then
19557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19558 if test "$cross_compiling" = yes; then
19559 :
19560else
19561 cat >conftest.$ac_ext <<_ACEOF
19562/* confdefs.h. */
19563_ACEOF
19564cat confdefs.h >>conftest.$ac_ext
19565cat >>conftest.$ac_ext <<_ACEOF
19566/* end confdefs.h. */
19567#include <ctype.h>
dd184caf 19568#include <stdlib.h>
d9898ee8 19569#if ((' ' & 0x0FF) == 0x020)
19570# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19571# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19572#else
19573# define ISLOWER(c) \
19574 (('a' <= (c) && (c) <= 'i') \
19575 || ('j' <= (c) && (c) <= 'r') \
19576 || ('s' <= (c) && (c) <= 'z'))
19577# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19578#endif
19579
19580#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19581int
19582main ()
19583{
19584 int i;
19585 for (i = 0; i < 256; i++)
19586 if (XOR (islower (i), ISLOWER (i))
19587 || toupper (i) != TOUPPER (i))
dd184caf 19588 return 2;
19589 return 0;
d9898ee8 19590}
19591_ACEOF
19592rm -f conftest$ac_exeext
dd184caf 19593if { (ac_try="$ac_link"
19594case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19597esac
19598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_link") 2>&5
d9898ee8 19600 ac_status=$?
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 19603 { (case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19606esac
19607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_try") 2>&5
d9898ee8 19609 ac_status=$?
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; }; then
19612 :
19613else
19614 echo "$as_me: program exited with status $ac_status" >&5
19615echo "$as_me: failed program was:" >&5
19616sed 's/^/| /' conftest.$ac_ext >&5
19617
19618( exit $ac_status )
19619ac_cv_header_stdc=no
19620fi
dd184caf 19621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 19622fi
dd184caf 19623
19624
d9898ee8 19625fi
19626fi
dd184caf 19627{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19628echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 19629if test $ac_cv_header_stdc = yes; then
19630
19631cat >>confdefs.h <<\_ACEOF
19632#define STDC_HEADERS 1
19633_ACEOF
19634
19635fi
19636
19637
dd184caf 19638{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19639echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
d9898ee8 19640if test "${ac_cv_c_const+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19642else
19643 cat >conftest.$ac_ext <<_ACEOF
19644/* confdefs.h. */
19645_ACEOF
19646cat confdefs.h >>conftest.$ac_ext
19647cat >>conftest.$ac_ext <<_ACEOF
19648/* end confdefs.h. */
19649
19650int
19651main ()
19652{
19653/* FIXME: Include the comments suggested by Paul. */
19654#ifndef __cplusplus
19655 /* Ultrix mips cc rejects this. */
19656 typedef int charset[2];
dd184caf 19657 const charset cs;
d9898ee8 19658 /* SunOS 4.1.1 cc rejects this. */
dd184caf 19659 char const *const *pcpcc;
19660 char **ppc;
d9898ee8 19661 /* NEC SVR4.0.2 mips cc rejects this. */
19662 struct point {int x, y;};
19663 static struct point const zero = {0,0};
19664 /* AIX XL C 1.02.0.0 rejects this.
19665 It does not let you subtract one const X* pointer from another in
19666 an arm of an if-expression whose if-part is not a constant
19667 expression */
19668 const char *g = "string";
dd184caf 19669 pcpcc = &g + (g ? g-g : 0);
d9898ee8 19670 /* HPUX 7.0 cc rejects these. */
dd184caf 19671 ++pcpcc;
19672 ppc = (char**) pcpcc;
19673 pcpcc = (char const *const *) ppc;
d9898ee8 19674 { /* SCO 3.2v4 cc rejects this. */
19675 char *t;
19676 char const *s = 0 ? (char *) 0 : (char const *) 0;
19677
19678 *t++ = 0;
dd184caf 19679 if (s) return 0;
d9898ee8 19680 }
19681 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19682 int x[] = {25, 17};
19683 const int *foo = &x[0];
19684 ++foo;
19685 }
19686 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19687 typedef const int *iptr;
19688 iptr p = 0;
19689 ++p;
19690 }
19691 { /* AIX XL C 1.02.0.0 rejects this saying
19692 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19693 struct s { int j; const int *ap[3]; };
19694 struct s *b; b->j = 5;
19695 }
19696 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19697 const int foo = 10;
dd184caf 19698 if (!foo) return 0;
d9898ee8 19699 }
dd184caf 19700 return !cs[0] && !zero.x;
d9898ee8 19701#endif
19702
19703 ;
19704 return 0;
19705}
19706_ACEOF
19707rm -f conftest.$ac_objext
dd184caf 19708if { (ac_try="$ac_compile"
19709case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19712esac
19713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19715 ac_status=$?
19716 grep -v '^ *+' conftest.er1 >conftest.err
19717 rm -f conftest.er1
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19720 (exit $ac_status); } && {
19721 test -z "$ac_c_werror_flag" ||
19722 test ! -s conftest.err
19723 } && test -s conftest.$ac_objext; then
d9898ee8 19724 ac_cv_c_const=yes
19725else
19726 echo "$as_me: failed program was:" >&5
19727sed 's/^/| /' conftest.$ac_ext >&5
19728
dd184caf 19729 ac_cv_c_const=no
d9898ee8 19730fi
dd184caf 19731
19732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19733fi
dd184caf 19734{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19735echo "${ECHO_T}$ac_cv_c_const" >&6; }
d9898ee8 19736if test $ac_cv_c_const = no; then
19737
19738cat >>confdefs.h <<\_ACEOF
19739#define const
19740_ACEOF
19741
19742fi
19743
dd184caf 19744{ echo "$as_me:$LINENO: checking for size_t" >&5
19745echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
d9898ee8 19746if test "${ac_cv_type_size_t+set}" = set; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19748else
19749 cat >conftest.$ac_ext <<_ACEOF
19750/* confdefs.h. */
19751_ACEOF
19752cat confdefs.h >>conftest.$ac_ext
19753cat >>conftest.$ac_ext <<_ACEOF
19754/* end confdefs.h. */
19755$ac_includes_default
dd184caf 19756typedef size_t ac__type_new_;
d9898ee8 19757int
19758main ()
19759{
dd184caf 19760if ((ac__type_new_ *) 0)
d9898ee8 19761 return 0;
dd184caf 19762if (sizeof (ac__type_new_))
d9898ee8 19763 return 0;
19764 ;
19765 return 0;
19766}
19767_ACEOF
19768rm -f conftest.$ac_objext
dd184caf 19769if { (ac_try="$ac_compile"
19770case "(($ac_try" in
19771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19772 *) ac_try_echo=$ac_try;;
19773esac
19774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19776 ac_status=$?
19777 grep -v '^ *+' conftest.er1 >conftest.err
19778 rm -f conftest.er1
19779 cat conftest.err >&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19781 (exit $ac_status); } && {
19782 test -z "$ac_c_werror_flag" ||
19783 test ! -s conftest.err
19784 } && test -s conftest.$ac_objext; then
d9898ee8 19785 ac_cv_type_size_t=yes
19786else
19787 echo "$as_me: failed program was:" >&5
19788sed 's/^/| /' conftest.$ac_ext >&5
19789
dd184caf 19790 ac_cv_type_size_t=no
d9898ee8 19791fi
dd184caf 19792
19793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19794fi
dd184caf 19795{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19796echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
d9898ee8 19797if test $ac_cv_type_size_t = yes; then
19798 :
19799else
19800
19801cat >>confdefs.h <<_ACEOF
dd184caf 19802#define size_t unsigned int
d9898ee8 19803_ACEOF
19804
19805fi
19806
19807
19808
19809
19810TESTPROGS=""
19811
19812hmac_list=""
19813
19814hashlibs=""
19815if test -d ${srcdir}/../md5
19816then
19817 TESTPROGS="$TESTPROGS md5hmactest${EXEEXT}"
19818 hmac_list="$hmac_list &hmac_md5,"
19819 hashlibs="$hashlibs ../md5/libmd5.la"
19820fi
19821
19822if test -d ${srcdir}/../sha1
19823then
19824 TESTPROGS="$TESTPROGS sha1hmactest${EXEEXT}"
19825 hmac_list="$hmac_list &hmac_sha1, &hmac_sha256, "
19826 hashlibs="$hashlibs ../sha1/libsha1.la"
19827fi
19828
19829
19830hmac_list="$hmac_list 0"
19831
19832
19833
19834cat >>confdefs.h <<_ACEOF
19835#define HMAC_LIST $hmac_list
19836_ACEOF
19837
19838
dd184caf 19839ac_config_files="$ac_config_files Makefile"
19840
d9898ee8 19841cat >confcache <<\_ACEOF
19842# This file is a shell script that caches the results of configure
19843# tests run on this system so they can be shared between configure
19844# scripts and configure runs, see configure's option --config-cache.
19845# It is not useful on other systems. If it contains results you don't
19846# want to keep, you may remove or edit it.
19847#
19848# config.status only pays attention to the cache file if you give it
19849# the --recheck option to rerun configure.
19850#
19851# `ac_cv_env_foo' variables (set or unset) will be overridden when
19852# loading this file, other *unset* `ac_cv_foo' will be assigned the
19853# following values.
19854
19855_ACEOF
19856
19857# The following way of writing the cache mishandles newlines in values,
19858# but we know of no workaround that is simple, portable, and efficient.
dd184caf 19859# So, we kill variables containing newlines.
d9898ee8 19860# Ultrix sh set writes to stderr and can't be redirected directly,
19861# and sets the high bit in the cache file unless we assign to the vars.
dd184caf 19862(
19863 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19864 eval ac_val=\$$ac_var
19865 case $ac_val in #(
19866 *${as_nl}*)
19867 case $ac_var in #(
19868 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19869echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19870 esac
19871 case $ac_var in #(
19872 _ | IFS | as_nl) ;; #(
19873 *) $as_unset $ac_var ;;
19874 esac ;;
19875 esac
19876 done
19877
d9898ee8 19878 (set) 2>&1 |
dd184caf 19879 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19880 *${as_nl}ac_space=\ *)
d9898ee8 19881 # `set' does not quote correctly, so add quotes (double-quote
19882 # substitution turns \\\\ into \\, and sed turns \\ into \).
19883 sed -n \
19884 "s/'/'\\\\''/g;
19885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
dd184caf 19886 ;; #(
d9898ee8 19887 *)
19888 # `set' quotes correctly as required by POSIX, so do not add quotes.
dd184caf 19889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 19890 ;;
dd184caf 19891 esac |
19892 sort
19893) |
d9898ee8 19894 sed '
dd184caf 19895 /^ac_cv_env_/b end
d9898ee8 19896 t clear
dd184caf 19897 :clear
d9898ee8 19898 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19899 t end
dd184caf 19900 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19901 :end' >>confcache
19902if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19903 if test -w "$cache_file"; then
19904 test "x$cache_file" != "x/dev/null" &&
19905 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19906echo "$as_me: updating cache $cache_file" >&6;}
d9898ee8 19907 cat confcache >$cache_file
19908 else
dd184caf 19909 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19910echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d9898ee8 19911 fi
19912fi
19913rm -f confcache
19914
19915test "x$prefix" = xNONE && prefix=$ac_default_prefix
19916# Let make expand exec_prefix.
19917test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19918
d9898ee8 19919DEFS=-DHAVE_CONFIG_H
19920
19921ac_libobjs=
19922ac_ltlibobjs=
19923for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19924 # 1. Remove the extension, and $U if already installed.
dd184caf 19925 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19926 ac_i=`echo "$ac_i" | sed "$ac_script"`
19927 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19928 # will be set to the directory where LIBOBJS objects are built.
19929 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19930 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 19931done
19932LIBOBJS=$ac_libobjs
19933
19934LTLIBOBJS=$ac_ltlibobjs
19935
19936
19937if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19938 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19939Usually this means the macro was only invoked conditionally." >&5
19940echo "$as_me: error: conditional \"AMDEP\" was never defined.
19941Usually this means the macro was only invoked conditionally." >&2;}
19942 { (exit 1); exit 1; }; }
19943fi
19944if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19945 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19946Usually this means the macro was only invoked conditionally." >&5
19947echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19948Usually this means the macro was only invoked conditionally." >&2;}
19949 { (exit 1); exit 1; }; }
19950fi
19951if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19952 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19953Usually this means the macro was only invoked conditionally." >&5
19954echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19955Usually this means the macro was only invoked conditionally." >&2;}
19956 { (exit 1); exit 1; }; }
19957fi
19958
19959: ${CONFIG_STATUS=./config.status}
19960ac_clean_files_save=$ac_clean_files
19961ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19962{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19963echo "$as_me: creating $CONFIG_STATUS" >&6;}
19964cat >$CONFIG_STATUS <<_ACEOF
19965#! $SHELL
19966# Generated by $as_me.
19967# Run this file to recreate the current configuration.
19968# Compiler output produced by configure, useful for debugging
19969# configure, is in config.log if it exists.
19970
19971debug=false
19972ac_cs_recheck=false
19973ac_cs_silent=false
19974SHELL=\${CONFIG_SHELL-$SHELL}
19975_ACEOF
19976
19977cat >>$CONFIG_STATUS <<\_ACEOF
19978## --------------------- ##
19979## M4sh Initialization. ##
19980## --------------------- ##
19981
dd184caf 19982# Be more Bourne compatible
19983DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 19984if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19985 emulate sh
19986 NULLCMD=:
19987 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19988 # is contrary to our usage. Disable this feature.
19989 alias -g '${1+"$@"}'='"$@"'
dd184caf 19990 setopt NO_GLOB_SUBST
19991else
19992 case `(set -o) 2>/dev/null` in
19993 *posix*) set -o posix ;;
19994esac
19995
19996fi
19997
19998
19999
20000
20001# PATH needs CR
20002# Avoid depending upon Character Ranges.
20003as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20004as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20005as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20006as_cr_digits='0123456789'
20007as_cr_alnum=$as_cr_Letters$as_cr_digits
20008
20009# The user is always right.
20010if test "${PATH_SEPARATOR+set}" != set; then
20011 echo "#! /bin/sh" >conf$$.sh
20012 echo "exit 0" >>conf$$.sh
20013 chmod +x conf$$.sh
20014 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20015 PATH_SEPARATOR=';'
20016 else
20017 PATH_SEPARATOR=:
20018 fi
20019 rm -f conf$$.sh
d9898ee8 20020fi
d9898ee8 20021
20022# Support unset when possible.
20023if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20024 as_unset=unset
20025else
20026 as_unset=false
20027fi
20028
20029
dd184caf 20030# IFS
20031# We need space, tab and new line, in precisely that order. Quoting is
20032# there to prevent editors from complaining about space-tab.
20033# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20034# splitting by setting IFS to empty value.)
20035as_nl='
20036'
20037IFS=" "" $as_nl"
20038
20039# Find who we are. Look in the path if we contain no directory separator.
20040case $0 in
20041 *[\\/]* ) as_myself=$0 ;;
20042 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20043for as_dir in $PATH
20044do
20045 IFS=$as_save_IFS
20046 test -z "$as_dir" && as_dir=.
20047 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20048done
20049IFS=$as_save_IFS
20050
20051 ;;
20052esac
20053# We did not find ourselves, most probably we were run as `sh COMMAND'
20054# in which case we are not to be found in the path.
20055if test "x$as_myself" = x; then
20056 as_myself=$0
20057fi
20058if test ! -f "$as_myself"; then
20059 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20060 { (exit 1); exit 1; }
20061fi
20062
d9898ee8 20063# Work around bugs in pre-3.0 UWIN ksh.
dd184caf 20064for as_var in ENV MAIL MAILPATH
20065do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20066done
d9898ee8 20067PS1='$ '
20068PS2='> '
20069PS4='+ '
20070
20071# NLS nuisances.
20072for as_var in \
20073 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20074 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20075 LC_TELEPHONE LC_TIME
20076do
20077 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20078 eval $as_var=C; export $as_var
20079 else
dd184caf 20080 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 20081 fi
20082done
20083
20084# Required to use basename.
dd184caf 20085if expr a : '\(a\)' >/dev/null 2>&1 &&
20086 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 20087 as_expr=expr
20088else
20089 as_expr=false
20090fi
20091
dd184caf 20092if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 20093 as_basename=basename
20094else
20095 as_basename=false
20096fi
20097
20098
20099# Name of the executable.
dd184caf 20100as_me=`$as_basename -- "$0" ||
d9898ee8 20101$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20102 X"$0" : 'X\(//\)$' \| \
dd184caf 20103 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 20104echo X/"$0" |
dd184caf 20105 sed '/^.*\/\([^/][^/]*\)\/*$/{
20106 s//\1/
20107 q
20108 }
20109 /^X\/\(\/\/\)$/{
20110 s//\1/
20111 q
20112 }
20113 /^X\/\(\/\).*/{
20114 s//\1/
20115 q
20116 }
20117 s/.*/./; q'`
d9898ee8 20118
dd184caf 20119# CDPATH.
20120$as_unset CDPATH
d9898ee8 20121
d9898ee8 20122
20123
20124 as_lineno_1=$LINENO
20125 as_lineno_2=$LINENO
d9898ee8 20126 test "x$as_lineno_1" != "x$as_lineno_2" &&
dd184caf 20127 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 20128
20129 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20130 # uniformly replaced by the line number. The first 'sed' inserts a
dd184caf 20131 # line-number line after each line using $LINENO; the second 'sed'
20132 # does the real work. The second script uses 'N' to pair each
20133 # line-number line with the line containing $LINENO, and appends
20134 # trailing '-' during substitution so that $LINENO is not a special
20135 # case at line end.
d9898ee8 20136 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dd184caf 20137 # scripts with optimization help from Paolo Bonzini. Blame Lee
20138 # E. McMahon (1931-1989) for sed's syntax. :-)
20139 sed -n '
20140 p
20141 /[$]LINENO/=
20142 ' <$as_myself |
d9898ee8 20143 sed '
dd184caf 20144 s/[$]LINENO.*/&-/
20145 t lineno
20146 b
20147 :lineno
d9898ee8 20148 N
dd184caf 20149 :loop
20150 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 20151 t loop
dd184caf 20152 s/-\n.*//
d9898ee8 20153 ' >$as_me.lineno &&
dd184caf 20154 chmod +x "$as_me.lineno" ||
20155 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 20156 { (exit 1); exit 1; }; }
20157
20158 # Don't try to exec as it changes $[0], causing all sort of problems
20159 # (the dirname of $[0] is not the place where we might find the
dd184caf 20160 # original and so on. Autoconf is especially sensitive to this).
20161 . "./$as_me.lineno"
d9898ee8 20162 # Exit status is that of the last command.
20163 exit
20164}
20165
20166
dd184caf 20167if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20168 as_dirname=dirname
20169else
20170 as_dirname=false
20171fi
20172
20173ECHO_C= ECHO_N= ECHO_T=
20174case `echo -n x` in
20175-n*)
20176 case `echo 'x\c'` in
20177 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20178 *) ECHO_C='\c';;
20179 esac;;
20180*)
20181 ECHO_N='-n';;
d9898ee8 20182esac
20183
dd184caf 20184if expr a : '\(a\)' >/dev/null 2>&1 &&
20185 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 20186 as_expr=expr
20187else
20188 as_expr=false
20189fi
20190
20191rm -f conf$$ conf$$.exe conf$$.file
dd184caf 20192if test -d conf$$.dir; then
20193 rm -f conf$$.dir/conf$$.file
20194else
20195 rm -f conf$$.dir
20196 mkdir conf$$.dir
20197fi
d9898ee8 20198echo >conf$$.file
20199if ln -s conf$$.file conf$$ 2>/dev/null; then
dd184caf 20200 as_ln_s='ln -s'
20201 # ... but there are two gotchas:
20202 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20203 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20204 # In both cases, we have to default to `cp -p'.
20205 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 20206 as_ln_s='cp -p'
d9898ee8 20207elif ln conf$$.file conf$$ 2>/dev/null; then
20208 as_ln_s=ln
20209else
20210 as_ln_s='cp -p'
20211fi
dd184caf 20212rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20213rmdir conf$$.dir 2>/dev/null
d9898ee8 20214
20215if mkdir -p . 2>/dev/null; then
20216 as_mkdir_p=:
20217else
20218 test -d ./-p && rmdir ./-p
20219 as_mkdir_p=false
20220fi
20221
dd184caf 20222if test -x / >/dev/null 2>&1; then
20223 as_test_x='test -x'
20224else
20225 if ls -dL / >/dev/null 2>&1; then
20226 as_ls_L_option=L
20227 else
20228 as_ls_L_option=
20229 fi
20230 as_test_x='
20231 eval sh -c '\''
20232 if test -d "$1"; then
20233 test -d "$1/.";
20234 else
20235 case $1 in
20236 -*)set "./$1";;
20237 esac;
20238 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20239 ???[sx]*):;;*)false;;esac;fi
20240 '\'' sh
20241 '
20242fi
20243as_executable_p=$as_test_x
d9898ee8 20244
20245# Sed expression to map a string onto a valid CPP name.
20246as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20247
20248# Sed expression to map a string onto a valid variable name.
20249as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20250
20251
d9898ee8 20252exec 6>&1
20253
dd184caf 20254# Save the log message, to keep $[0] and so on meaningful, and to
d9898ee8 20255# report actual input values of CONFIG_FILES etc. instead of their
dd184caf 20256# values after options handling.
20257ac_log="
d9898ee8 20258This file was extended by libhmac $as_me 1.00, which was
dd184caf 20259generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 20260
20261 CONFIG_FILES = $CONFIG_FILES
20262 CONFIG_HEADERS = $CONFIG_HEADERS
20263 CONFIG_LINKS = $CONFIG_LINKS
20264 CONFIG_COMMANDS = $CONFIG_COMMANDS
20265 $ $0 $@
20266
dd184caf 20267on `(hostname || uname -n) 2>/dev/null | sed 1q`
20268"
20269
d9898ee8 20270_ACEOF
20271
dd184caf 20272cat >>$CONFIG_STATUS <<_ACEOF
d9898ee8 20273# Files that config.status was made for.
dd184caf 20274config_files="$ac_config_files"
20275config_headers="$ac_config_headers"
20276config_commands="$ac_config_commands"
d9898ee8 20277
dd184caf 20278_ACEOF
d9898ee8 20279
20280cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 20281ac_cs_usage="\
20282\`$as_me' instantiates files from templates according to the
20283current configuration.
20284
20285Usage: $0 [OPTIONS] [FILE]...
20286
20287 -h, --help print this help, then exit
dd184caf 20288 -V, --version print version number and configuration settings, then exit
d9898ee8 20289 -q, --quiet do not print progress messages
20290 -d, --debug don't remove temporary files
20291 --recheck update $as_me by reconfiguring in the same conditions
20292 --file=FILE[:TEMPLATE]
20293 instantiate the configuration file FILE
20294 --header=FILE[:TEMPLATE]
20295 instantiate the configuration header FILE
20296
20297Configuration files:
20298$config_files
20299
20300Configuration headers:
20301$config_headers
20302
20303Configuration commands:
20304$config_commands
20305
20306Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 20307
dd184caf 20308_ACEOF
d9898ee8 20309cat >>$CONFIG_STATUS <<_ACEOF
20310ac_cs_version="\\
20311libhmac config.status 1.00
dd184caf 20312configured by $0, generated by GNU Autoconf 2.61,
20313 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 20314
dd184caf 20315Copyright (C) 2006 Free Software Foundation, Inc.
d9898ee8 20316This config.status script is free software; the Free Software Foundation
20317gives unlimited permission to copy, distribute and modify it."
dd184caf 20318
20319ac_pwd='$ac_pwd'
20320srcdir='$srcdir'
20321INSTALL='$INSTALL'
20322MKDIR_P='$MKDIR_P'
d9898ee8 20323_ACEOF
20324
20325cat >>$CONFIG_STATUS <<\_ACEOF
20326# If no file are specified by the user, then we need to provide default
20327# value. By we need to know if files were specified by the user.
20328ac_need_defaults=:
20329while test $# != 0
20330do
20331 case $1 in
20332 --*=*)
dd184caf 20333 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20334 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d9898ee8 20335 ac_shift=:
20336 ;;
dd184caf 20337 *)
d9898ee8 20338 ac_option=$1
20339 ac_optarg=$2
20340 ac_shift=shift
20341 ;;
d9898ee8 20342 esac
20343
20344 case $ac_option in
20345 # Handling of the options.
d9898ee8 20346 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20347 ac_cs_recheck=: ;;
dd184caf 20348 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20349 echo "$ac_cs_version"; exit ;;
20350 --debug | --debu | --deb | --de | --d | -d )
d9898ee8 20351 debug=: ;;
20352 --file | --fil | --fi | --f )
20353 $ac_shift
20354 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20355 ac_need_defaults=false;;
20356 --header | --heade | --head | --hea )
20357 $ac_shift
20358 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20359 ac_need_defaults=false;;
dd184caf 20360 --he | --h)
20361 # Conflict between --help and --header
20362 { echo "$as_me: error: ambiguous option: $1
20363Try \`$0 --help' for more information." >&2
20364 { (exit 1); exit 1; }; };;
20365 --help | --hel | -h )
20366 echo "$ac_cs_usage"; exit ;;
d9898ee8 20367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20368 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20369 ac_cs_silent=: ;;
20370
20371 # This is an error.
dd184caf 20372 -*) { echo "$as_me: error: unrecognized option: $1
20373Try \`$0 --help' for more information." >&2
d9898ee8 20374 { (exit 1); exit 1; }; } ;;
20375
dd184caf 20376 *) ac_config_targets="$ac_config_targets $1"
20377 ac_need_defaults=false ;;
d9898ee8 20378
20379 esac
20380 shift
20381done
20382
20383ac_configure_extra_args=
20384
20385if $ac_cs_silent; then
20386 exec 6>/dev/null
20387 ac_configure_extra_args="$ac_configure_extra_args --silent"
20388fi
20389
20390_ACEOF
20391cat >>$CONFIG_STATUS <<_ACEOF
20392if \$ac_cs_recheck; then
dd184caf 20393 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20394 CONFIG_SHELL=$SHELL
20395 export CONFIG_SHELL
20396 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9898ee8 20397fi
20398
20399_ACEOF
dd184caf 20400cat >>$CONFIG_STATUS <<\_ACEOF
20401exec 5>>config.log
20402{
20403 echo
20404 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20405## Running $as_me. ##
20406_ASBOX
20407 echo "$ac_log"
20408} >&5
d9898ee8 20409
dd184caf 20410_ACEOF
d9898ee8 20411cat >>$CONFIG_STATUS <<_ACEOF
20412#
dd184caf 20413# INIT-COMMANDS
d9898ee8 20414#
d9898ee8 20415AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20416
20417_ACEOF
20418
d9898ee8 20419cat >>$CONFIG_STATUS <<\_ACEOF
dd184caf 20420
20421# Handling of arguments.
d9898ee8 20422for ac_config_target in $ac_config_targets
20423do
dd184caf 20424 case $ac_config_target in
20425 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20426 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20427 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20428
d9898ee8 20429 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20430echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20431 { (exit 1); exit 1; }; };;
20432 esac
20433done
20434
dd184caf 20435
d9898ee8 20436# If the user did not use the arguments to specify the items to instantiate,
20437# then the envvar interface is used. Set only those that are not.
20438# We use the long form for the default assignment because of an extremely
20439# bizarre bug on SunOS 4.1.3.
20440if $ac_need_defaults; then
20441 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20442 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20443 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20444fi
20445
20446# Have a temporary directory for convenience. Make it in the build tree
dd184caf 20447# simply because there is no reason against having it here, and in addition,
d9898ee8 20448# creating and moving files from /tmp can sometimes cause problems.
dd184caf 20449# Hook for its removal unless debugging.
20450# Note that there is a small window in which the directory will not be cleaned:
20451# after its creation but before its name has been assigned to `$tmp'.
d9898ee8 20452$debug ||
20453{
dd184caf 20454 tmp=
20455 trap 'exit_status=$?
20456 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20457' 0
d9898ee8 20458 trap '{ (exit 1); exit 1; }' 1 2 13 15
20459}
d9898ee8 20460# Create a (secure) tmp directory for tmp files.
20461
20462{
dd184caf 20463 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d9898ee8 20464 test -n "$tmp" && test -d "$tmp"
20465} ||
20466{
dd184caf 20467 tmp=./conf$$-$RANDOM
20468 (umask 077 && mkdir "$tmp")
d9898ee8 20469} ||
20470{
20471 echo "$me: cannot create a temporary directory in ." >&2
20472 { (exit 1); exit 1; }
20473}
20474
d9898ee8 20475#
dd184caf 20476# Set up the sed scripts for CONFIG_FILES section.
d9898ee8 20477#
20478
20479# No need to generate the scripts if there are no CONFIG_FILES.
20480# This happens for instance when ./config.status config.h
dd184caf 20481if test -n "$CONFIG_FILES"; then
d9898ee8 20482
20483_ACEOF
20484
dd184caf 20485
20486
20487ac_delim='%!_!# '
20488for ac_last_try in false false false false false :; do
20489 cat >conf$$subs.sed <<_ACEOF
20490SHELL!$SHELL$ac_delim
20491PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20492PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20493PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20494PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20495PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20496PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20497exec_prefix!$exec_prefix$ac_delim
20498prefix!$prefix$ac_delim
20499program_transform_name!$program_transform_name$ac_delim
20500bindir!$bindir$ac_delim
20501sbindir!$sbindir$ac_delim
20502libexecdir!$libexecdir$ac_delim
20503datarootdir!$datarootdir$ac_delim
20504datadir!$datadir$ac_delim
20505sysconfdir!$sysconfdir$ac_delim
20506sharedstatedir!$sharedstatedir$ac_delim
20507localstatedir!$localstatedir$ac_delim
20508includedir!$includedir$ac_delim
20509oldincludedir!$oldincludedir$ac_delim
20510docdir!$docdir$ac_delim
20511infodir!$infodir$ac_delim
20512htmldir!$htmldir$ac_delim
20513dvidir!$dvidir$ac_delim
20514pdfdir!$pdfdir$ac_delim
20515psdir!$psdir$ac_delim
20516libdir!$libdir$ac_delim
20517localedir!$localedir$ac_delim
20518mandir!$mandir$ac_delim
20519DEFS!$DEFS$ac_delim
20520ECHO_C!$ECHO_C$ac_delim
20521ECHO_N!$ECHO_N$ac_delim
20522ECHO_T!$ECHO_T$ac_delim
20523LIBS!$LIBS$ac_delim
20524build_alias!$build_alias$ac_delim
20525host_alias!$host_alias$ac_delim
20526target_alias!$target_alias$ac_delim
20527INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20528INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20529INSTALL_DATA!$INSTALL_DATA$ac_delim
20530am__isrc!$am__isrc$ac_delim
20531CYGPATH_W!$CYGPATH_W$ac_delim
20532PACKAGE!$PACKAGE$ac_delim
20533VERSION!$VERSION$ac_delim
20534ACLOCAL!$ACLOCAL$ac_delim
20535AUTOCONF!$AUTOCONF$ac_delim
20536AUTOMAKE!$AUTOMAKE$ac_delim
20537AUTOHEADER!$AUTOHEADER$ac_delim
20538MAKEINFO!$MAKEINFO$ac_delim
20539install_sh!$install_sh$ac_delim
20540STRIP!$STRIP$ac_delim
20541INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20542mkdir_p!$mkdir_p$ac_delim
20543AWK!$AWK$ac_delim
20544SET_MAKE!$SET_MAKE$ac_delim
20545am__leading_dot!$am__leading_dot$ac_delim
20546AMTAR!$AMTAR$ac_delim
20547am__tar!$am__tar$ac_delim
20548am__untar!$am__untar$ac_delim
20549LN_S!$LN_S$ac_delim
20550CC!$CC$ac_delim
20551CFLAGS!$CFLAGS$ac_delim
20552LDFLAGS!$LDFLAGS$ac_delim
20553CPPFLAGS!$CPPFLAGS$ac_delim
20554ac_ct_CC!$ac_ct_CC$ac_delim
20555EXEEXT!$EXEEXT$ac_delim
20556OBJEXT!$OBJEXT$ac_delim
20557DEPDIR!$DEPDIR$ac_delim
20558am__include!$am__include$ac_delim
20559am__quote!$am__quote$ac_delim
20560AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20561AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20562AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20563CCDEPMODE!$CCDEPMODE$ac_delim
20564am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20565am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20566build!$build$ac_delim
20567build_cpu!$build_cpu$ac_delim
20568build_vendor!$build_vendor$ac_delim
20569build_os!$build_os$ac_delim
20570host!$host$ac_delim
20571host_cpu!$host_cpu$ac_delim
20572host_vendor!$host_vendor$ac_delim
20573host_os!$host_os$ac_delim
20574SED!$SED$ac_delim
20575GREP!$GREP$ac_delim
20576EGREP!$EGREP$ac_delim
20577ECHO!$ECHO$ac_delim
20578AR!$AR$ac_delim
20579RANLIB!$RANLIB$ac_delim
20580CPP!$CPP$ac_delim
20581CXX!$CXX$ac_delim
20582CXXFLAGS!$CXXFLAGS$ac_delim
20583ac_ct_CXX!$ac_ct_CXX$ac_delim
20584CXXDEPMODE!$CXXDEPMODE$ac_delim
20585am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20586am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20587_ACEOF
20588
20589 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20590 break
20591 elif $ac_last_try; then
20592 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20593echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20594 { (exit 1); exit 1; }; }
20595 else
20596 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d9898ee8 20597 fi
dd184caf 20598done
d9898ee8 20599
dd184caf 20600ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20601if test -n "$ac_eof"; then
20602 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20603 ac_eof=`expr $ac_eof + 1`
20604fi
20605
20606cat >>$CONFIG_STATUS <<_ACEOF
20607cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20608/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
d9898ee8 20609_ACEOF
dd184caf 20610sed '
20611s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20612s/^/s,@/; s/!/@,|#_!!_#|/
20613:n
20614t n
20615s/'"$ac_delim"'$/,g/; t
20616s/$/\\/; p
20617N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20618' >>$CONFIG_STATUS <conf$$subs.sed
20619rm -f conf$$subs.sed
20620cat >>$CONFIG_STATUS <<_ACEOF
20621CEOF$ac_eof
20622_ACEOF
20623
20624
20625ac_delim='%!_!# '
20626for ac_last_try in false false false false false :; do
20627 cat >conf$$subs.sed <<_ACEOF
20628CXXCPP!$CXXCPP$ac_delim
20629F77!$F77$ac_delim
20630FFLAGS!$FFLAGS$ac_delim
20631ac_ct_F77!$ac_ct_F77$ac_delim
20632LIBTOOL!$LIBTOOL$ac_delim
20633hashlibs!$hashlibs$ac_delim
20634TESTPROGS!$TESTPROGS$ac_delim
20635LIBOBJS!$LIBOBJS$ac_delim
20636LTLIBOBJS!$LTLIBOBJS$ac_delim
20637_ACEOF
20638
20639 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
20640 break
20641 elif $ac_last_try; then
20642 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20643echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20644 { (exit 1); exit 1; }; }
20645 else
20646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20647 fi
20648done
20649
20650ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20651if test -n "$ac_eof"; then
20652 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20653 ac_eof=`expr $ac_eof + 1`
20654fi
20655
20656cat >>$CONFIG_STATUS <<_ACEOF
20657cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20658/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20659_ACEOF
20660sed '
20661s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20662s/^/s,@/; s/!/@,|#_!!_#|/
20663:n
20664t n
20665s/'"$ac_delim"'$/,g/; t
20666s/$/\\/; p
20667N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20668' >>$CONFIG_STATUS <conf$$subs.sed
20669rm -f conf$$subs.sed
20670cat >>$CONFIG_STATUS <<_ACEOF
20671:end
20672s/|#_!!_#|//g
20673CEOF$ac_eof
20674_ACEOF
20675
20676
20677# VPATH may cause trouble with some makes, so we remove $(srcdir),
20678# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20679# trailing colons and then remove the whole line if VPATH becomes empty
20680# (actually we leave an empty line to preserve line numbers).
20681if test "x$srcdir" = x.; then
20682 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20683s/:*\$(srcdir):*/:/
20684s/:*\${srcdir}:*/:/
20685s/:*@srcdir@:*/:/
20686s/^\([^=]*=[ ]*\):*/\1/
20687s/:*$//
20688s/^[^=]*=[ ]*$//
20689}'
20690fi
20691
d9898ee8 20692cat >>$CONFIG_STATUS <<\_ACEOF
dd184caf 20693fi # test -n "$CONFIG_FILES"
20694
20695
20696for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20697do
20698 case $ac_tag in
20699 :[FHLC]) ac_mode=$ac_tag; continue;;
20700 esac
20701 case $ac_mode$ac_tag in
20702 :[FHL]*:*);;
20703 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20704echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20705 { (exit 1); exit 1; }; };;
20706 :[FH]-) ac_tag=-:-;;
20707 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20708 esac
20709 ac_save_IFS=$IFS
20710 IFS=:
20711 set x $ac_tag
20712 IFS=$ac_save_IFS
20713 shift
20714 ac_file=$1
20715 shift
20716
20717 case $ac_mode in
20718 :L) ac_source=$1;;
20719 :[FH])
20720 ac_file_inputs=
20721 for ac_f
20722 do
20723 case $ac_f in
20724 -) ac_f="$tmp/stdin";;
20725 *) # Look for the file first in the build tree, then in the source tree
20726 # (if the path is not absolute). The absolute path cannot be DOS-style,
20727 # because $ac_f cannot contain `:'.
20728 test -f "$ac_f" ||
20729 case $ac_f in
20730 [\\/$]*) false;;
20731 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20732 esac ||
20733 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20734echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20735 { (exit 1); exit 1; }; };;
20736 esac
20737 ac_file_inputs="$ac_file_inputs $ac_f"
20738 done
20739
20740 # Let's still pretend it is `configure' which instantiates (i.e., don't
20741 # use $as_me), people would be surprised to read:
20742 # /* config.h. Generated by config.status. */
20743 configure_input="Generated from "`IFS=:
20744 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20745 if test x"$ac_file" != x-; then
20746 configure_input="$ac_file. $configure_input"
20747 { echo "$as_me:$LINENO: creating $ac_file" >&5
20748echo "$as_me: creating $ac_file" >&6;}
20749 fi
20750
20751 case $ac_tag in
20752 *:-:* | *:-) cat >"$tmp/stdin";;
20753 esac
20754 ;;
d9898ee8 20755 esac
20756
dd184caf 20757 ac_dir=`$as_dirname -- "$ac_file" ||
d9898ee8 20758$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20759 X"$ac_file" : 'X\(//\)[^/]' \| \
20760 X"$ac_file" : 'X\(//\)$' \| \
dd184caf 20761 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 20762echo X"$ac_file" |
dd184caf 20763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20764 s//\1/
20765 q
20766 }
20767 /^X\(\/\/\)[^/].*/{
20768 s//\1/
20769 q
20770 }
20771 /^X\(\/\/\)$/{
20772 s//\1/
20773 q
20774 }
20775 /^X\(\/\).*/{
20776 s//\1/
20777 q
20778 }
20779 s/.*/./; q'`
20780 { as_dir="$ac_dir"
20781 case $as_dir in #(
20782 -*) as_dir=./$as_dir;;
20783 esac
20784 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 20785 as_dirs=
dd184caf 20786 while :; do
20787 case $as_dir in #(
20788 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20789 *) as_qdir=$as_dir;;
20790 esac
20791 as_dirs="'$as_qdir' $as_dirs"
20792 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 20793$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20794 X"$as_dir" : 'X\(//\)[^/]' \| \
20795 X"$as_dir" : 'X\(//\)$' \| \
dd184caf 20796 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 20797echo X"$as_dir" |
dd184caf 20798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20799 s//\1/
20800 q
20801 }
20802 /^X\(\/\/\)[^/].*/{
20803 s//\1/
20804 q
20805 }
20806 /^X\(\/\/\)$/{
20807 s//\1/
20808 q
20809 }
20810 /^X\(\/\).*/{
20811 s//\1/
20812 q
20813 }
20814 s/.*/./; q'`
20815 test -d "$as_dir" && break
d9898ee8 20816 done
dd184caf 20817 test -z "$as_dirs" || eval "mkdir $as_dirs"
20818 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20819echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 20820 { (exit 1); exit 1; }; }; }
d9898ee8 20821 ac_builddir=.
20822
dd184caf 20823case "$ac_dir" in
20824.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20825*)
d9898ee8 20826 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
dd184caf 20827 # A ".." for each directory in $ac_dir_suffix.
20828 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20829 case $ac_top_builddir_sub in
20830 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20831 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20832 esac ;;
20833esac
20834ac_abs_top_builddir=$ac_pwd
20835ac_abs_builddir=$ac_pwd$ac_dir_suffix
20836# for backward compatibility:
20837ac_top_builddir=$ac_top_build_prefix
d9898ee8 20838
20839case $srcdir in
dd184caf 20840 .) # We are building in place.
d9898ee8 20841 ac_srcdir=.
dd184caf 20842 ac_top_srcdir=$ac_top_builddir_sub
20843 ac_abs_top_srcdir=$ac_pwd ;;
20844 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 20845 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 20846 ac_top_srcdir=$srcdir
20847 ac_abs_top_srcdir=$srcdir ;;
20848 *) # Relative name.
20849 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20850 ac_top_srcdir=$ac_top_build_prefix$srcdir
20851 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 20852esac
dd184caf 20853ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 20854
d9898ee8 20855
dd184caf 20856 case $ac_mode in
20857 :F)
20858 #
20859 # CONFIG_FILE
20860 #
d9898ee8 20861
20862 case $INSTALL in
20863 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
dd184caf 20864 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d9898ee8 20865 esac
dd184caf 20866 ac_MKDIR_P=$MKDIR_P
20867 case $MKDIR_P in
20868 [\\/$]* | ?:[\\/]* ) ;;
20869 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20870 esac
20871_ACEOF
d9898ee8 20872
dd184caf 20873cat >>$CONFIG_STATUS <<\_ACEOF
20874# If the template does not know about datarootdir, expand it.
20875# FIXME: This hack should be removed a few years after 2.60.
20876ac_datarootdir_hack=; ac_datarootdir_seen=
20877
20878case `sed -n '/datarootdir/ {
20879 p
20880 q
20881}
20882/@datadir@/p
20883/@docdir@/p
20884/@infodir@/p
20885/@localedir@/p
20886/@mandir@/p
20887' $ac_file_inputs` in
20888*datarootdir*) ac_datarootdir_seen=yes;;
20889*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20890 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20891echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 20892_ACEOF
dd184caf 20893cat >>$CONFIG_STATUS <<_ACEOF
20894 ac_datarootdir_hack='
20895 s&@datadir@&$datadir&g
20896 s&@docdir@&$docdir&g
20897 s&@infodir@&$infodir&g
20898 s&@localedir@&$localedir&g
20899 s&@mandir@&$mandir&g
20900 s&\\\${datarootdir}&$datarootdir&g' ;;
20901esac
20902_ACEOF
20903
20904# Neutralize VPATH when `$srcdir' = `.'.
20905# Shell code in configure.ac might set extrasub.
20906# FIXME: do we really want to maintain this feature?
d9898ee8 20907cat >>$CONFIG_STATUS <<_ACEOF
20908 sed "$ac_vpsub
20909$extrasub
20910_ACEOF
20911cat >>$CONFIG_STATUS <<\_ACEOF
20912:t
20913/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
dd184caf 20914s&@configure_input@&$configure_input&;t t
20915s&@top_builddir@&$ac_top_builddir_sub&;t t
20916s&@srcdir@&$ac_srcdir&;t t
20917s&@abs_srcdir@&$ac_abs_srcdir&;t t
20918s&@top_srcdir@&$ac_top_srcdir&;t t
20919s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20920s&@builddir@&$ac_builddir&;t t
20921s&@abs_builddir@&$ac_abs_builddir&;t t
20922s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20923s&@INSTALL@&$ac_INSTALL&;t t
20924s&@MKDIR_P@&$ac_MKDIR_P&;t t
20925$ac_datarootdir_hack
20926" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20927
20928test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20929 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20930 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20931 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20932which seems to be undefined. Please make sure it is defined." >&5
20933echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20934which seems to be undefined. Please make sure it is defined." >&2;}
20935
20936 rm -f "$tmp/stdin"
d9898ee8 20937 case $ac_file in
dd184caf 20938 -) cat "$tmp/out"; rm -f "$tmp/out";;
20939 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
d9898ee8 20940 esac
dd184caf 20941 ;;
20942 :H)
20943 #
20944 # CONFIG_HEADER
20945 #
d9898ee8 20946_ACEOF
20947
dd184caf 20948# Transform confdefs.h into a sed script `conftest.defines', that
20949# substitutes the proper values into config.h.in to produce config.h.
20950rm -f conftest.defines conftest.tail
20951# First, append a space to every undef/define line, to ease matching.
20952echo 's/$/ /' >conftest.defines
20953# Then, protect against being on the right side of a sed subst, or in
20954# an unquoted here document, in config.status. If some macros were
20955# called several times there might be several #defines for the same
20956# symbol, which is useless. But do not sort them, since the last
20957# AC_DEFINE must be honored.
20958ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20959# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20960# NAME is the cpp macro being defined, VALUE is the value it is being given.
20961# PARAMS is the parameter list in the macro definition--in most cases, it's
20962# just an empty string.
20963ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20964ac_dB='\\)[ (].*,\\1define\\2'
20965ac_dC=' '
20966ac_dD=' ,'
20967
20968uniq confdefs.h |
20969 sed -n '
20970 t rset
20971 :rset
20972 s/^[ ]*#[ ]*define[ ][ ]*//
20973 t ok
20974 d
20975 :ok
20976 s/[\\&,]/\\&/g
20977 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20978 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20979 ' >>conftest.defines
20980
20981# Remove the space that was appended to ease matching.
20982# Then replace #undef with comments. This is necessary, for
d9898ee8 20983# example, in the case of _POSIX_SOURCE, which is predefined and required
20984# on some systems where configure will not decide to define it.
dd184caf 20985# (The regexp can be short, since the line contains either #define or #undef.)
20986echo 's/ $//
20987s,^[ #]*u.*,/* & */,' >>conftest.defines
20988
20989# Break up conftest.defines:
20990ac_max_sed_lines=50
20991
20992# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20993# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20994# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20995# et cetera.
20996ac_in='$ac_file_inputs'
20997ac_out='"$tmp/out1"'
20998ac_nxt='"$tmp/out2"'
20999
21000while :
d9898ee8 21001do
dd184caf 21002 # Write a here document:
21003 cat >>$CONFIG_STATUS <<_ACEOF
21004 # First, check the format of the line:
21005 cat >"\$tmp/defines.sed" <<\\CEOF
21006/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21007/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21008b
21009:def
21010_ACEOF
21011 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
d9898ee8 21012 echo 'CEOF
dd184caf 21013 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21014 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21015 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21016 grep . conftest.tail >/dev/null || break
d9898ee8 21017 rm -f conftest.defines
21018 mv conftest.tail conftest.defines
21019done
dd184caf 21020rm -f conftest.defines conftest.tail
d9898ee8 21021
dd184caf 21022echo "ac_result=$ac_in" >>$CONFIG_STATUS
d9898ee8 21023cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 21024 if test x"$ac_file" != x-; then
dd184caf 21025 echo "/* $configure_input */" >"$tmp/config.h"
21026 cat "$ac_result" >>"$tmp/config.h"
21027 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
d9898ee8 21028 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21029echo "$as_me: $ac_file is unchanged" >&6;}
21030 else
d9898ee8 21031 rm -f $ac_file
dd184caf 21032 mv "$tmp/config.h" $ac_file
d9898ee8 21033 fi
21034 else
dd184caf 21035 echo "/* $configure_input */"
21036 cat "$ac_result"
d9898ee8 21037 fi
dd184caf 21038 rm -f "$tmp/out12"
d9898ee8 21039# Compute $ac_file's index in $config_headers.
ac40fd9e 21040_am_arg=$ac_file
d9898ee8 21041_am_stamp_count=1
21042for _am_header in $config_headers :; do
21043 case $_am_header in
ac40fd9e 21044 $_am_arg | $_am_arg:* )
d9898ee8 21045 break ;;
21046 * )
21047 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21048 esac
21049done
ac40fd9e 21050echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21051$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21052 X"$_am_arg" : 'X\(//\)[^/]' \| \
21053 X"$_am_arg" : 'X\(//\)$' \| \
21054 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21055echo X"$_am_arg" |
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'`/stamp-h$_am_stamp_count
21073 ;;
d9898ee8 21074
dd184caf 21075 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21076echo "$as_me: executing $ac_file commands" >&6;}
21077 ;;
21078 esac
d9898ee8 21079
21080
dd184caf 21081 case $ac_file$ac_mode in
21082 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
d9898ee8 21083 # Strip MF so we end up with the name of the file.
21084 mf=`echo "$mf" | sed -e 's/:.*$//'`
21085 # Check whether this is an Automake generated Makefile or not.
21086 # We used to match only the files named `Makefile.in', but
21087 # some people rename them; so instead we look at the file content.
21088 # Grep'ing the first line is not enough: some people post-process
21089 # each Makefile.in and add a new line on top of each file to say so.
dd184caf 21090 # Grep'ing the whole file is not good either: AIX grep has a line
21091 # limit of 2048, but all sed's we know have understand at least 4000.
ac40fd9e 21092 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
dd184caf 21093 dirpart=`$as_dirname -- "$mf" ||
d9898ee8 21094$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21095 X"$mf" : 'X\(//\)[^/]' \| \
21096 X"$mf" : 'X\(//\)$' \| \
dd184caf 21097 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21098echo X"$mf" |
dd184caf 21099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21100 s//\1/
21101 q
21102 }
21103 /^X\(\/\/\)[^/].*/{
21104 s//\1/
21105 q
21106 }
21107 /^X\(\/\/\)$/{
21108 s//\1/
21109 q
21110 }
21111 /^X\(\/\).*/{
21112 s//\1/
21113 q
21114 }
21115 s/.*/./; q'`
d9898ee8 21116 else
21117 continue
21118 fi
21119 # Extract the definition of DEPDIR, am__include, and am__quote
21120 # from the Makefile without running `make'.
21121 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21122 test -z "$DEPDIR" && continue
21123 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21124 test -z "am__include" && continue
21125 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21126 # When using ansi2knr, U may be empty or an underscore; expand it
21127 U=`sed -n 's/^U = //p' < "$mf"`
21128 # Find all dependency output files, they are included files with
21129 # $(DEPDIR) in their names. We invoke sed twice because it is the
21130 # simplest approach to changing $(DEPDIR) to its actual value in the
21131 # expansion.
21132 for file in `sed -n "
21133 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21134 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21135 # Make sure the directory exists.
21136 test -f "$dirpart/$file" && continue
dd184caf 21137 fdir=`$as_dirname -- "$file" ||
d9898ee8 21138$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21139 X"$file" : 'X\(//\)[^/]' \| \
21140 X"$file" : 'X\(//\)$' \| \
dd184caf 21141 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21142echo X"$file" |
dd184caf 21143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21144 s//\1/
21145 q
21146 }
21147 /^X\(\/\/\)[^/].*/{
21148 s//\1/
21149 q
21150 }
21151 /^X\(\/\/\)$/{
21152 s//\1/
21153 q
21154 }
21155 /^X\(\/\).*/{
21156 s//\1/
21157 q
21158 }
21159 s/.*/./; q'`
21160 { as_dir=$dirpart/$fdir
21161 case $as_dir in #(
21162 -*) as_dir=./$as_dir;;
21163 esac
21164 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 21165 as_dirs=
dd184caf 21166 while :; do
21167 case $as_dir in #(
21168 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21169 *) as_qdir=$as_dir;;
21170 esac
21171 as_dirs="'$as_qdir' $as_dirs"
21172 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 21173$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21174 X"$as_dir" : 'X\(//\)[^/]' \| \
21175 X"$as_dir" : 'X\(//\)$' \| \
dd184caf 21176 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21177echo X"$as_dir" |
dd184caf 21178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21179 s//\1/
21180 q
21181 }
21182 /^X\(\/\/\)[^/].*/{
21183 s//\1/
21184 q
21185 }
21186 /^X\(\/\/\)$/{
21187 s//\1/
21188 q
21189 }
21190 /^X\(\/\).*/{
21191 s//\1/
21192 q
21193 }
21194 s/.*/./; q'`
21195 test -d "$as_dir" && break
d9898ee8 21196 done
dd184caf 21197 test -z "$as_dirs" || eval "mkdir $as_dirs"
21198 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21199echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 21200 { (exit 1); exit 1; }; }; }
d9898ee8 21201 # echo "creating $dirpart/$file"
21202 echo '# dummy' > "$dirpart/$file"
21203 done
21204done
21205 ;;
dd184caf 21206
d9898ee8 21207 esac
dd184caf 21208done # for ac_tag
d9898ee8 21209
d9898ee8 21210
21211{ (exit 0); exit 0; }
21212_ACEOF
21213chmod +x $CONFIG_STATUS
21214ac_clean_files=$ac_clean_files_save
21215
21216
21217# configure is writing to config.log, and then calls config.status.
21218# config.status does its own redirection, appending to config.log.
21219# Unfortunately, on DOS this fails, as config.log is still kept open
21220# by configure, so config.status won't be able to write to it; its
21221# output is simply discarded. So we exec the FD to /dev/null,
21222# effectively closing config.log, so it can be properly (re)opened and
21223# appended to by config.status. When coming back to configure, we
21224# need to make the FD available again.
21225if test "$no_create" != yes; then
21226 ac_cs_success=:
21227 ac_config_status_args=
21228 test "$silent" = yes &&
21229 ac_config_status_args="$ac_config_status_args --quiet"
21230 exec 5>/dev/null
21231 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21232 exec 5>>config.log
21233 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21234 # would make configure fail if this is the last instruction.
21235 $ac_cs_success || { (exit 1); exit 1; }
21236fi
21237