Imported Debian patch 0.60.1-1
[hcoop/debian/courier-authlib.git] / bdbobj / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
64ff59ba 3# Generated by GNU Autoconf 2.61 for bdbobj 0.10.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
64ff59ba 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
64ff59ba 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
64ff59ba 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
d9898ee8 53fi
d9898ee8 54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
61
62
64ff59ba 63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
d9898ee8 96# Work around bugs in pre-3.0 UWIN ksh.
64ff59ba 97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
d9898ee8 100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
64ff59ba 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 114 fi
115done
116
117# Required to use basename.
64ff59ba 118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 120 as_expr=expr
121else
122 as_expr=false
123fi
124
64ff59ba 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
64ff59ba 133as_me=`$as_basename -- "$0" ||
d9898ee8 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
64ff59ba 136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 137echo X/"$0" |
64ff59ba 138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
d9898ee8 151
64ff59ba 152# CDPATH.
153$as_unset CDPATH
d9898ee8 154
d9898ee8 155
64ff59ba 156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
d9898ee8 161fi
162
64ff59ba 163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
d9898ee8 179
64ff59ba 180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
d9898ee8 187
64ff59ba 188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
d9898ee8 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
64ff59ba 228 case $as_dir in
d9898ee8 229 /*)
64ff59ba 230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
d9898ee8 330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
d9898ee8 332 test "x$as_lineno_1" != "x$as_lineno_2" &&
64ff59ba 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
64ff59ba 432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
d9898ee8 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
64ff59ba 438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
d9898ee8 444 sed '
64ff59ba 445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
d9898ee8 449 N
64ff59ba 450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 452 t loop
64ff59ba 453 s/-\n.*//
d9898ee8 454 ' >$as_me.lineno &&
64ff59ba 455 chmod +x "$as_me.lineno" ||
d9898ee8 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
64ff59ba 461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
d9898ee8 463 # Exit status is that of the last command.
464 exit
465}
466
467
64ff59ba 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
d9898ee8 483esac
484
64ff59ba 485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
64ff59ba 493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
d9898ee8 499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
64ff59ba 501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 507 as_ln_s='cp -p'
d9898ee8 508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
64ff59ba 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
d9898ee8 515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
64ff59ba 523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
d9898ee8 545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
d9898ee8 553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584$*
585EOF
586 exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
64ff59ba 708exec 7<&0 </dev/null 6>&1
709
d9898ee8 710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
d9898ee8 715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
64ff59ba 719ac_clean_files=
d9898ee8 720ac_config_libobj_dir=.
64ff59ba 721LIBOBJS=
d9898ee8 722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
d9898ee8 728# Identity of this package.
729PACKAGE_NAME='bdbobj'
730PACKAGE_TARNAME='bdbobj'
731PACKAGE_VERSION='0.10'
732PACKAGE_STRING='bdbobj 0.10'
733PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735ac_unique_file="bdbobj.h"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
64ff59ba 739#ifdef HAVE_SYS_TYPES_H
d9898ee8 740# include <sys/types.h>
741#endif
64ff59ba 742#ifdef HAVE_SYS_STAT_H
d9898ee8 743# include <sys/stat.h>
744#endif
64ff59ba 745#ifdef STDC_HEADERS
d9898ee8 746# include <stdlib.h>
747# include <stddef.h>
748#else
64ff59ba 749# ifdef HAVE_STDLIB_H
d9898ee8 750# include <stdlib.h>
751# endif
752#endif
64ff59ba 753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 755# include <memory.h>
756# endif
757# include <string.h>
758#endif
64ff59ba 759#ifdef HAVE_STRINGS_H
d9898ee8 760# include <strings.h>
761#endif
64ff59ba 762#ifdef HAVE_INTTYPES_H
d9898ee8 763# include <inttypes.h>
d9898ee8 764#endif
64ff59ba 765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
d9898ee8 769# include <unistd.h>
770#endif"
771
64ff59ba 772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809INSTALL_PROGRAM
810INSTALL_SCRIPT
811INSTALL_DATA
812am__isrc
813CYGPATH_W
814PACKAGE
815VERSION
816ACLOCAL
817AUTOCONF
818AUTOMAKE
819AUTOHEADER
820MAKEINFO
821install_sh
822STRIP
823INSTALL_STRIP_PROGRAM
824mkdir_p
825AWK
826SET_MAKE
827am__leading_dot
828AMTAR
829am__tar
830am__untar
831CC
832CFLAGS
833LDFLAGS
834CPPFLAGS
835ac_ct_CC
836EXEEXT
837OBJEXT
838DEPDIR
839am__include
840am__quote
841AMDEP_TRUE
842AMDEP_FALSE
843AMDEPBACKSLASH
844CCDEPMODE
845am__fastdepCC_TRUE
846am__fastdepCC_FALSE
847CPP
848GREP
849EGREP
850CXX
851CXXFLAGS
852ac_ct_CXX
853CXXDEPMODE
854am__fastdepCXX_TRUE
855am__fastdepCXX_FALSE
856build
857build_cpu
858build_vendor
859build_os
860host
861host_cpu
862host_vendor
863host_os
864SED
865LN_S
866ECHO
867AR
868RANLIB
869CXXCPP
870F77
871FFLAGS
872ac_ct_F77
873LIBTOOL
874LIBDB
875FOUND_DB_TRUE
876FOUND_DB_FALSE
877LIBOBJS
878LTLIBOBJS'
d9898ee8 879ac_subst_files=''
64ff59ba 880 ac_precious_vars='build_alias
881host_alias
882target_alias
883CC
884CFLAGS
885LDFLAGS
886LIBS
887CPPFLAGS
888CPP
889CXX
890CXXFLAGS
891CCC
892CXXCPP
893F77
894FFLAGS'
895
d9898ee8 896
897# Initialize some variables set by options.
898ac_init_help=
899ac_init_version=false
900# The variables have the same names as the options, with
901# dashes changed to underlines.
902cache_file=/dev/null
903exec_prefix=NONE
904no_create=
905no_recursion=
906prefix=NONE
907program_prefix=NONE
908program_suffix=NONE
909program_transform_name=s,x,x,
910silent=
911site=
912srcdir=
913verbose=
914x_includes=NONE
915x_libraries=NONE
916
917# Installation directory options.
918# These are left unexpanded so users can "make install exec_prefix=/foo"
919# and all the variables that are supposed to be based on exec_prefix
920# by default will actually change.
921# Use braces instead of parens because sh, perl, etc. also accept them.
64ff59ba 922# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 923bindir='${exec_prefix}/bin'
924sbindir='${exec_prefix}/sbin'
925libexecdir='${exec_prefix}/libexec'
64ff59ba 926datarootdir='${prefix}/share'
927datadir='${datarootdir}'
d9898ee8 928sysconfdir='${prefix}/etc'
929sharedstatedir='${prefix}/com'
930localstatedir='${prefix}/var'
d9898ee8 931includedir='${prefix}/include'
932oldincludedir='/usr/include'
64ff59ba 933docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934infodir='${datarootdir}/info'
935htmldir='${docdir}'
936dvidir='${docdir}'
937pdfdir='${docdir}'
938psdir='${docdir}'
939libdir='${exec_prefix}/lib'
940localedir='${datarootdir}/locale'
941mandir='${datarootdir}/man'
d9898ee8 942
943ac_prev=
64ff59ba 944ac_dashdash=
d9898ee8 945for ac_option
946do
947 # If the previous option needs an argument, assign it.
948 if test -n "$ac_prev"; then
64ff59ba 949 eval $ac_prev=\$ac_option
d9898ee8 950 ac_prev=
951 continue
952 fi
953
64ff59ba 954 case $ac_option in
955 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956 *) ac_optarg=yes ;;
957 esac
d9898ee8 958
959 # Accept the important Cygnus configure options, so we can diagnose typos.
960
64ff59ba 961 case $ac_dashdash$ac_option in
962 --)
963 ac_dashdash=yes ;;
d9898ee8 964
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
966 ac_prev=bindir ;;
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968 bindir=$ac_optarg ;;
969
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
974
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
981
982 --config-cache | -C)
983 cache_file=config.cache ;;
984
64ff59ba 985 -datadir | --datadir | --datadi | --datad)
d9898ee8 986 ac_prev=datadir ;;
64ff59ba 987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 988 datadir=$ac_optarg ;;
989
64ff59ba 990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
996
d9898ee8 997 -disable-* | --disable-*)
998 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
64ff59ba 1000 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1001 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002 { (exit 1); exit 1; }; }
64ff59ba 1003 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004 eval enable_$ac_feature=no ;;
1005
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1010
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
d9898ee8 1015
1016 -enable-* | --enable-*)
1017 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
64ff59ba 1019 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1020 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021 { (exit 1); exit 1; }; }
64ff59ba 1022 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023 eval enable_$ac_feature=\$ac_optarg ;;
d9898ee8 1024
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
1032 exec_prefix=$ac_optarg ;;
1033
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1036 with_gas=yes ;;
1037
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
1044
1045 -host | --host | --hos | --ho)
1046 ac_prev=host_alias ;;
1047 -host=* | --host=* | --hos=* | --ho=*)
1048 host_alias=$ac_optarg ;;
1049
64ff59ba 1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 ac_prev=htmldir ;;
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 | --ht=*)
1054 htmldir=$ac_optarg ;;
1055
d9898ee8 1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
1061 includedir=$ac_optarg ;;
1062
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 ac_prev=infodir ;;
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066 infodir=$ac_optarg ;;
1067
1068 -libdir | --libdir | --libdi | --libd)
1069 ac_prev=libdir ;;
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071 libdir=$ac_optarg ;;
1072
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
1078 libexecdir=$ac_optarg ;;
1079
64ff59ba 1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1084
d9898ee8 1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
64ff59ba 1086 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
64ff59ba 1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1090 localstatedir=$ac_optarg ;;
1091
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 ac_prev=mandir ;;
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095 mandir=$ac_optarg ;;
1096
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1099 with_fp=no ;;
1100
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102 | --no-cr | --no-c | -n)
1103 no_create=yes ;;
1104
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 no_recursion=yes ;;
1108
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116 oldincludedir=$ac_optarg ;;
1117
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 ac_prev=prefix ;;
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121 prefix=$ac_optarg ;;
1122
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128 program_prefix=$ac_optarg ;;
1129
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135 program_suffix=$ac_optarg ;;
1136
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
1152 program_transform_name=$ac_optarg ;;
1153
64ff59ba 1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 ac_prev=pdfdir ;;
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1158
1159 -psdir | --psdir | --psdi | --psd | --ps)
1160 ac_prev=psdir ;;
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 psdir=$ac_optarg ;;
1163
d9898ee8 1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1166 silent=yes ;;
1167
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 ac_prev=sbindir ;;
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 | --sbi=* | --sb=*)
1172 sbindir=$ac_optarg ;;
1173
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1177 | --sha | --sh)
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 | --sha=* | --sh=*)
1183 sharedstatedir=$ac_optarg ;;
1184
1185 -site | --site | --sit)
1186 ac_prev=site ;;
1187 -site=* | --site=* | --sit=*)
1188 site=$ac_optarg ;;
1189
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 ac_prev=srcdir ;;
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193 srcdir=$ac_optarg ;;
1194
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200 sysconfdir=$ac_optarg ;;
1201
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
1203 ac_prev=target_alias ;;
1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205 target_alias=$ac_optarg ;;
1206
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 verbose=yes ;;
1209
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
1212
1213 -with-* | --with-*)
1214 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
64ff59ba 1216 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1217 { echo "$as_me: error: invalid package name: $ac_package" >&2
1218 { (exit 1); exit 1; }; }
64ff59ba 1219 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1220 eval with_$ac_package=\$ac_optarg ;;
d9898ee8 1221
1222 -without-* | --without-*)
1223 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
64ff59ba 1225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1226 { echo "$as_me: error: invalid package name: $ac_package" >&2
1227 { (exit 1); exit 1; }; }
64ff59ba 1228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229 eval with_$ac_package=no ;;
d9898ee8 1230
1231 --x)
1232 # Obsolete; use --with-x.
1233 with_x=yes ;;
1234
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1241
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1248
1249 -*) { echo "$as_me: error: unrecognized option: $ac_option
1250Try \`$0 --help' for more information." >&2
1251 { (exit 1); exit 1; }; }
1252 ;;
1253
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259 { (exit 1); exit 1; }; }
64ff59ba 1260 eval $ac_envvar=\$ac_optarg
d9898ee8 1261 export $ac_envvar ;;
1262
1263 *)
1264 # FIXME: should be removed in autoconf 3.0.
1265 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269 ;;
1270
1271 esac
1272done
1273
1274if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 { echo "$as_me: error: missing argument to $ac_option" >&2
1277 { (exit 1); exit 1; }; }
1278fi
1279
64ff59ba 1280# Be sure to have absolute directory names.
1281for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
d9898ee8 1285do
64ff59ba 1286 eval ac_val=\$$ac_var
d9898ee8 1287 case $ac_val in
64ff59ba 1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1290 esac
64ff59ba 1291 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292 { (exit 1); exit 1; }; }
d9898ee8 1293done
1294
1295# There might be people who depend on the old broken behavior: `$host'
1296# used to hold the argument of --host etc.
1297# FIXME: To remove some day.
1298build=$build_alias
1299host=$host_alias
1300target=$target_alias
1301
1302# FIXME: To remove some day.
1303if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
1306 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307 If a cross compiler is detected then cross compile mode will be used." >&2
1308 elif test "x$build_alias" != "x$host_alias"; then
1309 cross_compiling=yes
1310 fi
1311fi
1312
1313ac_tool_prefix=
1314test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316test "$silent" = yes && exec 6>/dev/null
1317
1318
64ff59ba 1319ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320ac_ls_di=`ls -di .` &&
1321ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 { echo "$as_me: error: Working directory cannot be determined" >&2
1323 { (exit 1); exit 1; }; }
1324test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 { echo "$as_me: error: pwd does not report name of working directory" >&2
1326 { (exit 1); exit 1; }; }
1327
1328
d9898ee8 1329# Find the source files, if location was not specified.
1330if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
64ff59ba 1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$0" ||
d9898ee8 1334$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$0" : 'X\(//\)[^/]' \| \
1336 X"$0" : 'X\(//\)$' \| \
64ff59ba 1337 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 1338echo X"$0" |
64ff59ba 1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\).*/{
1352 s//\1/
1353 q
1354 }
1355 s/.*/./; q'`
d9898ee8 1356 srcdir=$ac_confdir
64ff59ba 1357 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1358 srcdir=..
1359 fi
1360else
1361 ac_srcdir_defaulted=no
1362fi
64ff59ba 1363if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1366 { (exit 1); exit 1; }; }
d9898ee8 1367fi
64ff59ba 1368ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369ac_abs_confdir=`(
1370 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
d9898ee8 1371 { (exit 1); exit 1; }; }
64ff59ba 1372 pwd)`
1373# When building in place, set srcdir=.
1374if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376fi
1377# Remove unnecessary trailing slashes from srcdir.
1378# Double slashes in file names in object file debugging info
1379# mess up M-x gdb in Emacs.
1380case $srcdir in
1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382esac
1383for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388done
d9898ee8 1389
1390#
1391# Report the --help message.
1392#
1393if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397\`configure' configures bdbobj 0.10 to adapt to many kinds of systems.
1398
1399Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404Defaults for the options are specified in brackets.
1405
1406Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
d9898ee8 1417Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423By default, \`make install' will install all the files in
1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426for instance \`--prefix=\$HOME'.
1427
1428For better control, use the options below.
1429
1430Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
d9898ee8 1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
64ff59ba 1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/bdbobj]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1450_ACEOF
1451
1452 cat <<\_ACEOF
1453
1454Program names:
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458
1459System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462_ACEOF
1463fi
1464
1465if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive ) echo "Configuration of bdbobj 0.10:";;
1468 esac
1469 cat <<\_ACEOF
1470
1471Optional Features:
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1474 --disable-dependency-tracking speeds up one-time build
1475 --enable-dependency-tracking do not reject slow dependency extractors
64ff59ba 1476 --enable-shared[=PKGS] build shared libraries [default=yes]
1477 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1478 --enable-fast-install[=PKGS]
1479 optimize for fast installation [default=yes]
1480 --disable-libtool-lock avoid locking (might break parallel builds)
1481
1482Optional Packages:
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1486 --with-pic try to use only PIC/non-PIC objects [default=use
1487 both]
64ff59ba 1488 --with-tags[=TAGS] include additional configurations [automatic]
d9898ee8 1489
1490Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
64ff59ba 1495 LIBS libraries to pass to the linker, e.g. -l<library>
1496 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
d9898ee8 1498 CPP C preprocessor
1499 CXX C++ compiler command
1500 CXXFLAGS C++ compiler flags
1501 CXXCPP C++ preprocessor
1502 F77 Fortran 77 compiler command
1503 FFLAGS Fortran 77 compiler flags
1504
1505Use these variables to override the choices made by `configure' or to help
1506it to find libraries and programs with nonstandard names/locations.
1507
1508Report bugs to <courier-users@lists.sourceforge.net>.
1509_ACEOF
64ff59ba 1510ac_status=$?
d9898ee8 1511fi
1512
1513if test "$ac_init_help" = "recursive"; then
1514 # If there are subdirs, report their specific --help.
d9898ee8 1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
64ff59ba 1516 test -d "$ac_dir" || continue
d9898ee8 1517 ac_builddir=.
1518
64ff59ba 1519case "$ac_dir" in
1520.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521*)
d9898ee8 1522 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 esac ;;
1529esac
1530ac_abs_top_builddir=$ac_pwd
1531ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532# for backward compatibility:
1533ac_top_builddir=$ac_top_build_prefix
d9898ee8 1534
1535case $srcdir in
64ff59ba 1536 .) # We are building in place.
d9898ee8 1537 ac_srcdir=.
64ff59ba 1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1541 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1544 *) # Relative name.
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1548esac
64ff59ba 1549ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for guested configure.
1553 if test -f "$ac_srcdir/configure.gnu"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556 elif test -f "$ac_srcdir/configure"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1559 else
1560 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
64ff59ba 1561 fi || ac_status=$?
1562 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1563 done
1564fi
1565
64ff59ba 1566test -n "$ac_init_help" && exit $ac_status
d9898ee8 1567if $ac_init_version; then
1568 cat <<\_ACEOF
1569bdbobj configure 0.10
64ff59ba 1570generated by GNU Autoconf 2.61
d9898ee8 1571
64ff59ba 1572Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15732002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 1574This configure script is free software; the Free Software Foundation
1575gives unlimited permission to copy, distribute and modify it.
1576_ACEOF
64ff59ba 1577 exit
d9898ee8 1578fi
64ff59ba 1579cat >config.log <<_ACEOF
d9898ee8 1580This file contains any messages produced by compilers while
1581running configure, to aid debugging if configure makes a mistake.
1582
1583It was created by bdbobj $as_me 0.10, which was
64ff59ba 1584generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 1585
1586 $ $0 $@
1587
1588_ACEOF
64ff59ba 1589exec 5>>config.log
d9898ee8 1590{
1591cat <<_ASUNAME
1592## --------- ##
1593## Platform. ##
1594## --------- ##
1595
1596hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1597uname -m = `(uname -m) 2>/dev/null || echo unknown`
1598uname -r = `(uname -r) 2>/dev/null || echo unknown`
1599uname -s = `(uname -s) 2>/dev/null || echo unknown`
1600uname -v = `(uname -v) 2>/dev/null || echo unknown`
1601
1602/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1603/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1604
1605/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1606/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1607/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
64ff59ba 1608/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1609/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1610/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1611/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1612
1613_ASUNAME
1614
1615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616for as_dir in $PATH
1617do
1618 IFS=$as_save_IFS
1619 test -z "$as_dir" && as_dir=.
1620 echo "PATH: $as_dir"
1621done
64ff59ba 1622IFS=$as_save_IFS
d9898ee8 1623
1624} >&5
1625
1626cat >&5 <<_ACEOF
1627
1628
1629## ----------- ##
1630## Core tests. ##
1631## ----------- ##
1632
1633_ACEOF
1634
1635
1636# Keep a trace of the command line.
1637# Strip out --no-create and --no-recursion so they do not pile up.
1638# Strip out --silent because we don't want to record it for future runs.
1639# Also quote any args containing shell meta-characters.
1640# Make two passes to allow for proper duplicate-argument suppression.
1641ac_configure_args=
1642ac_configure_args0=
1643ac_configure_args1=
d9898ee8 1644ac_must_keep_next=false
1645for ac_pass in 1 2
1646do
1647 for ac_arg
1648 do
1649 case $ac_arg in
1650 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1652 | -silent | --silent | --silen | --sile | --sil)
1653 continue ;;
64ff59ba 1654 *\'*)
d9898ee8 1655 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1656 esac
1657 case $ac_pass in
1658 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1659 2)
1660 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1661 if test $ac_must_keep_next = true; then
1662 ac_must_keep_next=false # Got value, back to normal.
1663 else
1664 case $ac_arg in
1665 *=* | --config-cache | -C | -disable-* | --disable-* \
1666 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1667 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1668 | -with-* | --with-* | -without-* | --without-* | --x)
1669 case "$ac_configure_args0 " in
1670 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1671 esac
1672 ;;
1673 -* ) ac_must_keep_next=true ;;
1674 esac
1675 fi
64ff59ba 1676 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1677 ;;
1678 esac
1679 done
1680done
1681$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1682$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1683
1684# When interrupted or exit'd, cleanup temporary files, and complete
1685# config.log. We remove comments because anyway the quotes in there
1686# would cause problems or look ugly.
64ff59ba 1687# WARNING: Use '\'' to represent an apostrophe within the trap.
1688# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1689trap 'exit_status=$?
1690 # Save into config.log some information that might help in debugging.
1691 {
1692 echo
1693
1694 cat <<\_ASBOX
1695## ---------------- ##
1696## Cache variables. ##
1697## ---------------- ##
1698_ASBOX
1699 echo
1700 # The following way of writing the cache mishandles newlines in values,
64ff59ba 1701(
1702 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1703 eval ac_val=\$$ac_var
1704 case $ac_val in #(
1705 *${as_nl}*)
1706 case $ac_var in #(
1707 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1708echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1709 esac
1710 case $ac_var in #(
1711 _ | IFS | as_nl) ;; #(
1712 *) $as_unset $ac_var ;;
1713 esac ;;
1714 esac
1715 done
d9898ee8 1716 (set) 2>&1 |
64ff59ba 1717 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1718 *${as_nl}ac_space=\ *)
d9898ee8 1719 sed -n \
64ff59ba 1720 "s/'\''/'\''\\\\'\'''\''/g;
1721 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1722 ;; #(
d9898ee8 1723 *)
64ff59ba 1724 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1725 ;;
64ff59ba 1726 esac |
1727 sort
1728)
d9898ee8 1729 echo
1730
1731 cat <<\_ASBOX
1732## ----------------- ##
1733## Output variables. ##
1734## ----------------- ##
1735_ASBOX
1736 echo
1737 for ac_var in $ac_subst_vars
1738 do
64ff59ba 1739 eval ac_val=\$$ac_var
1740 case $ac_val in
1741 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 esac
1743 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1744 done | sort
1745 echo
1746
1747 if test -n "$ac_subst_files"; then
1748 cat <<\_ASBOX
64ff59ba 1749## ------------------- ##
1750## File substitutions. ##
1751## ------------------- ##
d9898ee8 1752_ASBOX
1753 echo
1754 for ac_var in $ac_subst_files
1755 do
64ff59ba 1756 eval ac_val=\$$ac_var
1757 case $ac_val in
1758 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 esac
1760 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1761 done | sort
1762 echo
1763 fi
1764
1765 if test -s confdefs.h; then
1766 cat <<\_ASBOX
1767## ----------- ##
1768## confdefs.h. ##
1769## ----------- ##
1770_ASBOX
1771 echo
64ff59ba 1772 cat confdefs.h
d9898ee8 1773 echo
1774 fi
1775 test "$ac_signal" != 0 &&
1776 echo "$as_me: caught signal $ac_signal"
1777 echo "$as_me: exit $exit_status"
1778 } >&5
64ff59ba 1779 rm -f core *.core core.conftest.* &&
1780 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1781 exit $exit_status
64ff59ba 1782' 0
d9898ee8 1783for ac_signal in 1 2 13 15; do
1784 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1785done
1786ac_signal=0
1787
1788# confdefs.h avoids OS command line length limits that DEFS can exceed.
64ff59ba 1789rm -f -r conftest* confdefs.h
d9898ee8 1790
1791# Predefined preprocessor variables.
1792
1793cat >>confdefs.h <<_ACEOF
1794#define PACKAGE_NAME "$PACKAGE_NAME"
1795_ACEOF
1796
1797
1798cat >>confdefs.h <<_ACEOF
1799#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1800_ACEOF
1801
1802
1803cat >>confdefs.h <<_ACEOF
1804#define PACKAGE_VERSION "$PACKAGE_VERSION"
1805_ACEOF
1806
1807
1808cat >>confdefs.h <<_ACEOF
1809#define PACKAGE_STRING "$PACKAGE_STRING"
1810_ACEOF
1811
1812
1813cat >>confdefs.h <<_ACEOF
1814#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1815_ACEOF
1816
1817
1818# Let the site file select an alternate cache file if it wants to.
1819# Prefer explicitly selected file to automatically selected ones.
64ff59ba 1820if test -n "$CONFIG_SITE"; then
1821 set x "$CONFIG_SITE"
1822elif test "x$prefix" != xNONE; then
1823 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1824else
1825 set x "$ac_default_prefix/share/config.site" \
1826 "$ac_default_prefix/etc/config.site"
d9898ee8 1827fi
64ff59ba 1828shift
1829for ac_site_file
1830do
d9898ee8 1831 if test -r "$ac_site_file"; then
1832 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1833echo "$as_me: loading site script $ac_site_file" >&6;}
1834 sed 's/^/| /' "$ac_site_file" >&5
1835 . "$ac_site_file"
1836 fi
1837done
1838
1839if test -r "$cache_file"; then
1840 # Some versions of bash will fail to source /dev/null (special
1841 # files actually), so we avoid doing that.
1842 if test -f "$cache_file"; then
1843 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1844echo "$as_me: loading cache $cache_file" >&6;}
1845 case $cache_file in
64ff59ba 1846 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1847 *) . "./$cache_file";;
d9898ee8 1848 esac
1849 fi
1850else
1851 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1852echo "$as_me: creating cache $cache_file" >&6;}
1853 >$cache_file
1854fi
1855
1856# Check that the precious variables saved in the cache have kept the same
1857# value.
1858ac_cache_corrupted=false
64ff59ba 1859for ac_var in $ac_precious_vars; do
d9898ee8 1860 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1861 eval ac_new_set=\$ac_env_${ac_var}_set
64ff59ba 1862 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1863 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1864 case $ac_old_set,$ac_new_set in
1865 set,)
1866 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1867echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1868 ac_cache_corrupted=: ;;
1869 ,set)
1870 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1871echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1872 ac_cache_corrupted=: ;;
1873 ,);;
1874 *)
1875 if test "x$ac_old_val" != "x$ac_new_val"; then
1876 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1877echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1878 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1879echo "$as_me: former value: $ac_old_val" >&2;}
1880 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1881echo "$as_me: current value: $ac_new_val" >&2;}
1882 ac_cache_corrupted=:
1883 fi;;
1884 esac
1885 # Pass precious variables to config.status.
1886 if test "$ac_new_set" = set; then
1887 case $ac_new_val in
64ff59ba 1888 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1889 *) ac_arg=$ac_var=$ac_new_val ;;
1890 esac
1891 case " $ac_configure_args " in
1892 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1893 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1894 esac
1895 fi
1896done
1897if $ac_cache_corrupted; then
1898 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1899echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1900 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1901echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1902 { (exit 1); exit 1; }; }
1903fi
1904
d9898ee8 1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
64ff59ba 1929ac_ext=c
1930ac_cpp='$CPP $CPPFLAGS'
1931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 1934
1935
1936
1937>confdefs.h # Kill PACKAGE_ macros
1938
1939
64ff59ba 1940am__api_version='1.10'
1941
d9898ee8 1942ac_aux_dir=
64ff59ba 1943for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1944 if test -f "$ac_dir/install-sh"; then
d9898ee8 1945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/install-sh -c"
1947 break
64ff59ba 1948 elif test -f "$ac_dir/install.sh"; then
d9898ee8 1949 ac_aux_dir=$ac_dir
1950 ac_install_sh="$ac_aux_dir/install.sh -c"
1951 break
64ff59ba 1952 elif test -f "$ac_dir/shtool"; then
d9898ee8 1953 ac_aux_dir=$ac_dir
1954 ac_install_sh="$ac_aux_dir/shtool install -c"
1955 break
1956 fi
1957done
1958if test -z "$ac_aux_dir"; then
64ff59ba 1959 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1960echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 1961 { (exit 1); exit 1; }; }
1962fi
64ff59ba 1963
1964# These three variables are undocumented and unsupported,
1965# and are intended to be withdrawn in a future Autoconf release.
1966# They can cause serious problems if a builder's source tree is in a directory
1967# whose full name contains unusual characters.
1968ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1969ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1970ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1971
d9898ee8 1972
1973# Find a good install program. We prefer a C program (faster),
1974# so one script is as good as another. But avoid the broken or
1975# incompatible versions:
1976# SysV /etc/install, /usr/sbin/install
1977# SunOS /usr/etc/install
1978# IRIX /sbin/install
1979# AIX /bin/install
1980# AmigaOS /C/install, which installs bootblocks on floppy discs
1981# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1982# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1983# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1984# OS/2's system install, which has a completely different semantic
1985# ./install, which can be erroneously created by make from ./install.sh.
64ff59ba 1986{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1987echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 1988if test -z "$INSTALL"; then
1989if test "${ac_cv_path_install+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991else
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993for as_dir in $PATH
1994do
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 # Account for people who put trailing slashes in PATH elements.
1998case $as_dir/ in
1999 ./ | .// | /cC/* | \
2000 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2001 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2002 /usr/ucb/* ) ;;
2003 *)
2004 # OSF1 and SCO ODT 3.0 have their own names for install.
2005 # Don't use installbsd from OSF since it installs stuff as root
2006 # by default.
2007 for ac_prog in ginstall scoinst install; do
2008 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2009 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2010 if test $ac_prog = install &&
2011 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2012 # AIX install. It has an incompatible calling convention.
2013 :
2014 elif test $ac_prog = install &&
2015 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2016 # program-specific install script used by HP pwplus--don't use.
2017 :
2018 else
2019 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2020 break 3
2021 fi
2022 fi
2023 done
2024 done
2025 ;;
2026esac
2027done
64ff59ba 2028IFS=$as_save_IFS
d9898ee8 2029
2030
2031fi
2032 if test "${ac_cv_path_install+set}" = set; then
2033 INSTALL=$ac_cv_path_install
2034 else
64ff59ba 2035 # As a last resort, use the slow shell script. Don't cache a
2036 # value for INSTALL within a source directory, because that will
d9898ee8 2037 # break other packages using the cache if that directory is
64ff59ba 2038 # removed, or if the value is a relative name.
d9898ee8 2039 INSTALL=$ac_install_sh
2040 fi
2041fi
64ff59ba 2042{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2043echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 2044
2045# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2046# It thinks the first close brace ends the variable substitution.
2047test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2048
2049test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2050
2051test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2052
64ff59ba 2053{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2054echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
d9898ee8 2055# Just in case
2056sleep 1
2057echo timestamp > conftest.file
2058# Do `set' in a subshell so we don't clobber the current shell's
2059# arguments. Must try -L first in case configure is actually a
2060# symlink; some systems play weird games with the mod time of symlinks
2061# (eg FreeBSD returns the mod time of the symlink's containing
2062# directory).
2063if (
2064 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2065 if test "$*" = "X"; then
2066 # -L didn't work.
2067 set X `ls -t $srcdir/configure conftest.file`
2068 fi
2069 rm -f conftest.file
2070 if test "$*" != "X $srcdir/configure conftest.file" \
2071 && test "$*" != "X conftest.file $srcdir/configure"; then
2072
2073 # If neither matched, then we have a broken ls. This can happen
2074 # if, for instance, CONFIG_SHELL is bash and it inherits a
2075 # broken ls alias from the environment. This has actually
2076 # happened. Such a system could not be considered "sane".
2077 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2078alias in your environment" >&5
2079echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2080alias in your environment" >&2;}
2081 { (exit 1); exit 1; }; }
2082 fi
2083
2084 test "$2" = conftest.file
2085 )
2086then
2087 # Ok.
2088 :
2089else
2090 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2091Check your system clock" >&5
2092echo "$as_me: error: newly created file is older than distributed files!
2093Check your system clock" >&2;}
2094 { (exit 1); exit 1; }; }
2095fi
64ff59ba 2096{ echo "$as_me:$LINENO: result: yes" >&5
2097echo "${ECHO_T}yes" >&6; }
d9898ee8 2098test "$program_prefix" != NONE &&
64ff59ba 2099 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2100# Use a double $ so make ignores it.
2101test "$program_suffix" != NONE &&
64ff59ba 2102 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
d9898ee8 2103# Double any \ or $. echo might interpret backslashes.
2104# By default was `s,x,x', remove it if useless.
2105cat <<\_ACEOF >conftest.sed
2106s/[\\$]/&&/g;s/;s,x,x,$//
2107_ACEOF
2108program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
64ff59ba 2109rm -f conftest.sed
d9898ee8 2110
2111# expand $ac_aux_dir to an absolute path
2112am_aux_dir=`cd $ac_aux_dir && pwd`
2113
2114test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2115# Use eval to expand $SHELL
2116if eval "$MISSING --run true"; then
2117 am_missing_run="$MISSING --run "
2118else
2119 am_missing_run=
2120 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2121echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2122fi
2123
64ff59ba 2124{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2125echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2126if test -z "$MKDIR_P"; then
2127 if test "${ac_cv_path_mkdir+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129else
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2132do
2133 IFS=$as_save_IFS
2134 test -z "$as_dir" && as_dir=.
2135 for ac_prog in mkdir gmkdir; do
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2138 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2139 'mkdir (GNU coreutils) '* | \
2140 'mkdir (coreutils) '* | \
2141 'mkdir (fileutils) '4.1*)
2142 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2143 break 3;;
2144 esac
2145 done
2146 done
2147done
2148IFS=$as_save_IFS
2149
2150fi
2151
2152 if test "${ac_cv_path_mkdir+set}" = set; then
2153 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2154 else
64ff59ba 2155 # As a last resort, use the slow shell script. Don't cache a
2156 # value for MKDIR_P within a source directory, because that will
2157 # break other packages using the cache if that directory is
2158 # removed, or if the value is a relative name.
2159 test -d ./--version && rmdir ./--version
2160 MKDIR_P="$ac_install_sh -d"
d9898ee8 2161 fi
2162fi
64ff59ba 2163{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2164echo "${ECHO_T}$MKDIR_P" >&6; }
2165
2166mkdir_p="$MKDIR_P"
2167case $mkdir_p in
2168 [\\/$]* | ?:[\\/]*) ;;
2169 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2170esac
d9898ee8 2171
2172for ac_prog in gawk mawk nawk awk
2173do
2174 # Extract the first word of "$ac_prog", so it can be a program name with args.
2175set dummy $ac_prog; ac_word=$2
64ff59ba 2176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2178if test "${ac_cv_prog_AWK+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180else
2181 if test -n "$AWK"; then
2182 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2183else
2184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185for as_dir in $PATH
2186do
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2191 ac_cv_prog_AWK="$ac_prog"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
2194 fi
2195done
2196done
64ff59ba 2197IFS=$as_save_IFS
d9898ee8 2198
2199fi
2200fi
2201AWK=$ac_cv_prog_AWK
2202if test -n "$AWK"; then
64ff59ba 2203 { echo "$as_me:$LINENO: result: $AWK" >&5
2204echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2205else
64ff59ba 2206 { echo "$as_me:$LINENO: result: no" >&5
2207echo "${ECHO_T}no" >&6; }
d9898ee8 2208fi
2209
64ff59ba 2210
d9898ee8 2211 test -n "$AWK" && break
2212done
2213
64ff59ba 2214{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2215echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2216set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2217if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220 cat >conftest.make <<\_ACEOF
64ff59ba 2221SHELL = /bin/sh
d9898ee8 2222all:
64ff59ba 2223 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2224_ACEOF
2225# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
64ff59ba 2226case `${MAKE-make} -f conftest.make 2>/dev/null` in
2227 *@@@%%%=?*=@@@%%%*)
2228 eval ac_cv_prog_make_${ac_make}_set=yes;;
2229 *)
2230 eval ac_cv_prog_make_${ac_make}_set=no;;
2231esac
d9898ee8 2232rm -f conftest.make
2233fi
64ff59ba 2234if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2235 { echo "$as_me:$LINENO: result: yes" >&5
2236echo "${ECHO_T}yes" >&6; }
d9898ee8 2237 SET_MAKE=
2238else
64ff59ba 2239 { echo "$as_me:$LINENO: result: no" >&5
2240echo "${ECHO_T}no" >&6; }
d9898ee8 2241 SET_MAKE="MAKE=${MAKE-make}"
2242fi
2243
2244rm -rf .tst 2>/dev/null
2245mkdir .tst 2>/dev/null
2246if test -d .tst; then
2247 am__leading_dot=.
2248else
2249 am__leading_dot=_
2250fi
2251rmdir .tst 2>/dev/null
2252
64ff59ba 2253if test "`cd $srcdir && pwd`" != "`pwd`"; then
2254 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2255 # is not polluted with repeated "-I."
2256 am__isrc=' -I$(srcdir)'
2257 # test to see if srcdir already configured
2258 if test -f $srcdir/config.status; then
2259 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d9898ee8 2260echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2261 { (exit 1); exit 1; }; }
64ff59ba 2262 fi
d9898ee8 2263fi
2264
2265# test whether we have cygpath
2266if test -z "$CYGPATH_W"; then
2267 if (cygpath --version) >/dev/null 2>/dev/null; then
2268 CYGPATH_W='cygpath -w'
2269 else
2270 CYGPATH_W=echo
2271 fi
2272fi
2273
2274
2275# Define the identity of the package.
2276 PACKAGE='bdbobj'
2277 VERSION='0.10'
2278
2279
2280# Some tools Automake needs.
2281
2282ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2283
2284
2285AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2286
2287
2288AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2289
2290
2291AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2292
2293
2294MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2295
64ff59ba 2296install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
d9898ee8 2297
2298# Installed binaries are usually stripped using `strip' when the user
2299# run `make install-strip'. However `strip' might not be the right
2300# tool to use in cross-compilation environments, therefore Automake
2301# will honor the `STRIP' environment variable to overrule this program.
2302if test "$cross_compiling" != no; then
2303 if test -n "$ac_tool_prefix"; then
2304 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2305set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 2306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2308if test "${ac_cv_prog_STRIP+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310else
2311 if test -n "$STRIP"; then
2312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2313else
2314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315for as_dir in $PATH
2316do
2317 IFS=$as_save_IFS
2318 test -z "$as_dir" && as_dir=.
2319 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2321 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 break 2
2324 fi
2325done
2326done
64ff59ba 2327IFS=$as_save_IFS
d9898ee8 2328
2329fi
2330fi
2331STRIP=$ac_cv_prog_STRIP
2332if test -n "$STRIP"; then
64ff59ba 2333 { echo "$as_me:$LINENO: result: $STRIP" >&5
2334echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 2335else
64ff59ba 2336 { echo "$as_me:$LINENO: result: no" >&5
2337echo "${ECHO_T}no" >&6; }
d9898ee8 2338fi
2339
64ff59ba 2340
d9898ee8 2341fi
2342if test -z "$ac_cv_prog_STRIP"; then
2343 ac_ct_STRIP=$STRIP
2344 # Extract the first word of "strip", so it can be a program name with args.
2345set dummy strip; ac_word=$2
64ff59ba 2346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2348if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351 if test -n "$ac_ct_STRIP"; then
2352 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2353else
2354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355for as_dir in $PATH
2356do
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2361 ac_cv_prog_ac_ct_STRIP="strip"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 break 2
2364 fi
2365done
2366done
64ff59ba 2367IFS=$as_save_IFS
d9898ee8 2368
d9898ee8 2369fi
2370fi
2371ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2372if test -n "$ac_ct_STRIP"; then
64ff59ba 2373 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2374echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 2375else
64ff59ba 2376 { echo "$as_me:$LINENO: result: no" >&5
2377echo "${ECHO_T}no" >&6; }
d9898ee8 2378fi
2379
64ff59ba 2380 if test "x$ac_ct_STRIP" = x; then
2381 STRIP=":"
2382 else
2383 case $cross_compiling:$ac_tool_warned in
2384yes:)
2385{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2386whose name does not start with the host triplet. If you think this
2387configuration is useful to you, please write to autoconf@gnu.org." >&5
2388echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2389whose name does not start with the host triplet. If you think this
2390configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2391ac_tool_warned=yes ;;
2392esac
2393 STRIP=$ac_ct_STRIP
2394 fi
d9898ee8 2395else
2396 STRIP="$ac_cv_prog_STRIP"
2397fi
2398
2399fi
64ff59ba 2400INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2401
2402# We need awk for the "check" target. The system "awk" is bad on
2403# some platforms.
2404# Always define AMTAR for backward compatibility.
2405
2406AMTAR=${AMTAR-"${am_missing_run}tar"}
2407
2408am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2409
2410
2411
2412
2413
64ff59ba 2414ac_config_headers="$ac_config_headers config.h"
d9898ee8 2415
2416
2417ac_ext=c
2418ac_cpp='$CPP $CPPFLAGS'
2419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422if test -n "$ac_tool_prefix"; then
2423 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2424set dummy ${ac_tool_prefix}gcc; ac_word=$2
64ff59ba 2425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2427if test "${ac_cv_prog_CC+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2429else
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2432else
2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434for as_dir in $PATH
2435do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2440 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 break 2
2443 fi
2444done
2445done
64ff59ba 2446IFS=$as_save_IFS
d9898ee8 2447
2448fi
2449fi
2450CC=$ac_cv_prog_CC
2451if test -n "$CC"; then
64ff59ba 2452 { echo "$as_me:$LINENO: result: $CC" >&5
2453echo "${ECHO_T}$CC" >&6; }
d9898ee8 2454else
64ff59ba 2455 { echo "$as_me:$LINENO: result: no" >&5
2456echo "${ECHO_T}no" >&6; }
d9898ee8 2457fi
2458
64ff59ba 2459
d9898ee8 2460fi
2461if test -z "$ac_cv_prog_CC"; then
2462 ac_ct_CC=$CC
2463 # Extract the first word of "gcc", so it can be a program name with args.
2464set dummy gcc; ac_word=$2
64ff59ba 2465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2467if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470 if test -n "$ac_ct_CC"; then
2471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2472else
2473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474for as_dir in $PATH
2475do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2480 ac_cv_prog_ac_ct_CC="gcc"
2481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 break 2
2483 fi
2484done
2485done
64ff59ba 2486IFS=$as_save_IFS
d9898ee8 2487
2488fi
2489fi
2490ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491if test -n "$ac_ct_CC"; then
64ff59ba 2492 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2493echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2494else
64ff59ba 2495 { echo "$as_me:$LINENO: result: no" >&5
2496echo "${ECHO_T}no" >&6; }
d9898ee8 2497fi
2498
64ff59ba 2499 if test "x$ac_ct_CC" = x; then
2500 CC=""
2501 else
2502 case $cross_compiling:$ac_tool_warned in
2503yes:)
2504{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2505whose name does not start with the host triplet. If you think this
2506configuration is useful to you, please write to autoconf@gnu.org." >&5
2507echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2508whose name does not start with the host triplet. If you think this
2509configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2510ac_tool_warned=yes ;;
2511esac
2512 CC=$ac_ct_CC
2513 fi
d9898ee8 2514else
2515 CC="$ac_cv_prog_CC"
2516fi
2517
2518if test -z "$CC"; then
64ff59ba 2519 if test -n "$ac_tool_prefix"; then
2520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2521set dummy ${ac_tool_prefix}cc; ac_word=$2
64ff59ba 2522{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2524if test "${ac_cv_prog_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526else
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2529else
2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531for as_dir in $PATH
2532do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2537 ac_cv_prog_CC="${ac_tool_prefix}cc"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2540 fi
2541done
2542done
64ff59ba 2543IFS=$as_save_IFS
d9898ee8 2544
2545fi
2546fi
2547CC=$ac_cv_prog_CC
2548if test -n "$CC"; then
64ff59ba 2549 { echo "$as_me:$LINENO: result: $CC" >&5
2550echo "${ECHO_T}$CC" >&6; }
d9898ee8 2551else
64ff59ba 2552 { echo "$as_me:$LINENO: result: no" >&5
2553echo "${ECHO_T}no" >&6; }
d9898ee8 2554fi
2555
d9898ee8 2556
64ff59ba 2557 fi
d9898ee8 2558fi
2559if test -z "$CC"; then
2560 # Extract the first word of "cc", so it can be a program name with args.
2561set dummy cc; ac_word=$2
64ff59ba 2562{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2564if test "${ac_cv_prog_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566else
2567 if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2569else
2570 ac_prog_rejected=no
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2579 ac_prog_rejected=yes
2580 continue
2581 fi
2582 ac_cv_prog_CC="cc"
2583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586done
2587done
64ff59ba 2588IFS=$as_save_IFS
d9898ee8 2589
2590if test $ac_prog_rejected = yes; then
2591 # We found a bogon in the path, so make sure we never use it.
2592 set dummy $ac_cv_prog_CC
2593 shift
2594 if test $# != 0; then
2595 # We chose a different compiler from the bogus one.
2596 # However, it has the same basename, so the bogon will be chosen
2597 # first if we set CC to just the basename; use the full file name.
2598 shift
2599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2600 fi
2601fi
2602fi
2603fi
2604CC=$ac_cv_prog_CC
2605if test -n "$CC"; then
64ff59ba 2606 { echo "$as_me:$LINENO: result: $CC" >&5
2607echo "${ECHO_T}$CC" >&6; }
d9898ee8 2608else
64ff59ba 2609 { echo "$as_me:$LINENO: result: no" >&5
2610echo "${ECHO_T}no" >&6; }
d9898ee8 2611fi
2612
64ff59ba 2613
d9898ee8 2614fi
2615if test -z "$CC"; then
2616 if test -n "$ac_tool_prefix"; then
64ff59ba 2617 for ac_prog in cl.exe
d9898ee8 2618 do
2619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2620set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 2621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2623if test "${ac_cv_prog_CC+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625else
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2628else
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640done
2641done
64ff59ba 2642IFS=$as_save_IFS
d9898ee8 2643
2644fi
2645fi
2646CC=$ac_cv_prog_CC
2647if test -n "$CC"; then
64ff59ba 2648 { echo "$as_me:$LINENO: result: $CC" >&5
2649echo "${ECHO_T}$CC" >&6; }
d9898ee8 2650else
64ff59ba 2651 { echo "$as_me:$LINENO: result: no" >&5
2652echo "${ECHO_T}no" >&6; }
d9898ee8 2653fi
2654
64ff59ba 2655
d9898ee8 2656 test -n "$CC" && break
2657 done
2658fi
2659if test -z "$CC"; then
2660 ac_ct_CC=$CC
64ff59ba 2661 for ac_prog in cl.exe
d9898ee8 2662do
2663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2664set dummy $ac_prog; ac_word=$2
64ff59ba 2665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2667if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669else
2670 if test -n "$ac_ct_CC"; then
2671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2672else
2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2680 ac_cv_prog_ac_ct_CC="$ac_prog"
2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684done
2685done
64ff59ba 2686IFS=$as_save_IFS
d9898ee8 2687
2688fi
2689fi
2690ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691if test -n "$ac_ct_CC"; then
64ff59ba 2692 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2693echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2694else
64ff59ba 2695 { echo "$as_me:$LINENO: result: no" >&5
2696echo "${ECHO_T}no" >&6; }
d9898ee8 2697fi
2698
64ff59ba 2699
d9898ee8 2700 test -n "$ac_ct_CC" && break
2701done
2702
64ff59ba 2703 if test "x$ac_ct_CC" = x; then
2704 CC=""
2705 else
2706 case $cross_compiling:$ac_tool_warned in
2707yes:)
2708{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2709whose name does not start with the host triplet. If you think this
2710configuration is useful to you, please write to autoconf@gnu.org." >&5
2711echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2712whose name does not start with the host triplet. If you think this
2713configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2714ac_tool_warned=yes ;;
2715esac
2716 CC=$ac_ct_CC
2717 fi
d9898ee8 2718fi
2719
2720fi
2721
2722
2723test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2724See \`config.log' for more details." >&5
2725echo "$as_me: error: no acceptable C compiler found in \$PATH
2726See \`config.log' for more details." >&2;}
2727 { (exit 1); exit 1; }; }
2728
2729# Provide some information about the compiler.
64ff59ba 2730echo "$as_me:$LINENO: checking for C compiler version" >&5
d9898ee8 2731ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 2732{ (ac_try="$ac_compiler --version >&5"
2733case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
2737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
64ff59ba 2742{ (ac_try="$ac_compiler -v >&5"
2743case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746esac
2747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }
64ff59ba 2752{ (ac_try="$ac_compiler -V >&5"
2753case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2756esac
2757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }
2762
2763cat >conftest.$ac_ext <<_ACEOF
2764/* confdefs.h. */
2765_ACEOF
2766cat confdefs.h >>conftest.$ac_ext
2767cat >>conftest.$ac_ext <<_ACEOF
2768/* end confdefs.h. */
2769
2770int
2771main ()
2772{
2773
2774 ;
2775 return 0;
2776}
2777_ACEOF
2778ac_clean_files_save=$ac_clean_files
2779ac_clean_files="$ac_clean_files a.out a.exe b.out"
2780# Try to create an executable without -o first, disregard a.out.
2781# It will help us diagnose broken compilers, and finding out an intuition
2782# of exeext.
64ff59ba 2783{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2784echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
d9898ee8 2785ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
64ff59ba 2786#
2787# List of possible output files, starting from the most likely.
2788# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2789# only as a last resort. b.out is created by i960 compilers.
2790ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2791#
2792# The IRIX 6 linker writes into existing files which may not be
2793# executable, retaining their permissions. Remove them first so a
2794# subsequent execution test works.
2795ac_rmfiles=
2796for ac_file in $ac_files
2797do
2798 case $ac_file in
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2800 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2801 esac
2802done
2803rm -f $ac_rmfiles
2804
2805if { (ac_try="$ac_link_default"
2806case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809esac
2810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_link_default") 2>&5
d9898ee8 2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; then
64ff59ba 2815 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2816# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2817# in a Makefile. We should not override ac_cv_exeext if it was cached,
2818# so that the user can short-circuit this test for compilers unknown to
2819# Autoconf.
2820for ac_file in $ac_files ''
d9898ee8 2821do
2822 test -f "$ac_file" || continue
2823 case $ac_file in
64ff59ba 2824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
d9898ee8 2825 ;;
2826 [ab].out )
2827 # We found the default executable, but exeext='' is most
2828 # certainly right.
2829 break;;
2830 *.* )
64ff59ba 2831 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2832 then :; else
2833 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2834 fi
2835 # We set ac_cv_exeext here because the later test for it is not
2836 # safe: cross compilers may not add the suffix if given an `-o'
2837 # argument, so we may need to know it at that point already.
2838 # Even if this section looks crufty: it has the advantage of
2839 # actually working.
d9898ee8 2840 break;;
2841 * )
2842 break;;
2843 esac
2844done
64ff59ba 2845test "$ac_cv_exeext" = no && ac_cv_exeext=
2846
d9898ee8 2847else
64ff59ba 2848 ac_file=''
2849fi
2850
2851{ echo "$as_me:$LINENO: result: $ac_file" >&5
2852echo "${ECHO_T}$ac_file" >&6; }
2853if test -z "$ac_file"; then
d9898ee8 2854 echo "$as_me: failed program was:" >&5
2855sed 's/^/| /' conftest.$ac_ext >&5
2856
2857{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2858See \`config.log' for more details." >&5
2859echo "$as_me: error: C compiler cannot create executables
2860See \`config.log' for more details." >&2;}
2861 { (exit 77); exit 77; }; }
2862fi
2863
2864ac_exeext=$ac_cv_exeext
d9898ee8 2865
64ff59ba 2866# Check that the compiler produces executables we can run. If not, either
d9898ee8 2867# the compiler is broken, or we cross compile.
64ff59ba 2868{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2869echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
d9898ee8 2870# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2871# If not cross compiling, check that we can run a simple program.
2872if test "$cross_compiling" != yes; then
2873 if { ac_try='./$ac_file'
64ff59ba 2874 { (case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877esac
2878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_try") 2>&5
d9898ee8 2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 cross_compiling=no
2884 else
2885 if test "$cross_compiling" = maybe; then
2886 cross_compiling=yes
2887 else
2888 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2889If you meant to cross compile, use \`--host'.
2890See \`config.log' for more details." >&5
2891echo "$as_me: error: cannot run C compiled programs.
2892If you meant to cross compile, use \`--host'.
2893See \`config.log' for more details." >&2;}
2894 { (exit 1); exit 1; }; }
2895 fi
2896 fi
2897fi
64ff59ba 2898{ echo "$as_me:$LINENO: result: yes" >&5
2899echo "${ECHO_T}yes" >&6; }
d9898ee8 2900
2901rm -f a.out a.exe conftest$ac_cv_exeext b.out
2902ac_clean_files=$ac_clean_files_save
64ff59ba 2903# Check that the compiler produces executables we can run. If not, either
d9898ee8 2904# the compiler is broken, or we cross compile.
64ff59ba 2905{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2906echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2907{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2908echo "${ECHO_T}$cross_compiling" >&6; }
2909
2910{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2911echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2912if { (ac_try="$ac_link"
2913case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916esac
2917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_link") 2>&5
d9898ee8 2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; then
2922 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2923# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2924# work properly (i.e., refer to `conftest.exe'), while it won't with
2925# `rm'.
2926for ac_file in conftest.exe conftest conftest.*; do
2927 test -f "$ac_file" || continue
2928 case $ac_file in
64ff59ba 2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
d9898ee8 2930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 2931 break;;
2932 * ) break;;
2933 esac
2934done
2935else
2936 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2937See \`config.log' for more details." >&5
2938echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2939See \`config.log' for more details." >&2;}
2940 { (exit 1); exit 1; }; }
2941fi
2942
2943rm -f conftest$ac_cv_exeext
64ff59ba 2944{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2945echo "${ECHO_T}$ac_cv_exeext" >&6; }
d9898ee8 2946
2947rm -f conftest.$ac_ext
2948EXEEXT=$ac_cv_exeext
2949ac_exeext=$EXEEXT
64ff59ba 2950{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2951echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
d9898ee8 2952if test "${ac_cv_objext+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2954else
2955 cat >conftest.$ac_ext <<_ACEOF
2956/* confdefs.h. */
2957_ACEOF
2958cat confdefs.h >>conftest.$ac_ext
2959cat >>conftest.$ac_ext <<_ACEOF
2960/* end confdefs.h. */
2961
2962int
2963main ()
2964{
2965
2966 ;
2967 return 0;
2968}
2969_ACEOF
2970rm -f conftest.o conftest.obj
64ff59ba 2971if { (ac_try="$ac_compile"
2972case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975esac
2976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_compile") 2>&5
d9898ee8 2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; then
64ff59ba 2981 for ac_file in conftest.o conftest.obj conftest.*; do
2982 test -f "$ac_file" || continue;
d9898ee8 2983 case $ac_file in
64ff59ba 2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
d9898ee8 2985 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2986 break;;
2987 esac
2988done
2989else
2990 echo "$as_me: failed program was:" >&5
2991sed 's/^/| /' conftest.$ac_ext >&5
2992
2993{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2994See \`config.log' for more details." >&5
2995echo "$as_me: error: cannot compute suffix of object files: cannot compile
2996See \`config.log' for more details." >&2;}
2997 { (exit 1); exit 1; }; }
2998fi
2999
3000rm -f conftest.$ac_cv_objext conftest.$ac_ext
3001fi
64ff59ba 3002{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3003echo "${ECHO_T}$ac_cv_objext" >&6; }
d9898ee8 3004OBJEXT=$ac_cv_objext
3005ac_objext=$OBJEXT
64ff59ba 3006{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3007echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d9898ee8 3008if test "${ac_cv_c_compiler_gnu+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3010else
3011 cat >conftest.$ac_ext <<_ACEOF
3012/* confdefs.h. */
3013_ACEOF
3014cat confdefs.h >>conftest.$ac_ext
3015cat >>conftest.$ac_ext <<_ACEOF
3016/* end confdefs.h. */
3017
3018int
3019main ()
3020{
3021#ifndef __GNUC__
3022 choke me
3023#endif
3024
3025 ;
3026 return 0;
3027}
3028_ACEOF
3029rm -f conftest.$ac_objext
64ff59ba 3030if { (ac_try="$ac_compile"
3031case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034esac
3035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3037 ac_status=$?
3038 grep -v '^ *+' conftest.er1 >conftest.err
3039 rm -f conftest.er1
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3042 (exit $ac_status); } && {
3043 test -z "$ac_c_werror_flag" ||
3044 test ! -s conftest.err
3045 } && test -s conftest.$ac_objext; then
d9898ee8 3046 ac_compiler_gnu=yes
3047else
3048 echo "$as_me: failed program was:" >&5
3049sed 's/^/| /' conftest.$ac_ext >&5
3050
64ff59ba 3051 ac_compiler_gnu=no
d9898ee8 3052fi
64ff59ba 3053
3054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3055ac_cv_c_compiler_gnu=$ac_compiler_gnu
3056
3057fi
64ff59ba 3058{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3059echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d9898ee8 3060GCC=`test $ac_compiler_gnu = yes && echo yes`
3061ac_test_CFLAGS=${CFLAGS+set}
3062ac_save_CFLAGS=$CFLAGS
64ff59ba 3063{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3064echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d9898ee8 3065if test "${ac_cv_prog_cc_g+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067else
64ff59ba 3068 ac_save_c_werror_flag=$ac_c_werror_flag
3069 ac_c_werror_flag=yes
3070 ac_cv_prog_cc_g=no
3071 CFLAGS="-g"
3072 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3073/* confdefs.h. */
3074_ACEOF
3075cat confdefs.h >>conftest.$ac_ext
3076cat >>conftest.$ac_ext <<_ACEOF
3077/* end confdefs.h. */
3078
3079int
3080main ()
3081{
3082
3083 ;
3084 return 0;
3085}
3086_ACEOF
3087rm -f conftest.$ac_objext
64ff59ba 3088if { (ac_try="$ac_compile"
3089case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3095 ac_status=$?
3096 grep -v '^ *+' conftest.er1 >conftest.err
3097 rm -f conftest.er1
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3100 (exit $ac_status); } && {
3101 test -z "$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3103 } && test -s conftest.$ac_objext; then
3104 ac_cv_prog_cc_g=yes
3105else
3106 echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 CFLAGS=""
3110 cat >conftest.$ac_ext <<_ACEOF
3111/* confdefs.h. */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
3115/* end confdefs.h. */
3116
3117int
3118main ()
3119{
3120
3121 ;
3122 return 0;
3123}
3124_ACEOF
3125rm -f conftest.$ac_objext
3126if { (ac_try="$ac_compile"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3133 ac_status=$?
64ff59ba 3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
d9898ee8 3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3138 (exit $ac_status); } && {
3139 test -z "$ac_c_werror_flag" ||
3140 test ! -s conftest.err
3141 } && test -s conftest.$ac_objext; then
3142 :
3143else
3144 echo "$as_me: failed program was:" >&5
3145sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 ac_c_werror_flag=$ac_save_c_werror_flag
3148 CFLAGS="-g"
3149 cat >conftest.$ac_ext <<_ACEOF
3150/* confdefs.h. */
3151_ACEOF
3152cat confdefs.h >>conftest.$ac_ext
3153cat >>conftest.$ac_ext <<_ACEOF
3154/* end confdefs.h. */
3155
3156int
3157main ()
3158{
3159
3160 ;
3161 return 0;
3162}
3163_ACEOF
3164rm -f conftest.$ac_objext
3165if { (ac_try="$ac_compile"
3166case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3172 ac_status=$?
64ff59ba 3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
d9898ee8 3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
d9898ee8 3181 ac_cv_prog_cc_g=yes
3182else
3183 echo "$as_me: failed program was:" >&5
3184sed 's/^/| /' conftest.$ac_ext >&5
3185
64ff59ba 3186
3187fi
3188
3189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190fi
3191
3192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3193fi
64ff59ba 3194
3195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3197fi
64ff59ba 3198{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3199echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d9898ee8 3200if test "$ac_test_CFLAGS" = set; then
3201 CFLAGS=$ac_save_CFLAGS
3202elif test $ac_cv_prog_cc_g = yes; then
3203 if test "$GCC" = yes; then
3204 CFLAGS="-g -O2"
3205 else
3206 CFLAGS="-g"
3207 fi
3208else
3209 if test "$GCC" = yes; then
3210 CFLAGS="-O2"
3211 else
3212 CFLAGS=
3213 fi
3214fi
64ff59ba 3215{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3216echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3217if test "${ac_cv_prog_cc_c89+set}" = set; then
d9898ee8 3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219else
64ff59ba 3220 ac_cv_prog_cc_c89=no
d9898ee8 3221ac_save_CC=$CC
3222cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h. */
3228#include <stdarg.h>
3229#include <stdio.h>
3230#include <sys/types.h>
3231#include <sys/stat.h>
3232/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3233struct buf { int x; };
3234FILE * (*rcsopen) (struct buf *, struct stat *, int);
3235static char *e (p, i)
3236 char **p;
3237 int i;
3238{
3239 return p[i];
3240}
3241static char *f (char * (*g) (char **, int), char **p, ...)
3242{
3243 char *s;
3244 va_list v;
3245 va_start (v,p);
3246 s = g (p, va_arg (v,int));
3247 va_end (v);
3248 return s;
3249}
3250
3251/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3252 function prototypes and stuff, but not '\xHH' hex character constants.
3253 These don't provoke an error unfortunately, instead are silently treated
64ff59ba 3254 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3256 array size at least. It's necessary to write '\x00'==0 to get something
64ff59ba 3257 that's true only with -std. */
d9898ee8 3258int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3259
64ff59ba 3260/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3261 inside strings and character constants. */
3262#define FOO(x) 'x'
3263int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3264
d9898ee8 3265int test (int i, double x);
3266struct s1 {int (*f) (int a);};
3267struct s2 {int (*f) (double a);};
3268int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3269int argc;
3270char **argv;
3271int
3272main ()
3273{
3274return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3275 ;
3276 return 0;
3277}
3278_ACEOF
64ff59ba 3279for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3281do
3282 CC="$ac_save_CC $ac_arg"
3283 rm -f conftest.$ac_objext
64ff59ba 3284if { (ac_try="$ac_compile"
3285case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288esac
3289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3291 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3296 (exit $ac_status); } && {
3297 test -z "$ac_c_werror_flag" ||
3298 test ! -s conftest.err
3299 } && test -s conftest.$ac_objext; then
3300 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3301else
3302 echo "$as_me: failed program was:" >&5
3303sed 's/^/| /' conftest.$ac_ext >&5
3304
64ff59ba 3305
d9898ee8 3306fi
64ff59ba 3307
3308rm -f core conftest.err conftest.$ac_objext
3309 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3310done
64ff59ba 3311rm -f conftest.$ac_ext
d9898ee8 3312CC=$ac_save_CC
3313
3314fi
64ff59ba 3315# AC_CACHE_VAL
3316case "x$ac_cv_prog_cc_c89" in
3317 x)
3318 { echo "$as_me:$LINENO: result: none needed" >&5
3319echo "${ECHO_T}none needed" >&6; } ;;
3320 xno)
3321 { echo "$as_me:$LINENO: result: unsupported" >&5
3322echo "${ECHO_T}unsupported" >&6; } ;;
d9898ee8 3323 *)
64ff59ba 3324 CC="$CC $ac_cv_prog_cc_c89"
3325 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3326echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3327esac
3328
d9898ee8 3329
d9898ee8 3330ac_ext=c
3331ac_cpp='$CPP $CPPFLAGS'
3332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335DEPDIR="${am__leading_dot}deps"
3336
64ff59ba 3337ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3338
3339
3340am_make=${MAKE-make}
3341cat > confinc << 'END'
3342am__doit:
3343 @echo done
3344.PHONY: am__doit
3345END
3346# If we don't find an include directive, just comment out the code.
64ff59ba 3347{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3348echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
d9898ee8 3349am__include="#"
3350am__quote=
3351_am_result=none
3352# First try GNU make style include.
3353echo "include confinc" > confmf
3354# We grep out `Entering directory' and `Leaving directory'
3355# messages which can occur if `w' ends up in MAKEFLAGS.
3356# In particular we don't look at `^make:' because GNU make might
3357# be invoked under some other name (usually "gmake"), in which
3358# case it prints its new name instead of `make'.
3359if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3360 am__include=include
3361 am__quote=
3362 _am_result=GNU
3363fi
3364# Now try BSD make style include.
3365if test "$am__include" = "#"; then
3366 echo '.include "confinc"' > confmf
3367 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3368 am__include=.include
3369 am__quote="\""
3370 _am_result=BSD
3371 fi
3372fi
3373
3374
64ff59ba 3375{ echo "$as_me:$LINENO: result: $_am_result" >&5
3376echo "${ECHO_T}$_am_result" >&6; }
d9898ee8 3377rm -f confinc confmf
3378
64ff59ba 3379# Check whether --enable-dependency-tracking was given.
d9898ee8 3380if test "${enable_dependency_tracking+set}" = set; then
64ff59ba 3381 enableval=$enable_dependency_tracking;
3382fi
d9898ee8 3383
d9898ee8 3384if test "x$enable_dependency_tracking" != xno; then
3385 am_depcomp="$ac_aux_dir/depcomp"
3386 AMDEPBACKSLASH='\'
3387fi
64ff59ba 3388 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3389 AMDEP_TRUE=
3390 AMDEP_FALSE='#'
3391else
3392 AMDEP_TRUE='#'
3393 AMDEP_FALSE=
3394fi
3395
3396
3397
d9898ee8 3398depcc="$CC" am_compiler_list=
3399
64ff59ba 3400{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3401echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 3402if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3404else
3405 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3406 # We make a subdir and do the tests there. Otherwise we can end up
3407 # making bogus files that we don't know about and never remove. For
3408 # instance it was reported that on HP-UX the gcc test will end up
3409 # making a dummy file named `D' -- because `-MD' means `put the output
3410 # in D'.
3411 mkdir conftest.dir
3412 # Copy depcomp to subdir because otherwise we won't find it if we're
3413 # using a relative directory.
3414 cp "$am_depcomp" conftest.dir
3415 cd conftest.dir
3416 # We will build objects and dependencies in a subdirectory because
3417 # it helps to detect inapplicable dependency modes. For instance
3418 # both Tru64's cc and ICC support -MD to output dependencies as a
3419 # side effect of compilation, but ICC will put the dependencies in
3420 # the current directory while Tru64 will put them in the object
3421 # directory.
3422 mkdir sub
3423
3424 am_cv_CC_dependencies_compiler_type=none
3425 if test "$am_compiler_list" = ""; then
3426 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3427 fi
3428 for depmode in $am_compiler_list; do
3429 # Setup a source with many dependencies, because some compilers
3430 # like to wrap large dependency lists on column 80 (with \), and
3431 # we should not choose a depcomp mode which is confused by this.
3432 #
3433 # We need to recreate these files for each test, as the compiler may
3434 # overwrite some of them when testing with obscure command lines.
3435 # This happens at least with the AIX C compiler.
3436 : > sub/conftest.c
3437 for i in 1 2 3 4 5 6; do
3438 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3439 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3440 # Solaris 8's {/usr,}/bin/sh.
3441 touch sub/conftst$i.h
3442 done
3443 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3444
3445 case $depmode in
3446 nosideeffect)
3447 # after this tag, mechanisms are not by side-effect, so they'll
3448 # only be used when explicitly requested
3449 if test "x$enable_dependency_tracking" = xyes; then
3450 continue
3451 else
3452 break
3453 fi
3454 ;;
3455 none) break ;;
3456 esac
3457 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3458 # mode. It turns out that the SunPro C++ compiler does not properly
3459 # handle `-M -o', and we need to detect this.
3460 if depmode=$depmode \
3461 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3462 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3463 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3464 >/dev/null 2>conftest.err &&
64ff59ba 3465 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3466 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3467 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3468 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3469 # icc doesn't choke on unknown options, it will just issue warnings
3470 # or remarks (even with -Werror). So we grep stderr for any message
3471 # that says an option was ignored or not supported.
3472 # When given -MP, icc 7.0 and 7.1 complain thusly:
3473 # icc: Command line warning: ignoring option '-M'; no argument required
3474 # The diagnosis changed in icc 8.0:
3475 # icc: Command line remark: option '-MP' not supported
3476 if (grep 'ignoring option' conftest.err ||
3477 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3478 am_cv_CC_dependencies_compiler_type=$depmode
3479 break
3480 fi
3481 fi
3482 done
3483
3484 cd ..
3485 rm -rf conftest.dir
3486else
3487 am_cv_CC_dependencies_compiler_type=none
3488fi
3489
3490fi
64ff59ba 3491{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3492echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3493CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3494
64ff59ba 3495 if
d9898ee8 3496 test "x$enable_dependency_tracking" != xno \
3497 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3498 am__fastdepCC_TRUE=
3499 am__fastdepCC_FALSE='#'
3500else
3501 am__fastdepCC_TRUE='#'
3502 am__fastdepCC_FALSE=
3503fi
3504
3505
3506
3507ac_ext=c
3508ac_cpp='$CPP $CPPFLAGS'
3509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511ac_compiler_gnu=$ac_cv_c_compiler_gnu
64ff59ba 3512{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3513echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d9898ee8 3514# On Suns, sometimes $CPP names a directory.
3515if test -n "$CPP" && test -d "$CPP"; then
3516 CPP=
3517fi
3518if test -z "$CPP"; then
3519 if test "${ac_cv_prog_CPP+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3521else
3522 # Double quotes because CPP needs to be expanded
3523 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3524 do
3525 ac_preproc_ok=false
3526for ac_c_preproc_warn_flag in '' yes
3527do
3528 # Use a header file that comes with gcc, so configuring glibc
3529 # with a fresh cross-compiler works.
3530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531 # <limits.h> exists even on freestanding compilers.
3532 # On the NeXT, cc -E runs the code through the compiler's parser,
3533 # not just through cpp. "Syntax error" is here to catch this case.
3534 cat >conftest.$ac_ext <<_ACEOF
3535/* confdefs.h. */
3536_ACEOF
3537cat confdefs.h >>conftest.$ac_ext
3538cat >>conftest.$ac_ext <<_ACEOF
3539/* end confdefs.h. */
3540#ifdef __STDC__
3541# include <limits.h>
3542#else
3543# include <assert.h>
3544#endif
3545 Syntax error
3546_ACEOF
64ff59ba 3547if { (ac_try="$ac_cpp conftest.$ac_ext"
3548case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551esac
3552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3559 (exit $ac_status); } >/dev/null && {
3560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3561 test ! -s conftest.err
3562 }; then
d9898ee8 3563 :
3564else
3565 echo "$as_me: failed program was:" >&5
3566sed 's/^/| /' conftest.$ac_ext >&5
3567
3568 # Broken: fails on valid input.
3569continue
3570fi
64ff59ba 3571
d9898ee8 3572rm -f conftest.err conftest.$ac_ext
3573
64ff59ba 3574 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 3575 # can be detected and how.
3576 cat >conftest.$ac_ext <<_ACEOF
3577/* confdefs.h. */
3578_ACEOF
3579cat confdefs.h >>conftest.$ac_ext
3580cat >>conftest.$ac_ext <<_ACEOF
3581/* end confdefs.h. */
3582#include <ac_nonexistent.h>
3583_ACEOF
64ff59ba 3584if { (ac_try="$ac_cpp conftest.$ac_ext"
3585case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588esac
3589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3591 ac_status=$?
3592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3596 (exit $ac_status); } >/dev/null && {
3597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3598 test ! -s conftest.err
3599 }; then
d9898ee8 3600 # Broken: success on invalid input.
3601continue
3602else
3603 echo "$as_me: failed program was:" >&5
3604sed 's/^/| /' conftest.$ac_ext >&5
3605
3606 # Passes both tests.
3607ac_preproc_ok=:
3608break
3609fi
64ff59ba 3610
d9898ee8 3611rm -f conftest.err conftest.$ac_ext
3612
3613done
3614# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3615rm -f conftest.err conftest.$ac_ext
3616if $ac_preproc_ok; then
3617 break
3618fi
3619
3620 done
3621 ac_cv_prog_CPP=$CPP
3622
3623fi
3624 CPP=$ac_cv_prog_CPP
3625else
3626 ac_cv_prog_CPP=$CPP
3627fi
64ff59ba 3628{ echo "$as_me:$LINENO: result: $CPP" >&5
3629echo "${ECHO_T}$CPP" >&6; }
d9898ee8 3630ac_preproc_ok=false
3631for ac_c_preproc_warn_flag in '' yes
3632do
3633 # Use a header file that comes with gcc, so configuring glibc
3634 # with a fresh cross-compiler works.
3635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3636 # <limits.h> exists even on freestanding compilers.
3637 # On the NeXT, cc -E runs the code through the compiler's parser,
3638 # not just through cpp. "Syntax error" is here to catch this case.
3639 cat >conftest.$ac_ext <<_ACEOF
3640/* confdefs.h. */
3641_ACEOF
3642cat confdefs.h >>conftest.$ac_ext
3643cat >>conftest.$ac_ext <<_ACEOF
3644/* end confdefs.h. */
3645#ifdef __STDC__
3646# include <limits.h>
3647#else
3648# include <assert.h>
3649#endif
3650 Syntax error
3651_ACEOF
64ff59ba 3652if { (ac_try="$ac_cpp conftest.$ac_ext"
3653case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656esac
3657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3659 ac_status=$?
3660 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3664 (exit $ac_status); } >/dev/null && {
3665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3666 test ! -s conftest.err
3667 }; then
d9898ee8 3668 :
3669else
3670 echo "$as_me: failed program was:" >&5
3671sed 's/^/| /' conftest.$ac_ext >&5
3672
3673 # Broken: fails on valid input.
3674continue
3675fi
64ff59ba 3676
d9898ee8 3677rm -f conftest.err conftest.$ac_ext
3678
64ff59ba 3679 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 3680 # can be detected and how.
3681 cat >conftest.$ac_ext <<_ACEOF
3682/* confdefs.h. */
3683_ACEOF
3684cat confdefs.h >>conftest.$ac_ext
3685cat >>conftest.$ac_ext <<_ACEOF
3686/* end confdefs.h. */
3687#include <ac_nonexistent.h>
3688_ACEOF
64ff59ba 3689if { (ac_try="$ac_cpp conftest.$ac_ext"
3690case "(($ac_try" in
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3693esac
3694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3696 ac_status=$?
3697 grep -v '^ *+' conftest.er1 >conftest.err
3698 rm -f conftest.er1
3699 cat conftest.err >&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3701 (exit $ac_status); } >/dev/null && {
3702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3703 test ! -s conftest.err
3704 }; then
d9898ee8 3705 # Broken: success on invalid input.
3706continue
3707else
3708 echo "$as_me: failed program was:" >&5
3709sed 's/^/| /' conftest.$ac_ext >&5
3710
3711 # Passes both tests.
3712ac_preproc_ok=:
3713break
3714fi
64ff59ba 3715
d9898ee8 3716rm -f conftest.err conftest.$ac_ext
3717
3718done
3719# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3720rm -f conftest.err conftest.$ac_ext
3721if $ac_preproc_ok; then
3722 :
3723else
3724 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3725See \`config.log' for more details." >&5
3726echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3727See \`config.log' for more details." >&2;}
3728 { (exit 1); exit 1; }; }
3729fi
3730
3731ac_ext=c
3732ac_cpp='$CPP $CPPFLAGS'
3733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736
3737
64ff59ba 3738{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3739echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3740if test "${ac_cv_path_GREP+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742else
3743 # Extract the first word of "grep ggrep" to use in msg output
3744if test -z "$GREP"; then
3745set dummy grep ggrep; ac_prog_name=$2
3746if test "${ac_cv_path_GREP+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3748else
3749 ac_path_GREP_found=false
3750# Loop through the user's path and test for each of PROGNAME-LIST
3751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3753do
3754 IFS=$as_save_IFS
3755 test -z "$as_dir" && as_dir=.
3756 for ac_prog in grep ggrep; do
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3759 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3760 # Check for GNU ac_path_GREP and select it if it is found.
3761 # Check for GNU $ac_path_GREP
3762case `"$ac_path_GREP" --version 2>&1` in
3763*GNU*)
3764 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3765*)
3766 ac_count=0
3767 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3768 while :
3769 do
3770 cat "conftest.in" "conftest.in" >"conftest.tmp"
3771 mv "conftest.tmp" "conftest.in"
3772 cp "conftest.in" "conftest.nl"
3773 echo 'GREP' >> "conftest.nl"
3774 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3776 ac_count=`expr $ac_count + 1`
3777 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3778 # Best one so far, save it but keep looking for a better one
3779 ac_cv_path_GREP="$ac_path_GREP"
3780 ac_path_GREP_max=$ac_count
3781 fi
3782 # 10*(2^10) chars as input seems more than enough
3783 test $ac_count -gt 10 && break
3784 done
3785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3786esac
3787
3788
3789 $ac_path_GREP_found && break 3
3790 done
3791done
3792
3793done
3794IFS=$as_save_IFS
3795
3796
3797fi
3798
3799GREP="$ac_cv_path_GREP"
3800if test -z "$GREP"; then
3801 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3802echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3803 { (exit 1); exit 1; }; }
3804fi
3805
3806else
3807 ac_cv_path_GREP=$GREP
3808fi
3809
3810
3811fi
3812{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3813echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3814 GREP="$ac_cv_path_GREP"
3815
3816
3817{ echo "$as_me:$LINENO: checking for egrep" >&5
3818echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3819if test "${ac_cv_path_EGREP+set}" = set; then
d9898ee8 3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821else
64ff59ba 3822 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3823 then ac_cv_path_EGREP="$GREP -E"
3824 else
3825 # Extract the first word of "egrep" to use in msg output
3826if test -z "$EGREP"; then
3827set dummy egrep; ac_prog_name=$2
3828if test "${ac_cv_path_EGREP+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830else
3831 ac_path_EGREP_found=false
3832# Loop through the user's path and test for each of PROGNAME-LIST
3833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3835do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_prog in egrep; do
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3841 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3842 # Check for GNU ac_path_EGREP and select it if it is found.
3843 # Check for GNU $ac_path_EGREP
3844case `"$ac_path_EGREP" --version 2>&1` in
3845*GNU*)
3846 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3847*)
3848 ac_count=0
3849 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3850 while :
3851 do
3852 cat "conftest.in" "conftest.in" >"conftest.tmp"
3853 mv "conftest.tmp" "conftest.in"
3854 cp "conftest.in" "conftest.nl"
3855 echo 'EGREP' >> "conftest.nl"
3856 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3858 ac_count=`expr $ac_count + 1`
3859 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3860 # Best one so far, save it but keep looking for a better one
3861 ac_cv_path_EGREP="$ac_path_EGREP"
3862 ac_path_EGREP_max=$ac_count
d9898ee8 3863 fi
64ff59ba 3864 # 10*(2^10) chars as input seems more than enough
3865 test $ac_count -gt 10 && break
3866 done
3867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3868esac
3869
3870
3871 $ac_path_EGREP_found && break 3
3872 done
3873done
3874
3875done
3876IFS=$as_save_IFS
3877
3878
3879fi
3880
3881EGREP="$ac_cv_path_EGREP"
3882if test -z "$EGREP"; then
3883 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3884echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3885 { (exit 1); exit 1; }; }
3886fi
3887
3888else
3889 ac_cv_path_EGREP=$EGREP
3890fi
3891
3892
3893 fi
d9898ee8 3894fi
64ff59ba 3895{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3896echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3897 EGREP="$ac_cv_path_EGREP"
d9898ee8 3898
3899
3900
64ff59ba 3901{ echo "$as_me:$LINENO: checking for AIX" >&5
3902echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
d9898ee8 3903cat >conftest.$ac_ext <<_ACEOF
3904/* confdefs.h. */
3905_ACEOF
3906cat confdefs.h >>conftest.$ac_ext
3907cat >>conftest.$ac_ext <<_ACEOF
3908/* end confdefs.h. */
3909#ifdef _AIX
3910 yes
3911#endif
3912
3913_ACEOF
3914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 $EGREP "yes" >/dev/null 2>&1; then
64ff59ba 3916 { echo "$as_me:$LINENO: result: yes" >&5
3917echo "${ECHO_T}yes" >&6; }
d9898ee8 3918cat >>confdefs.h <<\_ACEOF
3919#define _ALL_SOURCE 1
3920_ACEOF
3921
3922else
64ff59ba 3923 { echo "$as_me:$LINENO: result: no" >&5
3924echo "${ECHO_T}no" >&6; }
d9898ee8 3925fi
3926rm -f conftest*
3927
3928
64ff59ba 3929{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3930echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 3931if test "${ac_cv_header_stdc+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933else
3934 cat >conftest.$ac_ext <<_ACEOF
3935/* confdefs.h. */
3936_ACEOF
3937cat confdefs.h >>conftest.$ac_ext
3938cat >>conftest.$ac_ext <<_ACEOF
3939/* end confdefs.h. */
3940#include <stdlib.h>
3941#include <stdarg.h>
3942#include <string.h>
3943#include <float.h>
3944
3945int
3946main ()
3947{
3948
3949 ;
3950 return 0;
3951}
3952_ACEOF
3953rm -f conftest.$ac_objext
64ff59ba 3954if { (ac_try="$ac_compile"
3955case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958esac
3959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3961 ac_status=$?
3962 grep -v '^ *+' conftest.er1 >conftest.err
3963 rm -f conftest.er1
3964 cat conftest.err >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3966 (exit $ac_status); } && {
3967 test -z "$ac_c_werror_flag" ||
3968 test ! -s conftest.err
3969 } && test -s conftest.$ac_objext; then
d9898ee8 3970 ac_cv_header_stdc=yes
3971else
3972 echo "$as_me: failed program was:" >&5
3973sed 's/^/| /' conftest.$ac_ext >&5
3974
64ff59ba 3975 ac_cv_header_stdc=no
d9898ee8 3976fi
64ff59ba 3977
3978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3979
3980if test $ac_cv_header_stdc = yes; then
3981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3982 cat >conftest.$ac_ext <<_ACEOF
3983/* confdefs.h. */
3984_ACEOF
3985cat confdefs.h >>conftest.$ac_ext
3986cat >>conftest.$ac_ext <<_ACEOF
3987/* end confdefs.h. */
3988#include <string.h>
3989
3990_ACEOF
3991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3992 $EGREP "memchr" >/dev/null 2>&1; then
3993 :
3994else
3995 ac_cv_header_stdc=no
3996fi
3997rm -f conftest*
3998
3999fi
4000
4001if test $ac_cv_header_stdc = yes; then
4002 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4003 cat >conftest.$ac_ext <<_ACEOF
4004/* confdefs.h. */
4005_ACEOF
4006cat confdefs.h >>conftest.$ac_ext
4007cat >>conftest.$ac_ext <<_ACEOF
4008/* end confdefs.h. */
4009#include <stdlib.h>
4010
4011_ACEOF
4012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4013 $EGREP "free" >/dev/null 2>&1; then
4014 :
4015else
4016 ac_cv_header_stdc=no
4017fi
4018rm -f conftest*
4019
4020fi
4021
4022if test $ac_cv_header_stdc = yes; then
4023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4024 if test "$cross_compiling" = yes; then
4025 :
4026else
4027 cat >conftest.$ac_ext <<_ACEOF
4028/* confdefs.h. */
4029_ACEOF
4030cat confdefs.h >>conftest.$ac_ext
4031cat >>conftest.$ac_ext <<_ACEOF
4032/* end confdefs.h. */
4033#include <ctype.h>
64ff59ba 4034#include <stdlib.h>
d9898ee8 4035#if ((' ' & 0x0FF) == 0x020)
4036# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4037# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4038#else
4039# define ISLOWER(c) \
4040 (('a' <= (c) && (c) <= 'i') \
4041 || ('j' <= (c) && (c) <= 'r') \
4042 || ('s' <= (c) && (c) <= 'z'))
4043# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4044#endif
4045
4046#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4047int
4048main ()
4049{
4050 int i;
4051 for (i = 0; i < 256; i++)
4052 if (XOR (islower (i), ISLOWER (i))
4053 || toupper (i) != TOUPPER (i))
64ff59ba 4054 return 2;
4055 return 0;
d9898ee8 4056}
4057_ACEOF
4058rm -f conftest$ac_exeext
64ff59ba 4059if { (ac_try="$ac_link"
4060case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063esac
4064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_link") 2>&5
d9898ee8 4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 4069 { (case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4072esac
4073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_try") 2>&5
d9898ee8 4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 :
4079else
4080 echo "$as_me: program exited with status $ac_status" >&5
4081echo "$as_me: failed program was:" >&5
4082sed 's/^/| /' conftest.$ac_ext >&5
4083
4084( exit $ac_status )
4085ac_cv_header_stdc=no
4086fi
64ff59ba 4087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 4088fi
64ff59ba 4089
4090
d9898ee8 4091fi
4092fi
64ff59ba 4093{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4094echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 4095if test $ac_cv_header_stdc = yes; then
4096
4097cat >>confdefs.h <<\_ACEOF
4098#define STDC_HEADERS 1
4099_ACEOF
4100
4101fi
4102
4103# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4114 inttypes.h stdint.h unistd.h
4115do
4116as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 4117{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4121else
4122 cat >conftest.$ac_ext <<_ACEOF
4123/* confdefs.h. */
4124_ACEOF
4125cat confdefs.h >>conftest.$ac_ext
4126cat >>conftest.$ac_ext <<_ACEOF
4127/* end confdefs.h. */
4128$ac_includes_default
4129
4130#include <$ac_header>
4131_ACEOF
4132rm -f conftest.$ac_objext
64ff59ba 4133if { (ac_try="$ac_compile"
4134case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137esac
4138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4140 ac_status=$?
4141 grep -v '^ *+' conftest.er1 >conftest.err
4142 rm -f conftest.er1
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4145 (exit $ac_status); } && {
4146 test -z "$ac_c_werror_flag" ||
4147 test ! -s conftest.err
4148 } && test -s conftest.$ac_objext; then
d9898ee8 4149 eval "$as_ac_Header=yes"
4150else
4151 echo "$as_me: failed program was:" >&5
4152sed 's/^/| /' conftest.$ac_ext >&5
4153
64ff59ba 4154 eval "$as_ac_Header=no"
d9898ee8 4155fi
64ff59ba 4156
4157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4158fi
64ff59ba 4159ac_res=`eval echo '${'$as_ac_Header'}'`
4160 { echo "$as_me:$LINENO: result: $ac_res" >&5
4161echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 4162if test `eval echo '${'$as_ac_Header'}'` = yes; then
4163 cat >>confdefs.h <<_ACEOF
4164#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4165_ACEOF
4166
4167fi
4168
4169done
4170
4171
4172if test "${ac_cv_header_minix_config_h+set}" = set; then
64ff59ba 4173 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4174echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
d9898ee8 4175if test "${ac_cv_header_minix_config_h+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4177fi
64ff59ba 4178{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4179echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
d9898ee8 4180else
4181 # Is the header compilable?
64ff59ba 4182{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4183echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
d9898ee8 4184cat >conftest.$ac_ext <<_ACEOF
4185/* confdefs.h. */
4186_ACEOF
4187cat confdefs.h >>conftest.$ac_ext
4188cat >>conftest.$ac_ext <<_ACEOF
4189/* end confdefs.h. */
4190$ac_includes_default
4191#include <minix/config.h>
4192_ACEOF
4193rm -f conftest.$ac_objext
64ff59ba 4194if { (ac_try="$ac_compile"
4195case "(($ac_try" in
4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4198esac
4199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4200 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4201 ac_status=$?
4202 grep -v '^ *+' conftest.er1 >conftest.err
4203 rm -f conftest.er1
4204 cat conftest.err >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4206 (exit $ac_status); } && {
4207 test -z "$ac_c_werror_flag" ||
4208 test ! -s conftest.err
4209 } && test -s conftest.$ac_objext; then
d9898ee8 4210 ac_header_compiler=yes
4211else
4212 echo "$as_me: failed program was:" >&5
4213sed 's/^/| /' conftest.$ac_ext >&5
4214
64ff59ba 4215 ac_header_compiler=no
d9898ee8 4216fi
64ff59ba 4217
4218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4220echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 4221
4222# Is the header present?
64ff59ba 4223{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4224echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
d9898ee8 4225cat >conftest.$ac_ext <<_ACEOF
4226/* confdefs.h. */
4227_ACEOF
4228cat confdefs.h >>conftest.$ac_ext
4229cat >>conftest.$ac_ext <<_ACEOF
4230/* end confdefs.h. */
4231#include <minix/config.h>
4232_ACEOF
64ff59ba 4233if { (ac_try="$ac_cpp conftest.$ac_ext"
4234case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4237esac
4238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4240 ac_status=$?
4241 grep -v '^ *+' conftest.er1 >conftest.err
4242 rm -f conftest.er1
4243 cat conftest.err >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4245 (exit $ac_status); } >/dev/null && {
4246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4247 test ! -s conftest.err
4248 }; then
d9898ee8 4249 ac_header_preproc=yes
4250else
4251 echo "$as_me: failed program was:" >&5
4252sed 's/^/| /' conftest.$ac_ext >&5
4253
4254 ac_header_preproc=no
4255fi
64ff59ba 4256
d9898ee8 4257rm -f conftest.err conftest.$ac_ext
64ff59ba 4258{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4259echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 4260
4261# So? What about this header?
4262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4263 yes:no: )
4264 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4265echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4266 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4267echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4268 ac_header_preproc=yes
4269 ;;
4270 no:yes:* )
4271 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4272echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4273 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4274echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4275 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4276echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4277 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4278echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4279 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4280echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4281 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4282echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
64ff59ba 4283 ( cat <<\_ASBOX
d9898ee8 4284## -------------------------------------------------- ##
4285## Report this to courier-users@lists.sourceforge.net ##
4286## -------------------------------------------------- ##
4287_ASBOX
64ff59ba 4288 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 4289 ;;
4290esac
64ff59ba 4291{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
4292echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
d9898ee8 4293if test "${ac_cv_header_minix_config_h+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4295else
4296 ac_cv_header_minix_config_h=$ac_header_preproc
4297fi
64ff59ba 4298{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4299echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
d9898ee8 4300
4301fi
4302if test $ac_cv_header_minix_config_h = yes; then
4303 MINIX=yes
4304else
4305 MINIX=
4306fi
4307
4308
4309if test "$MINIX" = yes; then
4310
4311cat >>confdefs.h <<\_ACEOF
4312#define _POSIX_SOURCE 1
4313_ACEOF
4314
4315
4316cat >>confdefs.h <<\_ACEOF
4317#define _POSIX_1_SOURCE 2
4318_ACEOF
4319
4320
4321cat >>confdefs.h <<\_ACEOF
4322#define _MINIX 1
4323_ACEOF
4324
4325fi
4326
4327for ac_prog in gawk mawk nawk awk
4328do
4329 # Extract the first word of "$ac_prog", so it can be a program name with args.
4330set dummy $ac_prog; ac_word=$2
64ff59ba 4331{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 4333if test "${ac_cv_prog_AWK+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4335else
4336 if test -n "$AWK"; then
4337 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4338else
4339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340for as_dir in $PATH
4341do
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 4345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4346 ac_cv_prog_AWK="$ac_prog"
4347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4349 fi
4350done
4351done
64ff59ba 4352IFS=$as_save_IFS
d9898ee8 4353
4354fi
4355fi
4356AWK=$ac_cv_prog_AWK
4357if test -n "$AWK"; then
64ff59ba 4358 { echo "$as_me:$LINENO: result: $AWK" >&5
4359echo "${ECHO_T}$AWK" >&6; }
d9898ee8 4360else
64ff59ba 4361 { echo "$as_me:$LINENO: result: no" >&5
4362echo "${ECHO_T}no" >&6; }
d9898ee8 4363fi
4364
64ff59ba 4365
d9898ee8 4366 test -n "$AWK" && break
4367done
4368
64ff59ba 4369ac_ext=cpp
d9898ee8 4370ac_cpp='$CXXCPP $CPPFLAGS'
4371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 4374if test -z "$CXX"; then
4375 if test -n "$CCC"; then
4376 CXX=$CCC
4377 else
4378 if test -n "$ac_tool_prefix"; then
4379 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 4380 do
4381 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4382set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 4383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 4385if test "${ac_cv_prog_CXX+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4387else
4388 if test -n "$CXX"; then
4389 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4390else
4391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392for as_dir in $PATH
4393do
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 4397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4398 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 break 2
4401 fi
4402done
4403done
64ff59ba 4404IFS=$as_save_IFS
d9898ee8 4405
4406fi
4407fi
4408CXX=$ac_cv_prog_CXX
4409if test -n "$CXX"; then
64ff59ba 4410 { echo "$as_me:$LINENO: result: $CXX" >&5
4411echo "${ECHO_T}$CXX" >&6; }
d9898ee8 4412else
64ff59ba 4413 { echo "$as_me:$LINENO: result: no" >&5
4414echo "${ECHO_T}no" >&6; }
d9898ee8 4415fi
4416
64ff59ba 4417
d9898ee8 4418 test -n "$CXX" && break
4419 done
4420fi
4421if test -z "$CXX"; then
4422 ac_ct_CXX=$CXX
64ff59ba 4423 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 4424do
4425 # Extract the first word of "$ac_prog", so it can be a program name with args.
4426set dummy $ac_prog; ac_word=$2
64ff59ba 4427{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 4429if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431else
4432 if test -n "$ac_ct_CXX"; then
4433 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4434else
4435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436for as_dir in $PATH
4437do
4438 IFS=$as_save_IFS
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4442 ac_cv_prog_ac_ct_CXX="$ac_prog"
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 break 2
4445 fi
4446done
4447done
64ff59ba 4448IFS=$as_save_IFS
d9898ee8 4449
4450fi
4451fi
4452ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4453if test -n "$ac_ct_CXX"; then
64ff59ba 4454 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4455echo "${ECHO_T}$ac_ct_CXX" >&6; }
d9898ee8 4456else
64ff59ba 4457 { echo "$as_me:$LINENO: result: no" >&5
4458echo "${ECHO_T}no" >&6; }
d9898ee8 4459fi
4460
64ff59ba 4461
d9898ee8 4462 test -n "$ac_ct_CXX" && break
4463done
d9898ee8 4464
64ff59ba 4465 if test "x$ac_ct_CXX" = x; then
4466 CXX="g++"
4467 else
4468 case $cross_compiling:$ac_tool_warned in
4469yes:)
4470{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4471whose name does not start with the host triplet. If you think this
4472configuration is useful to you, please write to autoconf@gnu.org." >&5
4473echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4474whose name does not start with the host triplet. If you think this
4475configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4476ac_tool_warned=yes ;;
4477esac
4478 CXX=$ac_ct_CXX
4479 fi
d9898ee8 4480fi
4481
64ff59ba 4482 fi
4483fi
d9898ee8 4484# Provide some information about the compiler.
64ff59ba 4485echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d9898ee8 4486ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 4487{ (ac_try="$ac_compiler --version >&5"
4488case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491esac
4492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }
64ff59ba 4497{ (ac_try="$ac_compiler -v >&5"
4498case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501esac
4502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4503 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 4504 ac_status=$?
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }
64ff59ba 4507{ (ac_try="$ac_compiler -V >&5"
4508case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4511esac
4512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4513 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }
4517
64ff59ba 4518{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4519echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d9898ee8 4520if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522else
4523 cat >conftest.$ac_ext <<_ACEOF
4524/* confdefs.h. */
4525_ACEOF
4526cat confdefs.h >>conftest.$ac_ext
4527cat >>conftest.$ac_ext <<_ACEOF
4528/* end confdefs.h. */
4529
4530int
4531main ()
4532{
4533#ifndef __GNUC__
4534 choke me
4535#endif
4536
4537 ;
4538 return 0;
4539}
4540_ACEOF
4541rm -f conftest.$ac_objext
64ff59ba 4542if { (ac_try="$ac_compile"
4543case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546esac
4547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4549 ac_status=$?
4550 grep -v '^ *+' conftest.er1 >conftest.err
4551 rm -f conftest.er1
4552 cat conftest.err >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4554 (exit $ac_status); } && {
4555 test -z "$ac_cxx_werror_flag" ||
4556 test ! -s conftest.err
4557 } && test -s conftest.$ac_objext; then
d9898ee8 4558 ac_compiler_gnu=yes
4559else
4560 echo "$as_me: failed program was:" >&5
4561sed 's/^/| /' conftest.$ac_ext >&5
4562
64ff59ba 4563 ac_compiler_gnu=no
d9898ee8 4564fi
64ff59ba 4565
4566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4567ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4568
4569fi
64ff59ba 4570{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4571echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d9898ee8 4572GXX=`test $ac_compiler_gnu = yes && echo yes`
4573ac_test_CXXFLAGS=${CXXFLAGS+set}
4574ac_save_CXXFLAGS=$CXXFLAGS
64ff59ba 4575{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4576echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d9898ee8 4577if test "${ac_cv_prog_cxx_g+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579else
64ff59ba 4580 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4581 ac_cxx_werror_flag=yes
4582 ac_cv_prog_cxx_g=no
4583 CXXFLAGS="-g"
4584 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 4585/* confdefs.h. */
4586_ACEOF
4587cat confdefs.h >>conftest.$ac_ext
4588cat >>conftest.$ac_ext <<_ACEOF
4589/* end confdefs.h. */
4590
4591int
4592main ()
4593{
4594
4595 ;
4596 return 0;
4597}
4598_ACEOF
4599rm -f conftest.$ac_objext
64ff59ba 4600if { (ac_try="$ac_compile"
4601case "(($ac_try" in
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4604esac
4605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4607 ac_status=$?
4608 grep -v '^ *+' conftest.er1 >conftest.err
4609 rm -f conftest.er1
4610 cat conftest.err >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4612 (exit $ac_status); } && {
4613 test -z "$ac_cxx_werror_flag" ||
4614 test ! -s conftest.err
4615 } && test -s conftest.$ac_objext; then
d9898ee8 4616 ac_cv_prog_cxx_g=yes
4617else
4618 echo "$as_me: failed program was:" >&5
4619sed 's/^/| /' conftest.$ac_ext >&5
4620
64ff59ba 4621 CXXFLAGS=""
4622 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 4623/* confdefs.h. */
4624_ACEOF
4625cat confdefs.h >>conftest.$ac_ext
4626cat >>conftest.$ac_ext <<_ACEOF
4627/* end confdefs.h. */
64ff59ba 4628
d9898ee8 4629int
4630main ()
4631{
64ff59ba 4632
d9898ee8 4633 ;
4634 return 0;
4635}
4636_ACEOF
4637rm -f conftest.$ac_objext
64ff59ba 4638if { (ac_try="$ac_compile"
4639case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4642esac
4643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4644 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4645 ac_status=$?
4646 grep -v '^ *+' conftest.er1 >conftest.err
4647 rm -f conftest.er1
4648 cat conftest.err >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4650 (exit $ac_status); } && {
4651 test -z "$ac_cxx_werror_flag" ||
4652 test ! -s conftest.err
4653 } && test -s conftest.$ac_objext; then
d9898ee8 4654 :
4655else
4656 echo "$as_me: failed program was:" >&5
4657sed 's/^/| /' conftest.$ac_ext >&5
4658
64ff59ba 4659 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4660 CXXFLAGS="-g"
4661 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 4662/* confdefs.h. */
4663_ACEOF
4664cat confdefs.h >>conftest.$ac_ext
4665cat >>conftest.$ac_ext <<_ACEOF
4666/* end confdefs.h. */
64ff59ba 4667
d9898ee8 4668int
4669main ()
4670{
64ff59ba 4671
d9898ee8 4672 ;
4673 return 0;
4674}
4675_ACEOF
4676rm -f conftest.$ac_objext
64ff59ba 4677if { (ac_try="$ac_compile"
4678case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4681esac
4682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4684 ac_status=$?
4685 grep -v '^ *+' conftest.er1 >conftest.err
4686 rm -f conftest.er1
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4689 (exit $ac_status); } && {
4690 test -z "$ac_cxx_werror_flag" ||
4691 test ! -s conftest.err
4692 } && test -s conftest.$ac_objext; then
4693 ac_cv_prog_cxx_g=yes
d9898ee8 4694else
4695 echo "$as_me: failed program was:" >&5
4696sed 's/^/| /' conftest.$ac_ext >&5
4697
64ff59ba 4698
d9898ee8 4699fi
64ff59ba 4700
4701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702fi
4703
4704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4705fi
4706
64ff59ba 4707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4709fi
4710{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4711echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4712if test "$ac_test_CXXFLAGS" = set; then
4713 CXXFLAGS=$ac_save_CXXFLAGS
4714elif test $ac_cv_prog_cxx_g = yes; then
4715 if test "$GXX" = yes; then
4716 CXXFLAGS="-g -O2"
4717 else
4718 CXXFLAGS="-g"
4719 fi
4720else
4721 if test "$GXX" = yes; then
4722 CXXFLAGS="-O2"
4723 else
4724 CXXFLAGS=
4725 fi
4726fi
d9898ee8 4727ac_ext=c
4728ac_cpp='$CPP $CPPFLAGS'
4729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4731ac_compiler_gnu=$ac_cv_c_compiler_gnu
4732
4733depcc="$CXX" am_compiler_list=
4734
64ff59ba 4735{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4736echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 4737if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4739else
4740 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4741 # We make a subdir and do the tests there. Otherwise we can end up
4742 # making bogus files that we don't know about and never remove. For
4743 # instance it was reported that on HP-UX the gcc test will end up
4744 # making a dummy file named `D' -- because `-MD' means `put the output
4745 # in D'.
4746 mkdir conftest.dir
4747 # Copy depcomp to subdir because otherwise we won't find it if we're
4748 # using a relative directory.
4749 cp "$am_depcomp" conftest.dir
4750 cd conftest.dir
4751 # We will build objects and dependencies in a subdirectory because
4752 # it helps to detect inapplicable dependency modes. For instance
4753 # both Tru64's cc and ICC support -MD to output dependencies as a
4754 # side effect of compilation, but ICC will put the dependencies in
4755 # the current directory while Tru64 will put them in the object
4756 # directory.
4757 mkdir sub
4758
4759 am_cv_CXX_dependencies_compiler_type=none
4760 if test "$am_compiler_list" = ""; then
4761 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4762 fi
4763 for depmode in $am_compiler_list; do
4764 # Setup a source with many dependencies, because some compilers
4765 # like to wrap large dependency lists on column 80 (with \), and
4766 # we should not choose a depcomp mode which is confused by this.
4767 #
4768 # We need to recreate these files for each test, as the compiler may
4769 # overwrite some of them when testing with obscure command lines.
4770 # This happens at least with the AIX C compiler.
4771 : > sub/conftest.c
4772 for i in 1 2 3 4 5 6; do
4773 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4774 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4775 # Solaris 8's {/usr,}/bin/sh.
4776 touch sub/conftst$i.h
4777 done
4778 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4779
4780 case $depmode in
4781 nosideeffect)
4782 # after this tag, mechanisms are not by side-effect, so they'll
4783 # only be used when explicitly requested
4784 if test "x$enable_dependency_tracking" = xyes; then
4785 continue
4786 else
4787 break
4788 fi
4789 ;;
4790 none) break ;;
4791 esac
4792 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4793 # mode. It turns out that the SunPro C++ compiler does not properly
4794 # handle `-M -o', and we need to detect this.
4795 if depmode=$depmode \
4796 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4797 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4798 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4799 >/dev/null 2>conftest.err &&
64ff59ba 4800 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 4801 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4802 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4803 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4804 # icc doesn't choke on unknown options, it will just issue warnings
4805 # or remarks (even with -Werror). So we grep stderr for any message
4806 # that says an option was ignored or not supported.
4807 # When given -MP, icc 7.0 and 7.1 complain thusly:
4808 # icc: Command line warning: ignoring option '-M'; no argument required
4809 # The diagnosis changed in icc 8.0:
4810 # icc: Command line remark: option '-MP' not supported
4811 if (grep 'ignoring option' conftest.err ||
4812 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4813 am_cv_CXX_dependencies_compiler_type=$depmode
4814 break
4815 fi
4816 fi
4817 done
4818
4819 cd ..
4820 rm -rf conftest.dir
4821else
4822 am_cv_CXX_dependencies_compiler_type=none
4823fi
4824
4825fi
64ff59ba 4826{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4827echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
d9898ee8 4828CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4829
64ff59ba 4830 if
d9898ee8 4831 test "x$enable_dependency_tracking" != xno \
4832 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4833 am__fastdepCXX_TRUE=
4834 am__fastdepCXX_FALSE='#'
4835else
4836 am__fastdepCXX_TRUE='#'
4837 am__fastdepCXX_FALSE=
4838fi
4839
4840
64ff59ba 4841{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
4842echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4843if test "${ac_cv_search_strerror+set}" = set; then
d9898ee8 4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4845else
64ff59ba 4846 ac_func_search_save_LIBS=$LIBS
d9898ee8 4847cat >conftest.$ac_ext <<_ACEOF
4848/* confdefs.h. */
4849_ACEOF
4850cat confdefs.h >>conftest.$ac_ext
4851cat >>conftest.$ac_ext <<_ACEOF
4852/* end confdefs.h. */
4853
64ff59ba 4854/* Override any GCC internal prototype to avoid an error.
4855 Use char because int might match the return type of a GCC
4856 builtin and then its argument prototype would still apply. */
d9898ee8 4857#ifdef __cplusplus
4858extern "C"
4859#endif
d9898ee8 4860char strerror ();
4861int
4862main ()
4863{
64ff59ba 4864return strerror ();
d9898ee8 4865 ;
4866 return 0;
4867}
4868_ACEOF
64ff59ba 4869for ac_lib in '' cposix; do
4870 if test -z "$ac_lib"; then
4871 ac_res="none required"
4872 else
4873 ac_res=-l$ac_lib
4874 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4875 fi
4876 rm -f conftest.$ac_objext conftest$ac_exeext
4877if { (ac_try="$ac_link"
4878case "(($ac_try" in
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4881esac
4882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883 (eval "$ac_link") 2>conftest.er1
d9898ee8 4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4889 (exit $ac_status); } && {
4890 test -z "$ac_c_werror_flag" ||
4891 test ! -s conftest.err
4892 } && test -s conftest$ac_exeext &&
4893 $as_test_x conftest$ac_exeext; then
4894 ac_cv_search_strerror=$ac_res
d9898ee8 4895else
4896 echo "$as_me: failed program was:" >&5
4897sed 's/^/| /' conftest.$ac_ext >&5
4898
64ff59ba 4899
d9898ee8 4900fi
64ff59ba 4901
4902rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4903 conftest$ac_exeext
4904 if test "${ac_cv_search_strerror+set}" = set; then
4905 break
d9898ee8 4906fi
64ff59ba 4907done
4908if test "${ac_cv_search_strerror+set}" = set; then
4909 :
4910else
4911 ac_cv_search_strerror=no
d9898ee8 4912fi
64ff59ba 4913rm conftest.$ac_ext
4914LIBS=$ac_func_search_save_LIBS
4915fi
4916{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4917echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4918ac_res=$ac_cv_search_strerror
4919if test "$ac_res" != no; then
4920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d9898ee8 4921
64ff59ba 4922fi
d9898ee8 4923
64ff59ba 4924# Check whether --enable-shared was given.
d9898ee8 4925if test "${enable_shared+set}" = set; then
64ff59ba 4926 enableval=$enable_shared; p=${PACKAGE-default}
d9898ee8 4927 case $enableval in
4928 yes) enable_shared=yes ;;
4929 no) enable_shared=no ;;
4930 *)
4931 enable_shared=no
4932 # Look at the argument we got. We use all the common list separators.
4933 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4934 for pkg in $enableval; do
4935 IFS="$lt_save_ifs"
4936 if test "X$pkg" = "X$p"; then
4937 enable_shared=yes
4938 fi
4939 done
4940 IFS="$lt_save_ifs"
4941 ;;
4942 esac
4943else
4944 enable_shared=yes
64ff59ba 4945fi
4946
d9898ee8 4947
64ff59ba 4948# Check whether --enable-static was given.
d9898ee8 4949if test "${enable_static+set}" = set; then
64ff59ba 4950 enableval=$enable_static; p=${PACKAGE-default}
d9898ee8 4951 case $enableval in
4952 yes) enable_static=yes ;;
4953 no) enable_static=no ;;
4954 *)
4955 enable_static=no
4956 # Look at the argument we got. We use all the common list separators.
4957 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4958 for pkg in $enableval; do
4959 IFS="$lt_save_ifs"
4960 if test "X$pkg" = "X$p"; then
4961 enable_static=yes
4962 fi
4963 done
4964 IFS="$lt_save_ifs"
4965 ;;
4966 esac
4967else
4968 enable_static=yes
64ff59ba 4969fi
4970
d9898ee8 4971
64ff59ba 4972# Check whether --enable-fast-install was given.
d9898ee8 4973if test "${enable_fast_install+set}" = set; then
64ff59ba 4974 enableval=$enable_fast_install; p=${PACKAGE-default}
d9898ee8 4975 case $enableval in
4976 yes) enable_fast_install=yes ;;
4977 no) enable_fast_install=no ;;
4978 *)
4979 enable_fast_install=no
4980 # Look at the argument we got. We use all the common list separators.
4981 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4982 for pkg in $enableval; do
4983 IFS="$lt_save_ifs"
4984 if test "X$pkg" = "X$p"; then
4985 enable_fast_install=yes
4986 fi
4987 done
4988 IFS="$lt_save_ifs"
4989 ;;
4990 esac
4991else
4992 enable_fast_install=yes
64ff59ba 4993fi
4994
d9898ee8 4995
4996# Make sure we can run config.sub.
64ff59ba 4997$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4998 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4999echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 5000 { (exit 1); exit 1; }; }
5001
64ff59ba 5002{ echo "$as_me:$LINENO: checking build system type" >&5
5003echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
d9898ee8 5004if test "${ac_cv_build+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006else
64ff59ba 5007 ac_build_alias=$build_alias
5008test "x$ac_build_alias" = x &&
5009 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5010test "x$ac_build_alias" = x &&
d9898ee8 5011 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5012echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5013 { (exit 1); exit 1; }; }
64ff59ba 5014ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5015 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5016echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 5017 { (exit 1); exit 1; }; }
5018
5019fi
64ff59ba 5020{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5021echo "${ECHO_T}$ac_cv_build" >&6; }
5022case $ac_cv_build in
5023*-*-*) ;;
5024*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5025echo "$as_me: error: invalid value of canonical build" >&2;}
5026 { (exit 1); exit 1; }; };;
5027esac
d9898ee8 5028build=$ac_cv_build
64ff59ba 5029ac_save_IFS=$IFS; IFS='-'
5030set x $ac_cv_build
5031shift
5032build_cpu=$1
5033build_vendor=$2
5034shift; shift
5035# Remember, the first character of IFS is used to create $*,
5036# except with old shells:
5037build_os=$*
5038IFS=$ac_save_IFS
5039case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5040
5041
5042{ echo "$as_me:$LINENO: checking host system type" >&5
5043echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
d9898ee8 5044if test "${ac_cv_host+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046else
64ff59ba 5047 if test "x$host_alias" = x; then
5048 ac_cv_host=$ac_cv_build
5049else
5050 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5051 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5052echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 5053 { (exit 1); exit 1; }; }
64ff59ba 5054fi
d9898ee8 5055
5056fi
64ff59ba 5057{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5058echo "${ECHO_T}$ac_cv_host" >&6; }
5059case $ac_cv_host in
5060*-*-*) ;;
5061*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5062echo "$as_me: error: invalid value of canonical host" >&2;}
5063 { (exit 1); exit 1; }; };;
5064esac
d9898ee8 5065host=$ac_cv_host
64ff59ba 5066ac_save_IFS=$IFS; IFS='-'
5067set x $ac_cv_host
5068shift
5069host_cpu=$1
5070host_vendor=$2
5071shift; shift
5072# Remember, the first character of IFS is used to create $*,
5073# except with old shells:
5074host_os=$*
5075IFS=$ac_save_IFS
5076case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5077
5078
5079{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5080echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
d9898ee8 5081if test "${lt_cv_path_SED+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5083else
5084 # Loop through the user's path and test for sed and gsed.
5085# Then use that list of sed's as ones to test for truncation.
5086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in $PATH
5088do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for lt_ac_prog in sed gsed; do
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5094 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5095 fi
5096 done
5097 done
5098done
5099IFS=$as_save_IFS
5100lt_ac_max=0
5101lt_ac_count=0
5102# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5103# along with /bin/sed that truncates output.
5104for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5105 test ! -f $lt_ac_sed && continue
5106 cat /dev/null > conftest.in
5107 lt_ac_count=0
5108 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5109 # Check for GNU sed and select it if it is found.
5110 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5111 lt_cv_path_SED=$lt_ac_sed
5112 break
5113 fi
5114 while true; do
5115 cat conftest.in conftest.in >conftest.tmp
5116 mv conftest.tmp conftest.in
5117 cp conftest.in conftest.nl
5118 echo >>conftest.nl
5119 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5120 cmp -s conftest.out conftest.nl || break
5121 # 10000 chars as input seems more than enough
5122 test $lt_ac_count -gt 10 && break
5123 lt_ac_count=`expr $lt_ac_count + 1`
5124 if test $lt_ac_count -gt $lt_ac_max; then
5125 lt_ac_max=$lt_ac_count
5126 lt_cv_path_SED=$lt_ac_sed
5127 fi
5128 done
5129done
5130
5131fi
5132
5133SED=$lt_cv_path_SED
5134
64ff59ba 5135{ echo "$as_me:$LINENO: result: $SED" >&5
5136echo "${ECHO_T}$SED" >&6; }
d9898ee8 5137
5138
64ff59ba 5139# Check whether --with-gnu-ld was given.
d9898ee8 5140if test "${with_gnu_ld+set}" = set; then
64ff59ba 5141 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 5142else
5143 with_gnu_ld=no
64ff59ba 5144fi
5145
d9898ee8 5146ac_prog=ld
5147if test "$GCC" = yes; then
5148 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 5149 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5150echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 5151 case $host in
5152 *-*-mingw*)
5153 # gcc leaves a trailing carriage return which upsets mingw
5154 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5155 *)
5156 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5157 esac
5158 case $ac_prog in
5159 # Accept absolute paths.
5160 [\\/]* | ?:[\\/]*)
5161 re_direlt='/[^/][^/]*/\.\./'
5162 # Canonicalize the pathname of ld
5163 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5164 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5165 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5166 done
5167 test -z "$LD" && LD="$ac_prog"
5168 ;;
5169 "")
5170 # If it fails, then pretend we aren't using GCC.
5171 ac_prog=ld
5172 ;;
5173 *)
5174 # If it is relative, then search for the first ld in PATH.
5175 with_gnu_ld=unknown
5176 ;;
5177 esac
5178elif test "$with_gnu_ld" = yes; then
64ff59ba 5179 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5180echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 5181else
64ff59ba 5182 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5183echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 5184fi
5185if test "${lt_cv_path_LD+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187else
5188 if test -z "$LD"; then
5189 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5190 for ac_dir in $PATH; do
5191 IFS="$lt_save_ifs"
5192 test -z "$ac_dir" && ac_dir=.
5193 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5194 lt_cv_path_LD="$ac_dir/$ac_prog"
5195 # Check to see if the program is GNU ld. I'd rather use --version,
5196 # but apparently some variants of GNU ld only accept -v.
5197 # Break only if it was the GNU/non-GNU ld that we prefer.
5198 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5199 *GNU* | *'with BFD'*)
5200 test "$with_gnu_ld" != no && break
5201 ;;
5202 *)
5203 test "$with_gnu_ld" != yes && break
5204 ;;
5205 esac
5206 fi
5207 done
5208 IFS="$lt_save_ifs"
5209else
5210 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5211fi
5212fi
5213
5214LD="$lt_cv_path_LD"
5215if test -n "$LD"; then
64ff59ba 5216 { echo "$as_me:$LINENO: result: $LD" >&5
5217echo "${ECHO_T}$LD" >&6; }
d9898ee8 5218else
64ff59ba 5219 { echo "$as_me:$LINENO: result: no" >&5
5220echo "${ECHO_T}no" >&6; }
d9898ee8 5221fi
5222test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5223echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5224 { (exit 1); exit 1; }; }
64ff59ba 5225{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5226echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 5227if test "${lt_cv_prog_gnu_ld+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229else
5230 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5231case `$LD -v 2>&1 </dev/null` in
5232*GNU* | *'with BFD'*)
5233 lt_cv_prog_gnu_ld=yes
5234 ;;
5235*)
5236 lt_cv_prog_gnu_ld=no
5237 ;;
5238esac
5239fi
64ff59ba 5240{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5241echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 5242with_gnu_ld=$lt_cv_prog_gnu_ld
5243
5244
64ff59ba 5245{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5246echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d9898ee8 5247if test "${lt_cv_ld_reload_flag+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249else
5250 lt_cv_ld_reload_flag='-r'
5251fi
64ff59ba 5252{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5253echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
d9898ee8 5254reload_flag=$lt_cv_ld_reload_flag
5255case $reload_flag in
5256"" | " "*) ;;
5257*) reload_flag=" $reload_flag" ;;
5258esac
5259reload_cmds='$LD$reload_flag -o $output$reload_objs'
5260case $host_os in
5261 darwin*)
5262 if test "$GCC" = yes; then
5263 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5264 else
5265 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5266 fi
5267 ;;
5268esac
5269
64ff59ba 5270{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5271echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
d9898ee8 5272if test "${lt_cv_path_NM+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274else
5275 if test -n "$NM"; then
5276 # Let the user override the test.
5277 lt_cv_path_NM="$NM"
5278else
5279 lt_nm_to_check="${ac_tool_prefix}nm"
5280 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5281 lt_nm_to_check="$lt_nm_to_check nm"
5282 fi
5283 for lt_tmp_nm in $lt_nm_to_check; do
5284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5285 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5286 IFS="$lt_save_ifs"
5287 test -z "$ac_dir" && ac_dir=.
5288 tmp_nm="$ac_dir/$lt_tmp_nm"
5289 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5290 # Check to see if the nm accepts a BSD-compat flag.
5291 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5292 # nm: unknown option "B" ignored
5293 # Tru64's nm complains that /dev/null is an invalid object file
5294 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5295 */dev/null* | *'Invalid file or object type'*)
5296 lt_cv_path_NM="$tmp_nm -B"
5297 break
5298 ;;
5299 *)
5300 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5301 */dev/null*)
5302 lt_cv_path_NM="$tmp_nm -p"
5303 break
5304 ;;
5305 *)
5306 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5307 continue # so that we can try to find one that supports BSD flags
5308 ;;
5309 esac
5310 ;;
5311 esac
5312 fi
5313 done
5314 IFS="$lt_save_ifs"
5315 done
5316 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5317fi
5318fi
64ff59ba 5319{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5320echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d9898ee8 5321NM="$lt_cv_path_NM"
5322
64ff59ba 5323{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5324echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d9898ee8 5325LN_S=$as_ln_s
5326if test "$LN_S" = "ln -s"; then
64ff59ba 5327 { echo "$as_me:$LINENO: result: yes" >&5
5328echo "${ECHO_T}yes" >&6; }
d9898ee8 5329else
64ff59ba 5330 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5331echo "${ECHO_T}no, using $LN_S" >&6; }
d9898ee8 5332fi
5333
64ff59ba 5334{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5335echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
d9898ee8 5336if test "${lt_cv_deplibs_check_method+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5338else
5339 lt_cv_file_magic_cmd='$MAGIC_CMD'
5340lt_cv_file_magic_test_file=
5341lt_cv_deplibs_check_method='unknown'
5342# Need to set the preceding variable on all platforms that support
5343# interlibrary dependencies.
5344# 'none' -- dependencies not supported.
5345# `unknown' -- same as none, but documents that we really don't know.
5346# 'pass_all' -- all dependencies passed with no checks.
5347# 'test_compile' -- check by making test program.
5348# 'file_magic [[regex]]' -- check by looking for files in library path
5349# which responds to the $file_magic_cmd with a given extended regex.
5350# If you have `file' or equivalent on your system and you're not sure
5351# whether `pass_all' will *always* work, you probably want this one.
5352
5353case $host_os in
5354aix4* | aix5*)
5355 lt_cv_deplibs_check_method=pass_all
5356 ;;
5357
5358beos*)
5359 lt_cv_deplibs_check_method=pass_all
5360 ;;
5361
5362bsdi[45]*)
5363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5364 lt_cv_file_magic_cmd='/usr/bin/file -L'
5365 lt_cv_file_magic_test_file=/shlib/libc.so
5366 ;;
5367
5368cygwin*)
5369 # func_win32_libid is a shell function defined in ltmain.sh
5370 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5371 lt_cv_file_magic_cmd='func_win32_libid'
5372 ;;
5373
5374mingw* | pw32*)
5375 # Base MSYS/MinGW do not provide the 'file' command needed by
5376 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5377 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5378 lt_cv_file_magic_cmd='$OBJDUMP -f'
5379 ;;
5380
5381darwin* | rhapsody*)
5382 lt_cv_deplibs_check_method=pass_all
5383 ;;
5384
5385freebsd* | kfreebsd*-gnu | dragonfly*)
5386 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5387 case $host_cpu in
5388 i*86 )
5389 # Not sure whether the presence of OpenBSD here was a mistake.
5390 # Let's accept both of them until this is cleared up.
5391 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5392 lt_cv_file_magic_cmd=/usr/bin/file
5393 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5394 ;;
5395 esac
5396 else
5397 lt_cv_deplibs_check_method=pass_all
5398 fi
5399 ;;
5400
5401gnu*)
5402 lt_cv_deplibs_check_method=pass_all
5403 ;;
5404
5405hpux10.20* | hpux11*)
5406 lt_cv_file_magic_cmd=/usr/bin/file
5407 case $host_cpu in
5408 ia64*)
5409 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5410 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5411 ;;
5412 hppa*64*)
5413 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]'
5414 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5415 ;;
5416 *)
5417 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5418 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5419 ;;
5420 esac
5421 ;;
5422
5423interix3*)
5424 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5426 ;;
5427
5428irix5* | irix6* | nonstopux*)
5429 case $LD in
5430 *-32|*"-32 ") libmagic=32-bit;;
5431 *-n32|*"-n32 ") libmagic=N32;;
5432 *-64|*"-64 ") libmagic=64-bit;;
5433 *) libmagic=never-match;;
5434 esac
5435 lt_cv_deplibs_check_method=pass_all
5436 ;;
5437
5438# This must be Linux ELF.
5439linux*)
5440 lt_cv_deplibs_check_method=pass_all
5441 ;;
5442
5443netbsd*)
5444 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5445 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5446 else
5447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5448 fi
5449 ;;
5450
5451newos6*)
5452 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5453 lt_cv_file_magic_cmd=/usr/bin/file
5454 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5455 ;;
5456
5457nto-qnx*)
5458 lt_cv_deplibs_check_method=unknown
5459 ;;
5460
5461openbsd*)
5462 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5463 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5464 else
5465 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5466 fi
5467 ;;
5468
5469osf3* | osf4* | osf5*)
5470 lt_cv_deplibs_check_method=pass_all
5471 ;;
5472
5473solaris*)
5474 lt_cv_deplibs_check_method=pass_all
5475 ;;
5476
5477sysv4 | sysv4.3*)
5478 case $host_vendor in
5479 motorola)
5480 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]'
5481 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5482 ;;
5483 ncr)
5484 lt_cv_deplibs_check_method=pass_all
5485 ;;
5486 sequent)
5487 lt_cv_file_magic_cmd='/bin/file'
5488 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5489 ;;
5490 sni)
5491 lt_cv_file_magic_cmd='/bin/file'
5492 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5493 lt_cv_file_magic_test_file=/lib/libc.so
5494 ;;
5495 siemens)
5496 lt_cv_deplibs_check_method=pass_all
5497 ;;
5498 pc)
5499 lt_cv_deplibs_check_method=pass_all
5500 ;;
5501 esac
5502 ;;
5503
5504sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5505 lt_cv_deplibs_check_method=pass_all
5506 ;;
5507esac
5508
5509fi
64ff59ba 5510{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5511echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
d9898ee8 5512file_magic_cmd=$lt_cv_file_magic_cmd
5513deplibs_check_method=$lt_cv_deplibs_check_method
5514test -z "$deplibs_check_method" && deplibs_check_method=unknown
5515
5516
5517
5518
5519# If no C compiler was specified, use CC.
5520LTCC=${LTCC-"$CC"}
5521
5522# If no C compiler flags were specified, use CFLAGS.
5523LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5524
5525# Allow CC to be a program name with arguments.
5526compiler=$CC
5527
64ff59ba 5528# Check whether --enable-libtool-lock was given.
d9898ee8 5529if test "${enable_libtool_lock+set}" = set; then
64ff59ba 5530 enableval=$enable_libtool_lock;
5531fi
d9898ee8 5532
d9898ee8 5533test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5534
5535# Some flags need to be propagated to the compiler or linker for good
5536# libtool support.
5537case $host in
5538ia64-*-hpux*)
5539 # Find out which ABI we are using.
5540 echo 'int i;' > conftest.$ac_ext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5542 (eval $ac_compile) 2>&5
5543 ac_status=$?
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; then
5546 case `/usr/bin/file conftest.$ac_objext` in
5547 *ELF-32*)
5548 HPUX_IA64_MODE="32"
5549 ;;
5550 *ELF-64*)
5551 HPUX_IA64_MODE="64"
5552 ;;
5553 esac
5554 fi
5555 rm -rf conftest*
5556 ;;
5557*-*-irix6*)
5558 # Find out which ABI we are using.
64ff59ba 5559 echo '#line 5559 "configure"' > conftest.$ac_ext
d9898ee8 5560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5561 (eval $ac_compile) 2>&5
5562 ac_status=$?
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }; then
5565 if test "$lt_cv_prog_gnu_ld" = yes; then
5566 case `/usr/bin/file conftest.$ac_objext` in
5567 *32-bit*)
5568 LD="${LD-ld} -melf32bsmip"
5569 ;;
5570 *N32*)
5571 LD="${LD-ld} -melf32bmipn32"
5572 ;;
5573 *64-bit*)
5574 LD="${LD-ld} -melf64bmip"
5575 ;;
5576 esac
5577 else
5578 case `/usr/bin/file conftest.$ac_objext` in
5579 *32-bit*)
5580 LD="${LD-ld} -32"
5581 ;;
5582 *N32*)
5583 LD="${LD-ld} -n32"
5584 ;;
5585 *64-bit*)
5586 LD="${LD-ld} -64"
5587 ;;
5588 esac
5589 fi
5590 fi
5591 rm -rf conftest*
5592 ;;
5593
5594x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5595 # Find out which ABI we are using.
5596 echo 'int i;' > conftest.$ac_ext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5598 (eval $ac_compile) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; then
5602 case `/usr/bin/file conftest.o` in
5603 *32-bit*)
5604 case $host in
5605 x86_64-*linux*)
5606 LD="${LD-ld} -m elf_i386"
5607 ;;
5608 ppc64-*linux*|powerpc64-*linux*)
5609 LD="${LD-ld} -m elf32ppclinux"
5610 ;;
5611 s390x-*linux*)
5612 LD="${LD-ld} -m elf_s390"
5613 ;;
5614 sparc64-*linux*)
5615 LD="${LD-ld} -m elf32_sparc"
5616 ;;
5617 esac
5618 ;;
5619 *64-bit*)
5620 case $host in
5621 x86_64-*linux*)
5622 LD="${LD-ld} -m elf_x86_64"
5623 ;;
5624 ppc*-*linux*|powerpc*-*linux*)
5625 LD="${LD-ld} -m elf64ppc"
5626 ;;
5627 s390*-*linux*)
5628 LD="${LD-ld} -m elf64_s390"
5629 ;;
5630 sparc*-*linux*)
5631 LD="${LD-ld} -m elf64_sparc"
5632 ;;
5633 esac
5634 ;;
5635 esac
5636 fi
5637 rm -rf conftest*
5638 ;;
5639
5640*-*-sco3.2v5*)
5641 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5642 SAVE_CFLAGS="$CFLAGS"
5643 CFLAGS="$CFLAGS -belf"
64ff59ba 5644 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5645echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d9898ee8 5646if test "${lt_cv_cc_needs_belf+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648else
5649 ac_ext=c
5650ac_cpp='$CPP $CPPFLAGS'
5651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5653ac_compiler_gnu=$ac_cv_c_compiler_gnu
5654
5655 cat >conftest.$ac_ext <<_ACEOF
5656/* confdefs.h. */
5657_ACEOF
5658cat confdefs.h >>conftest.$ac_ext
5659cat >>conftest.$ac_ext <<_ACEOF
5660/* end confdefs.h. */
5661
5662int
5663main ()
5664{
5665
5666 ;
5667 return 0;
5668}
5669_ACEOF
5670rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 5671if { (ac_try="$ac_link"
5672case "(($ac_try" in
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5675esac
5676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677 (eval "$ac_link") 2>conftest.er1
d9898ee8 5678 ac_status=$?
5679 grep -v '^ *+' conftest.er1 >conftest.err
5680 rm -f conftest.er1
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5683 (exit $ac_status); } && {
5684 test -z "$ac_c_werror_flag" ||
5685 test ! -s conftest.err
5686 } && test -s conftest$ac_exeext &&
5687 $as_test_x conftest$ac_exeext; then
d9898ee8 5688 lt_cv_cc_needs_belf=yes
5689else
5690 echo "$as_me: failed program was:" >&5
5691sed 's/^/| /' conftest.$ac_ext >&5
5692
64ff59ba 5693 lt_cv_cc_needs_belf=no
d9898ee8 5694fi
64ff59ba 5695
5696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 5697 conftest$ac_exeext conftest.$ac_ext
5698 ac_ext=c
5699ac_cpp='$CPP $CPPFLAGS'
5700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703
5704fi
64ff59ba 5705{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5706echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
d9898ee8 5707 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5708 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5709 CFLAGS="$SAVE_CFLAGS"
5710 fi
5711 ;;
5712sparc*-*solaris*)
5713 # Find out which ABI we are using.
5714 echo 'int i;' > conftest.$ac_ext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716 (eval $ac_compile) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; then
5720 case `/usr/bin/file conftest.o` in
5721 *64-bit*)
5722 case $lt_cv_prog_gnu_ld in
5723 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5724 *) LD="${LD-ld} -64" ;;
5725 esac
5726 ;;
5727 esac
5728 fi
5729 rm -rf conftest*
5730 ;;
5731
5732
5733esac
5734
5735need_locks="$enable_libtool_lock"
5736
5737
5738
5739for ac_header in dlfcn.h
5740do
5741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 5742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5747fi
64ff59ba 5748ac_res=`eval echo '${'$as_ac_Header'}'`
5749 { echo "$as_me:$LINENO: result: $ac_res" >&5
5750echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5751else
5752 # Is the header compilable?
64ff59ba 5753{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5754echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 5755cat >conftest.$ac_ext <<_ACEOF
5756/* confdefs.h. */
5757_ACEOF
5758cat confdefs.h >>conftest.$ac_ext
5759cat >>conftest.$ac_ext <<_ACEOF
5760/* end confdefs.h. */
5761$ac_includes_default
5762#include <$ac_header>
5763_ACEOF
5764rm -f conftest.$ac_objext
64ff59ba 5765if { (ac_try="$ac_compile"
5766case "(($ac_try" in
5767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5768 *) ac_try_echo=$ac_try;;
5769esac
5770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5771 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5772 ac_status=$?
5773 grep -v '^ *+' conftest.er1 >conftest.err
5774 rm -f conftest.er1
5775 cat conftest.err >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5777 (exit $ac_status); } && {
5778 test -z "$ac_c_werror_flag" ||
5779 test ! -s conftest.err
5780 } && test -s conftest.$ac_objext; then
d9898ee8 5781 ac_header_compiler=yes
5782else
5783 echo "$as_me: failed program was:" >&5
5784sed 's/^/| /' conftest.$ac_ext >&5
5785
64ff59ba 5786 ac_header_compiler=no
d9898ee8 5787fi
64ff59ba 5788
5789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5791echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 5792
5793# Is the header present?
64ff59ba 5794{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5795echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 5796cat >conftest.$ac_ext <<_ACEOF
5797/* confdefs.h. */
5798_ACEOF
5799cat confdefs.h >>conftest.$ac_ext
5800cat >>conftest.$ac_ext <<_ACEOF
5801/* end confdefs.h. */
5802#include <$ac_header>
5803_ACEOF
64ff59ba 5804if { (ac_try="$ac_cpp conftest.$ac_ext"
5805case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808esac
5809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5816 (exit $ac_status); } >/dev/null && {
5817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5818 test ! -s conftest.err
5819 }; then
d9898ee8 5820 ac_header_preproc=yes
5821else
5822 echo "$as_me: failed program was:" >&5
5823sed 's/^/| /' conftest.$ac_ext >&5
5824
5825 ac_header_preproc=no
5826fi
64ff59ba 5827
d9898ee8 5828rm -f conftest.err conftest.$ac_ext
64ff59ba 5829{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5830echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 5831
5832# So? What about this header?
5833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5834 yes:no: )
5835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5836echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5838echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5839 ac_header_preproc=yes
5840 ;;
5841 no:yes:* )
5842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5843echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5845echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5847echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5849echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5851echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5853echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 5854 ( cat <<\_ASBOX
d9898ee8 5855## -------------------------------------------------- ##
5856## Report this to courier-users@lists.sourceforge.net ##
5857## -------------------------------------------------- ##
5858_ASBOX
64ff59ba 5859 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 5860 ;;
5861esac
64ff59ba 5862{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5864if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5866else
5867 eval "$as_ac_Header=\$ac_header_preproc"
5868fi
64ff59ba 5869ac_res=`eval echo '${'$as_ac_Header'}'`
5870 { echo "$as_me:$LINENO: result: $ac_res" >&5
5871echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5872
5873fi
5874if test `eval echo '${'$as_ac_Header'}'` = yes; then
5875 cat >>confdefs.h <<_ACEOF
5876#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5877_ACEOF
5878
5879fi
5880
5881done
5882
5883
5884
5885if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5886 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5887 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 5888 ac_ext=cpp
d9898ee8 5889ac_cpp='$CXXCPP $CPPFLAGS'
5890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 5893{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5894echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d9898ee8 5895if test -z "$CXXCPP"; then
5896 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5898else
5899 # Double quotes because CXXCPP needs to be expanded
5900 for CXXCPP in "$CXX -E" "/lib/cpp"
5901 do
5902 ac_preproc_ok=false
5903for ac_cxx_preproc_warn_flag in '' yes
5904do
5905 # Use a header file that comes with gcc, so configuring glibc
5906 # with a fresh cross-compiler works.
5907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5908 # <limits.h> exists even on freestanding compilers.
5909 # On the NeXT, cc -E runs the code through the compiler's parser,
5910 # not just through cpp. "Syntax error" is here to catch this case.
5911 cat >conftest.$ac_ext <<_ACEOF
5912/* confdefs.h. */
5913_ACEOF
5914cat confdefs.h >>conftest.$ac_ext
5915cat >>conftest.$ac_ext <<_ACEOF
5916/* end confdefs.h. */
5917#ifdef __STDC__
5918# include <limits.h>
5919#else
5920# include <assert.h>
5921#endif
5922 Syntax error
5923_ACEOF
64ff59ba 5924if { (ac_try="$ac_cpp conftest.$ac_ext"
5925case "(($ac_try" in
5926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927 *) ac_try_echo=$ac_try;;
5928esac
5929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5936 (exit $ac_status); } >/dev/null && {
5937 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5938 test ! -s conftest.err
5939 }; then
d9898ee8 5940 :
5941else
5942 echo "$as_me: failed program was:" >&5
5943sed 's/^/| /' conftest.$ac_ext >&5
5944
5945 # Broken: fails on valid input.
5946continue
5947fi
64ff59ba 5948
d9898ee8 5949rm -f conftest.err conftest.$ac_ext
5950
64ff59ba 5951 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5952 # can be detected and how.
5953 cat >conftest.$ac_ext <<_ACEOF
5954/* confdefs.h. */
5955_ACEOF
5956cat confdefs.h >>conftest.$ac_ext
5957cat >>conftest.$ac_ext <<_ACEOF
5958/* end confdefs.h. */
5959#include <ac_nonexistent.h>
5960_ACEOF
64ff59ba 5961if { (ac_try="$ac_cpp conftest.$ac_ext"
5962case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965esac
5966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5968 ac_status=$?
5969 grep -v '^ *+' conftest.er1 >conftest.err
5970 rm -f conftest.er1
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5973 (exit $ac_status); } >/dev/null && {
5974 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5975 test ! -s conftest.err
5976 }; then
d9898ee8 5977 # Broken: success on invalid input.
5978continue
5979else
5980 echo "$as_me: failed program was:" >&5
5981sed 's/^/| /' conftest.$ac_ext >&5
5982
5983 # Passes both tests.
5984ac_preproc_ok=:
5985break
5986fi
64ff59ba 5987
d9898ee8 5988rm -f conftest.err conftest.$ac_ext
5989
5990done
5991# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5992rm -f conftest.err conftest.$ac_ext
5993if $ac_preproc_ok; then
5994 break
5995fi
5996
5997 done
5998 ac_cv_prog_CXXCPP=$CXXCPP
5999
6000fi
6001 CXXCPP=$ac_cv_prog_CXXCPP
6002else
6003 ac_cv_prog_CXXCPP=$CXXCPP
6004fi
64ff59ba 6005{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6006echo "${ECHO_T}$CXXCPP" >&6; }
d9898ee8 6007ac_preproc_ok=false
6008for ac_cxx_preproc_warn_flag in '' yes
6009do
6010 # Use a header file that comes with gcc, so configuring glibc
6011 # with a fresh cross-compiler works.
6012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6013 # <limits.h> exists even on freestanding compilers.
6014 # On the NeXT, cc -E runs the code through the compiler's parser,
6015 # not just through cpp. "Syntax error" is here to catch this case.
6016 cat >conftest.$ac_ext <<_ACEOF
6017/* confdefs.h. */
6018_ACEOF
6019cat confdefs.h >>conftest.$ac_ext
6020cat >>conftest.$ac_ext <<_ACEOF
6021/* end confdefs.h. */
6022#ifdef __STDC__
6023# include <limits.h>
6024#else
6025# include <assert.h>
6026#endif
6027 Syntax error
6028_ACEOF
64ff59ba 6029if { (ac_try="$ac_cpp conftest.$ac_ext"
6030case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6033esac
6034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6036 ac_status=$?
6037 grep -v '^ *+' conftest.er1 >conftest.err
6038 rm -f conftest.er1
6039 cat conftest.err >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6041 (exit $ac_status); } >/dev/null && {
6042 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6043 test ! -s conftest.err
6044 }; then
d9898ee8 6045 :
6046else
6047 echo "$as_me: failed program was:" >&5
6048sed 's/^/| /' conftest.$ac_ext >&5
6049
6050 # Broken: fails on valid input.
6051continue
6052fi
64ff59ba 6053
d9898ee8 6054rm -f conftest.err conftest.$ac_ext
6055
64ff59ba 6056 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 6057 # can be detected and how.
6058 cat >conftest.$ac_ext <<_ACEOF
6059/* confdefs.h. */
6060_ACEOF
6061cat confdefs.h >>conftest.$ac_ext
6062cat >>conftest.$ac_ext <<_ACEOF
6063/* end confdefs.h. */
6064#include <ac_nonexistent.h>
6065_ACEOF
64ff59ba 6066if { (ac_try="$ac_cpp conftest.$ac_ext"
6067case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6070esac
6071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6073 ac_status=$?
6074 grep -v '^ *+' conftest.er1 >conftest.err
6075 rm -f conftest.er1
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6078 (exit $ac_status); } >/dev/null && {
6079 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6080 test ! -s conftest.err
6081 }; then
d9898ee8 6082 # Broken: success on invalid input.
6083continue
6084else
6085 echo "$as_me: failed program was:" >&5
6086sed 's/^/| /' conftest.$ac_ext >&5
6087
6088 # Passes both tests.
6089ac_preproc_ok=:
6090break
6091fi
64ff59ba 6092
d9898ee8 6093rm -f conftest.err conftest.$ac_ext
6094
6095done
6096# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6097rm -f conftest.err conftest.$ac_ext
6098if $ac_preproc_ok; then
6099 :
6100else
6101 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6102See \`config.log' for more details." >&5
6103echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6104See \`config.log' for more details." >&2;}
6105 { (exit 1); exit 1; }; }
6106fi
6107
64ff59ba 6108ac_ext=cpp
d9898ee8 6109ac_cpp='$CXXCPP $CPPFLAGS'
6110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6113
6114fi
6115
6116
6117ac_ext=f
6118ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6119ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6120ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6121if test -n "$ac_tool_prefix"; then
64ff59ba 6122 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 6123 do
6124 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6125set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 6126{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6128if test "${ac_cv_prog_F77+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6130else
6131 if test -n "$F77"; then
6132 ac_cv_prog_F77="$F77" # Let the user override the test.
6133else
6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH
6136do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6141 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 break 2
6144 fi
6145done
6146done
64ff59ba 6147IFS=$as_save_IFS
d9898ee8 6148
6149fi
6150fi
6151F77=$ac_cv_prog_F77
6152if test -n "$F77"; then
64ff59ba 6153 { echo "$as_me:$LINENO: result: $F77" >&5
6154echo "${ECHO_T}$F77" >&6; }
d9898ee8 6155else
64ff59ba 6156 { echo "$as_me:$LINENO: result: no" >&5
6157echo "${ECHO_T}no" >&6; }
d9898ee8 6158fi
6159
64ff59ba 6160
d9898ee8 6161 test -n "$F77" && break
6162 done
6163fi
6164if test -z "$F77"; then
6165 ac_ct_F77=$F77
64ff59ba 6166 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 6167do
6168 # Extract the first word of "$ac_prog", so it can be a program name with args.
6169set dummy $ac_prog; ac_word=$2
64ff59ba 6170{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6172if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6174else
6175 if test -n "$ac_ct_F77"; then
6176 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6177else
6178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179for as_dir in $PATH
6180do
6181 IFS=$as_save_IFS
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6185 ac_cv_prog_ac_ct_F77="$ac_prog"
6186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 break 2
6188 fi
6189done
6190done
64ff59ba 6191IFS=$as_save_IFS
d9898ee8 6192
6193fi
6194fi
6195ac_ct_F77=$ac_cv_prog_ac_ct_F77
6196if test -n "$ac_ct_F77"; then
64ff59ba 6197 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6198echo "${ECHO_T}$ac_ct_F77" >&6; }
d9898ee8 6199else
64ff59ba 6200 { echo "$as_me:$LINENO: result: no" >&5
6201echo "${ECHO_T}no" >&6; }
d9898ee8 6202fi
6203
64ff59ba 6204
d9898ee8 6205 test -n "$ac_ct_F77" && break
6206done
6207
64ff59ba 6208 if test "x$ac_ct_F77" = x; then
6209 F77=""
6210 else
6211 case $cross_compiling:$ac_tool_warned in
6212yes:)
6213{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6214whose name does not start with the host triplet. If you think this
6215configuration is useful to you, please write to autoconf@gnu.org." >&5
6216echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6217whose name does not start with the host triplet. If you think this
6218configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6219ac_tool_warned=yes ;;
6220esac
6221 F77=$ac_ct_F77
6222 fi
d9898ee8 6223fi
6224
6225
6226# Provide some information about the compiler.
64ff59ba 6227echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d9898ee8 6228ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 6229{ (ac_try="$ac_compiler --version >&5"
6230case "(($ac_try" in
6231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232 *) ac_try_echo=$ac_try;;
6233esac
6234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6235 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 6236 ac_status=$?
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }
64ff59ba 6239{ (ac_try="$ac_compiler -v >&5"
6240case "(($ac_try" in
6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6243esac
6244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }
64ff59ba 6249{ (ac_try="$ac_compiler -V >&5"
6250case "(($ac_try" in
6251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252 *) ac_try_echo=$ac_try;;
6253esac
6254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 6256 ac_status=$?
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }
6259rm -f a.out
6260
6261# If we don't use `.F' as extension, the preprocessor is not run on the
6262# input file. (Note that this only needs to work for GNU compilers.)
6263ac_save_ext=$ac_ext
6264ac_ext=F
64ff59ba 6265{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6266echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d9898ee8 6267if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6269else
6270 cat >conftest.$ac_ext <<_ACEOF
6271 program main
6272#ifndef __GNUC__
6273 choke me
6274#endif
6275
6276 end
6277_ACEOF
6278rm -f conftest.$ac_objext
64ff59ba 6279if { (ac_try="$ac_compile"
6280case "(($ac_try" in
6281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282 *) ac_try_echo=$ac_try;;
6283esac
6284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6285 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6286 ac_status=$?
6287 grep -v '^ *+' conftest.er1 >conftest.err
6288 rm -f conftest.er1
6289 cat conftest.err >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6291 (exit $ac_status); } && {
6292 test -z "$ac_f77_werror_flag" ||
6293 test ! -s conftest.err
6294 } && test -s conftest.$ac_objext; then
d9898ee8 6295 ac_compiler_gnu=yes
6296else
6297 echo "$as_me: failed program was:" >&5
6298sed 's/^/| /' conftest.$ac_ext >&5
6299
64ff59ba 6300 ac_compiler_gnu=no
d9898ee8 6301fi
64ff59ba 6302
6303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6304ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6305
6306fi
64ff59ba 6307{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6308echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d9898ee8 6309ac_ext=$ac_save_ext
6310ac_test_FFLAGS=${FFLAGS+set}
6311ac_save_FFLAGS=$FFLAGS
6312FFLAGS=
64ff59ba 6313{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6314echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d9898ee8 6315if test "${ac_cv_prog_f77_g+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317else
6318 FFLAGS=-g
6319cat >conftest.$ac_ext <<_ACEOF
6320 program main
6321
6322 end
6323_ACEOF
6324rm -f conftest.$ac_objext
64ff59ba 6325if { (ac_try="$ac_compile"
6326case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329esac
6330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6332 ac_status=$?
6333 grep -v '^ *+' conftest.er1 >conftest.err
6334 rm -f conftest.er1
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6337 (exit $ac_status); } && {
6338 test -z "$ac_f77_werror_flag" ||
6339 test ! -s conftest.err
6340 } && test -s conftest.$ac_objext; then
d9898ee8 6341 ac_cv_prog_f77_g=yes
6342else
6343 echo "$as_me: failed program was:" >&5
6344sed 's/^/| /' conftest.$ac_ext >&5
6345
64ff59ba 6346 ac_cv_prog_f77_g=no
d9898ee8 6347fi
64ff59ba 6348
6349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6350
6351fi
64ff59ba 6352{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6353echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d9898ee8 6354if test "$ac_test_FFLAGS" = set; then
6355 FFLAGS=$ac_save_FFLAGS
6356elif test $ac_cv_prog_f77_g = yes; then
6357 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6358 FFLAGS="-g -O2"
6359 else
6360 FFLAGS="-g"
6361 fi
6362else
6363 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6364 FFLAGS="-O2"
6365 else
6366 FFLAGS=
6367 fi
6368fi
6369
6370G77=`test $ac_compiler_gnu = yes && echo yes`
6371ac_ext=c
6372ac_cpp='$CPP $CPPFLAGS'
6373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6375ac_compiler_gnu=$ac_cv_c_compiler_gnu
6376
6377
6378
6379# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6380
6381# find the maximum length of command line arguments
64ff59ba 6382{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6383echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
d9898ee8 6384if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6386else
6387 i=0
6388 teststring="ABCD"
6389
6390 case $build_os in
6391 msdosdjgpp*)
6392 # On DJGPP, this test can blow up pretty badly due to problems in libc
6393 # (any single argument exceeding 2000 bytes causes a buffer overrun
6394 # during glob expansion). Even if it were fixed, the result of this
6395 # check would be larger than it should be.
6396 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6397 ;;
6398
6399 gnu*)
6400 # Under GNU Hurd, this test is not required because there is
6401 # no limit to the length of command line arguments.
6402 # Libtool will interpret -1 as no limit whatsoever
6403 lt_cv_sys_max_cmd_len=-1;
6404 ;;
6405
6406 cygwin* | mingw*)
6407 # On Win9x/ME, this test blows up -- it succeeds, but takes
6408 # about 5 minutes as the teststring grows exponentially.
6409 # Worse, since 9x/ME are not pre-emptively multitasking,
6410 # you end up with a "frozen" computer, even though with patience
6411 # the test eventually succeeds (with a max line length of 256k).
6412 # Instead, let's just punt: use the minimum linelength reported by
6413 # all of the supported platforms: 8192 (on NT/2K/XP).
6414 lt_cv_sys_max_cmd_len=8192;
6415 ;;
6416
6417 amigaos*)
6418 # On AmigaOS with pdksh, this test takes hours, literally.
6419 # So we just punt and use a minimum line length of 8192.
6420 lt_cv_sys_max_cmd_len=8192;
6421 ;;
6422
6423 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6424 # This has been around since 386BSD, at least. Likely further.
6425 if test -x /sbin/sysctl; then
6426 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6427 elif test -x /usr/sbin/sysctl; then
6428 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6429 else
6430 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6431 fi
6432 # And add a safety zone
6433 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6434 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6435 ;;
6436
6437 interix*)
6438 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6439 lt_cv_sys_max_cmd_len=196608
6440 ;;
6441
6442 osf*)
6443 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6444 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6445 # nice to cause kernel panics so lets avoid the loop below.
6446 # First set a reasonable default.
6447 lt_cv_sys_max_cmd_len=16384
6448 #
6449 if test -x /sbin/sysconfig; then
6450 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6451 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6452 esac
6453 fi
6454 ;;
6455 sco3.2v5*)
6456 lt_cv_sys_max_cmd_len=102400
6457 ;;
6458 sysv5* | sco5v6* | sysv4.2uw2*)
6459 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6460 if test -n "$kargmax"; then
6461 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6462 else
6463 lt_cv_sys_max_cmd_len=32768
6464 fi
6465 ;;
6466 *)
6467 # If test is not a shell built-in, we'll probably end up computing a
6468 # maximum length that is only half of the actual maximum length, but
6469 # we can't tell.
6470 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6471 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6472 = "XX$teststring") >/dev/null 2>&1 &&
6473 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6474 lt_cv_sys_max_cmd_len=$new_result &&
6475 test $i != 17 # 1/2 MB should be enough
6476 do
6477 i=`expr $i + 1`
6478 teststring=$teststring$teststring
6479 done
6480 teststring=
6481 # Add a significant safety factor because C++ compilers can tack on massive
6482 # amounts of additional arguments before passing them to the linker.
6483 # It appears as though 1/2 is a usable value.
6484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6485 ;;
6486 esac
6487
6488fi
6489
6490if test -n $lt_cv_sys_max_cmd_len ; then
64ff59ba 6491 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6492echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 6493else
64ff59ba 6494 { echo "$as_me:$LINENO: result: none" >&5
6495echo "${ECHO_T}none" >&6; }
d9898ee8 6496fi
6497
6498
6499
6500
6501# Check for command to grab the raw symbol name followed by C symbol from nm.
64ff59ba 6502{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6503echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d9898ee8 6504if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506else
6507
6508# These are sane defaults that work on at least a few old systems.
6509# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6510
6511# Character class describing NM global symbol codes.
6512symcode='[BCDEGRST]'
6513
6514# Regexp to match symbols that can be accessed directly from C.
6515sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6516
6517# Transform an extracted symbol line into a proper C declaration
6518lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6519
6520# Transform an extracted symbol line into symbol name and symbol address
6521lt_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'"
6522
6523# Define system-specific variables.
6524case $host_os in
6525aix*)
6526 symcode='[BCDT]'
6527 ;;
6528cygwin* | mingw* | pw32*)
6529 symcode='[ABCDGISTW]'
6530 ;;
6531hpux*) # Its linker distinguishes data from code symbols
6532 if test "$host_cpu" = ia64; then
6533 symcode='[ABCDEGRST]'
6534 fi
6535 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6536 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'"
6537 ;;
6538linux*)
6539 if test "$host_cpu" = ia64; then
6540 symcode='[ABCDGIRSTW]'
6541 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6542 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'"
6543 fi
6544 ;;
6545irix* | nonstopux*)
6546 symcode='[BCDEGRST]'
6547 ;;
6548osf*)
6549 symcode='[BCDEGQRST]'
6550 ;;
6551solaris*)
6552 symcode='[BDRT]'
6553 ;;
6554sco3.2v5*)
6555 symcode='[DT]'
6556 ;;
6557sysv4.2uw2*)
6558 symcode='[DT]'
6559 ;;
6560sysv5* | sco5v6* | unixware* | OpenUNIX*)
6561 symcode='[ABDT]'
6562 ;;
6563sysv4)
6564 symcode='[DFNSTU]'
6565 ;;
6566esac
6567
6568# Handle CRLF in mingw tool chain
6569opt_cr=
6570case $build_os in
6571mingw*)
6572 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6573 ;;
6574esac
6575
6576# If we're using GNU nm, then use its standard symbol codes.
6577case `$NM -V 2>&1` in
6578*GNU* | *'with BFD'*)
6579 symcode='[ABCDGIRSTW]' ;;
6580esac
6581
6582# Try without a prefix undercore, then with it.
6583for ac_symprfx in "" "_"; do
6584
6585 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6586 symxfrm="\\1 $ac_symprfx\\2 \\2"
6587
6588 # Write the raw and C identifiers.
6589 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6590
6591 # Check to see that the pipe works correctly.
6592 pipe_works=no
6593
6594 rm -f conftest*
6595 cat > conftest.$ac_ext <<EOF
6596#ifdef __cplusplus
6597extern "C" {
6598#endif
6599char nm_test_var;
6600void nm_test_func(){}
6601#ifdef __cplusplus
6602}
6603#endif
6604int main(){nm_test_var='a';nm_test_func();return(0);}
6605EOF
6606
6607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6608 (eval $ac_compile) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; then
6612 # Now try to grab the symbols.
6613 nlist=conftest.nm
6614 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6615 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6616 ac_status=$?
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } && test -s "$nlist"; then
6619 # Try sorting and uniquifying the output.
6620 if sort "$nlist" | uniq > "$nlist"T; then
6621 mv -f "$nlist"T "$nlist"
6622 else
6623 rm -f "$nlist"T
6624 fi
6625
6626 # Make sure that we snagged all the symbols we need.
6627 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6628 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6629 cat <<EOF > conftest.$ac_ext
6630#ifdef __cplusplus
6631extern "C" {
6632#endif
6633
6634EOF
6635 # Now generate the symbol file.
6636 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6637
6638 cat <<EOF >> conftest.$ac_ext
6639#if defined (__STDC__) && __STDC__
6640# define lt_ptr_t void *
6641#else
6642# define lt_ptr_t char *
6643# define const
6644#endif
6645
6646/* The mapping between symbol names and symbols. */
6647const struct {
6648 const char *name;
6649 lt_ptr_t address;
6650}
6651lt_preloaded_symbols[] =
6652{
6653EOF
6654 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6655 cat <<\EOF >> conftest.$ac_ext
6656 {0, (lt_ptr_t) 0}
6657};
6658
6659#ifdef __cplusplus
6660}
6661#endif
6662EOF
6663 # Now try linking the two files.
6664 mv conftest.$ac_objext conftstm.$ac_objext
6665 lt_save_LIBS="$LIBS"
6666 lt_save_CFLAGS="$CFLAGS"
6667 LIBS="conftstm.$ac_objext"
6668 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6670 (eval $ac_link) 2>&5
6671 ac_status=$?
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6674 pipe_works=yes
6675 fi
6676 LIBS="$lt_save_LIBS"
6677 CFLAGS="$lt_save_CFLAGS"
6678 else
6679 echo "cannot find nm_test_func in $nlist" >&5
6680 fi
6681 else
6682 echo "cannot find nm_test_var in $nlist" >&5
6683 fi
6684 else
6685 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6686 fi
6687 else
6688 echo "$progname: failed program was:" >&5
6689 cat conftest.$ac_ext >&5
6690 fi
6691 rm -f conftest* conftst*
6692
6693 # Do not use the global_symbol_pipe unless it works.
6694 if test "$pipe_works" = yes; then
6695 break
6696 else
6697 lt_cv_sys_global_symbol_pipe=
6698 fi
6699done
6700
6701fi
6702
6703if test -z "$lt_cv_sys_global_symbol_pipe"; then
6704 lt_cv_sys_global_symbol_to_cdecl=
6705fi
6706if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
64ff59ba 6707 { echo "$as_me:$LINENO: result: failed" >&5
6708echo "${ECHO_T}failed" >&6; }
d9898ee8 6709else
64ff59ba 6710 { echo "$as_me:$LINENO: result: ok" >&5
6711echo "${ECHO_T}ok" >&6; }
d9898ee8 6712fi
6713
64ff59ba 6714{ echo "$as_me:$LINENO: checking for objdir" >&5
6715echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d9898ee8 6716if test "${lt_cv_objdir+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6718else
6719 rm -f .libs 2>/dev/null
6720mkdir .libs 2>/dev/null
6721if test -d .libs; then
6722 lt_cv_objdir=.libs
6723else
6724 # MS-DOS does not allow filenames that begin with a dot.
6725 lt_cv_objdir=_libs
6726fi
6727rmdir .libs 2>/dev/null
6728fi
64ff59ba 6729{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6730echo "${ECHO_T}$lt_cv_objdir" >&6; }
d9898ee8 6731objdir=$lt_cv_objdir
6732
6733
6734
6735
6736
6737case $host_os in
6738aix3*)
6739 # AIX sometimes has problems with the GCC collect2 program. For some
6740 # reason, if we set the COLLECT_NAMES environment variable, the problems
6741 # vanish in a puff of smoke.
6742 if test "X${COLLECT_NAMES+set}" != Xset; then
6743 COLLECT_NAMES=
6744 export COLLECT_NAMES
6745 fi
6746 ;;
6747esac
6748
6749# Sed substitution that helps us do robust quoting. It backslashifies
6750# metacharacters that are still active within double-quoted strings.
6751Xsed='sed -e 1s/^X//'
6752sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6753
6754# Same as above, but do not quote variable references.
6755double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6756
6757# Sed substitution to delay expansion of an escaped shell variable in a
6758# double_quote_subst'ed string.
6759delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6760
6761# Sed substitution to avoid accidental globbing in evaled expressions
6762no_glob_subst='s/\*/\\\*/g'
6763
6764# Constants:
6765rm="rm -f"
6766
6767# Global variables:
6768default_ofile=libtool
6769can_build_shared=yes
6770
6771# All known linkers require a `.a' archive for static linking (except MSVC,
6772# which needs '.lib').
6773libext=a
6774ltmain="$ac_aux_dir/ltmain.sh"
6775ofile="$default_ofile"
6776with_gnu_ld="$lt_cv_prog_gnu_ld"
6777
6778if test -n "$ac_tool_prefix"; then
6779 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6780set dummy ${ac_tool_prefix}ar; ac_word=$2
64ff59ba 6781{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6783if test "${ac_cv_prog_AR+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6785else
6786 if test -n "$AR"; then
6787 ac_cv_prog_AR="$AR" # Let the user override the test.
6788else
6789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790for as_dir in $PATH
6791do
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6796 ac_cv_prog_AR="${ac_tool_prefix}ar"
6797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 break 2
6799 fi
6800done
6801done
64ff59ba 6802IFS=$as_save_IFS
d9898ee8 6803
6804fi
6805fi
6806AR=$ac_cv_prog_AR
6807if test -n "$AR"; then
64ff59ba 6808 { echo "$as_me:$LINENO: result: $AR" >&5
6809echo "${ECHO_T}$AR" >&6; }
d9898ee8 6810else
64ff59ba 6811 { echo "$as_me:$LINENO: result: no" >&5
6812echo "${ECHO_T}no" >&6; }
d9898ee8 6813fi
6814
64ff59ba 6815
d9898ee8 6816fi
6817if test -z "$ac_cv_prog_AR"; then
6818 ac_ct_AR=$AR
6819 # Extract the first word of "ar", so it can be a program name with args.
6820set dummy ar; ac_word=$2
64ff59ba 6821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6823if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825else
6826 if test -n "$ac_ct_AR"; then
6827 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6828else
6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6836 ac_cv_prog_ac_ct_AR="ar"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840done
6841done
64ff59ba 6842IFS=$as_save_IFS
d9898ee8 6843
d9898ee8 6844fi
6845fi
6846ac_ct_AR=$ac_cv_prog_ac_ct_AR
6847if test -n "$ac_ct_AR"; then
64ff59ba 6848 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6849echo "${ECHO_T}$ac_ct_AR" >&6; }
d9898ee8 6850else
64ff59ba 6851 { echo "$as_me:$LINENO: result: no" >&5
6852echo "${ECHO_T}no" >&6; }
d9898ee8 6853fi
6854
64ff59ba 6855 if test "x$ac_ct_AR" = x; then
6856 AR="false"
6857 else
6858 case $cross_compiling:$ac_tool_warned in
6859yes:)
6860{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6861whose name does not start with the host triplet. If you think this
6862configuration is useful to you, please write to autoconf@gnu.org." >&5
6863echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6864whose name does not start with the host triplet. If you think this
6865configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6866ac_tool_warned=yes ;;
6867esac
6868 AR=$ac_ct_AR
6869 fi
d9898ee8 6870else
6871 AR="$ac_cv_prog_AR"
6872fi
6873
6874if test -n "$ac_tool_prefix"; then
6875 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6876set dummy ${ac_tool_prefix}ranlib; ac_word=$2
64ff59ba 6877{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6879if test "${ac_cv_prog_RANLIB+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6881else
6882 if test -n "$RANLIB"; then
6883 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6884else
6885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886for as_dir in $PATH
6887do
6888 IFS=$as_save_IFS
6889 test -z "$as_dir" && as_dir=.
6890 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6892 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6894 break 2
6895 fi
6896done
6897done
64ff59ba 6898IFS=$as_save_IFS
d9898ee8 6899
6900fi
6901fi
6902RANLIB=$ac_cv_prog_RANLIB
6903if test -n "$RANLIB"; then
64ff59ba 6904 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6905echo "${ECHO_T}$RANLIB" >&6; }
d9898ee8 6906else
64ff59ba 6907 { echo "$as_me:$LINENO: result: no" >&5
6908echo "${ECHO_T}no" >&6; }
d9898ee8 6909fi
6910
64ff59ba 6911
d9898ee8 6912fi
6913if test -z "$ac_cv_prog_RANLIB"; then
6914 ac_ct_RANLIB=$RANLIB
6915 # Extract the first word of "ranlib", so it can be a program name with args.
6916set dummy ranlib; ac_word=$2
64ff59ba 6917{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6919if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6921else
6922 if test -n "$ac_ct_RANLIB"; then
6923 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6924else
6925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926for as_dir in $PATH
6927do
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6932 ac_cv_prog_ac_ct_RANLIB="ranlib"
6933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 break 2
6935 fi
6936done
6937done
64ff59ba 6938IFS=$as_save_IFS
d9898ee8 6939
d9898ee8 6940fi
6941fi
6942ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6943if test -n "$ac_ct_RANLIB"; then
64ff59ba 6944 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6945echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d9898ee8 6946else
64ff59ba 6947 { echo "$as_me:$LINENO: result: no" >&5
6948echo "${ECHO_T}no" >&6; }
d9898ee8 6949fi
6950
64ff59ba 6951 if test "x$ac_ct_RANLIB" = x; then
6952 RANLIB=":"
6953 else
6954 case $cross_compiling:$ac_tool_warned in
6955yes:)
6956{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6957whose name does not start with the host triplet. If you think this
6958configuration is useful to you, please write to autoconf@gnu.org." >&5
6959echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6960whose name does not start with the host triplet. If you think this
6961configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6962ac_tool_warned=yes ;;
6963esac
6964 RANLIB=$ac_ct_RANLIB
6965 fi
d9898ee8 6966else
6967 RANLIB="$ac_cv_prog_RANLIB"
6968fi
6969
6970if test -n "$ac_tool_prefix"; then
6971 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6972set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 6973{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6975if test "${ac_cv_prog_STRIP+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6977else
6978 if test -n "$STRIP"; then
6979 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6980else
6981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982for as_dir in $PATH
6983do
6984 IFS=$as_save_IFS
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6988 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 break 2
6991 fi
6992done
6993done
64ff59ba 6994IFS=$as_save_IFS
d9898ee8 6995
6996fi
6997fi
6998STRIP=$ac_cv_prog_STRIP
6999if test -n "$STRIP"; then
64ff59ba 7000 { echo "$as_me:$LINENO: result: $STRIP" >&5
7001echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 7002else
64ff59ba 7003 { echo "$as_me:$LINENO: result: no" >&5
7004echo "${ECHO_T}no" >&6; }
d9898ee8 7005fi
7006
64ff59ba 7007
d9898ee8 7008fi
7009if test -z "$ac_cv_prog_STRIP"; then
7010 ac_ct_STRIP=$STRIP
7011 # Extract the first word of "strip", so it can be a program name with args.
7012set dummy strip; ac_word=$2
64ff59ba 7013{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7015if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017else
7018 if test -n "$ac_ct_STRIP"; then
7019 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7020else
7021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022for as_dir in $PATH
7023do
7024 IFS=$as_save_IFS
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7028 ac_cv_prog_ac_ct_STRIP="strip"
7029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 break 2
7031 fi
7032done
7033done
64ff59ba 7034IFS=$as_save_IFS
d9898ee8 7035
d9898ee8 7036fi
7037fi
7038ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7039if test -n "$ac_ct_STRIP"; then
64ff59ba 7040 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7041echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 7042else
64ff59ba 7043 { echo "$as_me:$LINENO: result: no" >&5
7044echo "${ECHO_T}no" >&6; }
d9898ee8 7045fi
7046
64ff59ba 7047 if test "x$ac_ct_STRIP" = x; then
7048 STRIP=":"
7049 else
7050 case $cross_compiling:$ac_tool_warned in
7051yes:)
7052{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7053whose name does not start with the host triplet. If you think this
7054configuration is useful to you, please write to autoconf@gnu.org." >&5
7055echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7056whose name does not start with the host triplet. If you think this
7057configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7058ac_tool_warned=yes ;;
7059esac
7060 STRIP=$ac_ct_STRIP
7061 fi
d9898ee8 7062else
7063 STRIP="$ac_cv_prog_STRIP"
7064fi
7065
7066
7067old_CC="$CC"
7068old_CFLAGS="$CFLAGS"
7069
7070# Set sane defaults for various variables
7071test -z "$AR" && AR=ar
7072test -z "$AR_FLAGS" && AR_FLAGS=cru
7073test -z "$AS" && AS=as
7074test -z "$CC" && CC=cc
7075test -z "$LTCC" && LTCC=$CC
7076test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7077test -z "$DLLTOOL" && DLLTOOL=dlltool
7078test -z "$LD" && LD=ld
7079test -z "$LN_S" && LN_S="ln -s"
7080test -z "$MAGIC_CMD" && MAGIC_CMD=file
7081test -z "$NM" && NM=nm
7082test -z "$SED" && SED=sed
7083test -z "$OBJDUMP" && OBJDUMP=objdump
7084test -z "$RANLIB" && RANLIB=:
7085test -z "$STRIP" && STRIP=:
7086test -z "$ac_objext" && ac_objext=o
7087
7088# Determine commands to create old-style static archives.
7089old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7090old_postinstall_cmds='chmod 644 $oldlib'
7091old_postuninstall_cmds=
7092
7093if test -n "$RANLIB"; then
7094 case $host_os in
7095 openbsd*)
7096 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7097 ;;
7098 *)
7099 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7100 ;;
7101 esac
7102 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7103fi
7104
7105for cc_temp in $compiler""; do
7106 case $cc_temp in
7107 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7108 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7109 \-*) ;;
7110 *) break;;
7111 esac
7112done
7113cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7114
7115
7116# Only perform the check for file, if the check method requires it
7117case $deplibs_check_method in
7118file_magic*)
7119 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
64ff59ba 7120 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7121echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d9898ee8 7122if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124else
7125 case $MAGIC_CMD in
7126[\\/*] | ?:[\\/]*)
7127 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7128 ;;
7129*)
7130 lt_save_MAGIC_CMD="$MAGIC_CMD"
7131 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7132 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7133 for ac_dir in $ac_dummy; do
7134 IFS="$lt_save_ifs"
7135 test -z "$ac_dir" && ac_dir=.
7136 if test -f $ac_dir/${ac_tool_prefix}file; then
7137 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7138 if test -n "$file_magic_test_file"; then
7139 case $deplibs_check_method in
7140 "file_magic "*)
7141 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7142 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7143 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7144 $EGREP "$file_magic_regex" > /dev/null; then
7145 :
7146 else
7147 cat <<EOF 1>&2
7148
7149*** Warning: the command libtool uses to detect shared libraries,
7150*** $file_magic_cmd, produces output that libtool cannot recognize.
7151*** The result is that libtool may fail to recognize shared libraries
7152*** as such. This will affect the creation of libtool libraries that
7153*** depend on shared libraries, but programs linked with such libtool
7154*** libraries will work regardless of this problem. Nevertheless, you
7155*** may want to report the problem to your system manager and/or to
7156*** bug-libtool@gnu.org
7157
7158EOF
7159 fi ;;
7160 esac
7161 fi
7162 break
7163 fi
7164 done
7165 IFS="$lt_save_ifs"
7166 MAGIC_CMD="$lt_save_MAGIC_CMD"
7167 ;;
7168esac
7169fi
7170
7171MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7172if test -n "$MAGIC_CMD"; then
64ff59ba 7173 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7174echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7175else
64ff59ba 7176 { echo "$as_me:$LINENO: result: no" >&5
7177echo "${ECHO_T}no" >&6; }
d9898ee8 7178fi
7179
7180if test -z "$lt_cv_path_MAGIC_CMD"; then
7181 if test -n "$ac_tool_prefix"; then
64ff59ba 7182 { echo "$as_me:$LINENO: checking for file" >&5
7183echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d9898ee8 7184if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7186else
7187 case $MAGIC_CMD in
7188[\\/*] | ?:[\\/]*)
7189 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7190 ;;
7191*)
7192 lt_save_MAGIC_CMD="$MAGIC_CMD"
7193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7194 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7195 for ac_dir in $ac_dummy; do
7196 IFS="$lt_save_ifs"
7197 test -z "$ac_dir" && ac_dir=.
7198 if test -f $ac_dir/file; then
7199 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7200 if test -n "$file_magic_test_file"; then
7201 case $deplibs_check_method in
7202 "file_magic "*)
7203 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7204 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7205 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7206 $EGREP "$file_magic_regex" > /dev/null; then
7207 :
7208 else
7209 cat <<EOF 1>&2
7210
7211*** Warning: the command libtool uses to detect shared libraries,
7212*** $file_magic_cmd, produces output that libtool cannot recognize.
7213*** The result is that libtool may fail to recognize shared libraries
7214*** as such. This will affect the creation of libtool libraries that
7215*** depend on shared libraries, but programs linked with such libtool
7216*** libraries will work regardless of this problem. Nevertheless, you
7217*** may want to report the problem to your system manager and/or to
7218*** bug-libtool@gnu.org
7219
7220EOF
7221 fi ;;
7222 esac
7223 fi
7224 break
7225 fi
7226 done
7227 IFS="$lt_save_ifs"
7228 MAGIC_CMD="$lt_save_MAGIC_CMD"
7229 ;;
7230esac
7231fi
7232
7233MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7234if test -n "$MAGIC_CMD"; then
64ff59ba 7235 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7236echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7237else
64ff59ba 7238 { echo "$as_me:$LINENO: result: no" >&5
7239echo "${ECHO_T}no" >&6; }
d9898ee8 7240fi
7241
7242 else
7243 MAGIC_CMD=:
7244 fi
7245fi
7246
7247 fi
7248 ;;
7249esac
7250
7251enable_dlopen=no
7252enable_win32_dll=no
7253
64ff59ba 7254# Check whether --enable-libtool-lock was given.
d9898ee8 7255if test "${enable_libtool_lock+set}" = set; then
64ff59ba 7256 enableval=$enable_libtool_lock;
7257fi
d9898ee8 7258
d9898ee8 7259test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7260
7261
64ff59ba 7262# Check whether --with-pic was given.
d9898ee8 7263if test "${with_pic+set}" = set; then
64ff59ba 7264 withval=$with_pic; pic_mode="$withval"
d9898ee8 7265else
7266 pic_mode=default
64ff59ba 7267fi
7268
d9898ee8 7269test -z "$pic_mode" && pic_mode=default
7270
7271# Use C for the default configuration in the libtool script
7272tagname=
7273lt_save_CC="$CC"
7274ac_ext=c
7275ac_cpp='$CPP $CPPFLAGS'
7276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7278ac_compiler_gnu=$ac_cv_c_compiler_gnu
7279
7280
7281# Source file extension for C test sources.
7282ac_ext=c
7283
7284# Object file extension for compiled C test sources.
7285objext=o
7286objext=$objext
7287
7288# Code to be used in simple compile tests
7289lt_simple_compile_test_code="int some_variable = 0;\n"
7290
7291# Code to be used in simple link tests
7292lt_simple_link_test_code='int main(){return(0);}\n'
7293
7294
7295# If no C compiler was specified, use CC.
7296LTCC=${LTCC-"$CC"}
7297
7298# If no C compiler flags were specified, use CFLAGS.
7299LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7300
7301# Allow CC to be a program name with arguments.
7302compiler=$CC
7303
7304
7305# save warnings/boilerplate of simple test code
7306ac_outfile=conftest.$ac_objext
7307printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7308eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7309_lt_compiler_boilerplate=`cat conftest.err`
7310$rm conftest*
7311
7312ac_outfile=conftest.$ac_objext
7313printf "$lt_simple_link_test_code" >conftest.$ac_ext
7314eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7315_lt_linker_boilerplate=`cat conftest.err`
7316$rm conftest*
7317
7318
7319
7320lt_prog_compiler_no_builtin_flag=
7321
7322if test "$GCC" = yes; then
7323 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7324
7325
64ff59ba 7326{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7327echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 7328if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7330else
7331 lt_cv_prog_compiler_rtti_exceptions=no
7332 ac_outfile=conftest.$ac_objext
7333 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7334 lt_compiler_flag="-fno-rtti -fno-exceptions"
7335 # Insert the option either (1) after the last *FLAGS variable, or
7336 # (2) before a word containing "conftest.", or (3) at the end.
7337 # Note that $ac_compile itself does not contain backslashes and begins
7338 # with a dollar sign (not a hyphen), so the echo should work correctly.
7339 # The option is referenced via a variable to avoid confusing sed.
7340 lt_compile=`echo "$ac_compile" | $SED \
7341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7343 -e 's:$: $lt_compiler_flag:'`
64ff59ba 7344 (eval echo "\"\$as_me:7344: $lt_compile\"" >&5)
d9898ee8 7345 (eval "$lt_compile" 2>conftest.err)
7346 ac_status=$?
7347 cat conftest.err >&5
64ff59ba 7348 echo "$as_me:7348: \$? = $ac_status" >&5
d9898ee8 7349 if (exit $ac_status) && test -s "$ac_outfile"; then
7350 # The compiler can only warn and ignore the option if not recognized
7351 # So say no if there are warnings other than the usual output.
7352 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7354 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7355 lt_cv_prog_compiler_rtti_exceptions=yes
7356 fi
7357 fi
7358 $rm conftest*
7359
7360fi
64ff59ba 7361{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7362echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7363
7364if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7365 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7366else
7367 :
7368fi
7369
7370fi
7371
7372lt_prog_compiler_wl=
7373lt_prog_compiler_pic=
7374lt_prog_compiler_static=
7375
64ff59ba 7376{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7377echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 7378
7379 if test "$GCC" = yes; then
7380 lt_prog_compiler_wl='-Wl,'
7381 lt_prog_compiler_static='-static'
7382
7383 case $host_os in
7384 aix*)
7385 # All AIX code is PIC.
7386 if test "$host_cpu" = ia64; then
7387 # AIX 5 now supports IA64 processor
7388 lt_prog_compiler_static='-Bstatic'
7389 fi
7390 ;;
7391
7392 amigaos*)
7393 # FIXME: we need at least 68020 code to build shared libraries, but
7394 # adding the `-m68020' flag to GCC prevents building anything better,
7395 # like `-m68040'.
7396 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7397 ;;
7398
7399 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7400 # PIC is the default for these OSes.
7401 ;;
7402
7403 mingw* | pw32* | os2*)
7404 # This hack is so that the source file can tell whether it is being
7405 # built for inclusion in a dll (and should export symbols for example).
7406 lt_prog_compiler_pic='-DDLL_EXPORT'
7407 ;;
7408
7409 darwin* | rhapsody*)
7410 # PIC is the default on this platform
7411 # Common symbols not allowed in MH_DYLIB files
7412 lt_prog_compiler_pic='-fno-common'
7413 ;;
7414
7415 interix3*)
7416 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7417 # Instead, we relocate shared libraries at runtime.
7418 ;;
7419
7420 msdosdjgpp*)
7421 # Just because we use GCC doesn't mean we suddenly get shared libraries
7422 # on systems that don't support them.
7423 lt_prog_compiler_can_build_shared=no
7424 enable_shared=no
7425 ;;
7426
7427 sysv4*MP*)
7428 if test -d /usr/nec; then
7429 lt_prog_compiler_pic=-Kconform_pic
7430 fi
7431 ;;
7432
7433 hpux*)
7434 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7435 # not for PA HP-UX.
7436 case $host_cpu in
7437 hppa*64*|ia64*)
7438 # +Z the default
7439 ;;
7440 *)
7441 lt_prog_compiler_pic='-fPIC'
7442 ;;
7443 esac
7444 ;;
7445
7446 *)
7447 lt_prog_compiler_pic='-fPIC'
7448 ;;
7449 esac
7450 else
7451 # PORTME Check for flag to pass linker flags through the system compiler.
7452 case $host_os in
7453 aix*)
7454 lt_prog_compiler_wl='-Wl,'
7455 if test "$host_cpu" = ia64; then
7456 # AIX 5 now supports IA64 processor
7457 lt_prog_compiler_static='-Bstatic'
7458 else
7459 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7460 fi
7461 ;;
7462 darwin*)
7463 # PIC is the default on this platform
7464 # Common symbols not allowed in MH_DYLIB files
7465 case $cc_basename in
7466 xlc*)
7467 lt_prog_compiler_pic='-qnocommon'
7468 lt_prog_compiler_wl='-Wl,'
7469 ;;
7470 esac
7471 ;;
7472
7473 mingw* | pw32* | os2*)
7474 # This hack is so that the source file can tell whether it is being
7475 # built for inclusion in a dll (and should export symbols for example).
7476 lt_prog_compiler_pic='-DDLL_EXPORT'
7477 ;;
7478
7479 hpux9* | hpux10* | hpux11*)
7480 lt_prog_compiler_wl='-Wl,'
7481 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7482 # not for PA HP-UX.
7483 case $host_cpu in
7484 hppa*64*|ia64*)
7485 # +Z the default
7486 ;;
7487 *)
7488 lt_prog_compiler_pic='+Z'
7489 ;;
7490 esac
7491 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7492 lt_prog_compiler_static='${wl}-a ${wl}archive'
7493 ;;
7494
7495 irix5* | irix6* | nonstopux*)
7496 lt_prog_compiler_wl='-Wl,'
7497 # PIC (with -KPIC) is the default.
7498 lt_prog_compiler_static='-non_shared'
7499 ;;
7500
7501 newsos6)
7502 lt_prog_compiler_pic='-KPIC'
7503 lt_prog_compiler_static='-Bstatic'
7504 ;;
7505
7506 linux*)
7507 case $cc_basename in
7508 icc* | ecc*)
7509 lt_prog_compiler_wl='-Wl,'
7510 lt_prog_compiler_pic='-KPIC'
7511 lt_prog_compiler_static='-static'
7512 ;;
7513 pgcc* | pgf77* | pgf90* | pgf95*)
7514 # Portland Group compilers (*not* the Pentium gcc compiler,
7515 # which looks to be a dead project)
7516 lt_prog_compiler_wl='-Wl,'
7517 lt_prog_compiler_pic='-fpic'
7518 lt_prog_compiler_static='-Bstatic'
7519 ;;
7520 ccc*)
7521 lt_prog_compiler_wl='-Wl,'
7522 # All Alpha code is PIC.
7523 lt_prog_compiler_static='-non_shared'
7524 ;;
7525 esac
7526 ;;
7527
7528 osf3* | osf4* | osf5*)
7529 lt_prog_compiler_wl='-Wl,'
7530 # All OSF/1 code is PIC.
7531 lt_prog_compiler_static='-non_shared'
7532 ;;
7533
7534 solaris*)
7535 lt_prog_compiler_pic='-KPIC'
7536 lt_prog_compiler_static='-Bstatic'
7537 case $cc_basename in
7538 f77* | f90* | f95*)
7539 lt_prog_compiler_wl='-Qoption ld ';;
7540 *)
7541 lt_prog_compiler_wl='-Wl,';;
7542 esac
7543 ;;
7544
7545 sunos4*)
7546 lt_prog_compiler_wl='-Qoption ld '
7547 lt_prog_compiler_pic='-PIC'
7548 lt_prog_compiler_static='-Bstatic'
7549 ;;
7550
7551 sysv4 | sysv4.2uw2* | sysv4.3*)
7552 lt_prog_compiler_wl='-Wl,'
7553 lt_prog_compiler_pic='-KPIC'
7554 lt_prog_compiler_static='-Bstatic'
7555 ;;
7556
7557 sysv4*MP*)
7558 if test -d /usr/nec ;then
7559 lt_prog_compiler_pic='-Kconform_pic'
7560 lt_prog_compiler_static='-Bstatic'
7561 fi
7562 ;;
7563
7564 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7565 lt_prog_compiler_wl='-Wl,'
7566 lt_prog_compiler_pic='-KPIC'
7567 lt_prog_compiler_static='-Bstatic'
7568 ;;
7569
7570 unicos*)
7571 lt_prog_compiler_wl='-Wl,'
7572 lt_prog_compiler_can_build_shared=no
7573 ;;
7574
7575 uts4*)
7576 lt_prog_compiler_pic='-pic'
7577 lt_prog_compiler_static='-Bstatic'
7578 ;;
7579
7580 *)
7581 lt_prog_compiler_can_build_shared=no
7582 ;;
7583 esac
7584 fi
7585
64ff59ba 7586{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7587echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d9898ee8 7588
7589#
7590# Check to make sure the PIC flag actually works.
7591#
7592if test -n "$lt_prog_compiler_pic"; then
7593
64ff59ba 7594{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7595echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d9898ee8 7596if test "${lt_prog_compiler_pic_works+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7598else
7599 lt_prog_compiler_pic_works=no
7600 ac_outfile=conftest.$ac_objext
7601 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7602 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7603 # Insert the option either (1) after the last *FLAGS variable, or
7604 # (2) before a word containing "conftest.", or (3) at the end.
7605 # Note that $ac_compile itself does not contain backslashes and begins
7606 # with a dollar sign (not a hyphen), so the echo should work correctly.
7607 # The option is referenced via a variable to avoid confusing sed.
7608 lt_compile=`echo "$ac_compile" | $SED \
7609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7611 -e 's:$: $lt_compiler_flag:'`
64ff59ba 7612 (eval echo "\"\$as_me:7612: $lt_compile\"" >&5)
d9898ee8 7613 (eval "$lt_compile" 2>conftest.err)
7614 ac_status=$?
7615 cat conftest.err >&5
64ff59ba 7616 echo "$as_me:7616: \$? = $ac_status" >&5
d9898ee8 7617 if (exit $ac_status) && test -s "$ac_outfile"; then
7618 # The compiler can only warn and ignore the option if not recognized
7619 # So say no if there are warnings other than the usual output.
7620 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7621 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7622 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7623 lt_prog_compiler_pic_works=yes
7624 fi
7625 fi
7626 $rm conftest*
7627
7628fi
64ff59ba 7629{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7630echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d9898ee8 7631
7632if test x"$lt_prog_compiler_pic_works" = xyes; then
7633 case $lt_prog_compiler_pic in
7634 "" | " "*) ;;
7635 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7636 esac
7637else
7638 lt_prog_compiler_pic=
7639 lt_prog_compiler_can_build_shared=no
7640fi
7641
7642fi
7643case $host_os in
7644 # For platforms which do not support PIC, -DPIC is meaningless:
7645 *djgpp*)
7646 lt_prog_compiler_pic=
7647 ;;
7648 *)
7649 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7650 ;;
7651esac
7652
7653#
7654# Check to make sure the static flag actually works.
7655#
7656wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
64ff59ba 7657{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7658echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 7659if test "${lt_prog_compiler_static_works+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7661else
7662 lt_prog_compiler_static_works=no
7663 save_LDFLAGS="$LDFLAGS"
7664 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7665 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7666 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7667 # The linker can only warn and ignore the option if not recognized
7668 # So say no if there are warnings
7669 if test -s conftest.err; then
7670 # Append any errors to the config.log.
7671 cat conftest.err 1>&5
7672 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7674 if diff conftest.exp conftest.er2 >/dev/null; then
7675 lt_prog_compiler_static_works=yes
7676 fi
7677 else
7678 lt_prog_compiler_static_works=yes
7679 fi
7680 fi
7681 $rm conftest*
7682 LDFLAGS="$save_LDFLAGS"
7683
7684fi
64ff59ba 7685{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7686echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
d9898ee8 7687
7688if test x"$lt_prog_compiler_static_works" = xyes; then
7689 :
7690else
7691 lt_prog_compiler_static=
7692fi
7693
7694
64ff59ba 7695{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7696echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 7697if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7699else
7700 lt_cv_prog_compiler_c_o=no
7701 $rm -r conftest 2>/dev/null
7702 mkdir conftest
7703 cd conftest
7704 mkdir out
7705 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7706
7707 lt_compiler_flag="-o out/conftest2.$ac_objext"
7708 # Insert the option either (1) after the last *FLAGS variable, or
7709 # (2) before a word containing "conftest.", or (3) at the end.
7710 # Note that $ac_compile itself does not contain backslashes and begins
7711 # with a dollar sign (not a hyphen), so the echo should work correctly.
7712 lt_compile=`echo "$ac_compile" | $SED \
7713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7715 -e 's:$: $lt_compiler_flag:'`
64ff59ba 7716 (eval echo "\"\$as_me:7716: $lt_compile\"" >&5)
d9898ee8 7717 (eval "$lt_compile" 2>out/conftest.err)
7718 ac_status=$?
7719 cat out/conftest.err >&5
64ff59ba 7720 echo "$as_me:7720: \$? = $ac_status" >&5
d9898ee8 7721 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7722 then
7723 # The compiler can only warn and ignore the option if not recognized
7724 # So say no if there are warnings
7725 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7726 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7727 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7728 lt_cv_prog_compiler_c_o=yes
7729 fi
7730 fi
7731 chmod u+w . 2>&5
7732 $rm conftest*
7733 # SGI C++ compiler will create directory out/ii_files/ for
7734 # template instantiation
7735 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7736 $rm out/* && rmdir out
7737 cd ..
7738 rmdir conftest
7739 $rm conftest*
7740
7741fi
64ff59ba 7742{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7743echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 7744
7745
7746hard_links="nottested"
7747if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7748 # do not overwrite the value of need_locks provided by the user
64ff59ba 7749 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7750echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 7751 hard_links=yes
7752 $rm conftest*
7753 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7754 touch conftest.a
7755 ln conftest.a conftest.b 2>&5 || hard_links=no
7756 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 7757 { echo "$as_me:$LINENO: result: $hard_links" >&5
7758echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 7759 if test "$hard_links" = no; then
7760 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7761echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7762 need_locks=warn
7763 fi
7764else
7765 need_locks=no
7766fi
7767
64ff59ba 7768{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7769echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 7770
7771 runpath_var=
7772 allow_undefined_flag=
7773 enable_shared_with_static_runtimes=no
7774 archive_cmds=
7775 archive_expsym_cmds=
7776 old_archive_From_new_cmds=
7777 old_archive_from_expsyms_cmds=
7778 export_dynamic_flag_spec=
7779 whole_archive_flag_spec=
7780 thread_safe_flag_spec=
7781 hardcode_libdir_flag_spec=
7782 hardcode_libdir_flag_spec_ld=
7783 hardcode_libdir_separator=
7784 hardcode_direct=no
7785 hardcode_minus_L=no
7786 hardcode_shlibpath_var=unsupported
7787 link_all_deplibs=unknown
7788 hardcode_automatic=no
7789 module_cmds=
7790 module_expsym_cmds=
7791 always_export_symbols=no
7792 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7793 # include_expsyms should be a list of space-separated symbols to be *always*
7794 # included in the symbol list
7795 include_expsyms=
7796 # exclude_expsyms can be an extended regexp of symbols to exclude
7797 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7798 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7799 # as well as any symbol that contains `d'.
7800 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7801 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7802 # platforms (ab)use it in PIC code, but their linkers get confused if
7803 # the symbol is explicitly referenced. Since portable code cannot
7804 # rely on this symbol name, it's probably fine to never include it in
7805 # preloaded symbol tables.
7806 extract_expsyms_cmds=
7807 # Just being paranoid about ensuring that cc_basename is set.
7808 for cc_temp in $compiler""; do
7809 case $cc_temp in
7810 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7811 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7812 \-*) ;;
7813 *) break;;
7814 esac
7815done
7816cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7817
7818 case $host_os in
7819 cygwin* | mingw* | pw32*)
7820 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7821 # When not using gcc, we currently assume that we are using
7822 # Microsoft Visual C++.
7823 if test "$GCC" != yes; then
7824 with_gnu_ld=no
7825 fi
7826 ;;
7827 interix*)
7828 # we just hope/assume this is gcc and not c89 (= MSVC++)
7829 with_gnu_ld=yes
7830 ;;
7831 openbsd*)
7832 with_gnu_ld=no
7833 ;;
7834 esac
7835
7836 ld_shlibs=yes
7837 if test "$with_gnu_ld" = yes; then
7838 # If archive_cmds runs LD, not CC, wlarc should be empty
7839 wlarc='${wl}'
7840
7841 # Set some defaults for GNU ld with shared library support. These
7842 # are reset later if shared libraries are not supported. Putting them
7843 # here allows them to be overridden if necessary.
7844 runpath_var=LD_RUN_PATH
7845 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7846 export_dynamic_flag_spec='${wl}--export-dynamic'
7847 # ancient GNU ld didn't support --whole-archive et. al.
7848 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7849 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7850 else
7851 whole_archive_flag_spec=
7852 fi
7853 supports_anon_versioning=no
7854 case `$LD -v 2>/dev/null` in
7855 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7856 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7857 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7858 *\ 2.11.*) ;; # other 2.11 versions
7859 *) supports_anon_versioning=yes ;;
7860 esac
7861
7862 # See if GNU ld supports shared libraries.
7863 case $host_os in
7864 aix3* | aix4* | aix5*)
7865 # On AIX/PPC, the GNU linker is very broken
7866 if test "$host_cpu" != ia64; then
7867 ld_shlibs=no
7868 cat <<EOF 1>&2
7869
7870*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7871*** to be unable to reliably create shared libraries on AIX.
7872*** Therefore, libtool is disabling shared libraries support. If you
7873*** really care for shared libraries, you may want to modify your PATH
7874*** so that a non-GNU linker is found, and then restart.
7875
7876EOF
7877 fi
7878 ;;
7879
7880 amigaos*)
7881 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)'
7882 hardcode_libdir_flag_spec='-L$libdir'
7883 hardcode_minus_L=yes
7884
7885 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7886 # that the semantics of dynamic libraries on AmigaOS, at least up
7887 # to version 4, is to share data among multiple programs linked
7888 # with the same dynamic library. Since this doesn't match the
7889 # behavior of shared libraries on other platforms, we can't use
7890 # them.
7891 ld_shlibs=no
7892 ;;
7893
7894 beos*)
7895 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7896 allow_undefined_flag=unsupported
7897 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7898 # support --undefined. This deserves some investigation. FIXME
7899 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7900 else
7901 ld_shlibs=no
7902 fi
7903 ;;
7904
7905 cygwin* | mingw* | pw32*)
7906 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7907 # as there is no search path for DLLs.
7908 hardcode_libdir_flag_spec='-L$libdir'
7909 allow_undefined_flag=unsupported
7910 always_export_symbols=no
7911 enable_shared_with_static_runtimes=yes
7912 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7913
7914 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7916 # If the export-symbols file already is a .def file (1st line
7917 # is EXPORTS), use it as is; otherwise, prepend...
7918 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7919 cp $export_symbols $output_objdir/$soname.def;
7920 else
7921 echo EXPORTS > $output_objdir/$soname.def;
7922 cat $export_symbols >> $output_objdir/$soname.def;
7923 fi~
7924 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7925 else
7926 ld_shlibs=no
7927 fi
7928 ;;
7929
7930 interix3*)
7931 hardcode_direct=no
7932 hardcode_shlibpath_var=no
7933 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7934 export_dynamic_flag_spec='${wl}-E'
7935 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7936 # Instead, shared libraries are loaded at an image base (0x10000000 by
7937 # default) and relocated if they conflict, which is a slow very memory
7938 # consuming and fragmenting process. To avoid this, we pick a random,
7939 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7940 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7941 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7942 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'
7943 ;;
7944
7945 linux*)
7946 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7947 tmp_addflag=
7948 case $cc_basename,$host_cpu in
7949 pgcc*) # Portland Group C compiler
7950 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'
7951 tmp_addflag=' $pic_flag'
7952 ;;
7953 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7954 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'
7955 tmp_addflag=' $pic_flag -Mnomain' ;;
7956 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7957 tmp_addflag=' -i_dynamic' ;;
7958 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7959 tmp_addflag=' -i_dynamic -nofor_main' ;;
7960 ifc* | ifort*) # Intel Fortran compiler
7961 tmp_addflag=' -nofor_main' ;;
7962 esac
7963 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7964
7965 if test $supports_anon_versioning = yes; then
7966 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7967 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7968 $echo "local: *; };" >> $output_objdir/$libname.ver~
7969 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7970 fi
7971 else
7972 ld_shlibs=no
7973 fi
7974 ;;
7975
7976 netbsd*)
7977 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7978 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7979 wlarc=
7980 else
7981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7983 fi
7984 ;;
7985
7986 solaris*)
7987 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7988 ld_shlibs=no
7989 cat <<EOF 1>&2
7990
7991*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7992*** create shared libraries on Solaris systems. Therefore, libtool
7993*** is disabling shared libraries support. We urge you to upgrade GNU
7994*** binutils to release 2.9.1 or newer. Another option is to modify
7995*** your PATH or compiler configuration so that the native linker is
7996*** used, and then restart.
7997
7998EOF
7999 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8001 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8002 else
8003 ld_shlibs=no
8004 fi
8005 ;;
8006
8007 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8008 case `$LD -v 2>&1` in
8009 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8010 ld_shlibs=no
8011 cat <<_LT_EOF 1>&2
8012
8013*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8014*** reliably create shared libraries on SCO systems. Therefore, libtool
8015*** is disabling shared libraries support. We urge you to upgrade GNU
8016*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8017*** your PATH or compiler configuration so that the native linker is
8018*** used, and then restart.
8019
8020_LT_EOF
8021 ;;
8022 *)
8023 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8024 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8026 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8027 else
8028 ld_shlibs=no
8029 fi
8030 ;;
8031 esac
8032 ;;
8033
8034 sunos4*)
8035 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8036 wlarc=
8037 hardcode_direct=yes
8038 hardcode_shlibpath_var=no
8039 ;;
8040
8041 *)
8042 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8044 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8045 else
8046 ld_shlibs=no
8047 fi
8048 ;;
8049 esac
8050
8051 if test "$ld_shlibs" = no; then
8052 runpath_var=
8053 hardcode_libdir_flag_spec=
8054 export_dynamic_flag_spec=
8055 whole_archive_flag_spec=
8056 fi
8057 else
8058 # PORTME fill in a description of your system's linker (not GNU ld)
8059 case $host_os in
8060 aix3*)
8061 allow_undefined_flag=unsupported
8062 always_export_symbols=yes
8063 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'
8064 # Note: this linker hardcodes the directories in LIBPATH if there
8065 # are no directories specified by -L.
8066 hardcode_minus_L=yes
8067 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8068 # Neither direct hardcoding nor static linking is supported with a
8069 # broken collect2.
8070 hardcode_direct=unsupported
8071 fi
8072 ;;
8073
8074 aix4* | aix5*)
8075 if test "$host_cpu" = ia64; then
8076 # On IA64, the linker does run time linking by default, so we don't
8077 # have to do anything special.
8078 aix_use_runtimelinking=no
8079 exp_sym_flag='-Bexport'
8080 no_entry_flag=""
8081 else
8082 # If we're using GNU nm, then we don't want the "-C" option.
8083 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8084 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8085 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'
8086 else
8087 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'
8088 fi
8089 aix_use_runtimelinking=no
8090
8091 # Test if we are trying to use run time linking or normal
8092 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8093 # need to do runtime linking.
8094 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8095 for ld_flag in $LDFLAGS; do
8096 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8097 aix_use_runtimelinking=yes
8098 break
8099 fi
8100 done
8101 ;;
8102 esac
8103
8104 exp_sym_flag='-bexport'
8105 no_entry_flag='-bnoentry'
8106 fi
8107
8108 # When large executables or shared objects are built, AIX ld can
8109 # have problems creating the table of contents. If linking a library
8110 # or program results in "error TOC overflow" add -mminimal-toc to
8111 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8112 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8113
8114 archive_cmds=''
8115 hardcode_direct=yes
8116 hardcode_libdir_separator=':'
8117 link_all_deplibs=yes
8118
8119 if test "$GCC" = yes; then
8120 case $host_os in aix4.[012]|aix4.[012].*)
8121 # We only want to do this on AIX 4.2 and lower, the check
8122 # below for broken collect2 doesn't work under 4.3+
8123 collect2name=`${CC} -print-prog-name=collect2`
8124 if test -f "$collect2name" && \
8125 strings "$collect2name" | grep resolve_lib_name >/dev/null
8126 then
8127 # We have reworked collect2
8128 hardcode_direct=yes
8129 else
8130 # We have old collect2
8131 hardcode_direct=unsupported
8132 # It fails to find uninstalled libraries when the uninstalled
8133 # path is not listed in the libpath. Setting hardcode_minus_L
8134 # to unsupported forces relinking
8135 hardcode_minus_L=yes
8136 hardcode_libdir_flag_spec='-L$libdir'
8137 hardcode_libdir_separator=
8138 fi
8139 ;;
8140 esac
8141 shared_flag='-shared'
8142 if test "$aix_use_runtimelinking" = yes; then
8143 shared_flag="$shared_flag "'${wl}-G'
8144 fi
8145 else
8146 # not using gcc
8147 if test "$host_cpu" = ia64; then
8148 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8149 # chokes on -Wl,-G. The following line is correct:
8150 shared_flag='-G'
8151 else
8152 if test "$aix_use_runtimelinking" = yes; then
8153 shared_flag='${wl}-G'
8154 else
8155 shared_flag='${wl}-bM:SRE'
8156 fi
8157 fi
8158 fi
8159
8160 # It seems that -bexpall does not export symbols beginning with
8161 # underscore (_), so it is better to generate a list of symbols to export.
8162 always_export_symbols=yes
8163 if test "$aix_use_runtimelinking" = yes; then
8164 # Warning - without using the other runtime loading flags (-brtl),
8165 # -berok will link without error, but may produce a broken library.
8166 allow_undefined_flag='-berok'
8167 # Determine the default libpath from the value encoded in an empty executable.
8168 cat >conftest.$ac_ext <<_ACEOF
8169/* confdefs.h. */
8170_ACEOF
8171cat confdefs.h >>conftest.$ac_ext
8172cat >>conftest.$ac_ext <<_ACEOF
8173/* end confdefs.h. */
8174
8175int
8176main ()
8177{
8178
8179 ;
8180 return 0;
8181}
8182_ACEOF
8183rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 8184if { (ac_try="$ac_link"
8185case "(($ac_try" in
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8188esac
8189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_link") 2>conftest.er1
d9898ee8 8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 8196 (exit $ac_status); } && {
8197 test -z "$ac_c_werror_flag" ||
8198 test ! -s conftest.err
8199 } && test -s conftest$ac_exeext &&
8200 $as_test_x conftest$ac_exeext; then
d9898ee8 8201
8202aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8203}'`
8204# Check for a 64-bit object if we didn't find anything.
8205if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8206}'`; fi
8207else
8208 echo "$as_me: failed program was:" >&5
8209sed 's/^/| /' conftest.$ac_ext >&5
8210
64ff59ba 8211
d9898ee8 8212fi
64ff59ba 8213
8214rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8215 conftest$ac_exeext conftest.$ac_ext
8216if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8217
8218 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8219 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"
8220 else
8221 if test "$host_cpu" = ia64; then
8222 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8223 allow_undefined_flag="-z nodefs"
8224 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"
8225 else
8226 # Determine the default libpath from the value encoded in an empty executable.
8227 cat >conftest.$ac_ext <<_ACEOF
8228/* confdefs.h. */
8229_ACEOF
8230cat confdefs.h >>conftest.$ac_ext
8231cat >>conftest.$ac_ext <<_ACEOF
8232/* end confdefs.h. */
8233
8234int
8235main ()
8236{
8237
8238 ;
8239 return 0;
8240}
8241_ACEOF
8242rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 8243if { (ac_try="$ac_link"
8244case "(($ac_try" in
8245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246 *) ac_try_echo=$ac_try;;
8247esac
8248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249 (eval "$ac_link") 2>conftest.er1
d9898ee8 8250 ac_status=$?
8251 grep -v '^ *+' conftest.er1 >conftest.err
8252 rm -f conftest.er1
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 8255 (exit $ac_status); } && {
8256 test -z "$ac_c_werror_flag" ||
8257 test ! -s conftest.err
8258 } && test -s conftest$ac_exeext &&
8259 $as_test_x conftest$ac_exeext; then
d9898ee8 8260
8261aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8262}'`
8263# Check for a 64-bit object if we didn't find anything.
8264if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8265}'`; fi
8266else
8267 echo "$as_me: failed program was:" >&5
8268sed 's/^/| /' conftest.$ac_ext >&5
8269
64ff59ba 8270
d9898ee8 8271fi
64ff59ba 8272
8273rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8274 conftest$ac_exeext conftest.$ac_ext
8275if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8276
8277 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8278 # Warning - without using the other run time loading flags,
8279 # -berok will link without error, but may produce a broken library.
8280 no_undefined_flag=' ${wl}-bernotok'
8281 allow_undefined_flag=' ${wl}-berok'
8282 # Exported symbols can be pulled into shared objects from archives
8283 whole_archive_flag_spec='$convenience'
8284 archive_cmds_need_lc=yes
8285 # This is similar to how AIX traditionally builds its shared libraries.
8286 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'
8287 fi
8288 fi
8289 ;;
8290
8291 amigaos*)
8292 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)'
8293 hardcode_libdir_flag_spec='-L$libdir'
8294 hardcode_minus_L=yes
8295 # see comment about different semantics on the GNU ld section
8296 ld_shlibs=no
8297 ;;
8298
8299 bsdi[45]*)
8300 export_dynamic_flag_spec=-rdynamic
8301 ;;
8302
8303 cygwin* | mingw* | pw32*)
8304 # When not using gcc, we currently assume that we are using
8305 # Microsoft Visual C++.
8306 # hardcode_libdir_flag_spec is actually meaningless, as there is
8307 # no search path for DLLs.
8308 hardcode_libdir_flag_spec=' '
8309 allow_undefined_flag=unsupported
8310 # Tell ltmain to make .lib files, not .a files.
8311 libext=lib
8312 # Tell ltmain to make .dll files, not .so files.
8313 shrext_cmds=".dll"
8314 # FIXME: Setting linknames here is a bad hack.
8315 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8316 # The linker will automatically build a .lib file if we build a DLL.
8317 old_archive_From_new_cmds='true'
8318 # FIXME: Should let the user specify the lib program.
8319 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8320 fix_srcfile_path='`cygpath -w "$srcfile"`'
8321 enable_shared_with_static_runtimes=yes
8322 ;;
8323
8324 darwin* | rhapsody*)
8325 case $host_os in
8326 rhapsody* | darwin1.[012])
8327 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8328 ;;
8329 *) # Darwin 1.3 on
8330 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8331 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8332 else
8333 case ${MACOSX_DEPLOYMENT_TARGET} in
8334 10.[012])
8335 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8336 ;;
8337 10.*)
8338 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8339 ;;
8340 esac
8341 fi
8342 ;;
8343 esac
8344 archive_cmds_need_lc=no
8345 hardcode_direct=no
8346 hardcode_automatic=yes
8347 hardcode_shlibpath_var=unsupported
8348 whole_archive_flag_spec=''
8349 link_all_deplibs=yes
8350 if test "$GCC" = yes ; then
8351 output_verbose_link_cmd='echo'
8352 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8353 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8354 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8355 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}'
8356 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}'
8357 else
8358 case $cc_basename in
8359 xlc*)
8360 output_verbose_link_cmd='echo'
8361 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8362 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8363 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8364 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8365 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}'
8366 ;;
8367 *)
8368 ld_shlibs=no
8369 ;;
8370 esac
8371 fi
8372 ;;
8373
8374 dgux*)
8375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8376 hardcode_libdir_flag_spec='-L$libdir'
8377 hardcode_shlibpath_var=no
8378 ;;
8379
8380 freebsd1*)
8381 ld_shlibs=no
8382 ;;
8383
8384 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8385 # support. Future versions do this automatically, but an explicit c++rt0.o
8386 # does not break anything, and helps significantly (at the cost of a little
8387 # extra space).
8388 freebsd2.2*)
8389 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8390 hardcode_libdir_flag_spec='-R$libdir'
8391 hardcode_direct=yes
8392 hardcode_shlibpath_var=no
8393 ;;
8394
8395 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8396 freebsd2*)
8397 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8398 hardcode_direct=yes
8399 hardcode_minus_L=yes
8400 hardcode_shlibpath_var=no
8401 ;;
8402
8403 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8404 freebsd* | kfreebsd*-gnu | dragonfly*)
8405 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8406 hardcode_libdir_flag_spec='-R$libdir'
8407 hardcode_direct=yes
8408 hardcode_shlibpath_var=no
8409 ;;
8410
8411 hpux9*)
8412 if test "$GCC" = yes; then
8413 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'
8414 else
8415 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'
8416 fi
8417 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8418 hardcode_libdir_separator=:
8419 hardcode_direct=yes
8420
8421 # hardcode_minus_L: Not really in the search PATH,
8422 # but as the default location of the library.
8423 hardcode_minus_L=yes
8424 export_dynamic_flag_spec='${wl}-E'
8425 ;;
8426
8427 hpux10*)
8428 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8429 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8430 else
8431 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8432 fi
8433 if test "$with_gnu_ld" = no; then
8434 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8435 hardcode_libdir_separator=:
8436
8437 hardcode_direct=yes
8438 export_dynamic_flag_spec='${wl}-E'
8439
8440 # hardcode_minus_L: Not really in the search PATH,
8441 # but as the default location of the library.
8442 hardcode_minus_L=yes
8443 fi
8444 ;;
8445
8446 hpux11*)
8447 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8448 case $host_cpu in
8449 hppa*64*)
8450 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8451 ;;
8452 ia64*)
8453 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8454 ;;
8455 *)
8456 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8457 ;;
8458 esac
8459 else
8460 case $host_cpu in
8461 hppa*64*)
8462 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8463 ;;
8464 ia64*)
8465 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8466 ;;
8467 *)
8468 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8469 ;;
8470 esac
8471 fi
8472 if test "$with_gnu_ld" = no; then
8473 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8474 hardcode_libdir_separator=:
8475
8476 case $host_cpu in
8477 hppa*64*|ia64*)
8478 hardcode_libdir_flag_spec_ld='+b $libdir'
8479 hardcode_direct=no
8480 hardcode_shlibpath_var=no
8481 ;;
8482 *)
8483 hardcode_direct=yes
8484 export_dynamic_flag_spec='${wl}-E'
8485
8486 # hardcode_minus_L: Not really in the search PATH,
8487 # but as the default location of the library.
8488 hardcode_minus_L=yes
8489 ;;
8490 esac
8491 fi
8492 ;;
8493
8494 irix5* | irix6* | nonstopux*)
8495 if test "$GCC" = yes; then
8496 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'
8497 else
8498 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'
8499 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8500 fi
8501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8502 hardcode_libdir_separator=:
8503 link_all_deplibs=yes
8504 ;;
8505
8506 netbsd*)
8507 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8508 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8509 else
8510 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8511 fi
8512 hardcode_libdir_flag_spec='-R$libdir'
8513 hardcode_direct=yes
8514 hardcode_shlibpath_var=no
8515 ;;
8516
8517 newsos6)
8518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8519 hardcode_direct=yes
8520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8521 hardcode_libdir_separator=:
8522 hardcode_shlibpath_var=no
8523 ;;
8524
8525 openbsd*)
8526 hardcode_direct=yes
8527 hardcode_shlibpath_var=no
8528 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8529 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8530 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8531 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8532 export_dynamic_flag_spec='${wl}-E'
8533 else
8534 case $host_os in
8535 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8537 hardcode_libdir_flag_spec='-R$libdir'
8538 ;;
8539 *)
8540 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8541 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8542 ;;
8543 esac
8544 fi
8545 ;;
8546
8547 os2*)
8548 hardcode_libdir_flag_spec='-L$libdir'
8549 hardcode_minus_L=yes
8550 allow_undefined_flag=unsupported
8551 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'
8552 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8553 ;;
8554
8555 osf3*)
8556 if test "$GCC" = yes; then
8557 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8558 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'
8559 else
8560 allow_undefined_flag=' -expect_unresolved \*'
8561 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'
8562 fi
8563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8564 hardcode_libdir_separator=:
8565 ;;
8566
8567 osf4* | osf5*) # as osf3* with the addition of -msym flag
8568 if test "$GCC" = yes; then
8569 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8570 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'
8571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8572 else
8573 allow_undefined_flag=' -expect_unresolved \*'
8574 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'
8575 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8576 $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'
8577
8578 # Both c and cxx compiler support -rpath directly
8579 hardcode_libdir_flag_spec='-rpath $libdir'
8580 fi
8581 hardcode_libdir_separator=:
8582 ;;
8583
8584 solaris*)
8585 no_undefined_flag=' -z text'
8586 if test "$GCC" = yes; then
8587 wlarc='${wl}'
8588 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8589 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8590 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8591 else
8592 wlarc=''
8593 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8594 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8595 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8596 fi
8597 hardcode_libdir_flag_spec='-R$libdir'
8598 hardcode_shlibpath_var=no
8599 case $host_os in
8600 solaris2.[0-5] | solaris2.[0-5].*) ;;
8601 *)
8602 # The compiler driver will combine linker options so we
8603 # cannot just pass the convience library names through
8604 # without $wl, iff we do not link with $LD.
8605 # Luckily, gcc supports the same syntax we need for Sun Studio.
8606 # Supported since Solaris 2.6 (maybe 2.5.1?)
8607 case $wlarc in
8608 '')
8609 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8610 *)
8611 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8612 esac ;;
8613 esac
8614 link_all_deplibs=yes
8615 ;;
8616
8617 sunos4*)
8618 if test "x$host_vendor" = xsequent; then
8619 # Use $CC to link under sequent, because it throws in some extra .o
8620 # files that make .init and .fini sections work.
8621 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8622 else
8623 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8624 fi
8625 hardcode_libdir_flag_spec='-L$libdir'
8626 hardcode_direct=yes
8627 hardcode_minus_L=yes
8628 hardcode_shlibpath_var=no
8629 ;;
8630
8631 sysv4)
8632 case $host_vendor in
8633 sni)
8634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8635 hardcode_direct=yes # is this really true???
8636 ;;
8637 siemens)
8638 ## LD is ld it makes a PLAMLIB
8639 ## CC just makes a GrossModule.
8640 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8641 reload_cmds='$CC -r -o $output$reload_objs'
8642 hardcode_direct=no
8643 ;;
8644 motorola)
8645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8646 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8647 ;;
8648 esac
8649 runpath_var='LD_RUN_PATH'
8650 hardcode_shlibpath_var=no
8651 ;;
8652
8653 sysv4.3*)
8654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8655 hardcode_shlibpath_var=no
8656 export_dynamic_flag_spec='-Bexport'
8657 ;;
8658
8659 sysv4*MP*)
8660 if test -d /usr/nec; then
8661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8662 hardcode_shlibpath_var=no
8663 runpath_var=LD_RUN_PATH
8664 hardcode_runpath_var=yes
8665 ld_shlibs=yes
8666 fi
8667 ;;
8668
8669 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8670 no_undefined_flag='${wl}-z,text'
8671 archive_cmds_need_lc=no
8672 hardcode_shlibpath_var=no
8673 runpath_var='LD_RUN_PATH'
8674
8675 if test "$GCC" = yes; then
8676 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8677 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8678 else
8679 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8680 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8681 fi
8682 ;;
8683
8684 sysv5* | sco3.2v5* | sco5v6*)
8685 # Note: We can NOT use -z defs as we might desire, because we do not
8686 # link with -lc, and that would cause any symbols used from libc to
8687 # always be unresolved, which means just about no library would
8688 # ever link correctly. If we're not using GNU ld we use -z text
8689 # though, which does catch some bad symbols but isn't as heavy-handed
8690 # as -z defs.
8691 no_undefined_flag='${wl}-z,text'
8692 allow_undefined_flag='${wl}-z,nodefs'
8693 archive_cmds_need_lc=no
8694 hardcode_shlibpath_var=no
8695 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8696 hardcode_libdir_separator=':'
8697 link_all_deplibs=yes
8698 export_dynamic_flag_spec='${wl}-Bexport'
8699 runpath_var='LD_RUN_PATH'
8700
8701 if test "$GCC" = yes; then
8702 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8703 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8704 else
8705 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8706 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8707 fi
8708 ;;
8709
8710 uts4*)
8711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8712 hardcode_libdir_flag_spec='-L$libdir'
8713 hardcode_shlibpath_var=no
8714 ;;
8715
8716 *)
8717 ld_shlibs=no
8718 ;;
8719 esac
8720 fi
8721
64ff59ba 8722{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8723echo "${ECHO_T}$ld_shlibs" >&6; }
d9898ee8 8724test "$ld_shlibs" = no && can_build_shared=no
8725
8726#
8727# Do we need to explicitly link libc?
8728#
8729case "x$archive_cmds_need_lc" in
8730x|xyes)
8731 # Assume -lc should be added
8732 archive_cmds_need_lc=yes
8733
8734 if test "$enable_shared" = yes && test "$GCC" = yes; then
8735 case $archive_cmds in
8736 *'~'*)
8737 # FIXME: we may have to deal with multi-command sequences.
8738 ;;
8739 '$CC '*)
8740 # Test whether the compiler implicitly links with -lc since on some
8741 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8742 # to ld, don't add -lc before -lgcc.
64ff59ba 8743 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8744echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 8745 $rm conftest*
8746 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8747
8748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8749 (eval $ac_compile) 2>&5
8750 ac_status=$?
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } 2>conftest.err; then
8753 soname=conftest
8754 lib=conftest
8755 libobjs=conftest.$ac_objext
8756 deplibs=
8757 wl=$lt_prog_compiler_wl
8758 pic_flag=$lt_prog_compiler_pic
8759 compiler_flags=-v
8760 linker_flags=-v
8761 verstring=
8762 output_objdir=.
8763 libname=conftest
8764 lt_save_allow_undefined_flag=$allow_undefined_flag
8765 allow_undefined_flag=
8766 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8767 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8768 ac_status=$?
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }
8771 then
8772 archive_cmds_need_lc=no
8773 else
8774 archive_cmds_need_lc=yes
8775 fi
8776 allow_undefined_flag=$lt_save_allow_undefined_flag
8777 else
8778 cat conftest.err 1>&5
8779 fi
8780 $rm conftest*
64ff59ba 8781 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8782echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d9898ee8 8783 ;;
8784 esac
8785 fi
8786 ;;
8787esac
8788
64ff59ba 8789{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8790echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 8791library_names_spec=
8792libname_spec='lib$name'
8793soname_spec=
8794shrext_cmds=".so"
8795postinstall_cmds=
8796postuninstall_cmds=
8797finish_cmds=
8798finish_eval=
8799shlibpath_var=
8800shlibpath_overrides_runpath=unknown
8801version_type=none
8802dynamic_linker="$host_os ld.so"
8803sys_lib_dlsearch_path_spec="/lib /usr/lib"
8804if test "$GCC" = yes; then
8805 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8806 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8807 # if the path contains ";" then we assume it to be the separator
8808 # otherwise default to the standard path separator (i.e. ":") - it is
8809 # assumed that no part of a normal pathname contains ";" but that should
8810 # okay in the real world where ";" in dirpaths is itself problematic.
8811 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8812 else
8813 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8814 fi
8815else
8816 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8817fi
8818need_lib_prefix=unknown
8819hardcode_into_libs=no
8820
8821# when you set need_version to no, make sure it does not cause -set_version
8822# flags to be left without arguments
8823need_version=unknown
8824
8825case $host_os in
8826aix3*)
8827 version_type=linux
8828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8829 shlibpath_var=LIBPATH
8830
8831 # AIX 3 has no versioning support, so we append a major version to the name.
8832 soname_spec='${libname}${release}${shared_ext}$major'
8833 ;;
8834
8835aix4* | aix5*)
8836 version_type=linux
8837 need_lib_prefix=no
8838 need_version=no
8839 hardcode_into_libs=yes
8840 if test "$host_cpu" = ia64; then
8841 # AIX 5 supports IA64
8842 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8843 shlibpath_var=LD_LIBRARY_PATH
8844 else
8845 # With GCC up to 2.95.x, collect2 would create an import file
8846 # for dependence libraries. The import file would start with
8847 # the line `#! .'. This would cause the generated library to
8848 # depend on `.', always an invalid library. This was fixed in
8849 # development snapshots of GCC prior to 3.0.
8850 case $host_os in
8851 aix4 | aix4.[01] | aix4.[01].*)
8852 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8853 echo ' yes '
8854 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8855 :
8856 else
8857 can_build_shared=no
8858 fi
8859 ;;
8860 esac
8861 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8862 # soname into executable. Probably we can add versioning support to
8863 # collect2, so additional links can be useful in future.
8864 if test "$aix_use_runtimelinking" = yes; then
8865 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8866 # instead of lib<name>.a to let people know that these are not
8867 # typical AIX shared libraries.
8868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8869 else
8870 # We preserve .a as extension for shared libraries through AIX4.2
8871 # and later when we are not doing run time linking.
8872 library_names_spec='${libname}${release}.a $libname.a'
8873 soname_spec='${libname}${release}${shared_ext}$major'
8874 fi
8875 shlibpath_var=LIBPATH
8876 fi
8877 ;;
8878
8879amigaos*)
8880 library_names_spec='$libname.ixlibrary $libname.a'
8881 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8882 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'
8883 ;;
8884
8885beos*)
8886 library_names_spec='${libname}${shared_ext}'
8887 dynamic_linker="$host_os ld.so"
8888 shlibpath_var=LIBRARY_PATH
8889 ;;
8890
8891bsdi[45]*)
8892 version_type=linux
8893 need_version=no
8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8895 soname_spec='${libname}${release}${shared_ext}$major'
8896 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8897 shlibpath_var=LD_LIBRARY_PATH
8898 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8899 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8900 # the default ld.so.conf also contains /usr/contrib/lib and
8901 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8902 # libtool to hard-code these into programs
8903 ;;
8904
8905cygwin* | mingw* | pw32*)
8906 version_type=windows
8907 shrext_cmds=".dll"
8908 need_version=no
8909 need_lib_prefix=no
8910
8911 case $GCC,$host_os in
8912 yes,cygwin* | yes,mingw* | yes,pw32*)
8913 library_names_spec='$libname.dll.a'
8914 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8915 postinstall_cmds='base_file=`basename \${file}`~
8916 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8917 dldir=$destdir/`dirname \$dlpath`~
8918 test -d \$dldir || mkdir -p \$dldir~
8919 $install_prog $dir/$dlname \$dldir/$dlname~
8920 chmod a+x \$dldir/$dlname'
8921 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8922 dlpath=$dir/\$dldll~
8923 $rm \$dlpath'
8924 shlibpath_overrides_runpath=yes
8925
8926 case $host_os in
8927 cygwin*)
8928 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8929 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8930 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8931 ;;
8932 mingw*)
8933 # MinGW DLLs use traditional 'lib' prefix
8934 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8935 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8936 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8937 # It is most probably a Windows format PATH printed by
8938 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8939 # path with ; separators, and with drive letters. We can handle the
8940 # drive letters (cygwin fileutils understands them), so leave them,
8941 # especially as we might pass files found there to a mingw objdump,
8942 # which wouldn't understand a cygwinified path. Ahh.
8943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8944 else
8945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8946 fi
8947 ;;
8948 pw32*)
8949 # pw32 DLLs use 'pw' prefix rather than 'lib'
8950 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8951 ;;
8952 esac
8953 ;;
8954
8955 *)
8956 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8957 ;;
8958 esac
8959 dynamic_linker='Win32 ld.exe'
8960 # FIXME: first we should search . and the directory the executable is in
8961 shlibpath_var=PATH
8962 ;;
8963
8964darwin* | rhapsody*)
8965 dynamic_linker="$host_os dyld"
8966 version_type=darwin
8967 need_lib_prefix=no
8968 need_version=no
8969 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8970 soname_spec='${libname}${release}${major}$shared_ext'
8971 shlibpath_overrides_runpath=yes
8972 shlibpath_var=DYLD_LIBRARY_PATH
8973 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8974 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8975 if test "$GCC" = yes; then
8976 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8977 else
8978 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8979 fi
8980 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8981 ;;
8982
8983dgux*)
8984 version_type=linux
8985 need_lib_prefix=no
8986 need_version=no
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8988 soname_spec='${libname}${release}${shared_ext}$major'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 ;;
8991
8992freebsd1*)
8993 dynamic_linker=no
8994 ;;
8995
8996kfreebsd*-gnu)
8997 version_type=linux
8998 need_lib_prefix=no
8999 need_version=no
9000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9001 soname_spec='${libname}${release}${shared_ext}$major'
9002 shlibpath_var=LD_LIBRARY_PATH
9003 shlibpath_overrides_runpath=no
9004 hardcode_into_libs=yes
9005 dynamic_linker='GNU ld.so'
9006 ;;
9007
9008freebsd* | dragonfly*)
9009 # DragonFly does not have aout. When/if they implement a new
9010 # versioning mechanism, adjust this.
9011 if test -x /usr/bin/objformat; then
9012 objformat=`/usr/bin/objformat`
9013 else
9014 case $host_os in
9015 freebsd[123]*) objformat=aout ;;
9016 *) objformat=elf ;;
9017 esac
9018 fi
9019 version_type=freebsd-$objformat
9020 case $version_type in
9021 freebsd-elf*)
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9023 need_version=no
9024 need_lib_prefix=no
9025 ;;
9026 freebsd-*)
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9028 need_version=yes
9029 ;;
9030 esac
9031 shlibpath_var=LD_LIBRARY_PATH
9032 case $host_os in
9033 freebsd2*)
9034 shlibpath_overrides_runpath=yes
9035 ;;
9036 freebsd3.[01]* | freebsdelf3.[01]*)
9037 shlibpath_overrides_runpath=yes
9038 hardcode_into_libs=yes
9039 ;;
9040 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9041 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9042 shlibpath_overrides_runpath=no
9043 hardcode_into_libs=yes
9044 ;;
9045 freebsd*) # from 4.6 on
9046 shlibpath_overrides_runpath=yes
9047 hardcode_into_libs=yes
9048 ;;
9049 esac
9050 ;;
9051
9052gnu*)
9053 version_type=linux
9054 need_lib_prefix=no
9055 need_version=no
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9058 shlibpath_var=LD_LIBRARY_PATH
9059 hardcode_into_libs=yes
9060 ;;
9061
9062hpux9* | hpux10* | hpux11*)
9063 # Give a soname corresponding to the major version so that dld.sl refuses to
9064 # link against other versions.
9065 version_type=sunos
9066 need_lib_prefix=no
9067 need_version=no
9068 case $host_cpu in
9069 ia64*)
9070 shrext_cmds='.so'
9071 hardcode_into_libs=yes
9072 dynamic_linker="$host_os dld.so"
9073 shlibpath_var=LD_LIBRARY_PATH
9074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
9077 if test "X$HPUX_IA64_MODE" = X32; then
9078 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9079 else
9080 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9081 fi
9082 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9083 ;;
9084 hppa*64*)
9085 shrext_cmds='.sl'
9086 hardcode_into_libs=yes
9087 dynamic_linker="$host_os dld.sl"
9088 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091 soname_spec='${libname}${release}${shared_ext}$major'
9092 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9094 ;;
9095 *)
9096 shrext_cmds='.sl'
9097 dynamic_linker="$host_os dld.sl"
9098 shlibpath_var=SHLIB_PATH
9099 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101 soname_spec='${libname}${release}${shared_ext}$major'
9102 ;;
9103 esac
9104 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9105 postinstall_cmds='chmod 555 $lib'
9106 ;;
9107
9108interix3*)
9109 version_type=linux
9110 need_lib_prefix=no
9111 need_version=no
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9113 soname_spec='${libname}${release}${shared_ext}$major'
9114 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 shlibpath_overrides_runpath=no
9117 hardcode_into_libs=yes
9118 ;;
9119
9120irix5* | irix6* | nonstopux*)
9121 case $host_os in
9122 nonstopux*) version_type=nonstopux ;;
9123 *)
9124 if test "$lt_cv_prog_gnu_ld" = yes; then
9125 version_type=linux
9126 else
9127 version_type=irix
9128 fi ;;
9129 esac
9130 need_lib_prefix=no
9131 need_version=no
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9134 case $host_os in
9135 irix5* | nonstopux*)
9136 libsuff= shlibsuff=
9137 ;;
9138 *)
9139 case $LD in # libtool.m4 will add one of these switches to LD
9140 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9141 libsuff= shlibsuff= libmagic=32-bit;;
9142 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9143 libsuff=32 shlibsuff=N32 libmagic=N32;;
9144 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9145 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9146 *) libsuff= shlibsuff= libmagic=never-match;;
9147 esac
9148 ;;
9149 esac
9150 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9151 shlibpath_overrides_runpath=no
9152 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9153 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9154 hardcode_into_libs=yes
9155 ;;
9156
9157# No shared lib support for Linux oldld, aout, or coff.
9158linux*oldld* | linux*aout* | linux*coff*)
9159 dynamic_linker=no
9160 ;;
9161
9162# This must be Linux ELF.
9163linux*)
9164 version_type=linux
9165 need_lib_prefix=no
9166 need_version=no
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=no
9172 # This implies no fast_install, which is unacceptable.
9173 # Some rework will be needed to allow for fast_install
9174 # before this can be enabled.
9175 hardcode_into_libs=yes
9176
9177 # find out which ABI we are using
9178 libsuff=
9179 case "$host_cpu" in
9180 x86_64*|s390x*|powerpc64*)
64ff59ba 9181 echo '#line 9181 "configure"' > conftest.$ac_ext
d9898ee8 9182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9183 (eval $ac_compile) 2>&5
9184 ac_status=$?
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); }; then
9187 case `/usr/bin/file conftest.$ac_objext` in
9188 *64-bit*)
9189 libsuff=64
9190 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9191 ;;
9192 esac
9193 fi
9194 rm -rf conftest*
9195 ;;
9196 esac
9197
9198 # Append ld.so.conf contents to the search path
9199 if test -f /etc/ld.so.conf; then
64ff59ba 9200 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 9201 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9202 fi
9203
9204 # We used to test for /lib/ld.so.1 and disable shared libraries on
9205 # powerpc, because MkLinux only supported shared libraries with the
9206 # GNU dynamic linker. Since this was broken with cross compilers,
9207 # most powerpc-linux boxes support dynamic linking these days and
9208 # people can always --disable-shared, the test was removed, and we
9209 # assume the GNU/Linux dynamic linker is in use.
9210 dynamic_linker='GNU/Linux ld.so'
9211 ;;
9212
9213knetbsd*-gnu)
9214 version_type=linux
9215 need_lib_prefix=no
9216 need_version=no
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9218 soname_spec='${libname}${release}${shared_ext}$major'
9219 shlibpath_var=LD_LIBRARY_PATH
9220 shlibpath_overrides_runpath=no
9221 hardcode_into_libs=yes
9222 dynamic_linker='GNU ld.so'
9223 ;;
9224
9225netbsd*)
9226 version_type=sunos
9227 need_lib_prefix=no
9228 need_version=no
9229 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9232 dynamic_linker='NetBSD (a.out) ld.so'
9233 else
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 dynamic_linker='NetBSD ld.elf_so'
9237 fi
9238 shlibpath_var=LD_LIBRARY_PATH
9239 shlibpath_overrides_runpath=yes
9240 hardcode_into_libs=yes
9241 ;;
9242
9243newsos6)
9244 version_type=linux
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9246 shlibpath_var=LD_LIBRARY_PATH
9247 shlibpath_overrides_runpath=yes
9248 ;;
9249
9250nto-qnx*)
9251 version_type=linux
9252 need_lib_prefix=no
9253 need_version=no
9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9255 soname_spec='${libname}${release}${shared_ext}$major'
9256 shlibpath_var=LD_LIBRARY_PATH
9257 shlibpath_overrides_runpath=yes
9258 ;;
9259
9260openbsd*)
9261 version_type=sunos
9262 sys_lib_dlsearch_path_spec="/usr/lib"
9263 need_lib_prefix=no
9264 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9265 case $host_os in
9266 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9267 *) need_version=no ;;
9268 esac
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9271 shlibpath_var=LD_LIBRARY_PATH
9272 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9273 case $host_os in
9274 openbsd2.[89] | openbsd2.[89].*)
9275 shlibpath_overrides_runpath=no
9276 ;;
9277 *)
9278 shlibpath_overrides_runpath=yes
9279 ;;
9280 esac
9281 else
9282 shlibpath_overrides_runpath=yes
9283 fi
9284 ;;
9285
9286os2*)
9287 libname_spec='$name'
9288 shrext_cmds=".dll"
9289 need_lib_prefix=no
9290 library_names_spec='$libname${shared_ext} $libname.a'
9291 dynamic_linker='OS/2 ld.exe'
9292 shlibpath_var=LIBPATH
9293 ;;
9294
9295osf3* | osf4* | osf5*)
9296 version_type=osf
9297 need_lib_prefix=no
9298 need_version=no
9299 soname_spec='${libname}${release}${shared_ext}$major'
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9301 shlibpath_var=LD_LIBRARY_PATH
9302 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9303 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9304 ;;
9305
9306solaris*)
9307 version_type=linux
9308 need_lib_prefix=no
9309 need_version=no
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311 soname_spec='${libname}${release}${shared_ext}$major'
9312 shlibpath_var=LD_LIBRARY_PATH
9313 shlibpath_overrides_runpath=yes
9314 hardcode_into_libs=yes
9315 # ldd complains unless libraries are executable
9316 postinstall_cmds='chmod +x $lib'
9317 ;;
9318
9319sunos4*)
9320 version_type=sunos
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9322 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9323 shlibpath_var=LD_LIBRARY_PATH
9324 shlibpath_overrides_runpath=yes
9325 if test "$with_gnu_ld" = yes; then
9326 need_lib_prefix=no
9327 fi
9328 need_version=yes
9329 ;;
9330
9331sysv4 | sysv4.3*)
9332 version_type=linux
9333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9334 soname_spec='${libname}${release}${shared_ext}$major'
9335 shlibpath_var=LD_LIBRARY_PATH
9336 case $host_vendor in
9337 sni)
9338 shlibpath_overrides_runpath=no
9339 need_lib_prefix=no
9340 export_dynamic_flag_spec='${wl}-Blargedynsym'
9341 runpath_var=LD_RUN_PATH
9342 ;;
9343 siemens)
9344 need_lib_prefix=no
9345 ;;
9346 motorola)
9347 need_lib_prefix=no
9348 need_version=no
9349 shlibpath_overrides_runpath=no
9350 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9351 ;;
9352 esac
9353 ;;
9354
9355sysv4*MP*)
9356 if test -d /usr/nec ;then
9357 version_type=linux
9358 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9359 soname_spec='$libname${shared_ext}.$major'
9360 shlibpath_var=LD_LIBRARY_PATH
9361 fi
9362 ;;
9363
9364sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9365 version_type=freebsd-elf
9366 need_lib_prefix=no
9367 need_version=no
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9369 soname_spec='${libname}${release}${shared_ext}$major'
9370 shlibpath_var=LD_LIBRARY_PATH
9371 hardcode_into_libs=yes
9372 if test "$with_gnu_ld" = yes; then
9373 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9374 shlibpath_overrides_runpath=no
9375 else
9376 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9377 shlibpath_overrides_runpath=yes
9378 case $host_os in
9379 sco3.2v5*)
9380 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9381 ;;
9382 esac
9383 fi
9384 sys_lib_dlsearch_path_spec='/usr/lib'
9385 ;;
9386
9387uts4*)
9388 version_type=linux
9389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9390 soname_spec='${libname}${release}${shared_ext}$major'
9391 shlibpath_var=LD_LIBRARY_PATH
9392 ;;
9393
9394*)
9395 dynamic_linker=no
9396 ;;
9397esac
64ff59ba 9398{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9399echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 9400test "$dynamic_linker" = no && can_build_shared=no
9401
9402variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9403if test "$GCC" = yes; then
9404 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9405fi
9406
64ff59ba 9407{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9408echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 9409hardcode_action=
9410if test -n "$hardcode_libdir_flag_spec" || \
9411 test -n "$runpath_var" || \
9412 test "X$hardcode_automatic" = "Xyes" ; then
9413
9414 # We can hardcode non-existant directories.
9415 if test "$hardcode_direct" != no &&
9416 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9417 # have to relink, otherwise we might link with an installed library
9418 # when we should be linking with a yet-to-be-installed one
9419 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9420 test "$hardcode_minus_L" != no; then
9421 # Linking always hardcodes the temporary library directory.
9422 hardcode_action=relink
9423 else
9424 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9425 hardcode_action=immediate
9426 fi
9427else
9428 # We cannot hardcode anything, or else we can only hardcode existing
9429 # directories.
9430 hardcode_action=unsupported
9431fi
64ff59ba 9432{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9433echo "${ECHO_T}$hardcode_action" >&6; }
d9898ee8 9434
9435if test "$hardcode_action" = relink; then
9436 # Fast installation is not supported
9437 enable_fast_install=no
9438elif test "$shlibpath_overrides_runpath" = yes ||
9439 test "$enable_shared" = no; then
9440 # Fast installation is not necessary
9441 enable_fast_install=needless
9442fi
9443
9444striplib=
9445old_striplib=
64ff59ba 9446{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9447echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d9898ee8 9448if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9449 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9450 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
64ff59ba 9451 { echo "$as_me:$LINENO: result: yes" >&5
9452echo "${ECHO_T}yes" >&6; }
d9898ee8 9453else
9454# FIXME - insert some real tests, host_os isn't really good enough
9455 case $host_os in
9456 darwin*)
9457 if test -n "$STRIP" ; then
9458 striplib="$STRIP -x"
64ff59ba 9459 { echo "$as_me:$LINENO: result: yes" >&5
9460echo "${ECHO_T}yes" >&6; }
d9898ee8 9461 else
64ff59ba 9462 { echo "$as_me:$LINENO: result: no" >&5
9463echo "${ECHO_T}no" >&6; }
d9898ee8 9464fi
9465 ;;
9466 *)
64ff59ba 9467 { echo "$as_me:$LINENO: result: no" >&5
9468echo "${ECHO_T}no" >&6; }
d9898ee8 9469 ;;
9470 esac
9471fi
9472
9473if test "x$enable_dlopen" != xyes; then
9474 enable_dlopen=unknown
9475 enable_dlopen_self=unknown
9476 enable_dlopen_self_static=unknown
9477else
9478 lt_cv_dlopen=no
9479 lt_cv_dlopen_libs=
9480
9481 case $host_os in
9482 beos*)
9483 lt_cv_dlopen="load_add_on"
9484 lt_cv_dlopen_libs=
9485 lt_cv_dlopen_self=yes
9486 ;;
9487
9488 mingw* | pw32*)
9489 lt_cv_dlopen="LoadLibrary"
9490 lt_cv_dlopen_libs=
9491 ;;
9492
9493 cygwin*)
9494 lt_cv_dlopen="dlopen"
9495 lt_cv_dlopen_libs=
9496 ;;
9497
9498 darwin*)
9499 # if libdl is installed we need to link against it
64ff59ba 9500 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9501echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9502if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9504else
9505 ac_check_lib_save_LIBS=$LIBS
9506LIBS="-ldl $LIBS"
9507cat >conftest.$ac_ext <<_ACEOF
9508/* confdefs.h. */
9509_ACEOF
9510cat confdefs.h >>conftest.$ac_ext
9511cat >>conftest.$ac_ext <<_ACEOF
9512/* end confdefs.h. */
9513
64ff59ba 9514/* Override any GCC internal prototype to avoid an error.
9515 Use char because int might match the return type of a GCC
9516 builtin and then its argument prototype would still apply. */
d9898ee8 9517#ifdef __cplusplus
9518extern "C"
9519#endif
d9898ee8 9520char dlopen ();
9521int
9522main ()
9523{
64ff59ba 9524return dlopen ();
d9898ee8 9525 ;
9526 return 0;
9527}
9528_ACEOF
9529rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9530if { (ac_try="$ac_link"
9531case "(($ac_try" in
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9534esac
9535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536 (eval "$ac_link") 2>conftest.er1
d9898ee8 9537 ac_status=$?
9538 grep -v '^ *+' conftest.er1 >conftest.err
9539 rm -f conftest.er1
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9542 (exit $ac_status); } && {
9543 test -z "$ac_c_werror_flag" ||
9544 test ! -s conftest.err
9545 } && test -s conftest$ac_exeext &&
9546 $as_test_x conftest$ac_exeext; then
d9898ee8 9547 ac_cv_lib_dl_dlopen=yes
9548else
9549 echo "$as_me: failed program was:" >&5
9550sed 's/^/| /' conftest.$ac_ext >&5
9551
64ff59ba 9552 ac_cv_lib_dl_dlopen=no
d9898ee8 9553fi
64ff59ba 9554
9555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9556 conftest$ac_exeext conftest.$ac_ext
9557LIBS=$ac_check_lib_save_LIBS
9558fi
64ff59ba 9559{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9560echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9561if test $ac_cv_lib_dl_dlopen = yes; then
9562 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9563else
9564
9565 lt_cv_dlopen="dyld"
9566 lt_cv_dlopen_libs=
9567 lt_cv_dlopen_self=yes
9568
9569fi
9570
9571 ;;
9572
9573 *)
64ff59ba 9574 { echo "$as_me:$LINENO: checking for shl_load" >&5
9575echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9898ee8 9576if test "${ac_cv_func_shl_load+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9578else
9579 cat >conftest.$ac_ext <<_ACEOF
9580/* confdefs.h. */
9581_ACEOF
9582cat confdefs.h >>conftest.$ac_ext
9583cat >>conftest.$ac_ext <<_ACEOF
9584/* end confdefs.h. */
9585/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9587#define shl_load innocuous_shl_load
9588
9589/* System header to define __stub macros and hopefully few prototypes,
9590 which can conflict with char shl_load (); below.
9591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9592 <limits.h> exists even on freestanding compilers. */
9593
9594#ifdef __STDC__
9595# include <limits.h>
9596#else
9597# include <assert.h>
9598#endif
9599
9600#undef shl_load
9601
64ff59ba 9602/* Override any GCC internal prototype to avoid an error.
9603 Use char because int might match the return type of a GCC
9604 builtin and then its argument prototype would still apply. */
d9898ee8 9605#ifdef __cplusplus
9606extern "C"
d9898ee8 9607#endif
d9898ee8 9608char shl_load ();
9609/* The GNU C library defines this for functions which it implements
9610 to always fail with ENOSYS. Some functions are actually named
9611 something starting with __ and the normal name is an alias. */
64ff59ba 9612#if defined __stub_shl_load || defined __stub___shl_load
d9898ee8 9613choke me
d9898ee8 9614#endif
9615
9616int
9617main ()
9618{
64ff59ba 9619return shl_load ();
d9898ee8 9620 ;
9621 return 0;
9622}
9623_ACEOF
9624rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9625if { (ac_try="$ac_link"
9626case "(($ac_try" in
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9629esac
9630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_link") 2>conftest.er1
d9898ee8 9632 ac_status=$?
9633 grep -v '^ *+' conftest.er1 >conftest.err
9634 rm -f conftest.er1
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9637 (exit $ac_status); } && {
9638 test -z "$ac_c_werror_flag" ||
9639 test ! -s conftest.err
9640 } && test -s conftest$ac_exeext &&
9641 $as_test_x conftest$ac_exeext; then
d9898ee8 9642 ac_cv_func_shl_load=yes
9643else
9644 echo "$as_me: failed program was:" >&5
9645sed 's/^/| /' conftest.$ac_ext >&5
9646
64ff59ba 9647 ac_cv_func_shl_load=no
d9898ee8 9648fi
64ff59ba 9649
9650rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9651 conftest$ac_exeext conftest.$ac_ext
9652fi
64ff59ba 9653{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9654echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9898ee8 9655if test $ac_cv_func_shl_load = yes; then
9656 lt_cv_dlopen="shl_load"
9657else
64ff59ba 9658 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9659echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9898ee8 9660if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9662else
9663 ac_check_lib_save_LIBS=$LIBS
9664LIBS="-ldld $LIBS"
9665cat >conftest.$ac_ext <<_ACEOF
9666/* confdefs.h. */
9667_ACEOF
9668cat confdefs.h >>conftest.$ac_ext
9669cat >>conftest.$ac_ext <<_ACEOF
9670/* end confdefs.h. */
9671
64ff59ba 9672/* Override any GCC internal prototype to avoid an error.
9673 Use char because int might match the return type of a GCC
9674 builtin and then its argument prototype would still apply. */
d9898ee8 9675#ifdef __cplusplus
9676extern "C"
9677#endif
d9898ee8 9678char shl_load ();
9679int
9680main ()
9681{
64ff59ba 9682return shl_load ();
d9898ee8 9683 ;
9684 return 0;
9685}
9686_ACEOF
9687rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9688if { (ac_try="$ac_link"
9689case "(($ac_try" in
9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691 *) ac_try_echo=$ac_try;;
9692esac
9693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694 (eval "$ac_link") 2>conftest.er1
d9898ee8 9695 ac_status=$?
9696 grep -v '^ *+' conftest.er1 >conftest.err
9697 rm -f conftest.er1
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9700 (exit $ac_status); } && {
9701 test -z "$ac_c_werror_flag" ||
9702 test ! -s conftest.err
9703 } && test -s conftest$ac_exeext &&
9704 $as_test_x conftest$ac_exeext; then
d9898ee8 9705 ac_cv_lib_dld_shl_load=yes
9706else
9707 echo "$as_me: failed program was:" >&5
9708sed 's/^/| /' conftest.$ac_ext >&5
9709
64ff59ba 9710 ac_cv_lib_dld_shl_load=no
d9898ee8 9711fi
64ff59ba 9712
9713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9714 conftest$ac_exeext conftest.$ac_ext
9715LIBS=$ac_check_lib_save_LIBS
9716fi
64ff59ba 9717{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9718echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9898ee8 9719if test $ac_cv_lib_dld_shl_load = yes; then
9720 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9721else
64ff59ba 9722 { echo "$as_me:$LINENO: checking for dlopen" >&5
9723echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d9898ee8 9724if test "${ac_cv_func_dlopen+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9726else
9727 cat >conftest.$ac_ext <<_ACEOF
9728/* confdefs.h. */
9729_ACEOF
9730cat confdefs.h >>conftest.$ac_ext
9731cat >>conftest.$ac_ext <<_ACEOF
9732/* end confdefs.h. */
9733/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9735#define dlopen innocuous_dlopen
9736
9737/* System header to define __stub macros and hopefully few prototypes,
9738 which can conflict with char dlopen (); below.
9739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9740 <limits.h> exists even on freestanding compilers. */
9741
9742#ifdef __STDC__
9743# include <limits.h>
9744#else
9745# include <assert.h>
9746#endif
9747
9748#undef dlopen
9749
64ff59ba 9750/* Override any GCC internal prototype to avoid an error.
9751 Use char because int might match the return type of a GCC
9752 builtin and then its argument prototype would still apply. */
d9898ee8 9753#ifdef __cplusplus
9754extern "C"
d9898ee8 9755#endif
d9898ee8 9756char dlopen ();
9757/* The GNU C library defines this for functions which it implements
9758 to always fail with ENOSYS. Some functions are actually named
9759 something starting with __ and the normal name is an alias. */
64ff59ba 9760#if defined __stub_dlopen || defined __stub___dlopen
d9898ee8 9761choke me
d9898ee8 9762#endif
9763
9764int
9765main ()
9766{
64ff59ba 9767return dlopen ();
d9898ee8 9768 ;
9769 return 0;
9770}
9771_ACEOF
9772rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9773if { (ac_try="$ac_link"
9774case "(($ac_try" in
9775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776 *) ac_try_echo=$ac_try;;
9777esac
9778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779 (eval "$ac_link") 2>conftest.er1
d9898ee8 9780 ac_status=$?
9781 grep -v '^ *+' conftest.er1 >conftest.err
9782 rm -f conftest.er1
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9785 (exit $ac_status); } && {
9786 test -z "$ac_c_werror_flag" ||
9787 test ! -s conftest.err
9788 } && test -s conftest$ac_exeext &&
9789 $as_test_x conftest$ac_exeext; then
d9898ee8 9790 ac_cv_func_dlopen=yes
9791else
9792 echo "$as_me: failed program was:" >&5
9793sed 's/^/| /' conftest.$ac_ext >&5
9794
64ff59ba 9795 ac_cv_func_dlopen=no
d9898ee8 9796fi
64ff59ba 9797
9798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9799 conftest$ac_exeext conftest.$ac_ext
9800fi
64ff59ba 9801{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9802echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d9898ee8 9803if test $ac_cv_func_dlopen = yes; then
9804 lt_cv_dlopen="dlopen"
9805else
64ff59ba 9806 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9807echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9808if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9810else
9811 ac_check_lib_save_LIBS=$LIBS
9812LIBS="-ldl $LIBS"
9813cat >conftest.$ac_ext <<_ACEOF
9814/* confdefs.h. */
9815_ACEOF
9816cat confdefs.h >>conftest.$ac_ext
9817cat >>conftest.$ac_ext <<_ACEOF
9818/* end confdefs.h. */
9819
64ff59ba 9820/* Override any GCC internal prototype to avoid an error.
9821 Use char because int might match the return type of a GCC
9822 builtin and then its argument prototype would still apply. */
d9898ee8 9823#ifdef __cplusplus
9824extern "C"
9825#endif
d9898ee8 9826char dlopen ();
9827int
9828main ()
9829{
64ff59ba 9830return dlopen ();
d9898ee8 9831 ;
9832 return 0;
9833}
9834_ACEOF
9835rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9836if { (ac_try="$ac_link"
9837case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840esac
9841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_link") 2>conftest.er1
d9898ee8 9843 ac_status=$?
9844 grep -v '^ *+' conftest.er1 >conftest.err
9845 rm -f conftest.er1
9846 cat conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9848 (exit $ac_status); } && {
9849 test -z "$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 } && test -s conftest$ac_exeext &&
9852 $as_test_x conftest$ac_exeext; then
d9898ee8 9853 ac_cv_lib_dl_dlopen=yes
9854else
9855 echo "$as_me: failed program was:" >&5
9856sed 's/^/| /' conftest.$ac_ext >&5
9857
64ff59ba 9858 ac_cv_lib_dl_dlopen=no
d9898ee8 9859fi
64ff59ba 9860
9861rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9862 conftest$ac_exeext conftest.$ac_ext
9863LIBS=$ac_check_lib_save_LIBS
9864fi
64ff59ba 9865{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9866echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9867if test $ac_cv_lib_dl_dlopen = yes; then
9868 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9869else
64ff59ba 9870 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9871echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9898ee8 9872if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874else
9875 ac_check_lib_save_LIBS=$LIBS
9876LIBS="-lsvld $LIBS"
9877cat >conftest.$ac_ext <<_ACEOF
9878/* confdefs.h. */
9879_ACEOF
9880cat confdefs.h >>conftest.$ac_ext
9881cat >>conftest.$ac_ext <<_ACEOF
9882/* end confdefs.h. */
9883
64ff59ba 9884/* Override any GCC internal prototype to avoid an error.
9885 Use char because int might match the return type of a GCC
9886 builtin and then its argument prototype would still apply. */
d9898ee8 9887#ifdef __cplusplus
9888extern "C"
9889#endif
d9898ee8 9890char dlopen ();
9891int
9892main ()
9893{
64ff59ba 9894return dlopen ();
d9898ee8 9895 ;
9896 return 0;
9897}
9898_ACEOF
9899rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9900if { (ac_try="$ac_link"
9901case "(($ac_try" in
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9904esac
9905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906 (eval "$ac_link") 2>conftest.er1
d9898ee8 9907 ac_status=$?
9908 grep -v '^ *+' conftest.er1 >conftest.err
9909 rm -f conftest.er1
9910 cat conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9912 (exit $ac_status); } && {
9913 test -z "$ac_c_werror_flag" ||
9914 test ! -s conftest.err
9915 } && test -s conftest$ac_exeext &&
9916 $as_test_x conftest$ac_exeext; then
d9898ee8 9917 ac_cv_lib_svld_dlopen=yes
9918else
9919 echo "$as_me: failed program was:" >&5
9920sed 's/^/| /' conftest.$ac_ext >&5
9921
64ff59ba 9922 ac_cv_lib_svld_dlopen=no
d9898ee8 9923fi
64ff59ba 9924
9925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9926 conftest$ac_exeext conftest.$ac_ext
9927LIBS=$ac_check_lib_save_LIBS
9928fi
64ff59ba 9929{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9930echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9898ee8 9931if test $ac_cv_lib_svld_dlopen = yes; then
9932 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9933else
64ff59ba 9934 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9935echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9898ee8 9936if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9938else
9939 ac_check_lib_save_LIBS=$LIBS
9940LIBS="-ldld $LIBS"
9941cat >conftest.$ac_ext <<_ACEOF
9942/* confdefs.h. */
9943_ACEOF
9944cat confdefs.h >>conftest.$ac_ext
9945cat >>conftest.$ac_ext <<_ACEOF
9946/* end confdefs.h. */
9947
64ff59ba 9948/* Override any GCC internal prototype to avoid an error.
9949 Use char because int might match the return type of a GCC
9950 builtin and then its argument prototype would still apply. */
d9898ee8 9951#ifdef __cplusplus
9952extern "C"
9953#endif
d9898ee8 9954char dld_link ();
9955int
9956main ()
9957{
64ff59ba 9958return dld_link ();
d9898ee8 9959 ;
9960 return 0;
9961}
9962_ACEOF
9963rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9964if { (ac_try="$ac_link"
9965case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9968esac
9969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_link") 2>conftest.er1
d9898ee8 9971 ac_status=$?
9972 grep -v '^ *+' conftest.er1 >conftest.err
9973 rm -f conftest.er1
9974 cat conftest.err >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9976 (exit $ac_status); } && {
9977 test -z "$ac_c_werror_flag" ||
9978 test ! -s conftest.err
9979 } && test -s conftest$ac_exeext &&
9980 $as_test_x conftest$ac_exeext; then
d9898ee8 9981 ac_cv_lib_dld_dld_link=yes
9982else
9983 echo "$as_me: failed program was:" >&5
9984sed 's/^/| /' conftest.$ac_ext >&5
9985
64ff59ba 9986 ac_cv_lib_dld_dld_link=no
d9898ee8 9987fi
64ff59ba 9988
9989rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9990 conftest$ac_exeext conftest.$ac_ext
9991LIBS=$ac_check_lib_save_LIBS
9992fi
64ff59ba 9993{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9994echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9898ee8 9995if test $ac_cv_lib_dld_dld_link = yes; then
9996 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9997fi
9998
9999
10000fi
10001
10002
10003fi
10004
10005
10006fi
10007
10008
10009fi
10010
10011
10012fi
10013
10014 ;;
10015 esac
10016
10017 if test "x$lt_cv_dlopen" != xno; then
10018 enable_dlopen=yes
10019 else
10020 enable_dlopen=no
10021 fi
10022
10023 case $lt_cv_dlopen in
10024 dlopen)
10025 save_CPPFLAGS="$CPPFLAGS"
10026 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10027
10028 save_LDFLAGS="$LDFLAGS"
10029 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10030
10031 save_LIBS="$LIBS"
10032 LIBS="$lt_cv_dlopen_libs $LIBS"
10033
64ff59ba 10034 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10035echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 10036if test "${lt_cv_dlopen_self+set}" = set; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10038else
10039 if test "$cross_compiling" = yes; then :
10040 lt_cv_dlopen_self=cross
10041else
10042 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10043 lt_status=$lt_dlunknown
10044 cat > conftest.$ac_ext <<EOF
64ff59ba 10045#line 10045 "configure"
d9898ee8 10046#include "confdefs.h"
10047
10048#if HAVE_DLFCN_H
10049#include <dlfcn.h>
10050#endif
10051
10052#include <stdio.h>
10053
10054#ifdef RTLD_GLOBAL
10055# define LT_DLGLOBAL RTLD_GLOBAL
10056#else
10057# ifdef DL_GLOBAL
10058# define LT_DLGLOBAL DL_GLOBAL
10059# else
10060# define LT_DLGLOBAL 0
10061# endif
10062#endif
10063
10064/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10065 find out it does not work in some platform. */
10066#ifndef LT_DLLAZY_OR_NOW
10067# ifdef RTLD_LAZY
10068# define LT_DLLAZY_OR_NOW RTLD_LAZY
10069# else
10070# ifdef DL_LAZY
10071# define LT_DLLAZY_OR_NOW DL_LAZY
10072# else
10073# ifdef RTLD_NOW
10074# define LT_DLLAZY_OR_NOW RTLD_NOW
10075# else
10076# ifdef DL_NOW
10077# define LT_DLLAZY_OR_NOW DL_NOW
10078# else
10079# define LT_DLLAZY_OR_NOW 0
10080# endif
10081# endif
10082# endif
10083# endif
10084#endif
10085
10086#ifdef __cplusplus
10087extern "C" void exit (int);
10088#endif
10089
10090void fnord() { int i=42;}
10091int main ()
10092{
10093 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10094 int status = $lt_dlunknown;
10095
10096 if (self)
10097 {
10098 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10099 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10100 /* dlclose (self); */
10101 }
10102 else
10103 puts (dlerror ());
10104
10105 exit (status);
10106}
10107EOF
10108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109 (eval $ac_link) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10113 (./conftest; exit; ) >&5 2>/dev/null
10114 lt_status=$?
10115 case x$lt_status in
10116 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10117 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10118 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10119 esac
10120 else :
10121 # compilation failed
10122 lt_cv_dlopen_self=no
10123 fi
10124fi
10125rm -fr conftest*
10126
10127
10128fi
64ff59ba 10129{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10130echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d9898ee8 10131
10132 if test "x$lt_cv_dlopen_self" = xyes; then
10133 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
64ff59ba 10134 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10135echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 10136if test "${lt_cv_dlopen_self_static+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10138else
10139 if test "$cross_compiling" = yes; then :
10140 lt_cv_dlopen_self_static=cross
10141else
10142 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10143 lt_status=$lt_dlunknown
10144 cat > conftest.$ac_ext <<EOF
64ff59ba 10145#line 10145 "configure"
d9898ee8 10146#include "confdefs.h"
10147
10148#if HAVE_DLFCN_H
10149#include <dlfcn.h>
10150#endif
10151
10152#include <stdio.h>
10153
10154#ifdef RTLD_GLOBAL
10155# define LT_DLGLOBAL RTLD_GLOBAL
10156#else
10157# ifdef DL_GLOBAL
10158# define LT_DLGLOBAL DL_GLOBAL
10159# else
10160# define LT_DLGLOBAL 0
10161# endif
10162#endif
10163
10164/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10165 find out it does not work in some platform. */
10166#ifndef LT_DLLAZY_OR_NOW
10167# ifdef RTLD_LAZY
10168# define LT_DLLAZY_OR_NOW RTLD_LAZY
10169# else
10170# ifdef DL_LAZY
10171# define LT_DLLAZY_OR_NOW DL_LAZY
10172# else
10173# ifdef RTLD_NOW
10174# define LT_DLLAZY_OR_NOW RTLD_NOW
10175# else
10176# ifdef DL_NOW
10177# define LT_DLLAZY_OR_NOW DL_NOW
10178# else
10179# define LT_DLLAZY_OR_NOW 0
10180# endif
10181# endif
10182# endif
10183# endif
10184#endif
10185
10186#ifdef __cplusplus
10187extern "C" void exit (int);
10188#endif
10189
10190void fnord() { int i=42;}
10191int main ()
10192{
10193 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10194 int status = $lt_dlunknown;
10195
10196 if (self)
10197 {
10198 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10199 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10200 /* dlclose (self); */
10201 }
10202 else
10203 puts (dlerror ());
10204
10205 exit (status);
10206}
10207EOF
10208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10209 (eval $ac_link) 2>&5
10210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10213 (./conftest; exit; ) >&5 2>/dev/null
10214 lt_status=$?
10215 case x$lt_status in
10216 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10217 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10218 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10219 esac
10220 else :
10221 # compilation failed
10222 lt_cv_dlopen_self_static=no
10223 fi
10224fi
10225rm -fr conftest*
10226
10227
10228fi
64ff59ba 10229{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10230echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d9898ee8 10231 fi
10232
10233 CPPFLAGS="$save_CPPFLAGS"
10234 LDFLAGS="$save_LDFLAGS"
10235 LIBS="$save_LIBS"
10236 ;;
10237 esac
10238
10239 case $lt_cv_dlopen_self in
10240 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10241 *) enable_dlopen_self=unknown ;;
10242 esac
10243
10244 case $lt_cv_dlopen_self_static in
10245 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10246 *) enable_dlopen_self_static=unknown ;;
10247 esac
10248fi
10249
10250
10251# Report which library types will actually be built
64ff59ba 10252{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10253echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10254{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10255echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 10256
64ff59ba 10257{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10258echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 10259test "$can_build_shared" = "no" && enable_shared=no
10260
10261# On AIX, shared libraries and static libraries use the same namespace, and
10262# are all built from PIC.
10263case $host_os in
10264aix3*)
10265 test "$enable_shared" = yes && enable_static=no
10266 if test -n "$RANLIB"; then
10267 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10268 postinstall_cmds='$RANLIB $lib'
10269 fi
10270 ;;
10271
10272aix4* | aix5*)
10273 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10274 test "$enable_shared" = yes && enable_static=no
10275 fi
10276 ;;
10277esac
64ff59ba 10278{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10279echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 10280
64ff59ba 10281{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10282echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 10283# Make sure either enable_shared or enable_static is yes.
10284test "$enable_shared" = yes || enable_static=yes
64ff59ba 10285{ echo "$as_me:$LINENO: result: $enable_static" >&5
10286echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 10287
10288# The else clause should only fire when bootstrapping the
10289# libtool distribution, otherwise you forgot to ship ltmain.sh
10290# with your package, and you will get complaints that there are
10291# no rules to generate ltmain.sh.
10292if test -f "$ltmain"; then
10293 # See if we are running on zsh, and set the options which allow our commands through
10294 # without removal of \ escapes.
10295 if test -n "${ZSH_VERSION+set}" ; then
10296 setopt NO_GLOB_SUBST
10297 fi
10298 # Now quote all the things that may contain metacharacters while being
10299 # careful not to overquote the AC_SUBSTed values. We take copies of the
10300 # variables and quote the copies for generation of the libtool script.
10301 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10302 SED SHELL STRIP \
10303 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10304 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10305 deplibs_check_method reload_flag reload_cmds need_locks \
10306 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10307 lt_cv_sys_global_symbol_to_c_name_address \
10308 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10309 old_postinstall_cmds old_postuninstall_cmds \
10310 compiler \
10311 CC \
10312 LD \
10313 lt_prog_compiler_wl \
10314 lt_prog_compiler_pic \
10315 lt_prog_compiler_static \
10316 lt_prog_compiler_no_builtin_flag \
10317 export_dynamic_flag_spec \
10318 thread_safe_flag_spec \
10319 whole_archive_flag_spec \
10320 enable_shared_with_static_runtimes \
10321 old_archive_cmds \
10322 old_archive_from_new_cmds \
10323 predep_objects \
10324 postdep_objects \
10325 predeps \
10326 postdeps \
10327 compiler_lib_search_path \
10328 archive_cmds \
10329 archive_expsym_cmds \
10330 postinstall_cmds \
10331 postuninstall_cmds \
10332 old_archive_from_expsyms_cmds \
10333 allow_undefined_flag \
10334 no_undefined_flag \
10335 export_symbols_cmds \
10336 hardcode_libdir_flag_spec \
10337 hardcode_libdir_flag_spec_ld \
10338 hardcode_libdir_separator \
10339 hardcode_automatic \
10340 module_cmds \
10341 module_expsym_cmds \
10342 lt_cv_prog_compiler_c_o \
10343 exclude_expsyms \
10344 include_expsyms; do
10345
10346 case $var in
10347 old_archive_cmds | \
10348 old_archive_from_new_cmds | \
10349 archive_cmds | \
10350 archive_expsym_cmds | \
10351 module_cmds | \
10352 module_expsym_cmds | \
10353 old_archive_from_expsyms_cmds | \
10354 export_symbols_cmds | \
10355 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10356 postinstall_cmds | postuninstall_cmds | \
10357 old_postinstall_cmds | old_postuninstall_cmds | \
10358 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10359 # Double-quote double-evaled strings.
10360 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10361 ;;
10362 *)
10363 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10364 ;;
10365 esac
10366 done
10367
10368 case $lt_echo in
10369 *'\$0 --fallback-echo"')
10370 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10371 ;;
10372 esac
10373
10374cfgfile="${ofile}T"
10375 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10376 $rm -f "$cfgfile"
10377 { echo "$as_me:$LINENO: creating $ofile" >&5
10378echo "$as_me: creating $ofile" >&6;}
10379
10380 cat <<__EOF__ >> "$cfgfile"
10381#! $SHELL
10382
10383# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10384# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10385# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10386#
10387# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10388# Free Software Foundation, Inc.
10389#
10390# This file is part of GNU Libtool:
10391# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10392#
10393# This program is free software; you can redistribute it and/or modify
10394# it under the terms of the GNU General Public License as published by
10395# the Free Software Foundation; either version 2 of the License, or
10396# (at your option) any later version.
10397#
10398# This program is distributed in the hope that it will be useful, but
10399# WITHOUT ANY WARRANTY; without even the implied warranty of
10400# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10401# General Public License for more details.
10402#
10403# You should have received a copy of the GNU General Public License
10404# along with this program; if not, write to the Free Software
10405# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10406#
10407# As a special exception to the GNU General Public License, if you
10408# distribute this file as part of a program that contains a
10409# configuration script generated by Autoconf, you may include it under
10410# the same distribution terms that you use for the rest of that program.
10411
10412# A sed program that does not truncate output.
10413SED=$lt_SED
10414
10415# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10416Xsed="$SED -e 1s/^X//"
10417
10418# The HP-UX ksh and POSIX shell print the target directory to stdout
10419# if CDPATH is set.
10420(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10421
10422# The names of the tagged configurations supported by this script.
10423available_tags=
10424
10425# ### BEGIN LIBTOOL CONFIG
10426
10427# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10428
10429# Shell to use when invoking shell scripts.
10430SHELL=$lt_SHELL
10431
10432# Whether or not to build shared libraries.
10433build_libtool_libs=$enable_shared
10434
10435# Whether or not to build static libraries.
10436build_old_libs=$enable_static
10437
10438# Whether or not to add -lc for building shared libraries.
10439build_libtool_need_lc=$archive_cmds_need_lc
10440
10441# Whether or not to disallow shared libs when runtime libs are static
10442allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10443
10444# Whether or not to optimize for fast installation.
10445fast_install=$enable_fast_install
10446
10447# The host system.
10448host_alias=$host_alias
10449host=$host
10450host_os=$host_os
10451
10452# The build system.
10453build_alias=$build_alias
10454build=$build
10455build_os=$build_os
10456
10457# An echo program that does not interpret backslashes.
10458echo=$lt_echo
10459
10460# The archiver.
10461AR=$lt_AR
10462AR_FLAGS=$lt_AR_FLAGS
10463
10464# A C compiler.
10465LTCC=$lt_LTCC
10466
10467# LTCC compiler flags.
10468LTCFLAGS=$lt_LTCFLAGS
10469
10470# A language-specific compiler.
10471CC=$lt_compiler
10472
10473# Is the compiler the GNU C compiler?
10474with_gcc=$GCC
10475
d9898ee8 10476# An ERE matcher.
10477EGREP=$lt_EGREP
10478
10479# The linker used to build libraries.
10480LD=$lt_LD
10481
10482# Whether we need hard or soft links.
10483LN_S=$lt_LN_S
10484
10485# A BSD-compatible nm program.
10486NM=$lt_NM
10487
10488# A symbol stripping program
10489STRIP=$lt_STRIP
10490
10491# Used to examine libraries when file_magic_cmd begins "file"
10492MAGIC_CMD=$MAGIC_CMD
10493
10494# Used on cygwin: DLL creation program.
10495DLLTOOL="$DLLTOOL"
10496
10497# Used on cygwin: object dumper.
10498OBJDUMP="$OBJDUMP"
10499
10500# Used on cygwin: assembler.
10501AS="$AS"
10502
10503# The name of the directory that contains temporary libtool files.
10504objdir=$objdir
10505
10506# How to create reloadable object files.
10507reload_flag=$lt_reload_flag
10508reload_cmds=$lt_reload_cmds
10509
10510# How to pass a linker flag through the compiler.
10511wl=$lt_lt_prog_compiler_wl
10512
10513# Object file suffix (normally "o").
10514objext="$ac_objext"
10515
10516# Old archive suffix (normally "a").
10517libext="$libext"
10518
10519# Shared library suffix (normally ".so").
10520shrext_cmds='$shrext_cmds'
10521
10522# Executable file suffix (normally "").
10523exeext="$exeext"
10524
10525# Additional compiler flags for building library objects.
10526pic_flag=$lt_lt_prog_compiler_pic
10527pic_mode=$pic_mode
10528
10529# What is the maximum length of a command?
10530max_cmd_len=$lt_cv_sys_max_cmd_len
10531
10532# Does compiler simultaneously support -c and -o options?
10533compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10534
10535# Must we lock files when doing compilation?
10536need_locks=$lt_need_locks
10537
10538# Do we need the lib prefix for modules?
10539need_lib_prefix=$need_lib_prefix
10540
10541# Do we need a version for libraries?
10542need_version=$need_version
10543
10544# Whether dlopen is supported.
10545dlopen_support=$enable_dlopen
10546
10547# Whether dlopen of programs is supported.
10548dlopen_self=$enable_dlopen_self
10549
10550# Whether dlopen of statically linked programs is supported.
10551dlopen_self_static=$enable_dlopen_self_static
10552
10553# Compiler flag to prevent dynamic linking.
10554link_static_flag=$lt_lt_prog_compiler_static
10555
10556# Compiler flag to turn off builtin functions.
10557no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10558
10559# Compiler flag to allow reflexive dlopens.
10560export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10561
10562# Compiler flag to generate shared objects directly from archives.
10563whole_archive_flag_spec=$lt_whole_archive_flag_spec
10564
10565# Compiler flag to generate thread-safe objects.
10566thread_safe_flag_spec=$lt_thread_safe_flag_spec
10567
10568# Library versioning type.
10569version_type=$version_type
10570
10571# Format of library name prefix.
10572libname_spec=$lt_libname_spec
10573
10574# List of archive names. First name is the real one, the rest are links.
10575# The last name is the one that the linker finds with -lNAME.
10576library_names_spec=$lt_library_names_spec
10577
10578# The coded name of the library, if different from the real name.
10579soname_spec=$lt_soname_spec
10580
10581# Commands used to build and install an old-style archive.
10582RANLIB=$lt_RANLIB
10583old_archive_cmds=$lt_old_archive_cmds
10584old_postinstall_cmds=$lt_old_postinstall_cmds
10585old_postuninstall_cmds=$lt_old_postuninstall_cmds
10586
10587# Create an old-style archive from a shared archive.
10588old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10589
10590# Create a temporary old-style archive to link instead of a shared archive.
10591old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10592
10593# Commands used to build and install a shared archive.
10594archive_cmds=$lt_archive_cmds
10595archive_expsym_cmds=$lt_archive_expsym_cmds
10596postinstall_cmds=$lt_postinstall_cmds
10597postuninstall_cmds=$lt_postuninstall_cmds
10598
10599# Commands used to build a loadable module (assumed same as above if empty)
10600module_cmds=$lt_module_cmds
10601module_expsym_cmds=$lt_module_expsym_cmds
10602
10603# Commands to strip libraries.
10604old_striplib=$lt_old_striplib
10605striplib=$lt_striplib
10606
10607# Dependencies to place before the objects being linked to create a
10608# shared library.
64ff59ba 10609predep_objects=$lt_predep_objects
d9898ee8 10610
10611# Dependencies to place after the objects being linked to create a
10612# shared library.
64ff59ba 10613postdep_objects=$lt_postdep_objects
d9898ee8 10614
10615# Dependencies to place before the objects being linked to create a
10616# shared library.
10617predeps=$lt_predeps
10618
10619# Dependencies to place after the objects being linked to create a
10620# shared library.
10621postdeps=$lt_postdeps
10622
10623# The library search path used internally by the compiler when linking
10624# a shared library.
64ff59ba 10625compiler_lib_search_path=$lt_compiler_lib_search_path
d9898ee8 10626
10627# Method to check whether dependent libraries are shared objects.
10628deplibs_check_method=$lt_deplibs_check_method
10629
10630# Command to use when deplibs_check_method == file_magic.
10631file_magic_cmd=$lt_file_magic_cmd
10632
10633# Flag that allows shared libraries with undefined symbols to be built.
10634allow_undefined_flag=$lt_allow_undefined_flag
10635
10636# Flag that forces no undefined symbols.
10637no_undefined_flag=$lt_no_undefined_flag
10638
10639# Commands used to finish a libtool library installation in a directory.
10640finish_cmds=$lt_finish_cmds
10641
10642# Same as above, but a single script fragment to be evaled but not shown.
10643finish_eval=$lt_finish_eval
10644
10645# Take the output of nm and produce a listing of raw symbols and C names.
10646global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10647
10648# Transform the output of nm in a proper C declaration
10649global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10650
10651# Transform the output of nm in a C name address pair
10652global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10653
10654# This is the shared library runtime path variable.
10655runpath_var=$runpath_var
10656
10657# This is the shared library path variable.
10658shlibpath_var=$shlibpath_var
10659
10660# Is shlibpath searched before the hard-coded library search path?
10661shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10662
10663# How to hardcode a shared library path into an executable.
10664hardcode_action=$hardcode_action
10665
10666# Whether we should hardcode library paths into libraries.
10667hardcode_into_libs=$hardcode_into_libs
10668
10669# Flag to hardcode \$libdir into a binary during linking.
10670# This must work even if \$libdir does not exist.
10671hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10672
10673# If ld is used when linking, flag to hardcode \$libdir into
10674# a binary during linking. This must work even if \$libdir does
10675# not exist.
10676hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10677
10678# Whether we need a single -rpath flag with a separated argument.
10679hardcode_libdir_separator=$lt_hardcode_libdir_separator
10680
10681# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10682# resulting binary.
10683hardcode_direct=$hardcode_direct
10684
10685# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10686# resulting binary.
10687hardcode_minus_L=$hardcode_minus_L
10688
10689# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10690# the resulting binary.
10691hardcode_shlibpath_var=$hardcode_shlibpath_var
10692
10693# Set to yes if building a shared library automatically hardcodes DIR into the library
10694# and all subsequent libraries and executables linked against it.
10695hardcode_automatic=$hardcode_automatic
10696
10697# Variables whose values should be saved in libtool wrapper scripts and
10698# restored at relink time.
10699variables_saved_for_relink="$variables_saved_for_relink"
10700
10701# Whether libtool must link a program against all its dependency libraries.
10702link_all_deplibs=$link_all_deplibs
10703
10704# Compile-time system search path for libraries
64ff59ba 10705sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 10706
10707# Run-time system search path for libraries
10708sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10709
10710# Fix the shell variable \$srcfile for the compiler.
10711fix_srcfile_path="$fix_srcfile_path"
10712
10713# Set to yes if exported symbols are required.
10714always_export_symbols=$always_export_symbols
10715
10716# The commands to list exported symbols.
10717export_symbols_cmds=$lt_export_symbols_cmds
10718
10719# The commands to extract the exported symbol list from a shared archive.
10720extract_expsyms_cmds=$lt_extract_expsyms_cmds
10721
10722# Symbols that should not be listed in the preloaded symbols.
10723exclude_expsyms=$lt_exclude_expsyms
10724
10725# Symbols that must always be exported.
10726include_expsyms=$lt_include_expsyms
10727
10728# ### END LIBTOOL CONFIG
10729
10730__EOF__
10731
10732
10733 case $host_os in
10734 aix3*)
10735 cat <<\EOF >> "$cfgfile"
10736
10737# AIX sometimes has problems with the GCC collect2 program. For some
10738# reason, if we set the COLLECT_NAMES environment variable, the problems
10739# vanish in a puff of smoke.
10740if test "X${COLLECT_NAMES+set}" != Xset; then
10741 COLLECT_NAMES=
10742 export COLLECT_NAMES
10743fi
10744EOF
10745 ;;
10746 esac
10747
10748 # We use sed instead of cat because bash on DJGPP gets confused if
10749 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10750 # text mode, it properly converts lines to CR/LF. This bash problem
10751 # is reportedly fixed, but why not run on old versions too?
10752 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10753
10754 mv -f "$cfgfile" "$ofile" || \
10755 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10756 chmod +x "$ofile"
10757
10758else
10759 # If there is no Makefile yet, we rely on a make rule to execute
10760 # `config.status --recheck' to rerun these tests and create the
10761 # libtool script then.
10762 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10763 if test -f "$ltmain_in"; then
10764 test -f Makefile && make "$ltmain"
10765 fi
10766fi
10767
10768
10769ac_ext=c
10770ac_cpp='$CPP $CPPFLAGS'
10771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10773ac_compiler_gnu=$ac_cv_c_compiler_gnu
10774
10775CC="$lt_save_CC"
10776
10777
64ff59ba 10778# Check whether --with-tags was given.
d9898ee8 10779if test "${with_tags+set}" = set; then
64ff59ba 10780 withval=$with_tags; tagnames="$withval"
10781fi
10782
d9898ee8 10783
10784if test -f "$ltmain" && test -n "$tagnames"; then
10785 if test ! -f "${ofile}"; then
10786 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10787echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10788 fi
10789
10790 if test -z "$LTCC"; then
10791 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10792 if test -z "$LTCC"; then
10793 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10794echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10795 else
10796 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10797echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10798 fi
10799 fi
10800 if test -z "$LTCFLAGS"; then
10801 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10802 fi
10803
10804 # Extract list of available tagged configurations in $ofile.
10805 # Note that this assumes the entire list is on one line.
10806 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10807
10808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10809 for tagname in $tagnames; do
10810 IFS="$lt_save_ifs"
10811 # Check whether tagname contains only valid characters
10812 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10813 "") ;;
10814 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10815echo "$as_me: error: invalid tag name: $tagname" >&2;}
10816 { (exit 1); exit 1; }; }
10817 ;;
10818 esac
10819
10820 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10821 then
10822 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10823echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10824 { (exit 1); exit 1; }; }
10825 fi
10826
10827 # Update the list of available tags.
10828 if test -n "$tagname"; then
10829 echo appending configuration tag \"$tagname\" to $ofile
10830
10831 case $tagname in
10832 CXX)
10833 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10834 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10835 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 10836 ac_ext=cpp
d9898ee8 10837ac_cpp='$CXXCPP $CPPFLAGS'
10838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10841
10842
10843
10844
10845archive_cmds_need_lc_CXX=no
10846allow_undefined_flag_CXX=
10847always_export_symbols_CXX=no
10848archive_expsym_cmds_CXX=
10849export_dynamic_flag_spec_CXX=
10850hardcode_direct_CXX=no
10851hardcode_libdir_flag_spec_CXX=
10852hardcode_libdir_flag_spec_ld_CXX=
10853hardcode_libdir_separator_CXX=
10854hardcode_minus_L_CXX=no
10855hardcode_shlibpath_var_CXX=unsupported
10856hardcode_automatic_CXX=no
10857module_cmds_CXX=
10858module_expsym_cmds_CXX=
10859link_all_deplibs_CXX=unknown
10860old_archive_cmds_CXX=$old_archive_cmds
10861no_undefined_flag_CXX=
10862whole_archive_flag_spec_CXX=
10863enable_shared_with_static_runtimes_CXX=no
10864
10865# Dependencies to place before and after the object being linked:
10866predep_objects_CXX=
10867postdep_objects_CXX=
10868predeps_CXX=
10869postdeps_CXX=
10870compiler_lib_search_path_CXX=
10871
10872# Source file extension for C++ test sources.
10873ac_ext=cpp
10874
10875# Object file extension for compiled C++ test sources.
10876objext=o
10877objext_CXX=$objext
10878
10879# Code to be used in simple compile tests
10880lt_simple_compile_test_code="int some_variable = 0;\n"
10881
10882# Code to be used in simple link tests
10883lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10884
10885# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10886
10887# If no C compiler was specified, use CC.
10888LTCC=${LTCC-"$CC"}
10889
10890# If no C compiler flags were specified, use CFLAGS.
10891LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10892
10893# Allow CC to be a program name with arguments.
10894compiler=$CC
10895
10896
10897# save warnings/boilerplate of simple test code
10898ac_outfile=conftest.$ac_objext
10899printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10900eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10901_lt_compiler_boilerplate=`cat conftest.err`
10902$rm conftest*
10903
10904ac_outfile=conftest.$ac_objext
10905printf "$lt_simple_link_test_code" >conftest.$ac_ext
10906eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10907_lt_linker_boilerplate=`cat conftest.err`
10908$rm conftest*
10909
10910
10911# Allow CC to be a program name with arguments.
10912lt_save_CC=$CC
10913lt_save_LD=$LD
10914lt_save_GCC=$GCC
10915GCC=$GXX
10916lt_save_with_gnu_ld=$with_gnu_ld
10917lt_save_path_LD=$lt_cv_path_LD
10918if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10919 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10920else
10921 $as_unset lt_cv_prog_gnu_ld
10922fi
10923if test -n "${lt_cv_path_LDCXX+set}"; then
10924 lt_cv_path_LD=$lt_cv_path_LDCXX
10925else
10926 $as_unset lt_cv_path_LD
10927fi
10928test -z "${LDCXX+set}" || LD=$LDCXX
10929CC=${CXX-"c++"}
10930compiler=$CC
10931compiler_CXX=$CC
10932for cc_temp in $compiler""; do
10933 case $cc_temp in
10934 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10935 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10936 \-*) ;;
10937 *) break;;
10938 esac
10939done
10940cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10941
10942
10943# We don't want -fno-exception wen compiling C++ code, so set the
10944# no_builtin_flag separately
10945if test "$GXX" = yes; then
10946 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10947else
10948 lt_prog_compiler_no_builtin_flag_CXX=
10949fi
10950
10951if test "$GXX" = yes; then
10952 # Set up default GNU C++ configuration
10953
10954
64ff59ba 10955# Check whether --with-gnu-ld was given.
d9898ee8 10956if test "${with_gnu_ld+set}" = set; then
64ff59ba 10957 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 10958else
10959 with_gnu_ld=no
64ff59ba 10960fi
10961
d9898ee8 10962ac_prog=ld
10963if test "$GCC" = yes; then
10964 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 10965 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10966echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 10967 case $host in
10968 *-*-mingw*)
10969 # gcc leaves a trailing carriage return which upsets mingw
10970 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10971 *)
10972 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10973 esac
10974 case $ac_prog in
10975 # Accept absolute paths.
10976 [\\/]* | ?:[\\/]*)
10977 re_direlt='/[^/][^/]*/\.\./'
10978 # Canonicalize the pathname of ld
10979 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10980 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10981 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10982 done
10983 test -z "$LD" && LD="$ac_prog"
10984 ;;
10985 "")
10986 # If it fails, then pretend we aren't using GCC.
10987 ac_prog=ld
10988 ;;
10989 *)
10990 # If it is relative, then search for the first ld in PATH.
10991 with_gnu_ld=unknown
10992 ;;
10993 esac
10994elif test "$with_gnu_ld" = yes; then
64ff59ba 10995 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10996echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 10997else
64ff59ba 10998 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10999echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 11000fi
11001if test "${lt_cv_path_LD+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11003else
11004 if test -z "$LD"; then
11005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11006 for ac_dir in $PATH; do
11007 IFS="$lt_save_ifs"
11008 test -z "$ac_dir" && ac_dir=.
11009 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11010 lt_cv_path_LD="$ac_dir/$ac_prog"
11011 # Check to see if the program is GNU ld. I'd rather use --version,
11012 # but apparently some variants of GNU ld only accept -v.
11013 # Break only if it was the GNU/non-GNU ld that we prefer.
11014 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11015 *GNU* | *'with BFD'*)
11016 test "$with_gnu_ld" != no && break
11017 ;;
11018 *)
11019 test "$with_gnu_ld" != yes && break
11020 ;;
11021 esac
11022 fi
11023 done
11024 IFS="$lt_save_ifs"
11025else
11026 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11027fi
11028fi
11029
11030LD="$lt_cv_path_LD"
11031if test -n "$LD"; then
64ff59ba 11032 { echo "$as_me:$LINENO: result: $LD" >&5
11033echo "${ECHO_T}$LD" >&6; }
d9898ee8 11034else
64ff59ba 11035 { echo "$as_me:$LINENO: result: no" >&5
11036echo "${ECHO_T}no" >&6; }
d9898ee8 11037fi
11038test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11039echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11040 { (exit 1); exit 1; }; }
64ff59ba 11041{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11042echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 11043if test "${lt_cv_prog_gnu_ld+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11045else
11046 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11047case `$LD -v 2>&1 </dev/null` in
11048*GNU* | *'with BFD'*)
11049 lt_cv_prog_gnu_ld=yes
11050 ;;
11051*)
11052 lt_cv_prog_gnu_ld=no
11053 ;;
11054esac
11055fi
64ff59ba 11056{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11057echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 11058with_gnu_ld=$lt_cv_prog_gnu_ld
11059
11060
11061
11062 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11063 # archiving commands below assume that GNU ld is being used.
11064 if test "$with_gnu_ld" = yes; then
11065 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11066 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'
11067
11068 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11069 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11070
11071 # If archive_cmds runs LD, not CC, wlarc should be empty
11072 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11073 # investigate it a little bit more. (MM)
11074 wlarc='${wl}'
11075
11076 # ancient GNU ld didn't support --whole-archive et. al.
11077 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11078 grep 'no-whole-archive' > /dev/null; then
11079 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11080 else
11081 whole_archive_flag_spec_CXX=
11082 fi
11083 else
11084 with_gnu_ld=no
11085 wlarc=
11086
11087 # A generic and very simple default shared library creation
11088 # command for GNU C++ for the case where it uses the native
11089 # linker, instead of GNU ld. If possible, this setting should
11090 # overridden to take advantage of the native linker features on
11091 # the platform it is being used on.
11092 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11093 fi
11094
11095 # Commands to make compiler produce verbose output that lists
11096 # what "hidden" libraries, object files and flags are used when
11097 # linking a shared library.
11098 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11099
11100else
11101 GXX=no
11102 with_gnu_ld=no
11103 wlarc=
11104fi
11105
11106# PORTME: fill in a description of your system's C++ link characteristics
64ff59ba 11107{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11108echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 11109ld_shlibs_CXX=yes
11110case $host_os in
11111 aix3*)
11112 # FIXME: insert proper C++ library support
11113 ld_shlibs_CXX=no
11114 ;;
11115 aix4* | aix5*)
11116 if test "$host_cpu" = ia64; then
11117 # On IA64, the linker does run time linking by default, so we don't
11118 # have to do anything special.
11119 aix_use_runtimelinking=no
11120 exp_sym_flag='-Bexport'
11121 no_entry_flag=""
11122 else
11123 aix_use_runtimelinking=no
11124
11125 # Test if we are trying to use run time linking or normal
11126 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11127 # need to do runtime linking.
11128 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11129 for ld_flag in $LDFLAGS; do
11130 case $ld_flag in
11131 *-brtl*)
11132 aix_use_runtimelinking=yes
11133 break
11134 ;;
11135 esac
11136 done
11137 ;;
11138 esac
11139
11140 exp_sym_flag='-bexport'
11141 no_entry_flag='-bnoentry'
11142 fi
11143
11144 # When large executables or shared objects are built, AIX ld can
11145 # have problems creating the table of contents. If linking a library
11146 # or program results in "error TOC overflow" add -mminimal-toc to
11147 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11148 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11149
11150 archive_cmds_CXX=''
11151 hardcode_direct_CXX=yes
11152 hardcode_libdir_separator_CXX=':'
11153 link_all_deplibs_CXX=yes
11154
11155 if test "$GXX" = yes; then
11156 case $host_os in aix4.[012]|aix4.[012].*)
11157 # We only want to do this on AIX 4.2 and lower, the check
11158 # below for broken collect2 doesn't work under 4.3+
11159 collect2name=`${CC} -print-prog-name=collect2`
11160 if test -f "$collect2name" && \
11161 strings "$collect2name" | grep resolve_lib_name >/dev/null
11162 then
11163 # We have reworked collect2
11164 hardcode_direct_CXX=yes
11165 else
11166 # We have old collect2
11167 hardcode_direct_CXX=unsupported
11168 # It fails to find uninstalled libraries when the uninstalled
11169 # path is not listed in the libpath. Setting hardcode_minus_L
11170 # to unsupported forces relinking
11171 hardcode_minus_L_CXX=yes
11172 hardcode_libdir_flag_spec_CXX='-L$libdir'
11173 hardcode_libdir_separator_CXX=
11174 fi
11175 ;;
11176 esac
11177 shared_flag='-shared'
11178 if test "$aix_use_runtimelinking" = yes; then
11179 shared_flag="$shared_flag "'${wl}-G'
11180 fi
11181 else
11182 # not using gcc
11183 if test "$host_cpu" = ia64; then
11184 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11185 # chokes on -Wl,-G. The following line is correct:
11186 shared_flag='-G'
11187 else
11188 if test "$aix_use_runtimelinking" = yes; then
11189 shared_flag='${wl}-G'
11190 else
11191 shared_flag='${wl}-bM:SRE'
11192 fi
11193 fi
11194 fi
11195
11196 # It seems that -bexpall does not export symbols beginning with
11197 # underscore (_), so it is better to generate a list of symbols to export.
11198 always_export_symbols_CXX=yes
11199 if test "$aix_use_runtimelinking" = yes; then
11200 # Warning - without using the other runtime loading flags (-brtl),
11201 # -berok will link without error, but may produce a broken library.
11202 allow_undefined_flag_CXX='-berok'
11203 # Determine the default libpath from the value encoded in an empty executable.
11204 cat >conftest.$ac_ext <<_ACEOF
11205/* confdefs.h. */
11206_ACEOF
11207cat confdefs.h >>conftest.$ac_ext
11208cat >>conftest.$ac_ext <<_ACEOF
11209/* end confdefs.h. */
11210
11211int
11212main ()
11213{
11214
11215 ;
11216 return 0;
11217}
11218_ACEOF
11219rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 11220if { (ac_try="$ac_link"
11221case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11224esac
11225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_link") 2>conftest.er1
d9898ee8 11227 ac_status=$?
11228 grep -v '^ *+' conftest.er1 >conftest.err
11229 rm -f conftest.er1
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 11232 (exit $ac_status); } && {
11233 test -z "$ac_cxx_werror_flag" ||
11234 test ! -s conftest.err
11235 } && test -s conftest$ac_exeext &&
11236 $as_test_x conftest$ac_exeext; then
d9898ee8 11237
11238aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11239}'`
11240# Check for a 64-bit object if we didn't find anything.
11241if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11242}'`; fi
11243else
11244 echo "$as_me: failed program was:" >&5
11245sed 's/^/| /' conftest.$ac_ext >&5
11246
64ff59ba 11247
d9898ee8 11248fi
64ff59ba 11249
11250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11251 conftest$ac_exeext conftest.$ac_ext
11252if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11253
11254 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11255
11256 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"
11257 else
11258 if test "$host_cpu" = ia64; then
11259 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11260 allow_undefined_flag_CXX="-z nodefs"
11261 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"
11262 else
11263 # Determine the default libpath from the value encoded in an empty executable.
11264 cat >conftest.$ac_ext <<_ACEOF
11265/* confdefs.h. */
11266_ACEOF
11267cat confdefs.h >>conftest.$ac_ext
11268cat >>conftest.$ac_ext <<_ACEOF
11269/* end confdefs.h. */
11270
11271int
11272main ()
11273{
11274
11275 ;
11276 return 0;
11277}
11278_ACEOF
11279rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 11280if { (ac_try="$ac_link"
11281case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11284esac
11285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286 (eval "$ac_link") 2>conftest.er1
d9898ee8 11287 ac_status=$?
11288 grep -v '^ *+' conftest.er1 >conftest.err
11289 rm -f conftest.er1
11290 cat conftest.err >&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 11292 (exit $ac_status); } && {
11293 test -z "$ac_cxx_werror_flag" ||
11294 test ! -s conftest.err
11295 } && test -s conftest$ac_exeext &&
11296 $as_test_x conftest$ac_exeext; then
d9898ee8 11297
11298aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11299}'`
11300# Check for a 64-bit object if we didn't find anything.
11301if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11302}'`; fi
11303else
11304 echo "$as_me: failed program was:" >&5
11305sed 's/^/| /' conftest.$ac_ext >&5
11306
64ff59ba 11307
d9898ee8 11308fi
64ff59ba 11309
11310rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11311 conftest$ac_exeext conftest.$ac_ext
11312if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11313
11314 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11315 # Warning - without using the other run time loading flags,
11316 # -berok will link without error, but may produce a broken library.
11317 no_undefined_flag_CXX=' ${wl}-bernotok'
11318 allow_undefined_flag_CXX=' ${wl}-berok'
11319 # Exported symbols can be pulled into shared objects from archives
11320 whole_archive_flag_spec_CXX='$convenience'
11321 archive_cmds_need_lc_CXX=yes
11322 # This is similar to how AIX traditionally builds its shared libraries.
11323 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'
11324 fi
11325 fi
11326 ;;
11327
11328 beos*)
11329 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11330 allow_undefined_flag_CXX=unsupported
11331 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11332 # support --undefined. This deserves some investigation. FIXME
11333 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11334 else
11335 ld_shlibs_CXX=no
11336 fi
11337 ;;
11338
11339 chorus*)
11340 case $cc_basename in
11341 *)
11342 # FIXME: insert proper C++ library support
11343 ld_shlibs_CXX=no
11344 ;;
11345 esac
11346 ;;
11347
11348 cygwin* | mingw* | pw32*)
11349 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11350 # as there is no search path for DLLs.
11351 hardcode_libdir_flag_spec_CXX='-L$libdir'
11352 allow_undefined_flag_CXX=unsupported
11353 always_export_symbols_CXX=no
11354 enable_shared_with_static_runtimes_CXX=yes
11355
11356 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11357 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'
11358 # If the export-symbols file already is a .def file (1st line
11359 # is EXPORTS), use it as is; otherwise, prepend...
11360 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11361 cp $export_symbols $output_objdir/$soname.def;
11362 else
11363 echo EXPORTS > $output_objdir/$soname.def;
11364 cat $export_symbols >> $output_objdir/$soname.def;
11365 fi~
11366 $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'
11367 else
11368 ld_shlibs_CXX=no
11369 fi
11370 ;;
11371 darwin* | rhapsody*)
11372 case $host_os in
11373 rhapsody* | darwin1.[012])
11374 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11375 ;;
11376 *) # Darwin 1.3 on
11377 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11378 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11379 else
11380 case ${MACOSX_DEPLOYMENT_TARGET} in
11381 10.[012])
11382 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11383 ;;
11384 10.*)
11385 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11386 ;;
11387 esac
11388 fi
11389 ;;
11390 esac
11391 archive_cmds_need_lc_CXX=no
11392 hardcode_direct_CXX=no
11393 hardcode_automatic_CXX=yes
11394 hardcode_shlibpath_var_CXX=unsupported
11395 whole_archive_flag_spec_CXX=''
11396 link_all_deplibs_CXX=yes
11397
11398 if test "$GXX" = yes ; then
11399 lt_int_apple_cc_single_mod=no
11400 output_verbose_link_cmd='echo'
11401 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11402 lt_int_apple_cc_single_mod=yes
11403 fi
11404 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11405 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11406 else
11407 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'
11408 fi
11409 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11410 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11411 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11412 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}'
11413 else
11414 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}'
11415 fi
11416 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}'
11417 else
11418 case $cc_basename in
11419 xlc*)
11420 output_verbose_link_cmd='echo'
11421 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11422 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11423 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11424 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11425 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}'
11426 ;;
11427 *)
11428 ld_shlibs_CXX=no
11429 ;;
11430 esac
11431 fi
11432 ;;
11433
11434 dgux*)
11435 case $cc_basename in
11436 ec++*)
11437 # FIXME: insert proper C++ library support
11438 ld_shlibs_CXX=no
11439 ;;
11440 ghcx*)
11441 # Green Hills C++ Compiler
11442 # FIXME: insert proper C++ library support
11443 ld_shlibs_CXX=no
11444 ;;
11445 *)
11446 # FIXME: insert proper C++ library support
11447 ld_shlibs_CXX=no
11448 ;;
11449 esac
11450 ;;
11451 freebsd[12]*)
11452 # C++ shared libraries reported to be fairly broken before switch to ELF
11453 ld_shlibs_CXX=no
11454 ;;
11455 freebsd-elf*)
11456 archive_cmds_need_lc_CXX=no
11457 ;;
11458 freebsd* | kfreebsd*-gnu | dragonfly*)
11459 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11460 # conventions
11461 ld_shlibs_CXX=yes
11462 ;;
11463 gnu*)
11464 ;;
11465 hpux9*)
11466 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11467 hardcode_libdir_separator_CXX=:
11468 export_dynamic_flag_spec_CXX='${wl}-E'
11469 hardcode_direct_CXX=yes
11470 hardcode_minus_L_CXX=yes # Not in the search PATH,
11471 # but as the default
11472 # location of the library.
11473
11474 case $cc_basename in
11475 CC*)
11476 # FIXME: insert proper C++ library support
11477 ld_shlibs_CXX=no
11478 ;;
11479 aCC*)
11480 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'
11481 # Commands to make compiler produce verbose output that lists
11482 # what "hidden" libraries, object files and flags are used when
11483 # linking a shared library.
11484 #
11485 # There doesn't appear to be a way to prevent this compiler from
11486 # explicitly linking system object files so we need to strip them
11487 # from the output so that they don't get included in the library
11488 # dependencies.
11489 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'
11490 ;;
11491 *)
11492 if test "$GXX" = yes; then
11493 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'
11494 else
11495 # FIXME: insert proper C++ library support
11496 ld_shlibs_CXX=no
11497 fi
11498 ;;
11499 esac
11500 ;;
11501 hpux10*|hpux11*)
11502 if test $with_gnu_ld = no; then
11503 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11504 hardcode_libdir_separator_CXX=:
11505
11506 case $host_cpu in
11507 hppa*64*|ia64*)
11508 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11509 ;;
11510 *)
11511 export_dynamic_flag_spec_CXX='${wl}-E'
11512 ;;
11513 esac
11514 fi
11515 case $host_cpu in
11516 hppa*64*|ia64*)
11517 hardcode_direct_CXX=no
11518 hardcode_shlibpath_var_CXX=no
11519 ;;
11520 *)
11521 hardcode_direct_CXX=yes
11522 hardcode_minus_L_CXX=yes # Not in the search PATH,
11523 # but as the default
11524 # location of the library.
11525 ;;
11526 esac
11527
11528 case $cc_basename in
11529 CC*)
11530 # FIXME: insert proper C++ library support
11531 ld_shlibs_CXX=no
11532 ;;
11533 aCC*)
11534 case $host_cpu in
11535 hppa*64*)
11536 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11537 ;;
11538 ia64*)
11539 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11540 ;;
11541 *)
11542 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11543 ;;
11544 esac
11545 # Commands to make compiler produce verbose output that lists
11546 # what "hidden" libraries, object files and flags are used when
11547 # linking a shared library.
11548 #
11549 # There doesn't appear to be a way to prevent this compiler from
11550 # explicitly linking system object files so we need to strip them
11551 # from the output so that they don't get included in the library
11552 # dependencies.
11553 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'
11554 ;;
11555 *)
11556 if test "$GXX" = yes; then
11557 if test $with_gnu_ld = no; then
11558 case $host_cpu in
11559 hppa*64*)
11560 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11561 ;;
11562 ia64*)
11563 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11564 ;;
11565 *)
11566 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'
11567 ;;
11568 esac
11569 fi
11570 else
11571 # FIXME: insert proper C++ library support
11572 ld_shlibs_CXX=no
11573 fi
11574 ;;
11575 esac
11576 ;;
11577 interix3*)
11578 hardcode_direct_CXX=no
11579 hardcode_shlibpath_var_CXX=no
11580 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11581 export_dynamic_flag_spec_CXX='${wl}-E'
11582 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11583 # Instead, shared libraries are loaded at an image base (0x10000000 by
11584 # default) and relocated if they conflict, which is a slow very memory
11585 # consuming and fragmenting process. To avoid this, we pick a random,
11586 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11587 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11588 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'
11589 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'
11590 ;;
11591 irix5* | irix6*)
11592 case $cc_basename in
11593 CC*)
11594 # SGI C++
11595 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'
11596
11597 # Archives containing C++ object files must be created using
11598 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11599 # necessary to make sure instantiated templates are included
11600 # in the archive.
11601 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11602 ;;
11603 *)
11604 if test "$GXX" = yes; then
11605 if test "$with_gnu_ld" = no; then
11606 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'
11607 else
11608 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'
11609 fi
11610 fi
11611 link_all_deplibs_CXX=yes
11612 ;;
11613 esac
11614 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11615 hardcode_libdir_separator_CXX=:
11616 ;;
11617 linux*)
11618 case $cc_basename in
11619 KCC*)
11620 # Kuck and Associates, Inc. (KAI) C++ Compiler
11621
11622 # KCC will only create a shared library if the output file
11623 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11624 # to its proper name (with version) after linking.
11625 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'
11626 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'
11627 # Commands to make compiler produce verbose output that lists
11628 # what "hidden" libraries, object files and flags are used when
11629 # linking a shared library.
11630 #
11631 # There doesn't appear to be a way to prevent this compiler from
11632 # explicitly linking system object files so we need to strip them
11633 # from the output so that they don't get included in the library
11634 # dependencies.
11635 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'
11636
11637 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11638 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11639
11640 # Archives containing C++ object files must be created using
11641 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11642 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11643 ;;
11644 icpc*)
11645 # Intel C++
11646 with_gnu_ld=yes
11647 # version 8.0 and above of icpc choke on multiply defined symbols
11648 # if we add $predep_objects and $postdep_objects, however 7.1 and
11649 # earlier do not add the objects themselves.
11650 case `$CC -V 2>&1` in
11651 *"Version 7."*)
11652 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11653 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'
11654 ;;
11655 *) # Version 8.0 or newer
11656 tmp_idyn=
11657 case $host_cpu in
11658 ia64*) tmp_idyn=' -i_dynamic';;
11659 esac
11660 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11661 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'
11662 ;;
11663 esac
11664 archive_cmds_need_lc_CXX=no
11665 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11666 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11667 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11668 ;;
11669 pgCC*)
11670 # Portland Group C++ compiler
11671 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11672 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'
11673
11674 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11675 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11676 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'
11677 ;;
11678 cxx*)
11679 # Compaq C++
11680 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11681 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'
11682
11683 runpath_var=LD_RUN_PATH
11684 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11685 hardcode_libdir_separator_CXX=:
11686
11687 # Commands to make compiler produce verbose output that lists
11688 # what "hidden" libraries, object files and flags are used when
11689 # linking a shared library.
11690 #
11691 # There doesn't appear to be a way to prevent this compiler from
11692 # explicitly linking system object files so we need to strip them
11693 # from the output so that they don't get included in the library
11694 # dependencies.
11695 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'
11696 ;;
11697 esac
11698 ;;
11699 lynxos*)
11700 # FIXME: insert proper C++ library support
11701 ld_shlibs_CXX=no
11702 ;;
11703 m88k*)
11704 # FIXME: insert proper C++ library support
11705 ld_shlibs_CXX=no
11706 ;;
11707 mvs*)
11708 case $cc_basename in
11709 cxx*)
11710 # FIXME: insert proper C++ library support
11711 ld_shlibs_CXX=no
11712 ;;
11713 *)
11714 # FIXME: insert proper C++ library support
11715 ld_shlibs_CXX=no
11716 ;;
11717 esac
11718 ;;
11719 netbsd*)
11720 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11721 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11722 wlarc=
11723 hardcode_libdir_flag_spec_CXX='-R$libdir'
11724 hardcode_direct_CXX=yes
11725 hardcode_shlibpath_var_CXX=no
11726 fi
11727 # Workaround some broken pre-1.5 toolchains
11728 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11729 ;;
11730 openbsd2*)
11731 # C++ shared libraries are fairly broken
11732 ld_shlibs_CXX=no
11733 ;;
11734 openbsd*)
11735 hardcode_direct_CXX=yes
11736 hardcode_shlibpath_var_CXX=no
11737 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11738 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11739 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11740 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11741 export_dynamic_flag_spec_CXX='${wl}-E'
11742 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11743 fi
11744 output_verbose_link_cmd='echo'
11745 ;;
11746 osf3*)
11747 case $cc_basename in
11748 KCC*)
11749 # Kuck and Associates, Inc. (KAI) C++ Compiler
11750
11751 # KCC will only create a shared library if the output file
11752 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11753 # to its proper name (with version) after linking.
11754 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'
11755
11756 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11757 hardcode_libdir_separator_CXX=:
11758
11759 # Archives containing C++ object files must be created using
11760 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11761 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11762
11763 ;;
11764 RCC*)
11765 # Rational C++ 2.4.1
11766 # FIXME: insert proper C++ library support
11767 ld_shlibs_CXX=no
11768 ;;
11769 cxx*)
11770 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11771 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'
11772
11773 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11774 hardcode_libdir_separator_CXX=:
11775
11776 # Commands to make compiler produce verbose output that lists
11777 # what "hidden" libraries, object files and flags are used when
11778 # linking a shared library.
11779 #
11780 # There doesn't appear to be a way to prevent this compiler from
11781 # explicitly linking system object files so we need to strip them
11782 # from the output so that they don't get included in the library
11783 # dependencies.
11784 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'
11785 ;;
11786 *)
11787 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11788 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11789 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'
11790
11791 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11792 hardcode_libdir_separator_CXX=:
11793
11794 # Commands to make compiler produce verbose output that lists
11795 # what "hidden" libraries, object files and flags are used when
11796 # linking a shared library.
11797 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11798
11799 else
11800 # FIXME: insert proper C++ library support
11801 ld_shlibs_CXX=no
11802 fi
11803 ;;
11804 esac
11805 ;;
11806 osf4* | osf5*)
11807 case $cc_basename in
11808 KCC*)
11809 # Kuck and Associates, Inc. (KAI) C++ Compiler
11810
11811 # KCC will only create a shared library if the output file
11812 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11813 # to its proper name (with version) after linking.
11814 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'
11815
11816 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11817 hardcode_libdir_separator_CXX=:
11818
11819 # Archives containing C++ object files must be created using
11820 # the KAI C++ compiler.
11821 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11822 ;;
11823 RCC*)
11824 # Rational C++ 2.4.1
11825 # FIXME: insert proper C++ library support
11826 ld_shlibs_CXX=no
11827 ;;
11828 cxx*)
11829 allow_undefined_flag_CXX=' -expect_unresolved \*'
11830 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'
11831 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11832 echo "-hidden">> $lib.exp~
11833 $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~
11834 $rm $lib.exp'
11835
11836 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11837 hardcode_libdir_separator_CXX=:
11838
11839 # Commands to make compiler produce verbose output that lists
11840 # what "hidden" libraries, object files and flags are used when
11841 # linking a shared library.
11842 #
11843 # There doesn't appear to be a way to prevent this compiler from
11844 # explicitly linking system object files so we need to strip them
11845 # from the output so that they don't get included in the library
11846 # dependencies.
11847 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'
11848 ;;
11849 *)
11850 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11851 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11852 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'
11853
11854 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11855 hardcode_libdir_separator_CXX=:
11856
11857 # Commands to make compiler produce verbose output that lists
11858 # what "hidden" libraries, object files and flags are used when
11859 # linking a shared library.
11860 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11861
11862 else
11863 # FIXME: insert proper C++ library support
11864 ld_shlibs_CXX=no
11865 fi
11866 ;;
11867 esac
11868 ;;
11869 psos*)
11870 # FIXME: insert proper C++ library support
11871 ld_shlibs_CXX=no
11872 ;;
11873 sunos4*)
11874 case $cc_basename in
11875 CC*)
11876 # Sun C++ 4.x
11877 # FIXME: insert proper C++ library support
11878 ld_shlibs_CXX=no
11879 ;;
11880 lcc*)
11881 # Lucid
11882 # FIXME: insert proper C++ library support
11883 ld_shlibs_CXX=no
11884 ;;
11885 *)
11886 # FIXME: insert proper C++ library support
11887 ld_shlibs_CXX=no
11888 ;;
11889 esac
11890 ;;
11891 solaris*)
11892 case $cc_basename in
11893 CC*)
11894 # Sun C++ 4.2, 5.x and Centerline C++
11895 archive_cmds_need_lc_CXX=yes
11896 no_undefined_flag_CXX=' -zdefs'
11897 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11898 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11899 $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'
11900
11901 hardcode_libdir_flag_spec_CXX='-R$libdir'
11902 hardcode_shlibpath_var_CXX=no
11903 case $host_os in
11904 solaris2.[0-5] | solaris2.[0-5].*) ;;
11905 *)
11906 # The C++ compiler is used as linker so we must use $wl
11907 # flag to pass the commands to the underlying system
11908 # linker. We must also pass each convience library through
11909 # to the system linker between allextract/defaultextract.
11910 # The C++ compiler will combine linker options so we
11911 # cannot just pass the convience library names through
11912 # without $wl.
11913 # Supported since Solaris 2.6 (maybe 2.5.1?)
11914 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11915 ;;
11916 esac
11917 link_all_deplibs_CXX=yes
11918
11919 output_verbose_link_cmd='echo'
11920
11921 # Archives containing C++ object files must be created using
11922 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11923 # necessary to make sure instantiated templates are included
11924 # in the archive.
11925 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11926 ;;
11927 gcx*)
11928 # Green Hills C++ Compiler
11929 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11930
11931 # The C++ compiler must be used to create the archive.
11932 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11933 ;;
11934 *)
11935 # GNU C++ compiler with Solaris linker
11936 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11937 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11938 if $CC --version | grep -v '^2\.7' > /dev/null; then
11939 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11940 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11941 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11942
11943 # Commands to make compiler produce verbose output that lists
11944 # what "hidden" libraries, object files and flags are used when
11945 # linking a shared library.
11946 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11947 else
11948 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11949 # platform.
11950 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11951 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11952 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11953
11954 # Commands to make compiler produce verbose output that lists
11955 # what "hidden" libraries, object files and flags are used when
11956 # linking a shared library.
11957 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11958 fi
11959
11960 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11961 fi
11962 ;;
11963 esac
11964 ;;
11965 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11966 no_undefined_flag_CXX='${wl}-z,text'
11967 archive_cmds_need_lc_CXX=no
11968 hardcode_shlibpath_var_CXX=no
11969 runpath_var='LD_RUN_PATH'
11970
11971 case $cc_basename in
11972 CC*)
11973 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11974 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11975 ;;
11976 *)
11977 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11978 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11979 ;;
11980 esac
11981 ;;
11982 sysv5* | sco3.2v5* | sco5v6*)
11983 # Note: We can NOT use -z defs as we might desire, because we do not
11984 # link with -lc, and that would cause any symbols used from libc to
11985 # always be unresolved, which means just about no library would
11986 # ever link correctly. If we're not using GNU ld we use -z text
11987 # though, which does catch some bad symbols but isn't as heavy-handed
11988 # as -z defs.
11989 # For security reasons, it is highly recommended that you always
11990 # use absolute paths for naming shared libraries, and exclude the
11991 # DT_RUNPATH tag from executables and libraries. But doing so
11992 # requires that you compile everything twice, which is a pain.
11993 # So that behaviour is only enabled if SCOABSPATH is set to a
11994 # non-empty value in the environment. Most likely only useful for
11995 # creating official distributions of packages.
11996 # This is a hack until libtool officially supports absolute path
11997 # names for shared libraries.
11998 no_undefined_flag_CXX='${wl}-z,text'
11999 allow_undefined_flag_CXX='${wl}-z,nodefs'
12000 archive_cmds_need_lc_CXX=no
12001 hardcode_shlibpath_var_CXX=no
12002 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12003 hardcode_libdir_separator_CXX=':'
12004 link_all_deplibs_CXX=yes
12005 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12006 runpath_var='LD_RUN_PATH'
12007
12008 case $cc_basename in
12009 CC*)
12010 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12011 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12012 ;;
12013 *)
12014 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12015 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12016 ;;
12017 esac
12018 ;;
12019 tandem*)
12020 case $cc_basename in
12021 NCC*)
12022 # NonStop-UX NCC 3.20
12023 # FIXME: insert proper C++ library support
12024 ld_shlibs_CXX=no
12025 ;;
12026 *)
12027 # FIXME: insert proper C++ library support
12028 ld_shlibs_CXX=no
12029 ;;
12030 esac
12031 ;;
12032 vxworks*)
12033 # FIXME: insert proper C++ library support
12034 ld_shlibs_CXX=no
12035 ;;
12036 *)
12037 # FIXME: insert proper C++ library support
12038 ld_shlibs_CXX=no
12039 ;;
12040esac
64ff59ba 12041{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12042echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12043test "$ld_shlibs_CXX" = no && can_build_shared=no
12044
12045GCC_CXX="$GXX"
12046LD_CXX="$LD"
12047
12048
12049cat > conftest.$ac_ext <<EOF
12050class Foo
12051{
12052public:
12053 Foo (void) { a = 0; }
12054private:
12055 int a;
12056};
12057EOF
12058
12059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12060 (eval $ac_compile) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; then
12064 # Parse the compiler output and extract the necessary
12065 # objects, libraries and library flags.
12066
12067 # Sentinel used to keep track of whether or not we are before
12068 # the conftest object file.
12069 pre_test_object_deps_done=no
12070
12071 # The `*' in the case matches for architectures that use `case' in
12072 # $output_verbose_cmd can trigger glob expansion during the loop
12073 # eval without this substitution.
12074 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12075
12076 for p in `eval $output_verbose_link_cmd`; do
12077 case $p in
12078
12079 -L* | -R* | -l*)
12080 # Some compilers place space between "-{L,R}" and the path.
12081 # Remove the space.
12082 if test $p = "-L" \
12083 || test $p = "-R"; then
12084 prev=$p
12085 continue
12086 else
12087 prev=
12088 fi
12089
12090 if test "$pre_test_object_deps_done" = no; then
12091 case $p in
12092 -L* | -R*)
12093 # Internal compiler library paths should come after those
12094 # provided the user. The postdeps already come after the
12095 # user supplied libs so there is no need to process them.
12096 if test -z "$compiler_lib_search_path_CXX"; then
12097 compiler_lib_search_path_CXX="${prev}${p}"
12098 else
12099 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12100 fi
12101 ;;
12102 # The "-l" case would never come before the object being
12103 # linked, so don't bother handling this case.
12104 esac
12105 else
12106 if test -z "$postdeps_CXX"; then
12107 postdeps_CXX="${prev}${p}"
12108 else
12109 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12110 fi
12111 fi
12112 ;;
12113
12114 *.$objext)
12115 # This assumes that the test object file only shows up
12116 # once in the compiler output.
12117 if test "$p" = "conftest.$objext"; then
12118 pre_test_object_deps_done=yes
12119 continue
12120 fi
12121
12122 if test "$pre_test_object_deps_done" = no; then
12123 if test -z "$predep_objects_CXX"; then
12124 predep_objects_CXX="$p"
12125 else
12126 predep_objects_CXX="$predep_objects_CXX $p"
12127 fi
12128 else
12129 if test -z "$postdep_objects_CXX"; then
12130 postdep_objects_CXX="$p"
12131 else
12132 postdep_objects_CXX="$postdep_objects_CXX $p"
12133 fi
12134 fi
12135 ;;
12136
12137 *) ;; # Ignore the rest.
12138
12139 esac
12140 done
12141
12142 # Clean up.
12143 rm -f a.out a.exe
12144else
12145 echo "libtool.m4: error: problem compiling CXX test program"
12146fi
12147
12148$rm -f confest.$objext
12149
12150# PORTME: override above test on systems where it is broken
12151case $host_os in
12152interix3*)
12153 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12154 # hack all around it, let's just trust "g++" to DTRT.
12155 predep_objects_CXX=
12156 postdep_objects_CXX=
12157 postdeps_CXX=
12158 ;;
12159
12160solaris*)
12161 case $cc_basename in
12162 CC*)
12163 # Adding this requires a known-good setup of shared libraries for
12164 # Sun compiler versions before 5.6, else PIC objects from an old
12165 # archive will be linked into the output, leading to subtle bugs.
12166 postdeps_CXX='-lCstd -lCrun'
12167 ;;
12168 esac
12169 ;;
12170esac
12171
12172
12173case " $postdeps_CXX " in
12174*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12175esac
12176
12177lt_prog_compiler_wl_CXX=
12178lt_prog_compiler_pic_CXX=
12179lt_prog_compiler_static_CXX=
12180
64ff59ba 12181{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12182echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 12183
12184 # C++ specific cases for pic, static, wl, etc.
12185 if test "$GXX" = yes; then
12186 lt_prog_compiler_wl_CXX='-Wl,'
12187 lt_prog_compiler_static_CXX='-static'
12188
12189 case $host_os in
12190 aix*)
12191 # All AIX code is PIC.
12192 if test "$host_cpu" = ia64; then
12193 # AIX 5 now supports IA64 processor
12194 lt_prog_compiler_static_CXX='-Bstatic'
12195 fi
12196 ;;
12197 amigaos*)
12198 # FIXME: we need at least 68020 code to build shared libraries, but
12199 # adding the `-m68020' flag to GCC prevents building anything better,
12200 # like `-m68040'.
12201 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12202 ;;
12203 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12204 # PIC is the default for these OSes.
12205 ;;
12206 mingw* | os2* | pw32*)
12207 # This hack is so that the source file can tell whether it is being
12208 # built for inclusion in a dll (and should export symbols for example).
12209 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12210 ;;
12211 darwin* | rhapsody*)
12212 # PIC is the default on this platform
12213 # Common symbols not allowed in MH_DYLIB files
12214 lt_prog_compiler_pic_CXX='-fno-common'
12215 ;;
12216 *djgpp*)
12217 # DJGPP does not support shared libraries at all
12218 lt_prog_compiler_pic_CXX=
12219 ;;
12220 interix3*)
12221 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12222 # Instead, we relocate shared libraries at runtime.
12223 ;;
12224 sysv4*MP*)
12225 if test -d /usr/nec; then
12226 lt_prog_compiler_pic_CXX=-Kconform_pic
12227 fi
12228 ;;
12229 hpux*)
12230 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12231 # not for PA HP-UX.
12232 case $host_cpu in
12233 hppa*64*|ia64*)
12234 ;;
12235 *)
12236 lt_prog_compiler_pic_CXX='-fPIC'
12237 ;;
12238 esac
12239 ;;
12240 *)
12241 lt_prog_compiler_pic_CXX='-fPIC'
12242 ;;
12243 esac
12244 else
12245 case $host_os in
12246 aix4* | aix5*)
12247 # All AIX code is PIC.
12248 if test "$host_cpu" = ia64; then
12249 # AIX 5 now supports IA64 processor
12250 lt_prog_compiler_static_CXX='-Bstatic'
12251 else
12252 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12253 fi
12254 ;;
12255 chorus*)
12256 case $cc_basename in
12257 cxch68*)
12258 # Green Hills C++ Compiler
12259 # _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"
12260 ;;
12261 esac
12262 ;;
12263 darwin*)
12264 # PIC is the default on this platform
12265 # Common symbols not allowed in MH_DYLIB files
12266 case $cc_basename in
12267 xlc*)
12268 lt_prog_compiler_pic_CXX='-qnocommon'
12269 lt_prog_compiler_wl_CXX='-Wl,'
12270 ;;
12271 esac
12272 ;;
12273 dgux*)
12274 case $cc_basename in
12275 ec++*)
12276 lt_prog_compiler_pic_CXX='-KPIC'
12277 ;;
12278 ghcx*)
12279 # Green Hills C++ Compiler
12280 lt_prog_compiler_pic_CXX='-pic'
12281 ;;
12282 *)
12283 ;;
12284 esac
12285 ;;
12286 freebsd* | kfreebsd*-gnu | dragonfly*)
12287 # FreeBSD uses GNU C++
12288 ;;
12289 hpux9* | hpux10* | hpux11*)
12290 case $cc_basename in
12291 CC*)
12292 lt_prog_compiler_wl_CXX='-Wl,'
12293 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12294 if test "$host_cpu" != ia64; then
12295 lt_prog_compiler_pic_CXX='+Z'
12296 fi
12297 ;;
12298 aCC*)
12299 lt_prog_compiler_wl_CXX='-Wl,'
12300 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12301 case $host_cpu in
12302 hppa*64*|ia64*)
12303 # +Z the default
12304 ;;
12305 *)
12306 lt_prog_compiler_pic_CXX='+Z'
12307 ;;
12308 esac
12309 ;;
12310 *)
12311 ;;
12312 esac
12313 ;;
12314 interix*)
12315 # This is c89, which is MS Visual C++ (no shared libs)
12316 # Anyone wants to do a port?
12317 ;;
12318 irix5* | irix6* | nonstopux*)
12319 case $cc_basename in
12320 CC*)
12321 lt_prog_compiler_wl_CXX='-Wl,'
12322 lt_prog_compiler_static_CXX='-non_shared'
12323 # CC pic flag -KPIC is the default.
12324 ;;
12325 *)
12326 ;;
12327 esac
12328 ;;
12329 linux*)
12330 case $cc_basename in
12331 KCC*)
12332 # KAI C++ Compiler
12333 lt_prog_compiler_wl_CXX='--backend -Wl,'
12334 lt_prog_compiler_pic_CXX='-fPIC'
12335 ;;
12336 icpc* | ecpc*)
12337 # Intel C++
12338 lt_prog_compiler_wl_CXX='-Wl,'
12339 lt_prog_compiler_pic_CXX='-KPIC'
12340 lt_prog_compiler_static_CXX='-static'
12341 ;;
12342 pgCC*)
12343 # Portland Group C++ compiler.
12344 lt_prog_compiler_wl_CXX='-Wl,'
12345 lt_prog_compiler_pic_CXX='-fpic'
12346 lt_prog_compiler_static_CXX='-Bstatic'
12347 ;;
12348 cxx*)
12349 # Compaq C++
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 lynxos*)
12360 ;;
12361 m88k*)
12362 ;;
12363 mvs*)
12364 case $cc_basename in
12365 cxx*)
12366 lt_prog_compiler_pic_CXX='-W c,exportall'
12367 ;;
12368 *)
12369 ;;
12370 esac
12371 ;;
12372 netbsd*)
12373 ;;
12374 osf3* | osf4* | osf5*)
12375 case $cc_basename in
12376 KCC*)
12377 lt_prog_compiler_wl_CXX='--backend -Wl,'
12378 ;;
12379 RCC*)
12380 # Rational C++ 2.4.1
12381 lt_prog_compiler_pic_CXX='-pic'
12382 ;;
12383 cxx*)
12384 # Digital/Compaq C++
12385 lt_prog_compiler_wl_CXX='-Wl,'
12386 # Make sure the PIC flag is empty. It appears that all Alpha
12387 # Linux and Compaq Tru64 Unix objects are PIC.
12388 lt_prog_compiler_pic_CXX=
12389 lt_prog_compiler_static_CXX='-non_shared'
12390 ;;
12391 *)
12392 ;;
12393 esac
12394 ;;
12395 psos*)
12396 ;;
12397 solaris*)
12398 case $cc_basename in
12399 CC*)
12400 # Sun C++ 4.2, 5.x and Centerline C++
12401 lt_prog_compiler_pic_CXX='-KPIC'
12402 lt_prog_compiler_static_CXX='-Bstatic'
12403 lt_prog_compiler_wl_CXX='-Qoption ld '
12404 ;;
12405 gcx*)
12406 # Green Hills C++ Compiler
12407 lt_prog_compiler_pic_CXX='-PIC'
12408 ;;
12409 *)
12410 ;;
12411 esac
12412 ;;
12413 sunos4*)
12414 case $cc_basename in
12415 CC*)
12416 # Sun C++ 4.x
12417 lt_prog_compiler_pic_CXX='-pic'
12418 lt_prog_compiler_static_CXX='-Bstatic'
12419 ;;
12420 lcc*)
12421 # Lucid
12422 lt_prog_compiler_pic_CXX='-pic'
12423 ;;
12424 *)
12425 ;;
12426 esac
12427 ;;
12428 tandem*)
12429 case $cc_basename in
12430 NCC*)
12431 # NonStop-UX NCC 3.20
12432 lt_prog_compiler_pic_CXX='-KPIC'
12433 ;;
12434 *)
12435 ;;
12436 esac
12437 ;;
12438 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12439 case $cc_basename in
12440 CC*)
12441 lt_prog_compiler_wl_CXX='-Wl,'
12442 lt_prog_compiler_pic_CXX='-KPIC'
12443 lt_prog_compiler_static_CXX='-Bstatic'
12444 ;;
12445 esac
12446 ;;
12447 vxworks*)
12448 ;;
12449 *)
12450 lt_prog_compiler_can_build_shared_CXX=no
12451 ;;
12452 esac
12453 fi
12454
64ff59ba 12455{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12456echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d9898ee8 12457
12458#
12459# Check to make sure the PIC flag actually works.
12460#
12461if test -n "$lt_prog_compiler_pic_CXX"; then
12462
64ff59ba 12463{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12464echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d9898ee8 12465if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12467else
12468 lt_prog_compiler_pic_works_CXX=no
12469 ac_outfile=conftest.$ac_objext
12470 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12471 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12472 # Insert the option either (1) after the last *FLAGS variable, or
12473 # (2) before a word containing "conftest.", or (3) at the end.
12474 # Note that $ac_compile itself does not contain backslashes and begins
12475 # with a dollar sign (not a hyphen), so the echo should work correctly.
12476 # The option is referenced via a variable to avoid confusing sed.
12477 lt_compile=`echo "$ac_compile" | $SED \
12478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12480 -e 's:$: $lt_compiler_flag:'`
64ff59ba 12481 (eval echo "\"\$as_me:12481: $lt_compile\"" >&5)
d9898ee8 12482 (eval "$lt_compile" 2>conftest.err)
12483 ac_status=$?
12484 cat conftest.err >&5
64ff59ba 12485 echo "$as_me:12485: \$? = $ac_status" >&5
d9898ee8 12486 if (exit $ac_status) && test -s "$ac_outfile"; then
12487 # The compiler can only warn and ignore the option if not recognized
12488 # So say no if there are warnings other than the usual output.
12489 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12491 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12492 lt_prog_compiler_pic_works_CXX=yes
12493 fi
12494 fi
12495 $rm conftest*
12496
12497fi
64ff59ba 12498{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12499echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d9898ee8 12500
12501if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12502 case $lt_prog_compiler_pic_CXX in
12503 "" | " "*) ;;
12504 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12505 esac
12506else
12507 lt_prog_compiler_pic_CXX=
12508 lt_prog_compiler_can_build_shared_CXX=no
12509fi
12510
12511fi
12512case $host_os in
12513 # For platforms which do not support PIC, -DPIC is meaningless:
12514 *djgpp*)
12515 lt_prog_compiler_pic_CXX=
12516 ;;
12517 *)
12518 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12519 ;;
12520esac
12521
12522#
12523# Check to make sure the static flag actually works.
12524#
12525wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
64ff59ba 12526{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12527echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 12528if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12530else
12531 lt_prog_compiler_static_works_CXX=no
12532 save_LDFLAGS="$LDFLAGS"
12533 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12534 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12535 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12536 # The linker can only warn and ignore the option if not recognized
12537 # So say no if there are warnings
12538 if test -s conftest.err; then
12539 # Append any errors to the config.log.
12540 cat conftest.err 1>&5
12541 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12543 if diff conftest.exp conftest.er2 >/dev/null; then
12544 lt_prog_compiler_static_works_CXX=yes
12545 fi
12546 else
12547 lt_prog_compiler_static_works_CXX=yes
12548 fi
12549 fi
12550 $rm conftest*
12551 LDFLAGS="$save_LDFLAGS"
12552
12553fi
64ff59ba 12554{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12555echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
d9898ee8 12556
12557if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12558 :
12559else
12560 lt_prog_compiler_static_CXX=
12561fi
12562
12563
64ff59ba 12564{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12565echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 12566if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12568else
12569 lt_cv_prog_compiler_c_o_CXX=no
12570 $rm -r conftest 2>/dev/null
12571 mkdir conftest
12572 cd conftest
12573 mkdir out
12574 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12575
12576 lt_compiler_flag="-o out/conftest2.$ac_objext"
12577 # Insert the option either (1) after the last *FLAGS variable, or
12578 # (2) before a word containing "conftest.", or (3) at the end.
12579 # Note that $ac_compile itself does not contain backslashes and begins
12580 # with a dollar sign (not a hyphen), so the echo should work correctly.
12581 lt_compile=`echo "$ac_compile" | $SED \
12582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12584 -e 's:$: $lt_compiler_flag:'`
64ff59ba 12585 (eval echo "\"\$as_me:12585: $lt_compile\"" >&5)
d9898ee8 12586 (eval "$lt_compile" 2>out/conftest.err)
12587 ac_status=$?
12588 cat out/conftest.err >&5
64ff59ba 12589 echo "$as_me:12589: \$? = $ac_status" >&5
d9898ee8 12590 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12591 then
12592 # The compiler can only warn and ignore the option if not recognized
12593 # So say no if there are warnings
12594 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12595 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12596 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12597 lt_cv_prog_compiler_c_o_CXX=yes
12598 fi
12599 fi
12600 chmod u+w . 2>&5
12601 $rm conftest*
12602 # SGI C++ compiler will create directory out/ii_files/ for
12603 # template instantiation
12604 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12605 $rm out/* && rmdir out
12606 cd ..
12607 rmdir conftest
12608 $rm conftest*
12609
12610fi
64ff59ba 12611{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12612echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 12613
12614
12615hard_links="nottested"
12616if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12617 # do not overwrite the value of need_locks provided by the user
64ff59ba 12618 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12619echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 12620 hard_links=yes
12621 $rm conftest*
12622 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12623 touch conftest.a
12624 ln conftest.a conftest.b 2>&5 || hard_links=no
12625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 12626 { echo "$as_me:$LINENO: result: $hard_links" >&5
12627echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 12628 if test "$hard_links" = no; then
12629 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12630echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12631 need_locks=warn
12632 fi
12633else
12634 need_locks=no
12635fi
12636
64ff59ba 12637{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12638echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 12639
12640 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12641 case $host_os in
12642 aix4* | aix5*)
12643 # If we're using GNU nm, then we don't want the "-C" option.
12644 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12645 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12646 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'
12647 else
12648 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'
12649 fi
12650 ;;
12651 pw32*)
12652 export_symbols_cmds_CXX="$ltdll_cmds"
12653 ;;
12654 cygwin* | mingw*)
12655 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'
12656 ;;
12657 *)
12658 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12659 ;;
12660 esac
12661
64ff59ba 12662{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12663echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12664test "$ld_shlibs_CXX" = no && can_build_shared=no
12665
12666#
12667# Do we need to explicitly link libc?
12668#
12669case "x$archive_cmds_need_lc_CXX" in
12670x|xyes)
12671 # Assume -lc should be added
12672 archive_cmds_need_lc_CXX=yes
12673
12674 if test "$enable_shared" = yes && test "$GCC" = yes; then
12675 case $archive_cmds_CXX in
12676 *'~'*)
12677 # FIXME: we may have to deal with multi-command sequences.
12678 ;;
12679 '$CC '*)
12680 # Test whether the compiler implicitly links with -lc since on some
12681 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12682 # to ld, don't add -lc before -lgcc.
64ff59ba 12683 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12684echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 12685 $rm conftest*
12686 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12687
12688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12689 (eval $ac_compile) 2>&5
12690 ac_status=$?
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } 2>conftest.err; then
12693 soname=conftest
12694 lib=conftest
12695 libobjs=conftest.$ac_objext
12696 deplibs=
12697 wl=$lt_prog_compiler_wl_CXX
12698 pic_flag=$lt_prog_compiler_pic_CXX
12699 compiler_flags=-v
12700 linker_flags=-v
12701 verstring=
12702 output_objdir=.
12703 libname=conftest
12704 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12705 allow_undefined_flag_CXX=
12706 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12707 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }
12711 then
12712 archive_cmds_need_lc_CXX=no
12713 else
12714 archive_cmds_need_lc_CXX=yes
12715 fi
12716 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12717 else
12718 cat conftest.err 1>&5
12719 fi
12720 $rm conftest*
64ff59ba 12721 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12722echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d9898ee8 12723 ;;
12724 esac
12725 fi
12726 ;;
12727esac
12728
64ff59ba 12729{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12730echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 12731library_names_spec=
12732libname_spec='lib$name'
12733soname_spec=
12734shrext_cmds=".so"
12735postinstall_cmds=
12736postuninstall_cmds=
12737finish_cmds=
12738finish_eval=
12739shlibpath_var=
12740shlibpath_overrides_runpath=unknown
12741version_type=none
12742dynamic_linker="$host_os ld.so"
12743sys_lib_dlsearch_path_spec="/lib /usr/lib"
12744if test "$GCC" = yes; then
12745 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12746 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12747 # if the path contains ";" then we assume it to be the separator
12748 # otherwise default to the standard path separator (i.e. ":") - it is
12749 # assumed that no part of a normal pathname contains ";" but that should
12750 # okay in the real world where ";" in dirpaths is itself problematic.
12751 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12752 else
12753 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12754 fi
12755else
12756 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12757fi
12758need_lib_prefix=unknown
12759hardcode_into_libs=no
12760
12761# when you set need_version to no, make sure it does not cause -set_version
12762# flags to be left without arguments
12763need_version=unknown
12764
12765case $host_os in
12766aix3*)
12767 version_type=linux
12768 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12769 shlibpath_var=LIBPATH
12770
12771 # AIX 3 has no versioning support, so we append a major version to the name.
12772 soname_spec='${libname}${release}${shared_ext}$major'
12773 ;;
12774
12775aix4* | aix5*)
12776 version_type=linux
12777 need_lib_prefix=no
12778 need_version=no
12779 hardcode_into_libs=yes
12780 if test "$host_cpu" = ia64; then
12781 # AIX 5 supports IA64
12782 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12783 shlibpath_var=LD_LIBRARY_PATH
12784 else
12785 # With GCC up to 2.95.x, collect2 would create an import file
12786 # for dependence libraries. The import file would start with
12787 # the line `#! .'. This would cause the generated library to
12788 # depend on `.', always an invalid library. This was fixed in
12789 # development snapshots of GCC prior to 3.0.
12790 case $host_os in
12791 aix4 | aix4.[01] | aix4.[01].*)
12792 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12793 echo ' yes '
12794 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12795 :
12796 else
12797 can_build_shared=no
12798 fi
12799 ;;
12800 esac
12801 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12802 # soname into executable. Probably we can add versioning support to
12803 # collect2, so additional links can be useful in future.
12804 if test "$aix_use_runtimelinking" = yes; then
12805 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12806 # instead of lib<name>.a to let people know that these are not
12807 # typical AIX shared libraries.
12808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12809 else
12810 # We preserve .a as extension for shared libraries through AIX4.2
12811 # and later when we are not doing run time linking.
12812 library_names_spec='${libname}${release}.a $libname.a'
12813 soname_spec='${libname}${release}${shared_ext}$major'
12814 fi
12815 shlibpath_var=LIBPATH
12816 fi
12817 ;;
12818
12819amigaos*)
12820 library_names_spec='$libname.ixlibrary $libname.a'
12821 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12822 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'
12823 ;;
12824
12825beos*)
12826 library_names_spec='${libname}${shared_ext}'
12827 dynamic_linker="$host_os ld.so"
12828 shlibpath_var=LIBRARY_PATH
12829 ;;
12830
12831bsdi[45]*)
12832 version_type=linux
12833 need_version=no
12834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12835 soname_spec='${libname}${release}${shared_ext}$major'
12836 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12837 shlibpath_var=LD_LIBRARY_PATH
12838 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12839 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12840 # the default ld.so.conf also contains /usr/contrib/lib and
12841 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12842 # libtool to hard-code these into programs
12843 ;;
12844
12845cygwin* | mingw* | pw32*)
12846 version_type=windows
12847 shrext_cmds=".dll"
12848 need_version=no
12849 need_lib_prefix=no
12850
12851 case $GCC,$host_os in
12852 yes,cygwin* | yes,mingw* | yes,pw32*)
12853 library_names_spec='$libname.dll.a'
12854 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12855 postinstall_cmds='base_file=`basename \${file}`~
12856 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12857 dldir=$destdir/`dirname \$dlpath`~
12858 test -d \$dldir || mkdir -p \$dldir~
12859 $install_prog $dir/$dlname \$dldir/$dlname~
12860 chmod a+x \$dldir/$dlname'
12861 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12862 dlpath=$dir/\$dldll~
12863 $rm \$dlpath'
12864 shlibpath_overrides_runpath=yes
12865
12866 case $host_os in
12867 cygwin*)
12868 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12869 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12870 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12871 ;;
12872 mingw*)
12873 # MinGW DLLs use traditional 'lib' prefix
12874 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12875 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12876 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12877 # It is most probably a Windows format PATH printed by
12878 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12879 # path with ; separators, and with drive letters. We can handle the
12880 # drive letters (cygwin fileutils understands them), so leave them,
12881 # especially as we might pass files found there to a mingw objdump,
12882 # which wouldn't understand a cygwinified path. Ahh.
12883 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12884 else
12885 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12886 fi
12887 ;;
12888 pw32*)
12889 # pw32 DLLs use 'pw' prefix rather than 'lib'
12890 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12891 ;;
12892 esac
12893 ;;
12894
12895 *)
12896 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12897 ;;
12898 esac
12899 dynamic_linker='Win32 ld.exe'
12900 # FIXME: first we should search . and the directory the executable is in
12901 shlibpath_var=PATH
12902 ;;
12903
12904darwin* | rhapsody*)
12905 dynamic_linker="$host_os dyld"
12906 version_type=darwin
12907 need_lib_prefix=no
12908 need_version=no
12909 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12910 soname_spec='${libname}${release}${major}$shared_ext'
12911 shlibpath_overrides_runpath=yes
12912 shlibpath_var=DYLD_LIBRARY_PATH
12913 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12914 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12915 if test "$GCC" = yes; then
12916 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12917 else
12918 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12919 fi
12920 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12921 ;;
12922
12923dgux*)
12924 version_type=linux
12925 need_lib_prefix=no
12926 need_version=no
12927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12928 soname_spec='${libname}${release}${shared_ext}$major'
12929 shlibpath_var=LD_LIBRARY_PATH
12930 ;;
12931
12932freebsd1*)
12933 dynamic_linker=no
12934 ;;
12935
12936kfreebsd*-gnu)
12937 version_type=linux
12938 need_lib_prefix=no
12939 need_version=no
12940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12941 soname_spec='${libname}${release}${shared_ext}$major'
12942 shlibpath_var=LD_LIBRARY_PATH
12943 shlibpath_overrides_runpath=no
12944 hardcode_into_libs=yes
12945 dynamic_linker='GNU ld.so'
12946 ;;
12947
12948freebsd* | dragonfly*)
12949 # DragonFly does not have aout. When/if they implement a new
12950 # versioning mechanism, adjust this.
12951 if test -x /usr/bin/objformat; then
12952 objformat=`/usr/bin/objformat`
12953 else
12954 case $host_os in
12955 freebsd[123]*) objformat=aout ;;
12956 *) objformat=elf ;;
12957 esac
12958 fi
12959 version_type=freebsd-$objformat
12960 case $version_type in
12961 freebsd-elf*)
12962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12963 need_version=no
12964 need_lib_prefix=no
12965 ;;
12966 freebsd-*)
12967 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12968 need_version=yes
12969 ;;
12970 esac
12971 shlibpath_var=LD_LIBRARY_PATH
12972 case $host_os in
12973 freebsd2*)
12974 shlibpath_overrides_runpath=yes
12975 ;;
12976 freebsd3.[01]* | freebsdelf3.[01]*)
12977 shlibpath_overrides_runpath=yes
12978 hardcode_into_libs=yes
12979 ;;
12980 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12981 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12982 shlibpath_overrides_runpath=no
12983 hardcode_into_libs=yes
12984 ;;
12985 freebsd*) # from 4.6 on
12986 shlibpath_overrides_runpath=yes
12987 hardcode_into_libs=yes
12988 ;;
12989 esac
12990 ;;
12991
12992gnu*)
12993 version_type=linux
12994 need_lib_prefix=no
12995 need_version=no
12996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12997 soname_spec='${libname}${release}${shared_ext}$major'
12998 shlibpath_var=LD_LIBRARY_PATH
12999 hardcode_into_libs=yes
13000 ;;
13001
13002hpux9* | hpux10* | hpux11*)
13003 # Give a soname corresponding to the major version so that dld.sl refuses to
13004 # link against other versions.
13005 version_type=sunos
13006 need_lib_prefix=no
13007 need_version=no
13008 case $host_cpu in
13009 ia64*)
13010 shrext_cmds='.so'
13011 hardcode_into_libs=yes
13012 dynamic_linker="$host_os dld.so"
13013 shlibpath_var=LD_LIBRARY_PATH
13014 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13016 soname_spec='${libname}${release}${shared_ext}$major'
13017 if test "X$HPUX_IA64_MODE" = X32; then
13018 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13019 else
13020 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13021 fi
13022 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13023 ;;
13024 hppa*64*)
13025 shrext_cmds='.sl'
13026 hardcode_into_libs=yes
13027 dynamic_linker="$host_os dld.sl"
13028 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13029 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13031 soname_spec='${libname}${release}${shared_ext}$major'
13032 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13034 ;;
13035 *)
13036 shrext_cmds='.sl'
13037 dynamic_linker="$host_os dld.sl"
13038 shlibpath_var=SHLIB_PATH
13039 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13041 soname_spec='${libname}${release}${shared_ext}$major'
13042 ;;
13043 esac
13044 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13045 postinstall_cmds='chmod 555 $lib'
13046 ;;
13047
13048interix3*)
13049 version_type=linux
13050 need_lib_prefix=no
13051 need_version=no
13052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13053 soname_spec='${libname}${release}${shared_ext}$major'
13054 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13055 shlibpath_var=LD_LIBRARY_PATH
13056 shlibpath_overrides_runpath=no
13057 hardcode_into_libs=yes
13058 ;;
13059
13060irix5* | irix6* | nonstopux*)
13061 case $host_os in
13062 nonstopux*) version_type=nonstopux ;;
13063 *)
13064 if test "$lt_cv_prog_gnu_ld" = yes; then
13065 version_type=linux
13066 else
13067 version_type=irix
13068 fi ;;
13069 esac
13070 need_lib_prefix=no
13071 need_version=no
13072 soname_spec='${libname}${release}${shared_ext}$major'
13073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13074 case $host_os in
13075 irix5* | nonstopux*)
13076 libsuff= shlibsuff=
13077 ;;
13078 *)
13079 case $LD in # libtool.m4 will add one of these switches to LD
13080 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13081 libsuff= shlibsuff= libmagic=32-bit;;
13082 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13083 libsuff=32 shlibsuff=N32 libmagic=N32;;
13084 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13085 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13086 *) libsuff= shlibsuff= libmagic=never-match;;
13087 esac
13088 ;;
13089 esac
13090 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13091 shlibpath_overrides_runpath=no
13092 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13093 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13094 hardcode_into_libs=yes
13095 ;;
13096
13097# No shared lib support for Linux oldld, aout, or coff.
13098linux*oldld* | linux*aout* | linux*coff*)
13099 dynamic_linker=no
13100 ;;
13101
13102# This must be Linux ELF.
13103linux*)
13104 version_type=linux
13105 need_lib_prefix=no
13106 need_version=no
13107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13108 soname_spec='${libname}${release}${shared_ext}$major'
13109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13110 shlibpath_var=LD_LIBRARY_PATH
13111 shlibpath_overrides_runpath=no
13112 # This implies no fast_install, which is unacceptable.
13113 # Some rework will be needed to allow for fast_install
13114 # before this can be enabled.
13115 hardcode_into_libs=yes
13116
13117 # find out which ABI we are using
13118 libsuff=
13119 case "$host_cpu" in
13120 x86_64*|s390x*|powerpc64*)
64ff59ba 13121 echo '#line 13121 "configure"' > conftest.$ac_ext
d9898ee8 13122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13123 (eval $ac_compile) 2>&5
13124 ac_status=$?
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; then
13127 case `/usr/bin/file conftest.$ac_objext` in
13128 *64-bit*)
13129 libsuff=64
13130 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13131 ;;
13132 esac
13133 fi
13134 rm -rf conftest*
13135 ;;
13136 esac
13137
13138 # Append ld.so.conf contents to the search path
13139 if test -f /etc/ld.so.conf; then
64ff59ba 13140 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 13141 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13142 fi
13143
13144 # We used to test for /lib/ld.so.1 and disable shared libraries on
13145 # powerpc, because MkLinux only supported shared libraries with the
13146 # GNU dynamic linker. Since this was broken with cross compilers,
13147 # most powerpc-linux boxes support dynamic linking these days and
13148 # people can always --disable-shared, the test was removed, and we
13149 # assume the GNU/Linux dynamic linker is in use.
13150 dynamic_linker='GNU/Linux ld.so'
13151 ;;
13152
13153knetbsd*-gnu)
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=no
13161 hardcode_into_libs=yes
13162 dynamic_linker='GNU ld.so'
13163 ;;
13164
13165netbsd*)
13166 version_type=sunos
13167 need_lib_prefix=no
13168 need_version=no
13169 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13172 dynamic_linker='NetBSD (a.out) ld.so'
13173 else
13174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13175 soname_spec='${libname}${release}${shared_ext}$major'
13176 dynamic_linker='NetBSD ld.elf_so'
13177 fi
13178 shlibpath_var=LD_LIBRARY_PATH
13179 shlibpath_overrides_runpath=yes
13180 hardcode_into_libs=yes
13181 ;;
13182
13183newsos6)
13184 version_type=linux
13185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13186 shlibpath_var=LD_LIBRARY_PATH
13187 shlibpath_overrides_runpath=yes
13188 ;;
13189
13190nto-qnx*)
13191 version_type=linux
13192 need_lib_prefix=no
13193 need_version=no
13194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13195 soname_spec='${libname}${release}${shared_ext}$major'
13196 shlibpath_var=LD_LIBRARY_PATH
13197 shlibpath_overrides_runpath=yes
13198 ;;
13199
13200openbsd*)
13201 version_type=sunos
13202 sys_lib_dlsearch_path_spec="/usr/lib"
13203 need_lib_prefix=no
13204 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13205 case $host_os in
13206 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13207 *) need_version=no ;;
13208 esac
13209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13211 shlibpath_var=LD_LIBRARY_PATH
13212 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13213 case $host_os in
13214 openbsd2.[89] | openbsd2.[89].*)
13215 shlibpath_overrides_runpath=no
13216 ;;
13217 *)
13218 shlibpath_overrides_runpath=yes
13219 ;;
13220 esac
13221 else
13222 shlibpath_overrides_runpath=yes
13223 fi
13224 ;;
13225
13226os2*)
13227 libname_spec='$name'
13228 shrext_cmds=".dll"
13229 need_lib_prefix=no
13230 library_names_spec='$libname${shared_ext} $libname.a'
13231 dynamic_linker='OS/2 ld.exe'
13232 shlibpath_var=LIBPATH
13233 ;;
13234
13235osf3* | osf4* | osf5*)
13236 version_type=osf
13237 need_lib_prefix=no
13238 need_version=no
13239 soname_spec='${libname}${release}${shared_ext}$major'
13240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13241 shlibpath_var=LD_LIBRARY_PATH
13242 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13243 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13244 ;;
13245
13246solaris*)
13247 version_type=linux
13248 need_lib_prefix=no
13249 need_version=no
13250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13251 soname_spec='${libname}${release}${shared_ext}$major'
13252 shlibpath_var=LD_LIBRARY_PATH
13253 shlibpath_overrides_runpath=yes
13254 hardcode_into_libs=yes
13255 # ldd complains unless libraries are executable
13256 postinstall_cmds='chmod +x $lib'
13257 ;;
13258
13259sunos4*)
13260 version_type=sunos
13261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13262 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13263 shlibpath_var=LD_LIBRARY_PATH
13264 shlibpath_overrides_runpath=yes
13265 if test "$with_gnu_ld" = yes; then
13266 need_lib_prefix=no
13267 fi
13268 need_version=yes
13269 ;;
13270
13271sysv4 | sysv4.3*)
13272 version_type=linux
13273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13274 soname_spec='${libname}${release}${shared_ext}$major'
13275 shlibpath_var=LD_LIBRARY_PATH
13276 case $host_vendor in
13277 sni)
13278 shlibpath_overrides_runpath=no
13279 need_lib_prefix=no
13280 export_dynamic_flag_spec='${wl}-Blargedynsym'
13281 runpath_var=LD_RUN_PATH
13282 ;;
13283 siemens)
13284 need_lib_prefix=no
13285 ;;
13286 motorola)
13287 need_lib_prefix=no
13288 need_version=no
13289 shlibpath_overrides_runpath=no
13290 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13291 ;;
13292 esac
13293 ;;
13294
13295sysv4*MP*)
13296 if test -d /usr/nec ;then
13297 version_type=linux
13298 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13299 soname_spec='$libname${shared_ext}.$major'
13300 shlibpath_var=LD_LIBRARY_PATH
13301 fi
13302 ;;
13303
13304sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13305 version_type=freebsd-elf
13306 need_lib_prefix=no
13307 need_version=no
13308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13309 soname_spec='${libname}${release}${shared_ext}$major'
13310 shlibpath_var=LD_LIBRARY_PATH
13311 hardcode_into_libs=yes
13312 if test "$with_gnu_ld" = yes; then
13313 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13314 shlibpath_overrides_runpath=no
13315 else
13316 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13317 shlibpath_overrides_runpath=yes
13318 case $host_os in
13319 sco3.2v5*)
13320 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13321 ;;
13322 esac
13323 fi
13324 sys_lib_dlsearch_path_spec='/usr/lib'
13325 ;;
13326
13327uts4*)
13328 version_type=linux
13329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13330 soname_spec='${libname}${release}${shared_ext}$major'
13331 shlibpath_var=LD_LIBRARY_PATH
13332 ;;
13333
13334*)
13335 dynamic_linker=no
13336 ;;
13337esac
64ff59ba 13338{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13339echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 13340test "$dynamic_linker" = no && can_build_shared=no
13341
13342variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13343if test "$GCC" = yes; then
13344 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13345fi
13346
64ff59ba 13347{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13348echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 13349hardcode_action_CXX=
13350if test -n "$hardcode_libdir_flag_spec_CXX" || \
13351 test -n "$runpath_var_CXX" || \
13352 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13353
13354 # We can hardcode non-existant directories.
13355 if test "$hardcode_direct_CXX" != no &&
13356 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13357 # have to relink, otherwise we might link with an installed library
13358 # when we should be linking with a yet-to-be-installed one
13359 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13360 test "$hardcode_minus_L_CXX" != no; then
13361 # Linking always hardcodes the temporary library directory.
13362 hardcode_action_CXX=relink
13363 else
13364 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13365 hardcode_action_CXX=immediate
13366 fi
13367else
13368 # We cannot hardcode anything, or else we can only hardcode existing
13369 # directories.
13370 hardcode_action_CXX=unsupported
13371fi
64ff59ba 13372{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13373echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d9898ee8 13374
13375if test "$hardcode_action_CXX" = relink; then
13376 # Fast installation is not supported
13377 enable_fast_install=no
13378elif test "$shlibpath_overrides_runpath" = yes ||
13379 test "$enable_shared" = no; then
13380 # Fast installation is not necessary
13381 enable_fast_install=needless
13382fi
13383
13384
13385# The else clause should only fire when bootstrapping the
13386# libtool distribution, otherwise you forgot to ship ltmain.sh
13387# with your package, and you will get complaints that there are
13388# no rules to generate ltmain.sh.
13389if test -f "$ltmain"; then
13390 # See if we are running on zsh, and set the options which allow our commands through
13391 # without removal of \ escapes.
13392 if test -n "${ZSH_VERSION+set}" ; then
13393 setopt NO_GLOB_SUBST
13394 fi
13395 # Now quote all the things that may contain metacharacters while being
13396 # careful not to overquote the AC_SUBSTed values. We take copies of the
13397 # variables and quote the copies for generation of the libtool script.
13398 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13399 SED SHELL STRIP \
13400 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13401 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13402 deplibs_check_method reload_flag reload_cmds need_locks \
13403 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13404 lt_cv_sys_global_symbol_to_c_name_address \
13405 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13406 old_postinstall_cmds old_postuninstall_cmds \
13407 compiler_CXX \
13408 CC_CXX \
13409 LD_CXX \
13410 lt_prog_compiler_wl_CXX \
13411 lt_prog_compiler_pic_CXX \
13412 lt_prog_compiler_static_CXX \
13413 lt_prog_compiler_no_builtin_flag_CXX \
13414 export_dynamic_flag_spec_CXX \
13415 thread_safe_flag_spec_CXX \
13416 whole_archive_flag_spec_CXX \
13417 enable_shared_with_static_runtimes_CXX \
13418 old_archive_cmds_CXX \
13419 old_archive_from_new_cmds_CXX \
13420 predep_objects_CXX \
13421 postdep_objects_CXX \
13422 predeps_CXX \
13423 postdeps_CXX \
13424 compiler_lib_search_path_CXX \
13425 archive_cmds_CXX \
13426 archive_expsym_cmds_CXX \
13427 postinstall_cmds_CXX \
13428 postuninstall_cmds_CXX \
13429 old_archive_from_expsyms_cmds_CXX \
13430 allow_undefined_flag_CXX \
13431 no_undefined_flag_CXX \
13432 export_symbols_cmds_CXX \
13433 hardcode_libdir_flag_spec_CXX \
13434 hardcode_libdir_flag_spec_ld_CXX \
13435 hardcode_libdir_separator_CXX \
13436 hardcode_automatic_CXX \
13437 module_cmds_CXX \
13438 module_expsym_cmds_CXX \
13439 lt_cv_prog_compiler_c_o_CXX \
13440 exclude_expsyms_CXX \
13441 include_expsyms_CXX; do
13442
13443 case $var in
13444 old_archive_cmds_CXX | \
13445 old_archive_from_new_cmds_CXX | \
13446 archive_cmds_CXX | \
13447 archive_expsym_cmds_CXX | \
13448 module_cmds_CXX | \
13449 module_expsym_cmds_CXX | \
13450 old_archive_from_expsyms_cmds_CXX | \
13451 export_symbols_cmds_CXX | \
13452 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13453 postinstall_cmds | postuninstall_cmds | \
13454 old_postinstall_cmds | old_postuninstall_cmds | \
13455 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13456 # Double-quote double-evaled strings.
13457 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13458 ;;
13459 *)
13460 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13461 ;;
13462 esac
13463 done
13464
13465 case $lt_echo in
13466 *'\$0 --fallback-echo"')
13467 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13468 ;;
13469 esac
13470
13471cfgfile="$ofile"
13472
13473 cat <<__EOF__ >> "$cfgfile"
13474# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13475
13476# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13477
13478# Shell to use when invoking shell scripts.
13479SHELL=$lt_SHELL
13480
13481# Whether or not to build shared libraries.
13482build_libtool_libs=$enable_shared
13483
13484# Whether or not to build static libraries.
13485build_old_libs=$enable_static
13486
13487# Whether or not to add -lc for building shared libraries.
13488build_libtool_need_lc=$archive_cmds_need_lc_CXX
13489
13490# Whether or not to disallow shared libs when runtime libs are static
13491allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13492
13493# Whether or not to optimize for fast installation.
13494fast_install=$enable_fast_install
13495
13496# The host system.
13497host_alias=$host_alias
13498host=$host
13499host_os=$host_os
13500
13501# The build system.
13502build_alias=$build_alias
13503build=$build
13504build_os=$build_os
13505
13506# An echo program that does not interpret backslashes.
13507echo=$lt_echo
13508
13509# The archiver.
13510AR=$lt_AR
13511AR_FLAGS=$lt_AR_FLAGS
13512
13513# A C compiler.
13514LTCC=$lt_LTCC
13515
13516# LTCC compiler flags.
13517LTCFLAGS=$lt_LTCFLAGS
13518
13519# A language-specific compiler.
13520CC=$lt_compiler_CXX
13521
13522# Is the compiler the GNU C compiler?
13523with_gcc=$GCC_CXX
13524
d9898ee8 13525# An ERE matcher.
13526EGREP=$lt_EGREP
13527
13528# The linker used to build libraries.
13529LD=$lt_LD_CXX
13530
13531# Whether we need hard or soft links.
13532LN_S=$lt_LN_S
13533
13534# A BSD-compatible nm program.
13535NM=$lt_NM
13536
13537# A symbol stripping program
13538STRIP=$lt_STRIP
13539
13540# Used to examine libraries when file_magic_cmd begins "file"
13541MAGIC_CMD=$MAGIC_CMD
13542
13543# Used on cygwin: DLL creation program.
13544DLLTOOL="$DLLTOOL"
13545
13546# Used on cygwin: object dumper.
13547OBJDUMP="$OBJDUMP"
13548
13549# Used on cygwin: assembler.
13550AS="$AS"
13551
13552# The name of the directory that contains temporary libtool files.
13553objdir=$objdir
13554
13555# How to create reloadable object files.
13556reload_flag=$lt_reload_flag
13557reload_cmds=$lt_reload_cmds
13558
13559# How to pass a linker flag through the compiler.
13560wl=$lt_lt_prog_compiler_wl_CXX
13561
13562# Object file suffix (normally "o").
13563objext="$ac_objext"
13564
13565# Old archive suffix (normally "a").
13566libext="$libext"
13567
13568# Shared library suffix (normally ".so").
13569shrext_cmds='$shrext_cmds'
13570
13571# Executable file suffix (normally "").
13572exeext="$exeext"
13573
13574# Additional compiler flags for building library objects.
13575pic_flag=$lt_lt_prog_compiler_pic_CXX
13576pic_mode=$pic_mode
13577
13578# What is the maximum length of a command?
13579max_cmd_len=$lt_cv_sys_max_cmd_len
13580
13581# Does compiler simultaneously support -c and -o options?
13582compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13583
13584# Must we lock files when doing compilation?
13585need_locks=$lt_need_locks
13586
13587# Do we need the lib prefix for modules?
13588need_lib_prefix=$need_lib_prefix
13589
13590# Do we need a version for libraries?
13591need_version=$need_version
13592
13593# Whether dlopen is supported.
13594dlopen_support=$enable_dlopen
13595
13596# Whether dlopen of programs is supported.
13597dlopen_self=$enable_dlopen_self
13598
13599# Whether dlopen of statically linked programs is supported.
13600dlopen_self_static=$enable_dlopen_self_static
13601
13602# Compiler flag to prevent dynamic linking.
13603link_static_flag=$lt_lt_prog_compiler_static_CXX
13604
13605# Compiler flag to turn off builtin functions.
13606no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13607
13608# Compiler flag to allow reflexive dlopens.
13609export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13610
13611# Compiler flag to generate shared objects directly from archives.
13612whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13613
13614# Compiler flag to generate thread-safe objects.
13615thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13616
13617# Library versioning type.
13618version_type=$version_type
13619
13620# Format of library name prefix.
13621libname_spec=$lt_libname_spec
13622
13623# List of archive names. First name is the real one, the rest are links.
13624# The last name is the one that the linker finds with -lNAME.
13625library_names_spec=$lt_library_names_spec
13626
13627# The coded name of the library, if different from the real name.
13628soname_spec=$lt_soname_spec
13629
13630# Commands used to build and install an old-style archive.
13631RANLIB=$lt_RANLIB
13632old_archive_cmds=$lt_old_archive_cmds_CXX
13633old_postinstall_cmds=$lt_old_postinstall_cmds
13634old_postuninstall_cmds=$lt_old_postuninstall_cmds
13635
13636# Create an old-style archive from a shared archive.
13637old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13638
13639# Create a temporary old-style archive to link instead of a shared archive.
13640old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13641
13642# Commands used to build and install a shared archive.
13643archive_cmds=$lt_archive_cmds_CXX
13644archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13645postinstall_cmds=$lt_postinstall_cmds
13646postuninstall_cmds=$lt_postuninstall_cmds
13647
13648# Commands used to build a loadable module (assumed same as above if empty)
13649module_cmds=$lt_module_cmds_CXX
13650module_expsym_cmds=$lt_module_expsym_cmds_CXX
13651
13652# Commands to strip libraries.
13653old_striplib=$lt_old_striplib
13654striplib=$lt_striplib
13655
13656# Dependencies to place before the objects being linked to create a
13657# shared library.
64ff59ba 13658predep_objects=$lt_predep_objects_CXX
d9898ee8 13659
13660# Dependencies to place after the objects being linked to create a
13661# shared library.
64ff59ba 13662postdep_objects=$lt_postdep_objects_CXX
d9898ee8 13663
13664# Dependencies to place before the objects being linked to create a
13665# shared library.
13666predeps=$lt_predeps_CXX
13667
13668# Dependencies to place after the objects being linked to create a
13669# shared library.
13670postdeps=$lt_postdeps_CXX
13671
13672# The library search path used internally by the compiler when linking
13673# a shared library.
64ff59ba 13674compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d9898ee8 13675
13676# Method to check whether dependent libraries are shared objects.
13677deplibs_check_method=$lt_deplibs_check_method
13678
13679# Command to use when deplibs_check_method == file_magic.
13680file_magic_cmd=$lt_file_magic_cmd
13681
13682# Flag that allows shared libraries with undefined symbols to be built.
13683allow_undefined_flag=$lt_allow_undefined_flag_CXX
13684
13685# Flag that forces no undefined symbols.
13686no_undefined_flag=$lt_no_undefined_flag_CXX
13687
13688# Commands used to finish a libtool library installation in a directory.
13689finish_cmds=$lt_finish_cmds
13690
13691# Same as above, but a single script fragment to be evaled but not shown.
13692finish_eval=$lt_finish_eval
13693
13694# Take the output of nm and produce a listing of raw symbols and C names.
13695global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13696
13697# Transform the output of nm in a proper C declaration
13698global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13699
13700# Transform the output of nm in a C name address pair
13701global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13702
13703# This is the shared library runtime path variable.
13704runpath_var=$runpath_var
13705
13706# This is the shared library path variable.
13707shlibpath_var=$shlibpath_var
13708
13709# Is shlibpath searched before the hard-coded library search path?
13710shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13711
13712# How to hardcode a shared library path into an executable.
13713hardcode_action=$hardcode_action_CXX
13714
13715# Whether we should hardcode library paths into libraries.
13716hardcode_into_libs=$hardcode_into_libs
13717
13718# Flag to hardcode \$libdir into a binary during linking.
13719# This must work even if \$libdir does not exist.
13720hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13721
13722# If ld is used when linking, flag to hardcode \$libdir into
13723# a binary during linking. This must work even if \$libdir does
13724# not exist.
13725hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13726
13727# Whether we need a single -rpath flag with a separated argument.
13728hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13729
13730# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13731# resulting binary.
13732hardcode_direct=$hardcode_direct_CXX
13733
13734# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13735# resulting binary.
13736hardcode_minus_L=$hardcode_minus_L_CXX
13737
13738# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13739# the resulting binary.
13740hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13741
13742# Set to yes if building a shared library automatically hardcodes DIR into the library
13743# and all subsequent libraries and executables linked against it.
13744hardcode_automatic=$hardcode_automatic_CXX
13745
13746# Variables whose values should be saved in libtool wrapper scripts and
13747# restored at relink time.
13748variables_saved_for_relink="$variables_saved_for_relink"
13749
13750# Whether libtool must link a program against all its dependency libraries.
13751link_all_deplibs=$link_all_deplibs_CXX
13752
13753# Compile-time system search path for libraries
64ff59ba 13754sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 13755
13756# Run-time system search path for libraries
13757sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13758
13759# Fix the shell variable \$srcfile for the compiler.
13760fix_srcfile_path="$fix_srcfile_path_CXX"
13761
13762# Set to yes if exported symbols are required.
13763always_export_symbols=$always_export_symbols_CXX
13764
13765# The commands to list exported symbols.
13766export_symbols_cmds=$lt_export_symbols_cmds_CXX
13767
13768# The commands to extract the exported symbol list from a shared archive.
13769extract_expsyms_cmds=$lt_extract_expsyms_cmds
13770
13771# Symbols that should not be listed in the preloaded symbols.
13772exclude_expsyms=$lt_exclude_expsyms_CXX
13773
13774# Symbols that must always be exported.
13775include_expsyms=$lt_include_expsyms_CXX
13776
13777# ### END LIBTOOL TAG CONFIG: $tagname
13778
13779__EOF__
13780
13781
13782else
13783 # If there is no Makefile yet, we rely on a make rule to execute
13784 # `config.status --recheck' to rerun these tests and create the
13785 # libtool script then.
13786 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13787 if test -f "$ltmain_in"; then
13788 test -f Makefile && make "$ltmain"
13789 fi
13790fi
13791
13792
13793ac_ext=c
13794ac_cpp='$CPP $CPPFLAGS'
13795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13797ac_compiler_gnu=$ac_cv_c_compiler_gnu
13798
13799CC=$lt_save_CC
13800LDCXX=$LD
13801LD=$lt_save_LD
13802GCC=$lt_save_GCC
13803with_gnu_ldcxx=$with_gnu_ld
13804with_gnu_ld=$lt_save_with_gnu_ld
13805lt_cv_path_LDCXX=$lt_cv_path_LD
13806lt_cv_path_LD=$lt_save_path_LD
13807lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13808lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13809
13810 else
13811 tagname=""
13812 fi
13813 ;;
13814
13815 F77)
13816 if test -n "$F77" && test "X$F77" != "Xno"; then
13817
13818ac_ext=f
13819ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13820ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13821ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13822
13823
13824archive_cmds_need_lc_F77=no
13825allow_undefined_flag_F77=
13826always_export_symbols_F77=no
13827archive_expsym_cmds_F77=
13828export_dynamic_flag_spec_F77=
13829hardcode_direct_F77=no
13830hardcode_libdir_flag_spec_F77=
13831hardcode_libdir_flag_spec_ld_F77=
13832hardcode_libdir_separator_F77=
13833hardcode_minus_L_F77=no
13834hardcode_automatic_F77=no
13835module_cmds_F77=
13836module_expsym_cmds_F77=
13837link_all_deplibs_F77=unknown
13838old_archive_cmds_F77=$old_archive_cmds
13839no_undefined_flag_F77=
13840whole_archive_flag_spec_F77=
13841enable_shared_with_static_runtimes_F77=no
13842
13843# Source file extension for f77 test sources.
13844ac_ext=f
13845
13846# Object file extension for compiled f77 test sources.
13847objext=o
13848objext_F77=$objext
13849
13850# Code to be used in simple compile tests
13851lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13852
13853# Code to be used in simple link tests
13854lt_simple_link_test_code=" program t\n end\n"
13855
13856# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13857
13858# If no C compiler was specified, use CC.
13859LTCC=${LTCC-"$CC"}
13860
13861# If no C compiler flags were specified, use CFLAGS.
13862LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13863
13864# Allow CC to be a program name with arguments.
13865compiler=$CC
13866
13867
13868# save warnings/boilerplate of simple test code
13869ac_outfile=conftest.$ac_objext
13870printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13871eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13872_lt_compiler_boilerplate=`cat conftest.err`
13873$rm conftest*
13874
13875ac_outfile=conftest.$ac_objext
13876printf "$lt_simple_link_test_code" >conftest.$ac_ext
13877eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13878_lt_linker_boilerplate=`cat conftest.err`
13879$rm conftest*
13880
13881
13882# Allow CC to be a program name with arguments.
13883lt_save_CC="$CC"
13884CC=${F77-"f77"}
13885compiler=$CC
13886compiler_F77=$CC
13887for cc_temp in $compiler""; do
13888 case $cc_temp in
13889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13891 \-*) ;;
13892 *) break;;
13893 esac
13894done
13895cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13896
13897
64ff59ba 13898{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13899echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13900{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13901echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 13902
64ff59ba 13903{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13904echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 13905test "$can_build_shared" = "no" && enable_shared=no
13906
13907# On AIX, shared libraries and static libraries use the same namespace, and
13908# are all built from PIC.
13909case $host_os in
13910aix3*)
13911 test "$enable_shared" = yes && enable_static=no
13912 if test -n "$RANLIB"; then
13913 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13914 postinstall_cmds='$RANLIB $lib'
13915 fi
13916 ;;
13917aix4* | aix5*)
13918 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13919 test "$enable_shared" = yes && enable_static=no
13920 fi
13921 ;;
13922esac
64ff59ba 13923{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13924echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 13925
64ff59ba 13926{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13927echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 13928# Make sure either enable_shared or enable_static is yes.
13929test "$enable_shared" = yes || enable_static=yes
64ff59ba 13930{ echo "$as_me:$LINENO: result: $enable_static" >&5
13931echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 13932
13933GCC_F77="$G77"
13934LD_F77="$LD"
13935
13936lt_prog_compiler_wl_F77=
13937lt_prog_compiler_pic_F77=
13938lt_prog_compiler_static_F77=
13939
64ff59ba 13940{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13941echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 13942
13943 if test "$GCC" = yes; then
13944 lt_prog_compiler_wl_F77='-Wl,'
13945 lt_prog_compiler_static_F77='-static'
13946
13947 case $host_os in
13948 aix*)
13949 # All AIX code is PIC.
13950 if test "$host_cpu" = ia64; then
13951 # AIX 5 now supports IA64 processor
13952 lt_prog_compiler_static_F77='-Bstatic'
13953 fi
13954 ;;
13955
13956 amigaos*)
13957 # FIXME: we need at least 68020 code to build shared libraries, but
13958 # adding the `-m68020' flag to GCC prevents building anything better,
13959 # like `-m68040'.
13960 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13961 ;;
13962
13963 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13964 # PIC is the default for these OSes.
13965 ;;
13966
13967 mingw* | pw32* | os2*)
13968 # This hack is so that the source file can tell whether it is being
13969 # built for inclusion in a dll (and should export symbols for example).
13970 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13971 ;;
13972
13973 darwin* | rhapsody*)
13974 # PIC is the default on this platform
13975 # Common symbols not allowed in MH_DYLIB files
13976 lt_prog_compiler_pic_F77='-fno-common'
13977 ;;
13978
13979 interix3*)
13980 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13981 # Instead, we relocate shared libraries at runtime.
13982 ;;
13983
13984 msdosdjgpp*)
13985 # Just because we use GCC doesn't mean we suddenly get shared libraries
13986 # on systems that don't support them.
13987 lt_prog_compiler_can_build_shared_F77=no
13988 enable_shared=no
13989 ;;
13990
13991 sysv4*MP*)
13992 if test -d /usr/nec; then
13993 lt_prog_compiler_pic_F77=-Kconform_pic
13994 fi
13995 ;;
13996
13997 hpux*)
13998 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13999 # not for PA HP-UX.
14000 case $host_cpu in
14001 hppa*64*|ia64*)
14002 # +Z the default
14003 ;;
14004 *)
14005 lt_prog_compiler_pic_F77='-fPIC'
14006 ;;
14007 esac
14008 ;;
14009
14010 *)
14011 lt_prog_compiler_pic_F77='-fPIC'
14012 ;;
14013 esac
14014 else
14015 # PORTME Check for flag to pass linker flags through the system compiler.
14016 case $host_os in
14017 aix*)
14018 lt_prog_compiler_wl_F77='-Wl,'
14019 if test "$host_cpu" = ia64; then
14020 # AIX 5 now supports IA64 processor
14021 lt_prog_compiler_static_F77='-Bstatic'
14022 else
14023 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14024 fi
14025 ;;
14026 darwin*)
14027 # PIC is the default on this platform
14028 # Common symbols not allowed in MH_DYLIB files
14029 case $cc_basename in
14030 xlc*)
14031 lt_prog_compiler_pic_F77='-qnocommon'
14032 lt_prog_compiler_wl_F77='-Wl,'
14033 ;;
14034 esac
14035 ;;
14036
14037 mingw* | pw32* | os2*)
14038 # This hack is so that the source file can tell whether it is being
14039 # built for inclusion in a dll (and should export symbols for example).
14040 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14041 ;;
14042
14043 hpux9* | hpux10* | hpux11*)
14044 lt_prog_compiler_wl_F77='-Wl,'
14045 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14046 # not for PA HP-UX.
14047 case $host_cpu in
14048 hppa*64*|ia64*)
14049 # +Z the default
14050 ;;
14051 *)
14052 lt_prog_compiler_pic_F77='+Z'
14053 ;;
14054 esac
14055 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14056 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14057 ;;
14058
14059 irix5* | irix6* | nonstopux*)
14060 lt_prog_compiler_wl_F77='-Wl,'
14061 # PIC (with -KPIC) is the default.
14062 lt_prog_compiler_static_F77='-non_shared'
14063 ;;
14064
14065 newsos6)
14066 lt_prog_compiler_pic_F77='-KPIC'
14067 lt_prog_compiler_static_F77='-Bstatic'
14068 ;;
14069
14070 linux*)
14071 case $cc_basename in
14072 icc* | ecc*)
14073 lt_prog_compiler_wl_F77='-Wl,'
14074 lt_prog_compiler_pic_F77='-KPIC'
14075 lt_prog_compiler_static_F77='-static'
14076 ;;
14077 pgcc* | pgf77* | pgf90* | pgf95*)
14078 # Portland Group compilers (*not* the Pentium gcc compiler,
14079 # which looks to be a dead project)
14080 lt_prog_compiler_wl_F77='-Wl,'
14081 lt_prog_compiler_pic_F77='-fpic'
14082 lt_prog_compiler_static_F77='-Bstatic'
14083 ;;
14084 ccc*)
14085 lt_prog_compiler_wl_F77='-Wl,'
14086 # All Alpha code is PIC.
14087 lt_prog_compiler_static_F77='-non_shared'
14088 ;;
14089 esac
14090 ;;
14091
14092 osf3* | osf4* | osf5*)
14093 lt_prog_compiler_wl_F77='-Wl,'
14094 # All OSF/1 code is PIC.
14095 lt_prog_compiler_static_F77='-non_shared'
14096 ;;
14097
14098 solaris*)
14099 lt_prog_compiler_pic_F77='-KPIC'
14100 lt_prog_compiler_static_F77='-Bstatic'
14101 case $cc_basename in
14102 f77* | f90* | f95*)
14103 lt_prog_compiler_wl_F77='-Qoption ld ';;
14104 *)
14105 lt_prog_compiler_wl_F77='-Wl,';;
14106 esac
14107 ;;
14108
14109 sunos4*)
14110 lt_prog_compiler_wl_F77='-Qoption ld '
14111 lt_prog_compiler_pic_F77='-PIC'
14112 lt_prog_compiler_static_F77='-Bstatic'
14113 ;;
14114
14115 sysv4 | sysv4.2uw2* | sysv4.3*)
14116 lt_prog_compiler_wl_F77='-Wl,'
14117 lt_prog_compiler_pic_F77='-KPIC'
14118 lt_prog_compiler_static_F77='-Bstatic'
14119 ;;
14120
14121 sysv4*MP*)
14122 if test -d /usr/nec ;then
14123 lt_prog_compiler_pic_F77='-Kconform_pic'
14124 lt_prog_compiler_static_F77='-Bstatic'
14125 fi
14126 ;;
14127
14128 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14129 lt_prog_compiler_wl_F77='-Wl,'
14130 lt_prog_compiler_pic_F77='-KPIC'
14131 lt_prog_compiler_static_F77='-Bstatic'
14132 ;;
14133
14134 unicos*)
14135 lt_prog_compiler_wl_F77='-Wl,'
14136 lt_prog_compiler_can_build_shared_F77=no
14137 ;;
14138
14139 uts4*)
14140 lt_prog_compiler_pic_F77='-pic'
14141 lt_prog_compiler_static_F77='-Bstatic'
14142 ;;
14143
14144 *)
14145 lt_prog_compiler_can_build_shared_F77=no
14146 ;;
14147 esac
14148 fi
14149
64ff59ba 14150{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14151echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d9898ee8 14152
14153#
14154# Check to make sure the PIC flag actually works.
14155#
14156if test -n "$lt_prog_compiler_pic_F77"; then
14157
64ff59ba 14158{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14159echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
d9898ee8 14160if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14162else
14163 lt_prog_compiler_pic_works_F77=no
14164 ac_outfile=conftest.$ac_objext
14165 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14166 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14167 # Insert the option either (1) after the last *FLAGS variable, or
14168 # (2) before a word containing "conftest.", or (3) at the end.
14169 # Note that $ac_compile itself does not contain backslashes and begins
14170 # with a dollar sign (not a hyphen), so the echo should work correctly.
14171 # The option is referenced via a variable to avoid confusing sed.
14172 lt_compile=`echo "$ac_compile" | $SED \
14173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14175 -e 's:$: $lt_compiler_flag:'`
64ff59ba 14176 (eval echo "\"\$as_me:14176: $lt_compile\"" >&5)
d9898ee8 14177 (eval "$lt_compile" 2>conftest.err)
14178 ac_status=$?
14179 cat conftest.err >&5
64ff59ba 14180 echo "$as_me:14180: \$? = $ac_status" >&5
d9898ee8 14181 if (exit $ac_status) && test -s "$ac_outfile"; then
14182 # The compiler can only warn and ignore the option if not recognized
14183 # So say no if there are warnings other than the usual output.
14184 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14186 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14187 lt_prog_compiler_pic_works_F77=yes
14188 fi
14189 fi
14190 $rm conftest*
14191
14192fi
64ff59ba 14193{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14194echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d9898ee8 14195
14196if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14197 case $lt_prog_compiler_pic_F77 in
14198 "" | " "*) ;;
14199 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14200 esac
14201else
14202 lt_prog_compiler_pic_F77=
14203 lt_prog_compiler_can_build_shared_F77=no
14204fi
14205
14206fi
14207case $host_os in
14208 # For platforms which do not support PIC, -DPIC is meaningless:
14209 *djgpp*)
14210 lt_prog_compiler_pic_F77=
14211 ;;
14212 *)
14213 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14214 ;;
14215esac
14216
14217#
14218# Check to make sure the static flag actually works.
14219#
14220wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
64ff59ba 14221{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14222echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 14223if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14225else
14226 lt_prog_compiler_static_works_F77=no
14227 save_LDFLAGS="$LDFLAGS"
14228 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14229 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14230 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14231 # The linker can only warn and ignore the option if not recognized
14232 # So say no if there are warnings
14233 if test -s conftest.err; then
14234 # Append any errors to the config.log.
14235 cat conftest.err 1>&5
14236 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14237 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14238 if diff conftest.exp conftest.er2 >/dev/null; then
14239 lt_prog_compiler_static_works_F77=yes
14240 fi
14241 else
14242 lt_prog_compiler_static_works_F77=yes
14243 fi
14244 fi
14245 $rm conftest*
14246 LDFLAGS="$save_LDFLAGS"
14247
14248fi
64ff59ba 14249{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14250echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
d9898ee8 14251
14252if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14253 :
14254else
14255 lt_prog_compiler_static_F77=
14256fi
14257
14258
64ff59ba 14259{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14260echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 14261if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14263else
14264 lt_cv_prog_compiler_c_o_F77=no
14265 $rm -r conftest 2>/dev/null
14266 mkdir conftest
14267 cd conftest
14268 mkdir out
14269 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14270
14271 lt_compiler_flag="-o out/conftest2.$ac_objext"
14272 # Insert the option either (1) after the last *FLAGS variable, or
14273 # (2) before a word containing "conftest.", or (3) at the end.
14274 # Note that $ac_compile itself does not contain backslashes and begins
14275 # with a dollar sign (not a hyphen), so the echo should work correctly.
14276 lt_compile=`echo "$ac_compile" | $SED \
14277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14279 -e 's:$: $lt_compiler_flag:'`
64ff59ba 14280 (eval echo "\"\$as_me:14280: $lt_compile\"" >&5)
d9898ee8 14281 (eval "$lt_compile" 2>out/conftest.err)
14282 ac_status=$?
14283 cat out/conftest.err >&5
64ff59ba 14284 echo "$as_me:14284: \$? = $ac_status" >&5
d9898ee8 14285 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14286 then
14287 # The compiler can only warn and ignore the option if not recognized
14288 # So say no if there are warnings
14289 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14290 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14291 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14292 lt_cv_prog_compiler_c_o_F77=yes
14293 fi
14294 fi
14295 chmod u+w . 2>&5
14296 $rm conftest*
14297 # SGI C++ compiler will create directory out/ii_files/ for
14298 # template instantiation
14299 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14300 $rm out/* && rmdir out
14301 cd ..
14302 rmdir conftest
14303 $rm conftest*
14304
14305fi
64ff59ba 14306{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14307echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d9898ee8 14308
14309
14310hard_links="nottested"
14311if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14312 # do not overwrite the value of need_locks provided by the user
64ff59ba 14313 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14314echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 14315 hard_links=yes
14316 $rm conftest*
14317 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14318 touch conftest.a
14319 ln conftest.a conftest.b 2>&5 || hard_links=no
14320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 14321 { echo "$as_me:$LINENO: result: $hard_links" >&5
14322echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 14323 if test "$hard_links" = no; then
14324 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14325echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14326 need_locks=warn
14327 fi
14328else
14329 need_locks=no
14330fi
14331
64ff59ba 14332{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14333echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 14334
14335 runpath_var=
14336 allow_undefined_flag_F77=
14337 enable_shared_with_static_runtimes_F77=no
14338 archive_cmds_F77=
14339 archive_expsym_cmds_F77=
14340 old_archive_From_new_cmds_F77=
14341 old_archive_from_expsyms_cmds_F77=
14342 export_dynamic_flag_spec_F77=
14343 whole_archive_flag_spec_F77=
14344 thread_safe_flag_spec_F77=
14345 hardcode_libdir_flag_spec_F77=
14346 hardcode_libdir_flag_spec_ld_F77=
14347 hardcode_libdir_separator_F77=
14348 hardcode_direct_F77=no
14349 hardcode_minus_L_F77=no
14350 hardcode_shlibpath_var_F77=unsupported
14351 link_all_deplibs_F77=unknown
14352 hardcode_automatic_F77=no
14353 module_cmds_F77=
14354 module_expsym_cmds_F77=
14355 always_export_symbols_F77=no
14356 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14357 # include_expsyms should be a list of space-separated symbols to be *always*
14358 # included in the symbol list
14359 include_expsyms_F77=
14360 # exclude_expsyms can be an extended regexp of symbols to exclude
14361 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14362 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14363 # as well as any symbol that contains `d'.
14364 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14365 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14366 # platforms (ab)use it in PIC code, but their linkers get confused if
14367 # the symbol is explicitly referenced. Since portable code cannot
14368 # rely on this symbol name, it's probably fine to never include it in
14369 # preloaded symbol tables.
14370 extract_expsyms_cmds=
14371 # Just being paranoid about ensuring that cc_basename is set.
14372 for cc_temp in $compiler""; do
14373 case $cc_temp in
14374 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14375 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14376 \-*) ;;
14377 *) break;;
14378 esac
14379done
14380cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14381
14382 case $host_os in
14383 cygwin* | mingw* | pw32*)
14384 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14385 # When not using gcc, we currently assume that we are using
14386 # Microsoft Visual C++.
14387 if test "$GCC" != yes; then
14388 with_gnu_ld=no
14389 fi
14390 ;;
14391 interix*)
14392 # we just hope/assume this is gcc and not c89 (= MSVC++)
14393 with_gnu_ld=yes
14394 ;;
14395 openbsd*)
14396 with_gnu_ld=no
14397 ;;
14398 esac
14399
14400 ld_shlibs_F77=yes
14401 if test "$with_gnu_ld" = yes; then
14402 # If archive_cmds runs LD, not CC, wlarc should be empty
14403 wlarc='${wl}'
14404
14405 # Set some defaults for GNU ld with shared library support. These
14406 # are reset later if shared libraries are not supported. Putting them
14407 # here allows them to be overridden if necessary.
14408 runpath_var=LD_RUN_PATH
14409 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14410 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14411 # ancient GNU ld didn't support --whole-archive et. al.
14412 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14413 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14414 else
14415 whole_archive_flag_spec_F77=
14416 fi
14417 supports_anon_versioning=no
14418 case `$LD -v 2>/dev/null` in
14419 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14420 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14421 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14422 *\ 2.11.*) ;; # other 2.11 versions
14423 *) supports_anon_versioning=yes ;;
14424 esac
14425
14426 # See if GNU ld supports shared libraries.
14427 case $host_os in
14428 aix3* | aix4* | aix5*)
14429 # On AIX/PPC, the GNU linker is very broken
14430 if test "$host_cpu" != ia64; then
14431 ld_shlibs_F77=no
14432 cat <<EOF 1>&2
14433
14434*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14435*** to be unable to reliably create shared libraries on AIX.
14436*** Therefore, libtool is disabling shared libraries support. If you
14437*** really care for shared libraries, you may want to modify your PATH
14438*** so that a non-GNU linker is found, and then restart.
14439
14440EOF
14441 fi
14442 ;;
14443
14444 amigaos*)
14445 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)'
14446 hardcode_libdir_flag_spec_F77='-L$libdir'
14447 hardcode_minus_L_F77=yes
14448
14449 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14450 # that the semantics of dynamic libraries on AmigaOS, at least up
14451 # to version 4, is to share data among multiple programs linked
14452 # with the same dynamic library. Since this doesn't match the
14453 # behavior of shared libraries on other platforms, we can't use
14454 # them.
14455 ld_shlibs_F77=no
14456 ;;
14457
14458 beos*)
14459 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14460 allow_undefined_flag_F77=unsupported
14461 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14462 # support --undefined. This deserves some investigation. FIXME
14463 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14464 else
14465 ld_shlibs_F77=no
14466 fi
14467 ;;
14468
14469 cygwin* | mingw* | pw32*)
14470 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14471 # as there is no search path for DLLs.
14472 hardcode_libdir_flag_spec_F77='-L$libdir'
14473 allow_undefined_flag_F77=unsupported
14474 always_export_symbols_F77=no
14475 enable_shared_with_static_runtimes_F77=yes
14476 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14477
14478 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14479 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14480 # If the export-symbols file already is a .def file (1st line
14481 # is EXPORTS), use it as is; otherwise, prepend...
14482 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14483 cp $export_symbols $output_objdir/$soname.def;
14484 else
14485 echo EXPORTS > $output_objdir/$soname.def;
14486 cat $export_symbols >> $output_objdir/$soname.def;
14487 fi~
14488 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14489 else
14490 ld_shlibs_F77=no
14491 fi
14492 ;;
14493
14494 interix3*)
14495 hardcode_direct_F77=no
14496 hardcode_shlibpath_var_F77=no
14497 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14498 export_dynamic_flag_spec_F77='${wl}-E'
14499 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14500 # Instead, shared libraries are loaded at an image base (0x10000000 by
14501 # default) and relocated if they conflict, which is a slow very memory
14502 # consuming and fragmenting process. To avoid this, we pick a random,
14503 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14504 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14505 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'
14506 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'
14507 ;;
14508
14509 linux*)
14510 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14511 tmp_addflag=
14512 case $cc_basename,$host_cpu in
14513 pgcc*) # Portland Group C compiler
14514 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'
14515 tmp_addflag=' $pic_flag'
14516 ;;
14517 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14518 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'
14519 tmp_addflag=' $pic_flag -Mnomain' ;;
14520 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14521 tmp_addflag=' -i_dynamic' ;;
14522 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14523 tmp_addflag=' -i_dynamic -nofor_main' ;;
14524 ifc* | ifort*) # Intel Fortran compiler
14525 tmp_addflag=' -nofor_main' ;;
14526 esac
14527 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14528
14529 if test $supports_anon_versioning = yes; then
14530 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14531 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14532 $echo "local: *; };" >> $output_objdir/$libname.ver~
14533 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14534 fi
14535 else
14536 ld_shlibs_F77=no
14537 fi
14538 ;;
14539
14540 netbsd*)
14541 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14542 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14543 wlarc=
14544 else
14545 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14546 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14547 fi
14548 ;;
14549
14550 solaris*)
14551 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14552 ld_shlibs_F77=no
14553 cat <<EOF 1>&2
14554
14555*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14556*** create shared libraries on Solaris systems. Therefore, libtool
14557*** is disabling shared libraries support. We urge you to upgrade GNU
14558*** binutils to release 2.9.1 or newer. Another option is to modify
14559*** your PATH or compiler configuration so that the native linker is
14560*** used, and then restart.
14561
14562EOF
14563 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14564 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14565 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14566 else
14567 ld_shlibs_F77=no
14568 fi
14569 ;;
14570
14571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14572 case `$LD -v 2>&1` in
14573 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14574 ld_shlibs_F77=no
14575 cat <<_LT_EOF 1>&2
14576
14577*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14578*** reliably create shared libraries on SCO systems. Therefore, libtool
14579*** is disabling shared libraries support. We urge you to upgrade GNU
14580*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14581*** your PATH or compiler configuration so that the native linker is
14582*** used, and then restart.
14583
14584_LT_EOF
14585 ;;
14586 *)
14587 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14588 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14589 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14590 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14591 else
14592 ld_shlibs_F77=no
14593 fi
14594 ;;
14595 esac
14596 ;;
14597
14598 sunos4*)
14599 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14600 wlarc=
14601 hardcode_direct_F77=yes
14602 hardcode_shlibpath_var_F77=no
14603 ;;
14604
14605 *)
14606 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14607 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14608 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14609 else
14610 ld_shlibs_F77=no
14611 fi
14612 ;;
14613 esac
14614
14615 if test "$ld_shlibs_F77" = no; then
14616 runpath_var=
14617 hardcode_libdir_flag_spec_F77=
14618 export_dynamic_flag_spec_F77=
14619 whole_archive_flag_spec_F77=
14620 fi
14621 else
14622 # PORTME fill in a description of your system's linker (not GNU ld)
14623 case $host_os in
14624 aix3*)
14625 allow_undefined_flag_F77=unsupported
14626 always_export_symbols_F77=yes
14627 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'
14628 # Note: this linker hardcodes the directories in LIBPATH if there
14629 # are no directories specified by -L.
14630 hardcode_minus_L_F77=yes
14631 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14632 # Neither direct hardcoding nor static linking is supported with a
14633 # broken collect2.
14634 hardcode_direct_F77=unsupported
14635 fi
14636 ;;
14637
14638 aix4* | aix5*)
14639 if test "$host_cpu" = ia64; then
14640 # On IA64, the linker does run time linking by default, so we don't
14641 # have to do anything special.
14642 aix_use_runtimelinking=no
14643 exp_sym_flag='-Bexport'
14644 no_entry_flag=""
14645 else
14646 # If we're using GNU nm, then we don't want the "-C" option.
14647 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14648 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14649 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'
14650 else
14651 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'
14652 fi
14653 aix_use_runtimelinking=no
14654
14655 # Test if we are trying to use run time linking or normal
14656 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14657 # need to do runtime linking.
14658 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14659 for ld_flag in $LDFLAGS; do
14660 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14661 aix_use_runtimelinking=yes
14662 break
14663 fi
14664 done
14665 ;;
14666 esac
14667
14668 exp_sym_flag='-bexport'
14669 no_entry_flag='-bnoentry'
14670 fi
14671
14672 # When large executables or shared objects are built, AIX ld can
14673 # have problems creating the table of contents. If linking a library
14674 # or program results in "error TOC overflow" add -mminimal-toc to
14675 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14676 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14677
14678 archive_cmds_F77=''
14679 hardcode_direct_F77=yes
14680 hardcode_libdir_separator_F77=':'
14681 link_all_deplibs_F77=yes
14682
14683 if test "$GCC" = yes; then
14684 case $host_os in aix4.[012]|aix4.[012].*)
14685 # We only want to do this on AIX 4.2 and lower, the check
14686 # below for broken collect2 doesn't work under 4.3+
14687 collect2name=`${CC} -print-prog-name=collect2`
14688 if test -f "$collect2name" && \
14689 strings "$collect2name" | grep resolve_lib_name >/dev/null
14690 then
14691 # We have reworked collect2
14692 hardcode_direct_F77=yes
14693 else
14694 # We have old collect2
14695 hardcode_direct_F77=unsupported
14696 # It fails to find uninstalled libraries when the uninstalled
14697 # path is not listed in the libpath. Setting hardcode_minus_L
14698 # to unsupported forces relinking
14699 hardcode_minus_L_F77=yes
14700 hardcode_libdir_flag_spec_F77='-L$libdir'
14701 hardcode_libdir_separator_F77=
14702 fi
14703 ;;
14704 esac
14705 shared_flag='-shared'
14706 if test "$aix_use_runtimelinking" = yes; then
14707 shared_flag="$shared_flag "'${wl}-G'
14708 fi
14709 else
14710 # not using gcc
14711 if test "$host_cpu" = ia64; then
14712 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14713 # chokes on -Wl,-G. The following line is correct:
14714 shared_flag='-G'
14715 else
14716 if test "$aix_use_runtimelinking" = yes; then
14717 shared_flag='${wl}-G'
14718 else
14719 shared_flag='${wl}-bM:SRE'
14720 fi
14721 fi
14722 fi
14723
14724 # It seems that -bexpall does not export symbols beginning with
14725 # underscore (_), so it is better to generate a list of symbols to export.
14726 always_export_symbols_F77=yes
14727 if test "$aix_use_runtimelinking" = yes; then
14728 # Warning - without using the other runtime loading flags (-brtl),
14729 # -berok will link without error, but may produce a broken library.
14730 allow_undefined_flag_F77='-berok'
14731 # Determine the default libpath from the value encoded in an empty executable.
14732 cat >conftest.$ac_ext <<_ACEOF
14733 program main
14734
14735 end
14736_ACEOF
14737rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 14738if { (ac_try="$ac_link"
14739case "(($ac_try" in
14740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14741 *) ac_try_echo=$ac_try;;
14742esac
14743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744 (eval "$ac_link") 2>conftest.er1
d9898ee8 14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 14750 (exit $ac_status); } && {
14751 test -z "$ac_f77_werror_flag" ||
14752 test ! -s conftest.err
14753 } && test -s conftest$ac_exeext &&
14754 $as_test_x conftest$ac_exeext; then
d9898ee8 14755
14756aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14757}'`
14758# Check for a 64-bit object if we didn't find anything.
14759if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14760}'`; fi
14761else
14762 echo "$as_me: failed program was:" >&5
14763sed 's/^/| /' conftest.$ac_ext >&5
14764
64ff59ba 14765
d9898ee8 14766fi
64ff59ba 14767
14768rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14769 conftest$ac_exeext conftest.$ac_ext
14770if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14771
14772 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14773 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"
14774 else
14775 if test "$host_cpu" = ia64; then
14776 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14777 allow_undefined_flag_F77="-z nodefs"
14778 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"
14779 else
14780 # Determine the default libpath from the value encoded in an empty executable.
14781 cat >conftest.$ac_ext <<_ACEOF
14782 program main
14783
14784 end
14785_ACEOF
14786rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 14787if { (ac_try="$ac_link"
14788case "(($ac_try" in
14789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790 *) ac_try_echo=$ac_try;;
14791esac
14792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14793 (eval "$ac_link") 2>conftest.er1
d9898ee8 14794 ac_status=$?
14795 grep -v '^ *+' conftest.er1 >conftest.err
14796 rm -f conftest.er1
14797 cat conftest.err >&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 14799 (exit $ac_status); } && {
14800 test -z "$ac_f77_werror_flag" ||
14801 test ! -s conftest.err
14802 } && test -s conftest$ac_exeext &&
14803 $as_test_x conftest$ac_exeext; then
d9898ee8 14804
14805aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14806}'`
14807# Check for a 64-bit object if we didn't find anything.
14808if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14809}'`; fi
14810else
14811 echo "$as_me: failed program was:" >&5
14812sed 's/^/| /' conftest.$ac_ext >&5
14813
64ff59ba 14814
d9898ee8 14815fi
64ff59ba 14816
14817rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14818 conftest$ac_exeext conftest.$ac_ext
14819if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14820
14821 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14822 # Warning - without using the other run time loading flags,
14823 # -berok will link without error, but may produce a broken library.
14824 no_undefined_flag_F77=' ${wl}-bernotok'
14825 allow_undefined_flag_F77=' ${wl}-berok'
14826 # Exported symbols can be pulled into shared objects from archives
14827 whole_archive_flag_spec_F77='$convenience'
14828 archive_cmds_need_lc_F77=yes
14829 # This is similar to how AIX traditionally builds its shared libraries.
14830 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'
14831 fi
14832 fi
14833 ;;
14834
14835 amigaos*)
14836 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)'
14837 hardcode_libdir_flag_spec_F77='-L$libdir'
14838 hardcode_minus_L_F77=yes
14839 # see comment about different semantics on the GNU ld section
14840 ld_shlibs_F77=no
14841 ;;
14842
14843 bsdi[45]*)
14844 export_dynamic_flag_spec_F77=-rdynamic
14845 ;;
14846
14847 cygwin* | mingw* | pw32*)
14848 # When not using gcc, we currently assume that we are using
14849 # Microsoft Visual C++.
14850 # hardcode_libdir_flag_spec is actually meaningless, as there is
14851 # no search path for DLLs.
14852 hardcode_libdir_flag_spec_F77=' '
14853 allow_undefined_flag_F77=unsupported
14854 # Tell ltmain to make .lib files, not .a files.
14855 libext=lib
14856 # Tell ltmain to make .dll files, not .so files.
14857 shrext_cmds=".dll"
14858 # FIXME: Setting linknames here is a bad hack.
14859 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14860 # The linker will automatically build a .lib file if we build a DLL.
14861 old_archive_From_new_cmds_F77='true'
14862 # FIXME: Should let the user specify the lib program.
14863 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14864 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14865 enable_shared_with_static_runtimes_F77=yes
14866 ;;
14867
14868 darwin* | rhapsody*)
14869 case $host_os in
14870 rhapsody* | darwin1.[012])
14871 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14872 ;;
14873 *) # Darwin 1.3 on
14874 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14875 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14876 else
14877 case ${MACOSX_DEPLOYMENT_TARGET} in
14878 10.[012])
14879 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14880 ;;
14881 10.*)
14882 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14883 ;;
14884 esac
14885 fi
14886 ;;
14887 esac
14888 archive_cmds_need_lc_F77=no
14889 hardcode_direct_F77=no
14890 hardcode_automatic_F77=yes
14891 hardcode_shlibpath_var_F77=unsupported
14892 whole_archive_flag_spec_F77=''
14893 link_all_deplibs_F77=yes
14894 if test "$GCC" = yes ; then
14895 output_verbose_link_cmd='echo'
14896 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14897 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14898 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14899 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}'
14900 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}'
14901 else
14902 case $cc_basename in
14903 xlc*)
14904 output_verbose_link_cmd='echo'
14905 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14906 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14907 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14908 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14909 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}'
14910 ;;
14911 *)
14912 ld_shlibs_F77=no
14913 ;;
14914 esac
14915 fi
14916 ;;
14917
14918 dgux*)
14919 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14920 hardcode_libdir_flag_spec_F77='-L$libdir'
14921 hardcode_shlibpath_var_F77=no
14922 ;;
14923
14924 freebsd1*)
14925 ld_shlibs_F77=no
14926 ;;
14927
14928 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14929 # support. Future versions do this automatically, but an explicit c++rt0.o
14930 # does not break anything, and helps significantly (at the cost of a little
14931 # extra space).
14932 freebsd2.2*)
14933 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14934 hardcode_libdir_flag_spec_F77='-R$libdir'
14935 hardcode_direct_F77=yes
14936 hardcode_shlibpath_var_F77=no
14937 ;;
14938
14939 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14940 freebsd2*)
14941 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14942 hardcode_direct_F77=yes
14943 hardcode_minus_L_F77=yes
14944 hardcode_shlibpath_var_F77=no
14945 ;;
14946
14947 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14948 freebsd* | kfreebsd*-gnu | dragonfly*)
14949 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14950 hardcode_libdir_flag_spec_F77='-R$libdir'
14951 hardcode_direct_F77=yes
14952 hardcode_shlibpath_var_F77=no
14953 ;;
14954
14955 hpux9*)
14956 if test "$GCC" = yes; then
14957 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'
14958 else
14959 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'
14960 fi
14961 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14962 hardcode_libdir_separator_F77=:
14963 hardcode_direct_F77=yes
14964
14965 # hardcode_minus_L: Not really in the search PATH,
14966 # but as the default location of the library.
14967 hardcode_minus_L_F77=yes
14968 export_dynamic_flag_spec_F77='${wl}-E'
14969 ;;
14970
14971 hpux10*)
14972 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14973 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14974 else
14975 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14976 fi
14977 if test "$with_gnu_ld" = no; then
14978 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14979 hardcode_libdir_separator_F77=:
14980
14981 hardcode_direct_F77=yes
14982 export_dynamic_flag_spec_F77='${wl}-E'
14983
14984 # hardcode_minus_L: Not really in the search PATH,
14985 # but as the default location of the library.
14986 hardcode_minus_L_F77=yes
14987 fi
14988 ;;
14989
14990 hpux11*)
14991 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14992 case $host_cpu in
14993 hppa*64*)
14994 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14995 ;;
14996 ia64*)
14997 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14998 ;;
14999 *)
15000 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15001 ;;
15002 esac
15003 else
15004 case $host_cpu in
15005 hppa*64*)
15006 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15007 ;;
15008 ia64*)
15009 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15010 ;;
15011 *)
15012 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15013 ;;
15014 esac
15015 fi
15016 if test "$with_gnu_ld" = no; then
15017 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15018 hardcode_libdir_separator_F77=:
15019
15020 case $host_cpu in
15021 hppa*64*|ia64*)
15022 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15023 hardcode_direct_F77=no
15024 hardcode_shlibpath_var_F77=no
15025 ;;
15026 *)
15027 hardcode_direct_F77=yes
15028 export_dynamic_flag_spec_F77='${wl}-E'
15029
15030 # hardcode_minus_L: Not really in the search PATH,
15031 # but as the default location of the library.
15032 hardcode_minus_L_F77=yes
15033 ;;
15034 esac
15035 fi
15036 ;;
15037
15038 irix5* | irix6* | nonstopux*)
15039 if test "$GCC" = yes; then
15040 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'
15041 else
15042 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'
15043 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15044 fi
15045 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15046 hardcode_libdir_separator_F77=:
15047 link_all_deplibs_F77=yes
15048 ;;
15049
15050 netbsd*)
15051 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15052 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15053 else
15054 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15055 fi
15056 hardcode_libdir_flag_spec_F77='-R$libdir'
15057 hardcode_direct_F77=yes
15058 hardcode_shlibpath_var_F77=no
15059 ;;
15060
15061 newsos6)
15062 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15063 hardcode_direct_F77=yes
15064 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15065 hardcode_libdir_separator_F77=:
15066 hardcode_shlibpath_var_F77=no
15067 ;;
15068
15069 openbsd*)
15070 hardcode_direct_F77=yes
15071 hardcode_shlibpath_var_F77=no
15072 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15073 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15074 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15075 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15076 export_dynamic_flag_spec_F77='${wl}-E'
15077 else
15078 case $host_os in
15079 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15080 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15081 hardcode_libdir_flag_spec_F77='-R$libdir'
15082 ;;
15083 *)
15084 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15085 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15086 ;;
15087 esac
15088 fi
15089 ;;
15090
15091 os2*)
15092 hardcode_libdir_flag_spec_F77='-L$libdir'
15093 hardcode_minus_L_F77=yes
15094 allow_undefined_flag_F77=unsupported
15095 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'
15096 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15097 ;;
15098
15099 osf3*)
15100 if test "$GCC" = yes; then
15101 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15102 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'
15103 else
15104 allow_undefined_flag_F77=' -expect_unresolved \*'
15105 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'
15106 fi
15107 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15108 hardcode_libdir_separator_F77=:
15109 ;;
15110
15111 osf4* | osf5*) # as osf3* with the addition of -msym flag
15112 if test "$GCC" = yes; then
15113 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15114 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'
15115 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15116 else
15117 allow_undefined_flag_F77=' -expect_unresolved \*'
15118 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'
15119 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~
15120 $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'
15121
15122 # Both c and cxx compiler support -rpath directly
15123 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15124 fi
15125 hardcode_libdir_separator_F77=:
15126 ;;
15127
15128 solaris*)
15129 no_undefined_flag_F77=' -z text'
15130 if test "$GCC" = yes; then
15131 wlarc='${wl}'
15132 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15133 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15134 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15135 else
15136 wlarc=''
15137 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15138 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15139 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15140 fi
15141 hardcode_libdir_flag_spec_F77='-R$libdir'
15142 hardcode_shlibpath_var_F77=no
15143 case $host_os in
15144 solaris2.[0-5] | solaris2.[0-5].*) ;;
15145 *)
15146 # The compiler driver will combine linker options so we
15147 # cannot just pass the convience library names through
15148 # without $wl, iff we do not link with $LD.
15149 # Luckily, gcc supports the same syntax we need for Sun Studio.
15150 # Supported since Solaris 2.6 (maybe 2.5.1?)
15151 case $wlarc in
15152 '')
15153 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15154 *)
15155 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15156 esac ;;
15157 esac
15158 link_all_deplibs_F77=yes
15159 ;;
15160
15161 sunos4*)
15162 if test "x$host_vendor" = xsequent; then
15163 # Use $CC to link under sequent, because it throws in some extra .o
15164 # files that make .init and .fini sections work.
15165 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15166 else
15167 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15168 fi
15169 hardcode_libdir_flag_spec_F77='-L$libdir'
15170 hardcode_direct_F77=yes
15171 hardcode_minus_L_F77=yes
15172 hardcode_shlibpath_var_F77=no
15173 ;;
15174
15175 sysv4)
15176 case $host_vendor in
15177 sni)
15178 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15179 hardcode_direct_F77=yes # is this really true???
15180 ;;
15181 siemens)
15182 ## LD is ld it makes a PLAMLIB
15183 ## CC just makes a GrossModule.
15184 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15185 reload_cmds_F77='$CC -r -o $output$reload_objs'
15186 hardcode_direct_F77=no
15187 ;;
15188 motorola)
15189 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15190 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15191 ;;
15192 esac
15193 runpath_var='LD_RUN_PATH'
15194 hardcode_shlibpath_var_F77=no
15195 ;;
15196
15197 sysv4.3*)
15198 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15199 hardcode_shlibpath_var_F77=no
15200 export_dynamic_flag_spec_F77='-Bexport'
15201 ;;
15202
15203 sysv4*MP*)
15204 if test -d /usr/nec; then
15205 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15206 hardcode_shlibpath_var_F77=no
15207 runpath_var=LD_RUN_PATH
15208 hardcode_runpath_var=yes
15209 ld_shlibs_F77=yes
15210 fi
15211 ;;
15212
15213 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15214 no_undefined_flag_F77='${wl}-z,text'
15215 archive_cmds_need_lc_F77=no
15216 hardcode_shlibpath_var_F77=no
15217 runpath_var='LD_RUN_PATH'
15218
15219 if test "$GCC" = yes; then
15220 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15221 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15222 else
15223 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15224 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15225 fi
15226 ;;
15227
15228 sysv5* | sco3.2v5* | sco5v6*)
15229 # Note: We can NOT use -z defs as we might desire, because we do not
15230 # link with -lc, and that would cause any symbols used from libc to
15231 # always be unresolved, which means just about no library would
15232 # ever link correctly. If we're not using GNU ld we use -z text
15233 # though, which does catch some bad symbols but isn't as heavy-handed
15234 # as -z defs.
15235 no_undefined_flag_F77='${wl}-z,text'
15236 allow_undefined_flag_F77='${wl}-z,nodefs'
15237 archive_cmds_need_lc_F77=no
15238 hardcode_shlibpath_var_F77=no
15239 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15240 hardcode_libdir_separator_F77=':'
15241 link_all_deplibs_F77=yes
15242 export_dynamic_flag_spec_F77='${wl}-Bexport'
15243 runpath_var='LD_RUN_PATH'
15244
15245 if test "$GCC" = yes; then
15246 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15247 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15248 else
15249 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15250 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15251 fi
15252 ;;
15253
15254 uts4*)
15255 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15256 hardcode_libdir_flag_spec_F77='-L$libdir'
15257 hardcode_shlibpath_var_F77=no
15258 ;;
15259
15260 *)
15261 ld_shlibs_F77=no
15262 ;;
15263 esac
15264 fi
15265
64ff59ba 15266{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15267echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d9898ee8 15268test "$ld_shlibs_F77" = no && can_build_shared=no
15269
15270#
15271# Do we need to explicitly link libc?
15272#
15273case "x$archive_cmds_need_lc_F77" in
15274x|xyes)
15275 # Assume -lc should be added
15276 archive_cmds_need_lc_F77=yes
15277
15278 if test "$enable_shared" = yes && test "$GCC" = yes; then
15279 case $archive_cmds_F77 in
15280 *'~'*)
15281 # FIXME: we may have to deal with multi-command sequences.
15282 ;;
15283 '$CC '*)
15284 # Test whether the compiler implicitly links with -lc since on some
15285 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15286 # to ld, don't add -lc before -lgcc.
64ff59ba 15287 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15288echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 15289 $rm conftest*
15290 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15291
15292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15293 (eval $ac_compile) 2>&5
15294 ac_status=$?
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); } 2>conftest.err; then
15297 soname=conftest
15298 lib=conftest
15299 libobjs=conftest.$ac_objext
15300 deplibs=
15301 wl=$lt_prog_compiler_wl_F77
15302 pic_flag=$lt_prog_compiler_pic_F77
15303 compiler_flags=-v
15304 linker_flags=-v
15305 verstring=
15306 output_objdir=.
15307 libname=conftest
15308 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15309 allow_undefined_flag_F77=
15310 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15311 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15312 ac_status=$?
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }
15315 then
15316 archive_cmds_need_lc_F77=no
15317 else
15318 archive_cmds_need_lc_F77=yes
15319 fi
15320 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15321 else
15322 cat conftest.err 1>&5
15323 fi
15324 $rm conftest*
64ff59ba 15325 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15326echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d9898ee8 15327 ;;
15328 esac
15329 fi
15330 ;;
15331esac
15332
64ff59ba 15333{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15334echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 15335library_names_spec=
15336libname_spec='lib$name'
15337soname_spec=
15338shrext_cmds=".so"
15339postinstall_cmds=
15340postuninstall_cmds=
15341finish_cmds=
15342finish_eval=
15343shlibpath_var=
15344shlibpath_overrides_runpath=unknown
15345version_type=none
15346dynamic_linker="$host_os ld.so"
15347sys_lib_dlsearch_path_spec="/lib /usr/lib"
15348if test "$GCC" = yes; then
15349 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15350 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15351 # if the path contains ";" then we assume it to be the separator
15352 # otherwise default to the standard path separator (i.e. ":") - it is
15353 # assumed that no part of a normal pathname contains ";" but that should
15354 # okay in the real world where ";" in dirpaths is itself problematic.
15355 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15356 else
15357 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15358 fi
15359else
15360 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15361fi
15362need_lib_prefix=unknown
15363hardcode_into_libs=no
15364
15365# when you set need_version to no, make sure it does not cause -set_version
15366# flags to be left without arguments
15367need_version=unknown
15368
15369case $host_os in
15370aix3*)
15371 version_type=linux
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15373 shlibpath_var=LIBPATH
15374
15375 # AIX 3 has no versioning support, so we append a major version to the name.
15376 soname_spec='${libname}${release}${shared_ext}$major'
15377 ;;
15378
15379aix4* | aix5*)
15380 version_type=linux
15381 need_lib_prefix=no
15382 need_version=no
15383 hardcode_into_libs=yes
15384 if test "$host_cpu" = ia64; then
15385 # AIX 5 supports IA64
15386 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15387 shlibpath_var=LD_LIBRARY_PATH
15388 else
15389 # With GCC up to 2.95.x, collect2 would create an import file
15390 # for dependence libraries. The import file would start with
15391 # the line `#! .'. This would cause the generated library to
15392 # depend on `.', always an invalid library. This was fixed in
15393 # development snapshots of GCC prior to 3.0.
15394 case $host_os in
15395 aix4 | aix4.[01] | aix4.[01].*)
15396 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15397 echo ' yes '
15398 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15399 :
15400 else
15401 can_build_shared=no
15402 fi
15403 ;;
15404 esac
15405 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15406 # soname into executable. Probably we can add versioning support to
15407 # collect2, so additional links can be useful in future.
15408 if test "$aix_use_runtimelinking" = yes; then
15409 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15410 # instead of lib<name>.a to let people know that these are not
15411 # typical AIX shared libraries.
15412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15413 else
15414 # We preserve .a as extension for shared libraries through AIX4.2
15415 # and later when we are not doing run time linking.
15416 library_names_spec='${libname}${release}.a $libname.a'
15417 soname_spec='${libname}${release}${shared_ext}$major'
15418 fi
15419 shlibpath_var=LIBPATH
15420 fi
15421 ;;
15422
15423amigaos*)
15424 library_names_spec='$libname.ixlibrary $libname.a'
15425 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15426 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'
15427 ;;
15428
15429beos*)
15430 library_names_spec='${libname}${shared_ext}'
15431 dynamic_linker="$host_os ld.so"
15432 shlibpath_var=LIBRARY_PATH
15433 ;;
15434
15435bsdi[45]*)
15436 version_type=linux
15437 need_version=no
15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439 soname_spec='${libname}${release}${shared_ext}$major'
15440 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15441 shlibpath_var=LD_LIBRARY_PATH
15442 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15443 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15444 # the default ld.so.conf also contains /usr/contrib/lib and
15445 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15446 # libtool to hard-code these into programs
15447 ;;
15448
15449cygwin* | mingw* | pw32*)
15450 version_type=windows
15451 shrext_cmds=".dll"
15452 need_version=no
15453 need_lib_prefix=no
15454
15455 case $GCC,$host_os in
15456 yes,cygwin* | yes,mingw* | yes,pw32*)
15457 library_names_spec='$libname.dll.a'
15458 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15459 postinstall_cmds='base_file=`basename \${file}`~
15460 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15461 dldir=$destdir/`dirname \$dlpath`~
15462 test -d \$dldir || mkdir -p \$dldir~
15463 $install_prog $dir/$dlname \$dldir/$dlname~
15464 chmod a+x \$dldir/$dlname'
15465 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15466 dlpath=$dir/\$dldll~
15467 $rm \$dlpath'
15468 shlibpath_overrides_runpath=yes
15469
15470 case $host_os in
15471 cygwin*)
15472 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15473 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15474 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15475 ;;
15476 mingw*)
15477 # MinGW DLLs use traditional 'lib' prefix
15478 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15479 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15480 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15481 # It is most probably a Windows format PATH printed by
15482 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15483 # path with ; separators, and with drive letters. We can handle the
15484 # drive letters (cygwin fileutils understands them), so leave them,
15485 # especially as we might pass files found there to a mingw objdump,
15486 # which wouldn't understand a cygwinified path. Ahh.
15487 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15488 else
15489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15490 fi
15491 ;;
15492 pw32*)
15493 # pw32 DLLs use 'pw' prefix rather than 'lib'
15494 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15495 ;;
15496 esac
15497 ;;
15498
15499 *)
15500 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15501 ;;
15502 esac
15503 dynamic_linker='Win32 ld.exe'
15504 # FIXME: first we should search . and the directory the executable is in
15505 shlibpath_var=PATH
15506 ;;
15507
15508darwin* | rhapsody*)
15509 dynamic_linker="$host_os dyld"
15510 version_type=darwin
15511 need_lib_prefix=no
15512 need_version=no
15513 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15514 soname_spec='${libname}${release}${major}$shared_ext'
15515 shlibpath_overrides_runpath=yes
15516 shlibpath_var=DYLD_LIBRARY_PATH
15517 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15518 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15519 if test "$GCC" = yes; then
15520 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15521 else
15522 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15523 fi
15524 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15525 ;;
15526
15527dgux*)
15528 version_type=linux
15529 need_lib_prefix=no
15530 need_version=no
15531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15532 soname_spec='${libname}${release}${shared_ext}$major'
15533 shlibpath_var=LD_LIBRARY_PATH
15534 ;;
15535
15536freebsd1*)
15537 dynamic_linker=no
15538 ;;
15539
15540kfreebsd*-gnu)
15541 version_type=linux
15542 need_lib_prefix=no
15543 need_version=no
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15545 soname_spec='${libname}${release}${shared_ext}$major'
15546 shlibpath_var=LD_LIBRARY_PATH
15547 shlibpath_overrides_runpath=no
15548 hardcode_into_libs=yes
15549 dynamic_linker='GNU ld.so'
15550 ;;
15551
15552freebsd* | dragonfly*)
15553 # DragonFly does not have aout. When/if they implement a new
15554 # versioning mechanism, adjust this.
15555 if test -x /usr/bin/objformat; then
15556 objformat=`/usr/bin/objformat`
15557 else
15558 case $host_os in
15559 freebsd[123]*) objformat=aout ;;
15560 *) objformat=elf ;;
15561 esac
15562 fi
15563 version_type=freebsd-$objformat
15564 case $version_type in
15565 freebsd-elf*)
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15567 need_version=no
15568 need_lib_prefix=no
15569 ;;
15570 freebsd-*)
15571 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15572 need_version=yes
15573 ;;
15574 esac
15575 shlibpath_var=LD_LIBRARY_PATH
15576 case $host_os in
15577 freebsd2*)
15578 shlibpath_overrides_runpath=yes
15579 ;;
15580 freebsd3.[01]* | freebsdelf3.[01]*)
15581 shlibpath_overrides_runpath=yes
15582 hardcode_into_libs=yes
15583 ;;
15584 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15585 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15586 shlibpath_overrides_runpath=no
15587 hardcode_into_libs=yes
15588 ;;
15589 freebsd*) # from 4.6 on
15590 shlibpath_overrides_runpath=yes
15591 hardcode_into_libs=yes
15592 ;;
15593 esac
15594 ;;
15595
15596gnu*)
15597 version_type=linux
15598 need_lib_prefix=no
15599 need_version=no
15600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15601 soname_spec='${libname}${release}${shared_ext}$major'
15602 shlibpath_var=LD_LIBRARY_PATH
15603 hardcode_into_libs=yes
15604 ;;
15605
15606hpux9* | hpux10* | hpux11*)
15607 # Give a soname corresponding to the major version so that dld.sl refuses to
15608 # link against other versions.
15609 version_type=sunos
15610 need_lib_prefix=no
15611 need_version=no
15612 case $host_cpu in
15613 ia64*)
15614 shrext_cmds='.so'
15615 hardcode_into_libs=yes
15616 dynamic_linker="$host_os dld.so"
15617 shlibpath_var=LD_LIBRARY_PATH
15618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620 soname_spec='${libname}${release}${shared_ext}$major'
15621 if test "X$HPUX_IA64_MODE" = X32; then
15622 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15623 else
15624 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15625 fi
15626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15627 ;;
15628 hppa*64*)
15629 shrext_cmds='.sl'
15630 hardcode_into_libs=yes
15631 dynamic_linker="$host_os dld.sl"
15632 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15633 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635 soname_spec='${libname}${release}${shared_ext}$major'
15636 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15637 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15638 ;;
15639 *)
15640 shrext_cmds='.sl'
15641 dynamic_linker="$host_os dld.sl"
15642 shlibpath_var=SHLIB_PATH
15643 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
15647 esac
15648 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15649 postinstall_cmds='chmod 555 $lib'
15650 ;;
15651
15652interix3*)
15653 version_type=linux
15654 need_lib_prefix=no
15655 need_version=no
15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15657 soname_spec='${libname}${release}${shared_ext}$major'
15658 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 shlibpath_overrides_runpath=no
15661 hardcode_into_libs=yes
15662 ;;
15663
15664irix5* | irix6* | nonstopux*)
15665 case $host_os in
15666 nonstopux*) version_type=nonstopux ;;
15667 *)
15668 if test "$lt_cv_prog_gnu_ld" = yes; then
15669 version_type=linux
15670 else
15671 version_type=irix
15672 fi ;;
15673 esac
15674 need_lib_prefix=no
15675 need_version=no
15676 soname_spec='${libname}${release}${shared_ext}$major'
15677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15678 case $host_os in
15679 irix5* | nonstopux*)
15680 libsuff= shlibsuff=
15681 ;;
15682 *)
15683 case $LD in # libtool.m4 will add one of these switches to LD
15684 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15685 libsuff= shlibsuff= libmagic=32-bit;;
15686 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15687 libsuff=32 shlibsuff=N32 libmagic=N32;;
15688 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15689 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15690 *) libsuff= shlibsuff= libmagic=never-match;;
15691 esac
15692 ;;
15693 esac
15694 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15695 shlibpath_overrides_runpath=no
15696 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15697 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15698 hardcode_into_libs=yes
15699 ;;
15700
15701# No shared lib support for Linux oldld, aout, or coff.
15702linux*oldld* | linux*aout* | linux*coff*)
15703 dynamic_linker=no
15704 ;;
15705
15706# This must be Linux ELF.
15707linux*)
15708 version_type=linux
15709 need_lib_prefix=no
15710 need_version=no
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15712 soname_spec='${libname}${release}${shared_ext}$major'
15713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15714 shlibpath_var=LD_LIBRARY_PATH
15715 shlibpath_overrides_runpath=no
15716 # This implies no fast_install, which is unacceptable.
15717 # Some rework will be needed to allow for fast_install
15718 # before this can be enabled.
15719 hardcode_into_libs=yes
15720
15721 # find out which ABI we are using
15722 libsuff=
15723 case "$host_cpu" in
15724 x86_64*|s390x*|powerpc64*)
64ff59ba 15725 echo '#line 15725 "configure"' > conftest.$ac_ext
d9898ee8 15726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15727 (eval $ac_compile) 2>&5
15728 ac_status=$?
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; then
15731 case `/usr/bin/file conftest.$ac_objext` in
15732 *64-bit*)
15733 libsuff=64
15734 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15735 ;;
15736 esac
15737 fi
15738 rm -rf conftest*
15739 ;;
15740 esac
15741
15742 # Append ld.so.conf contents to the search path
15743 if test -f /etc/ld.so.conf; then
64ff59ba 15744 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 15745 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15746 fi
15747
15748 # We used to test for /lib/ld.so.1 and disable shared libraries on
15749 # powerpc, because MkLinux only supported shared libraries with the
15750 # GNU dynamic linker. Since this was broken with cross compilers,
15751 # most powerpc-linux boxes support dynamic linking these days and
15752 # people can always --disable-shared, the test was removed, and we
15753 # assume the GNU/Linux dynamic linker is in use.
15754 dynamic_linker='GNU/Linux ld.so'
15755 ;;
15756
15757knetbsd*-gnu)
15758 version_type=linux
15759 need_lib_prefix=no
15760 need_version=no
15761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15762 soname_spec='${libname}${release}${shared_ext}$major'
15763 shlibpath_var=LD_LIBRARY_PATH
15764 shlibpath_overrides_runpath=no
15765 hardcode_into_libs=yes
15766 dynamic_linker='GNU ld.so'
15767 ;;
15768
15769netbsd*)
15770 version_type=sunos
15771 need_lib_prefix=no
15772 need_version=no
15773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15776 dynamic_linker='NetBSD (a.out) ld.so'
15777 else
15778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15779 soname_spec='${libname}${release}${shared_ext}$major'
15780 dynamic_linker='NetBSD ld.elf_so'
15781 fi
15782 shlibpath_var=LD_LIBRARY_PATH
15783 shlibpath_overrides_runpath=yes
15784 hardcode_into_libs=yes
15785 ;;
15786
15787newsos6)
15788 version_type=linux
15789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15790 shlibpath_var=LD_LIBRARY_PATH
15791 shlibpath_overrides_runpath=yes
15792 ;;
15793
15794nto-qnx*)
15795 version_type=linux
15796 need_lib_prefix=no
15797 need_version=no
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15799 soname_spec='${libname}${release}${shared_ext}$major'
15800 shlibpath_var=LD_LIBRARY_PATH
15801 shlibpath_overrides_runpath=yes
15802 ;;
15803
15804openbsd*)
15805 version_type=sunos
15806 sys_lib_dlsearch_path_spec="/usr/lib"
15807 need_lib_prefix=no
15808 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15809 case $host_os in
15810 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15811 *) need_version=no ;;
15812 esac
15813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15815 shlibpath_var=LD_LIBRARY_PATH
15816 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15817 case $host_os in
15818 openbsd2.[89] | openbsd2.[89].*)
15819 shlibpath_overrides_runpath=no
15820 ;;
15821 *)
15822 shlibpath_overrides_runpath=yes
15823 ;;
15824 esac
15825 else
15826 shlibpath_overrides_runpath=yes
15827 fi
15828 ;;
15829
15830os2*)
15831 libname_spec='$name'
15832 shrext_cmds=".dll"
15833 need_lib_prefix=no
15834 library_names_spec='$libname${shared_ext} $libname.a'
15835 dynamic_linker='OS/2 ld.exe'
15836 shlibpath_var=LIBPATH
15837 ;;
15838
15839osf3* | osf4* | osf5*)
15840 version_type=osf
15841 need_lib_prefix=no
15842 need_version=no
15843 soname_spec='${libname}${release}${shared_ext}$major'
15844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15845 shlibpath_var=LD_LIBRARY_PATH
15846 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15847 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15848 ;;
15849
15850solaris*)
15851 version_type=linux
15852 need_lib_prefix=no
15853 need_version=no
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15855 soname_spec='${libname}${release}${shared_ext}$major'
15856 shlibpath_var=LD_LIBRARY_PATH
15857 shlibpath_overrides_runpath=yes
15858 hardcode_into_libs=yes
15859 # ldd complains unless libraries are executable
15860 postinstall_cmds='chmod +x $lib'
15861 ;;
15862
15863sunos4*)
15864 version_type=sunos
15865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15866 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15867 shlibpath_var=LD_LIBRARY_PATH
15868 shlibpath_overrides_runpath=yes
15869 if test "$with_gnu_ld" = yes; then
15870 need_lib_prefix=no
15871 fi
15872 need_version=yes
15873 ;;
15874
15875sysv4 | sysv4.3*)
15876 version_type=linux
15877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15878 soname_spec='${libname}${release}${shared_ext}$major'
15879 shlibpath_var=LD_LIBRARY_PATH
15880 case $host_vendor in
15881 sni)
15882 shlibpath_overrides_runpath=no
15883 need_lib_prefix=no
15884 export_dynamic_flag_spec='${wl}-Blargedynsym'
15885 runpath_var=LD_RUN_PATH
15886 ;;
15887 siemens)
15888 need_lib_prefix=no
15889 ;;
15890 motorola)
15891 need_lib_prefix=no
15892 need_version=no
15893 shlibpath_overrides_runpath=no
15894 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15895 ;;
15896 esac
15897 ;;
15898
15899sysv4*MP*)
15900 if test -d /usr/nec ;then
15901 version_type=linux
15902 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15903 soname_spec='$libname${shared_ext}.$major'
15904 shlibpath_var=LD_LIBRARY_PATH
15905 fi
15906 ;;
15907
15908sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15909 version_type=freebsd-elf
15910 need_lib_prefix=no
15911 need_version=no
15912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15913 soname_spec='${libname}${release}${shared_ext}$major'
15914 shlibpath_var=LD_LIBRARY_PATH
15915 hardcode_into_libs=yes
15916 if test "$with_gnu_ld" = yes; then
15917 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15918 shlibpath_overrides_runpath=no
15919 else
15920 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15921 shlibpath_overrides_runpath=yes
15922 case $host_os in
15923 sco3.2v5*)
15924 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15925 ;;
15926 esac
15927 fi
15928 sys_lib_dlsearch_path_spec='/usr/lib'
15929 ;;
15930
15931uts4*)
15932 version_type=linux
15933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15934 soname_spec='${libname}${release}${shared_ext}$major'
15935 shlibpath_var=LD_LIBRARY_PATH
15936 ;;
15937
15938*)
15939 dynamic_linker=no
15940 ;;
15941esac
64ff59ba 15942{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15943echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 15944test "$dynamic_linker" = no && can_build_shared=no
15945
15946variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15947if test "$GCC" = yes; then
15948 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15949fi
15950
64ff59ba 15951{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15952echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 15953hardcode_action_F77=
15954if test -n "$hardcode_libdir_flag_spec_F77" || \
15955 test -n "$runpath_var_F77" || \
15956 test "X$hardcode_automatic_F77" = "Xyes" ; then
15957
15958 # We can hardcode non-existant directories.
15959 if test "$hardcode_direct_F77" != no &&
15960 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15961 # have to relink, otherwise we might link with an installed library
15962 # when we should be linking with a yet-to-be-installed one
15963 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15964 test "$hardcode_minus_L_F77" != no; then
15965 # Linking always hardcodes the temporary library directory.
15966 hardcode_action_F77=relink
15967 else
15968 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15969 hardcode_action_F77=immediate
15970 fi
15971else
15972 # We cannot hardcode anything, or else we can only hardcode existing
15973 # directories.
15974 hardcode_action_F77=unsupported
15975fi
64ff59ba 15976{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15977echo "${ECHO_T}$hardcode_action_F77" >&6; }
d9898ee8 15978
15979if test "$hardcode_action_F77" = relink; then
15980 # Fast installation is not supported
15981 enable_fast_install=no
15982elif test "$shlibpath_overrides_runpath" = yes ||
15983 test "$enable_shared" = no; then
15984 # Fast installation is not necessary
15985 enable_fast_install=needless
15986fi
15987
15988
15989# The else clause should only fire when bootstrapping the
15990# libtool distribution, otherwise you forgot to ship ltmain.sh
15991# with your package, and you will get complaints that there are
15992# no rules to generate ltmain.sh.
15993if test -f "$ltmain"; then
15994 # See if we are running on zsh, and set the options which allow our commands through
15995 # without removal of \ escapes.
15996 if test -n "${ZSH_VERSION+set}" ; then
15997 setopt NO_GLOB_SUBST
15998 fi
15999 # Now quote all the things that may contain metacharacters while being
16000 # careful not to overquote the AC_SUBSTed values. We take copies of the
16001 # variables and quote the copies for generation of the libtool script.
16002 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16003 SED SHELL STRIP \
16004 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16005 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16006 deplibs_check_method reload_flag reload_cmds need_locks \
16007 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16008 lt_cv_sys_global_symbol_to_c_name_address \
16009 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16010 old_postinstall_cmds old_postuninstall_cmds \
16011 compiler_F77 \
16012 CC_F77 \
16013 LD_F77 \
16014 lt_prog_compiler_wl_F77 \
16015 lt_prog_compiler_pic_F77 \
16016 lt_prog_compiler_static_F77 \
16017 lt_prog_compiler_no_builtin_flag_F77 \
16018 export_dynamic_flag_spec_F77 \
16019 thread_safe_flag_spec_F77 \
16020 whole_archive_flag_spec_F77 \
16021 enable_shared_with_static_runtimes_F77 \
16022 old_archive_cmds_F77 \
16023 old_archive_from_new_cmds_F77 \
16024 predep_objects_F77 \
16025 postdep_objects_F77 \
16026 predeps_F77 \
16027 postdeps_F77 \
16028 compiler_lib_search_path_F77 \
16029 archive_cmds_F77 \
16030 archive_expsym_cmds_F77 \
16031 postinstall_cmds_F77 \
16032 postuninstall_cmds_F77 \
16033 old_archive_from_expsyms_cmds_F77 \
16034 allow_undefined_flag_F77 \
16035 no_undefined_flag_F77 \
16036 export_symbols_cmds_F77 \
16037 hardcode_libdir_flag_spec_F77 \
16038 hardcode_libdir_flag_spec_ld_F77 \
16039 hardcode_libdir_separator_F77 \
16040 hardcode_automatic_F77 \
16041 module_cmds_F77 \
16042 module_expsym_cmds_F77 \
16043 lt_cv_prog_compiler_c_o_F77 \
16044 exclude_expsyms_F77 \
16045 include_expsyms_F77; do
16046
16047 case $var in
16048 old_archive_cmds_F77 | \
16049 old_archive_from_new_cmds_F77 | \
16050 archive_cmds_F77 | \
16051 archive_expsym_cmds_F77 | \
16052 module_cmds_F77 | \
16053 module_expsym_cmds_F77 | \
16054 old_archive_from_expsyms_cmds_F77 | \
16055 export_symbols_cmds_F77 | \
16056 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16057 postinstall_cmds | postuninstall_cmds | \
16058 old_postinstall_cmds | old_postuninstall_cmds | \
16059 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16060 # Double-quote double-evaled strings.
16061 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16062 ;;
16063 *)
16064 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16065 ;;
16066 esac
16067 done
16068
16069 case $lt_echo in
16070 *'\$0 --fallback-echo"')
16071 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16072 ;;
16073 esac
16074
16075cfgfile="$ofile"
16076
16077 cat <<__EOF__ >> "$cfgfile"
16078# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16079
16080# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16081
16082# Shell to use when invoking shell scripts.
16083SHELL=$lt_SHELL
16084
16085# Whether or not to build shared libraries.
16086build_libtool_libs=$enable_shared
16087
16088# Whether or not to build static libraries.
16089build_old_libs=$enable_static
16090
16091# Whether or not to add -lc for building shared libraries.
16092build_libtool_need_lc=$archive_cmds_need_lc_F77
16093
16094# Whether or not to disallow shared libs when runtime libs are static
16095allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16096
16097# Whether or not to optimize for fast installation.
16098fast_install=$enable_fast_install
16099
16100# The host system.
16101host_alias=$host_alias
16102host=$host
16103host_os=$host_os
16104
16105# The build system.
16106build_alias=$build_alias
16107build=$build
16108build_os=$build_os
16109
16110# An echo program that does not interpret backslashes.
16111echo=$lt_echo
16112
16113# The archiver.
16114AR=$lt_AR
16115AR_FLAGS=$lt_AR_FLAGS
16116
16117# A C compiler.
16118LTCC=$lt_LTCC
16119
16120# LTCC compiler flags.
16121LTCFLAGS=$lt_LTCFLAGS
16122
16123# A language-specific compiler.
16124CC=$lt_compiler_F77
16125
16126# Is the compiler the GNU C compiler?
16127with_gcc=$GCC_F77
16128
d9898ee8 16129# An ERE matcher.
16130EGREP=$lt_EGREP
16131
16132# The linker used to build libraries.
16133LD=$lt_LD_F77
16134
16135# Whether we need hard or soft links.
16136LN_S=$lt_LN_S
16137
16138# A BSD-compatible nm program.
16139NM=$lt_NM
16140
16141# A symbol stripping program
16142STRIP=$lt_STRIP
16143
16144# Used to examine libraries when file_magic_cmd begins "file"
16145MAGIC_CMD=$MAGIC_CMD
16146
16147# Used on cygwin: DLL creation program.
16148DLLTOOL="$DLLTOOL"
16149
16150# Used on cygwin: object dumper.
16151OBJDUMP="$OBJDUMP"
16152
16153# Used on cygwin: assembler.
16154AS="$AS"
16155
16156# The name of the directory that contains temporary libtool files.
16157objdir=$objdir
16158
16159# How to create reloadable object files.
16160reload_flag=$lt_reload_flag
16161reload_cmds=$lt_reload_cmds
16162
16163# How to pass a linker flag through the compiler.
16164wl=$lt_lt_prog_compiler_wl_F77
16165
16166# Object file suffix (normally "o").
16167objext="$ac_objext"
16168
16169# Old archive suffix (normally "a").
16170libext="$libext"
16171
16172# Shared library suffix (normally ".so").
16173shrext_cmds='$shrext_cmds'
16174
16175# Executable file suffix (normally "").
16176exeext="$exeext"
16177
16178# Additional compiler flags for building library objects.
16179pic_flag=$lt_lt_prog_compiler_pic_F77
16180pic_mode=$pic_mode
16181
16182# What is the maximum length of a command?
16183max_cmd_len=$lt_cv_sys_max_cmd_len
16184
16185# Does compiler simultaneously support -c and -o options?
16186compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16187
16188# Must we lock files when doing compilation?
16189need_locks=$lt_need_locks
16190
16191# Do we need the lib prefix for modules?
16192need_lib_prefix=$need_lib_prefix
16193
16194# Do we need a version for libraries?
16195need_version=$need_version
16196
16197# Whether dlopen is supported.
16198dlopen_support=$enable_dlopen
16199
16200# Whether dlopen of programs is supported.
16201dlopen_self=$enable_dlopen_self
16202
16203# Whether dlopen of statically linked programs is supported.
16204dlopen_self_static=$enable_dlopen_self_static
16205
16206# Compiler flag to prevent dynamic linking.
16207link_static_flag=$lt_lt_prog_compiler_static_F77
16208
16209# Compiler flag to turn off builtin functions.
16210no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16211
16212# Compiler flag to allow reflexive dlopens.
16213export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16214
16215# Compiler flag to generate shared objects directly from archives.
16216whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16217
16218# Compiler flag to generate thread-safe objects.
16219thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16220
16221# Library versioning type.
16222version_type=$version_type
16223
16224# Format of library name prefix.
16225libname_spec=$lt_libname_spec
16226
16227# List of archive names. First name is the real one, the rest are links.
16228# The last name is the one that the linker finds with -lNAME.
16229library_names_spec=$lt_library_names_spec
16230
16231# The coded name of the library, if different from the real name.
16232soname_spec=$lt_soname_spec
16233
16234# Commands used to build and install an old-style archive.
16235RANLIB=$lt_RANLIB
16236old_archive_cmds=$lt_old_archive_cmds_F77
16237old_postinstall_cmds=$lt_old_postinstall_cmds
16238old_postuninstall_cmds=$lt_old_postuninstall_cmds
16239
16240# Create an old-style archive from a shared archive.
16241old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16242
16243# Create a temporary old-style archive to link instead of a shared archive.
16244old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16245
16246# Commands used to build and install a shared archive.
16247archive_cmds=$lt_archive_cmds_F77
16248archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16249postinstall_cmds=$lt_postinstall_cmds
16250postuninstall_cmds=$lt_postuninstall_cmds
16251
16252# Commands used to build a loadable module (assumed same as above if empty)
16253module_cmds=$lt_module_cmds_F77
16254module_expsym_cmds=$lt_module_expsym_cmds_F77
16255
16256# Commands to strip libraries.
16257old_striplib=$lt_old_striplib
16258striplib=$lt_striplib
16259
16260# Dependencies to place before the objects being linked to create a
16261# shared library.
64ff59ba 16262predep_objects=$lt_predep_objects_F77
d9898ee8 16263
16264# Dependencies to place after the objects being linked to create a
16265# shared library.
64ff59ba 16266postdep_objects=$lt_postdep_objects_F77
d9898ee8 16267
16268# Dependencies to place before the objects being linked to create a
16269# shared library.
16270predeps=$lt_predeps_F77
16271
16272# Dependencies to place after the objects being linked to create a
16273# shared library.
16274postdeps=$lt_postdeps_F77
16275
16276# The library search path used internally by the compiler when linking
16277# a shared library.
64ff59ba 16278compiler_lib_search_path=$lt_compiler_lib_search_path_F77
d9898ee8 16279
16280# Method to check whether dependent libraries are shared objects.
16281deplibs_check_method=$lt_deplibs_check_method
16282
16283# Command to use when deplibs_check_method == file_magic.
16284file_magic_cmd=$lt_file_magic_cmd
16285
16286# Flag that allows shared libraries with undefined symbols to be built.
16287allow_undefined_flag=$lt_allow_undefined_flag_F77
16288
16289# Flag that forces no undefined symbols.
16290no_undefined_flag=$lt_no_undefined_flag_F77
16291
16292# Commands used to finish a libtool library installation in a directory.
16293finish_cmds=$lt_finish_cmds
16294
16295# Same as above, but a single script fragment to be evaled but not shown.
16296finish_eval=$lt_finish_eval
16297
16298# Take the output of nm and produce a listing of raw symbols and C names.
16299global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16300
16301# Transform the output of nm in a proper C declaration
16302global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16303
16304# Transform the output of nm in a C name address pair
16305global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16306
16307# This is the shared library runtime path variable.
16308runpath_var=$runpath_var
16309
16310# This is the shared library path variable.
16311shlibpath_var=$shlibpath_var
16312
16313# Is shlibpath searched before the hard-coded library search path?
16314shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16315
16316# How to hardcode a shared library path into an executable.
16317hardcode_action=$hardcode_action_F77
16318
16319# Whether we should hardcode library paths into libraries.
16320hardcode_into_libs=$hardcode_into_libs
16321
16322# Flag to hardcode \$libdir into a binary during linking.
16323# This must work even if \$libdir does not exist.
16324hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16325
16326# If ld is used when linking, flag to hardcode \$libdir into
16327# a binary during linking. This must work even if \$libdir does
16328# not exist.
16329hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16330
16331# Whether we need a single -rpath flag with a separated argument.
16332hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16333
16334# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16335# resulting binary.
16336hardcode_direct=$hardcode_direct_F77
16337
16338# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16339# resulting binary.
16340hardcode_minus_L=$hardcode_minus_L_F77
16341
16342# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16343# the resulting binary.
16344hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16345
16346# Set to yes if building a shared library automatically hardcodes DIR into the library
16347# and all subsequent libraries and executables linked against it.
16348hardcode_automatic=$hardcode_automatic_F77
16349
16350# Variables whose values should be saved in libtool wrapper scripts and
16351# restored at relink time.
16352variables_saved_for_relink="$variables_saved_for_relink"
16353
16354# Whether libtool must link a program against all its dependency libraries.
16355link_all_deplibs=$link_all_deplibs_F77
16356
16357# Compile-time system search path for libraries
64ff59ba 16358sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 16359
16360# Run-time system search path for libraries
16361sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16362
16363# Fix the shell variable \$srcfile for the compiler.
16364fix_srcfile_path="$fix_srcfile_path_F77"
16365
16366# Set to yes if exported symbols are required.
16367always_export_symbols=$always_export_symbols_F77
16368
16369# The commands to list exported symbols.
16370export_symbols_cmds=$lt_export_symbols_cmds_F77
16371
16372# The commands to extract the exported symbol list from a shared archive.
16373extract_expsyms_cmds=$lt_extract_expsyms_cmds
16374
16375# Symbols that should not be listed in the preloaded symbols.
16376exclude_expsyms=$lt_exclude_expsyms_F77
16377
16378# Symbols that must always be exported.
16379include_expsyms=$lt_include_expsyms_F77
16380
16381# ### END LIBTOOL TAG CONFIG: $tagname
16382
16383__EOF__
16384
16385
16386else
16387 # If there is no Makefile yet, we rely on a make rule to execute
16388 # `config.status --recheck' to rerun these tests and create the
16389 # libtool script then.
16390 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16391 if test -f "$ltmain_in"; then
16392 test -f Makefile && make "$ltmain"
16393 fi
16394fi
16395
16396
16397ac_ext=c
16398ac_cpp='$CPP $CPPFLAGS'
16399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16401ac_compiler_gnu=$ac_cv_c_compiler_gnu
16402
16403CC="$lt_save_CC"
16404
16405 else
16406 tagname=""
16407 fi
16408 ;;
16409
16410 GCJ)
16411 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16412
16413
d9898ee8 16414# Source file extension for Java test sources.
16415ac_ext=java
16416
16417# Object file extension for compiled Java test sources.
16418objext=o
16419objext_GCJ=$objext
16420
16421# Code to be used in simple compile tests
16422lt_simple_compile_test_code="class foo {}\n"
16423
16424# Code to be used in simple link tests
16425lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16426
16427# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16428
16429# If no C compiler was specified, use CC.
16430LTCC=${LTCC-"$CC"}
16431
16432# If no C compiler flags were specified, use CFLAGS.
16433LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16434
16435# Allow CC to be a program name with arguments.
16436compiler=$CC
16437
16438
16439# save warnings/boilerplate of simple test code
16440ac_outfile=conftest.$ac_objext
16441printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16442eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16443_lt_compiler_boilerplate=`cat conftest.err`
16444$rm conftest*
16445
16446ac_outfile=conftest.$ac_objext
16447printf "$lt_simple_link_test_code" >conftest.$ac_ext
16448eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16449_lt_linker_boilerplate=`cat conftest.err`
16450$rm conftest*
16451
16452
16453# Allow CC to be a program name with arguments.
16454lt_save_CC="$CC"
16455CC=${GCJ-"gcj"}
16456compiler=$CC
16457compiler_GCJ=$CC
16458for cc_temp in $compiler""; do
16459 case $cc_temp in
16460 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16461 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16462 \-*) ;;
16463 *) break;;
16464 esac
16465done
16466cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16467
16468
16469# GCJ did not exist at the time GCC didn't implicitly link libc in.
16470archive_cmds_need_lc_GCJ=no
16471
16472old_archive_cmds_GCJ=$old_archive_cmds
16473
16474
16475lt_prog_compiler_no_builtin_flag_GCJ=
16476
16477if test "$GCC" = yes; then
16478 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16479
16480
64ff59ba 16481{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16482echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 16483if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16484 echo $ECHO_N "(cached) $ECHO_C" >&6
16485else
16486 lt_cv_prog_compiler_rtti_exceptions=no
16487 ac_outfile=conftest.$ac_objext
16488 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16489 lt_compiler_flag="-fno-rtti -fno-exceptions"
16490 # Insert the option either (1) after the last *FLAGS variable, or
16491 # (2) before a word containing "conftest.", or (3) at the end.
16492 # Note that $ac_compile itself does not contain backslashes and begins
16493 # with a dollar sign (not a hyphen), so the echo should work correctly.
16494 # The option is referenced via a variable to avoid confusing sed.
16495 lt_compile=`echo "$ac_compile" | $SED \
16496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16498 -e 's:$: $lt_compiler_flag:'`
64ff59ba 16499 (eval echo "\"\$as_me:16499: $lt_compile\"" >&5)
d9898ee8 16500 (eval "$lt_compile" 2>conftest.err)
16501 ac_status=$?
16502 cat conftest.err >&5
64ff59ba 16503 echo "$as_me:16503: \$? = $ac_status" >&5
d9898ee8 16504 if (exit $ac_status) && test -s "$ac_outfile"; then
16505 # The compiler can only warn and ignore the option if not recognized
16506 # So say no if there are warnings other than the usual output.
16507 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16508 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16509 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16510 lt_cv_prog_compiler_rtti_exceptions=yes
16511 fi
16512 fi
16513 $rm conftest*
16514
16515fi
64ff59ba 16516{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16517echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 16518
16519if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16520 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16521else
16522 :
16523fi
16524
16525fi
16526
16527lt_prog_compiler_wl_GCJ=
16528lt_prog_compiler_pic_GCJ=
16529lt_prog_compiler_static_GCJ=
16530
64ff59ba 16531{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16532echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 16533
16534 if test "$GCC" = yes; then
16535 lt_prog_compiler_wl_GCJ='-Wl,'
16536 lt_prog_compiler_static_GCJ='-static'
16537
16538 case $host_os in
16539 aix*)
16540 # All AIX code is PIC.
16541 if test "$host_cpu" = ia64; then
16542 # AIX 5 now supports IA64 processor
16543 lt_prog_compiler_static_GCJ='-Bstatic'
16544 fi
16545 ;;
16546
16547 amigaos*)
16548 # FIXME: we need at least 68020 code to build shared libraries, but
16549 # adding the `-m68020' flag to GCC prevents building anything better,
16550 # like `-m68040'.
16551 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16552 ;;
16553
16554 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16555 # PIC is the default for these OSes.
16556 ;;
16557
16558 mingw* | pw32* | os2*)
16559 # This hack is so that the source file can tell whether it is being
16560 # built for inclusion in a dll (and should export symbols for example).
16561 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16562 ;;
16563
16564 darwin* | rhapsody*)
16565 # PIC is the default on this platform
16566 # Common symbols not allowed in MH_DYLIB files
16567 lt_prog_compiler_pic_GCJ='-fno-common'
16568 ;;
16569
16570 interix3*)
16571 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16572 # Instead, we relocate shared libraries at runtime.
16573 ;;
16574
16575 msdosdjgpp*)
16576 # Just because we use GCC doesn't mean we suddenly get shared libraries
16577 # on systems that don't support them.
16578 lt_prog_compiler_can_build_shared_GCJ=no
16579 enable_shared=no
16580 ;;
16581
16582 sysv4*MP*)
16583 if test -d /usr/nec; then
16584 lt_prog_compiler_pic_GCJ=-Kconform_pic
16585 fi
16586 ;;
16587
16588 hpux*)
16589 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16590 # not for PA HP-UX.
16591 case $host_cpu in
16592 hppa*64*|ia64*)
16593 # +Z the default
16594 ;;
16595 *)
16596 lt_prog_compiler_pic_GCJ='-fPIC'
16597 ;;
16598 esac
16599 ;;
16600
16601 *)
16602 lt_prog_compiler_pic_GCJ='-fPIC'
16603 ;;
16604 esac
16605 else
16606 # PORTME Check for flag to pass linker flags through the system compiler.
16607 case $host_os in
16608 aix*)
16609 lt_prog_compiler_wl_GCJ='-Wl,'
16610 if test "$host_cpu" = ia64; then
16611 # AIX 5 now supports IA64 processor
16612 lt_prog_compiler_static_GCJ='-Bstatic'
16613 else
16614 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16615 fi
16616 ;;
16617 darwin*)
16618 # PIC is the default on this platform
16619 # Common symbols not allowed in MH_DYLIB files
16620 case $cc_basename in
16621 xlc*)
16622 lt_prog_compiler_pic_GCJ='-qnocommon'
16623 lt_prog_compiler_wl_GCJ='-Wl,'
16624 ;;
16625 esac
16626 ;;
16627
16628 mingw* | pw32* | os2*)
16629 # This hack is so that the source file can tell whether it is being
16630 # built for inclusion in a dll (and should export symbols for example).
16631 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16632 ;;
16633
16634 hpux9* | hpux10* | hpux11*)
16635 lt_prog_compiler_wl_GCJ='-Wl,'
16636 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16637 # not for PA HP-UX.
16638 case $host_cpu in
16639 hppa*64*|ia64*)
16640 # +Z the default
16641 ;;
16642 *)
16643 lt_prog_compiler_pic_GCJ='+Z'
16644 ;;
16645 esac
16646 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16647 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16648 ;;
16649
16650 irix5* | irix6* | nonstopux*)
16651 lt_prog_compiler_wl_GCJ='-Wl,'
16652 # PIC (with -KPIC) is the default.
16653 lt_prog_compiler_static_GCJ='-non_shared'
16654 ;;
16655
16656 newsos6)
16657 lt_prog_compiler_pic_GCJ='-KPIC'
16658 lt_prog_compiler_static_GCJ='-Bstatic'
16659 ;;
16660
16661 linux*)
16662 case $cc_basename in
16663 icc* | ecc*)
16664 lt_prog_compiler_wl_GCJ='-Wl,'
16665 lt_prog_compiler_pic_GCJ='-KPIC'
16666 lt_prog_compiler_static_GCJ='-static'
16667 ;;
16668 pgcc* | pgf77* | pgf90* | pgf95*)
16669 # Portland Group compilers (*not* the Pentium gcc compiler,
16670 # which looks to be a dead project)
16671 lt_prog_compiler_wl_GCJ='-Wl,'
16672 lt_prog_compiler_pic_GCJ='-fpic'
16673 lt_prog_compiler_static_GCJ='-Bstatic'
16674 ;;
16675 ccc*)
16676 lt_prog_compiler_wl_GCJ='-Wl,'
16677 # All Alpha code is PIC.
16678 lt_prog_compiler_static_GCJ='-non_shared'
16679 ;;
16680 esac
16681 ;;
16682
16683 osf3* | osf4* | osf5*)
16684 lt_prog_compiler_wl_GCJ='-Wl,'
16685 # All OSF/1 code is PIC.
16686 lt_prog_compiler_static_GCJ='-non_shared'
16687 ;;
16688
16689 solaris*)
16690 lt_prog_compiler_pic_GCJ='-KPIC'
16691 lt_prog_compiler_static_GCJ='-Bstatic'
16692 case $cc_basename in
16693 f77* | f90* | f95*)
16694 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16695 *)
16696 lt_prog_compiler_wl_GCJ='-Wl,';;
16697 esac
16698 ;;
16699
16700 sunos4*)
16701 lt_prog_compiler_wl_GCJ='-Qoption ld '
16702 lt_prog_compiler_pic_GCJ='-PIC'
16703 lt_prog_compiler_static_GCJ='-Bstatic'
16704 ;;
16705
16706 sysv4 | sysv4.2uw2* | sysv4.3*)
16707 lt_prog_compiler_wl_GCJ='-Wl,'
16708 lt_prog_compiler_pic_GCJ='-KPIC'
16709 lt_prog_compiler_static_GCJ='-Bstatic'
16710 ;;
16711
16712 sysv4*MP*)
16713 if test -d /usr/nec ;then
16714 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16715 lt_prog_compiler_static_GCJ='-Bstatic'
16716 fi
16717 ;;
16718
16719 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16720 lt_prog_compiler_wl_GCJ='-Wl,'
16721 lt_prog_compiler_pic_GCJ='-KPIC'
16722 lt_prog_compiler_static_GCJ='-Bstatic'
16723 ;;
16724
16725 unicos*)
16726 lt_prog_compiler_wl_GCJ='-Wl,'
16727 lt_prog_compiler_can_build_shared_GCJ=no
16728 ;;
16729
16730 uts4*)
16731 lt_prog_compiler_pic_GCJ='-pic'
16732 lt_prog_compiler_static_GCJ='-Bstatic'
16733 ;;
16734
16735 *)
16736 lt_prog_compiler_can_build_shared_GCJ=no
16737 ;;
16738 esac
16739 fi
16740
64ff59ba 16741{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16742echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d9898ee8 16743
16744#
16745# Check to make sure the PIC flag actually works.
16746#
16747if test -n "$lt_prog_compiler_pic_GCJ"; then
16748
64ff59ba 16749{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16750echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d9898ee8 16751if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16752 echo $ECHO_N "(cached) $ECHO_C" >&6
16753else
16754 lt_prog_compiler_pic_works_GCJ=no
16755 ac_outfile=conftest.$ac_objext
16756 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16757 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16758 # Insert the option either (1) after the last *FLAGS variable, or
16759 # (2) before a word containing "conftest.", or (3) at the end.
16760 # Note that $ac_compile itself does not contain backslashes and begins
16761 # with a dollar sign (not a hyphen), so the echo should work correctly.
16762 # The option is referenced via a variable to avoid confusing sed.
16763 lt_compile=`echo "$ac_compile" | $SED \
16764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16766 -e 's:$: $lt_compiler_flag:'`
64ff59ba 16767 (eval echo "\"\$as_me:16767: $lt_compile\"" >&5)
d9898ee8 16768 (eval "$lt_compile" 2>conftest.err)
16769 ac_status=$?
16770 cat conftest.err >&5
64ff59ba 16771 echo "$as_me:16771: \$? = $ac_status" >&5
d9898ee8 16772 if (exit $ac_status) && test -s "$ac_outfile"; then
16773 # The compiler can only warn and ignore the option if not recognized
16774 # So say no if there are warnings other than the usual output.
16775 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16777 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16778 lt_prog_compiler_pic_works_GCJ=yes
16779 fi
16780 fi
16781 $rm conftest*
16782
16783fi
64ff59ba 16784{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16785echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d9898ee8 16786
16787if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16788 case $lt_prog_compiler_pic_GCJ in
16789 "" | " "*) ;;
16790 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16791 esac
16792else
16793 lt_prog_compiler_pic_GCJ=
16794 lt_prog_compiler_can_build_shared_GCJ=no
16795fi
16796
16797fi
16798case $host_os in
16799 # For platforms which do not support PIC, -DPIC is meaningless:
16800 *djgpp*)
16801 lt_prog_compiler_pic_GCJ=
16802 ;;
16803 *)
16804 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16805 ;;
16806esac
16807
16808#
16809# Check to make sure the static flag actually works.
16810#
16811wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
64ff59ba 16812{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16813echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 16814if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16815 echo $ECHO_N "(cached) $ECHO_C" >&6
16816else
16817 lt_prog_compiler_static_works_GCJ=no
16818 save_LDFLAGS="$LDFLAGS"
16819 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16820 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16821 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16822 # The linker can only warn and ignore the option if not recognized
16823 # So say no if there are warnings
16824 if test -s conftest.err; then
16825 # Append any errors to the config.log.
16826 cat conftest.err 1>&5
16827 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16829 if diff conftest.exp conftest.er2 >/dev/null; then
16830 lt_prog_compiler_static_works_GCJ=yes
16831 fi
16832 else
16833 lt_prog_compiler_static_works_GCJ=yes
16834 fi
16835 fi
16836 $rm conftest*
16837 LDFLAGS="$save_LDFLAGS"
16838
16839fi
64ff59ba 16840{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16841echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
d9898ee8 16842
16843if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16844 :
16845else
16846 lt_prog_compiler_static_GCJ=
16847fi
16848
16849
64ff59ba 16850{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16851echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 16852if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16853 echo $ECHO_N "(cached) $ECHO_C" >&6
16854else
16855 lt_cv_prog_compiler_c_o_GCJ=no
16856 $rm -r conftest 2>/dev/null
16857 mkdir conftest
16858 cd conftest
16859 mkdir out
16860 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16861
16862 lt_compiler_flag="-o out/conftest2.$ac_objext"
16863 # Insert the option either (1) after the last *FLAGS variable, or
16864 # (2) before a word containing "conftest.", or (3) at the end.
16865 # Note that $ac_compile itself does not contain backslashes and begins
16866 # with a dollar sign (not a hyphen), so the echo should work correctly.
16867 lt_compile=`echo "$ac_compile" | $SED \
16868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16870 -e 's:$: $lt_compiler_flag:'`
64ff59ba 16871 (eval echo "\"\$as_me:16871: $lt_compile\"" >&5)
d9898ee8 16872 (eval "$lt_compile" 2>out/conftest.err)
16873 ac_status=$?
16874 cat out/conftest.err >&5
64ff59ba 16875 echo "$as_me:16875: \$? = $ac_status" >&5
d9898ee8 16876 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16877 then
16878 # The compiler can only warn and ignore the option if not recognized
16879 # So say no if there are warnings
16880 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16881 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16882 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16883 lt_cv_prog_compiler_c_o_GCJ=yes
16884 fi
16885 fi
16886 chmod u+w . 2>&5
16887 $rm conftest*
16888 # SGI C++ compiler will create directory out/ii_files/ for
16889 # template instantiation
16890 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16891 $rm out/* && rmdir out
16892 cd ..
16893 rmdir conftest
16894 $rm conftest*
16895
16896fi
64ff59ba 16897{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16898echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d9898ee8 16899
16900
16901hard_links="nottested"
16902if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16903 # do not overwrite the value of need_locks provided by the user
64ff59ba 16904 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16905echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 16906 hard_links=yes
16907 $rm conftest*
16908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16909 touch conftest.a
16910 ln conftest.a conftest.b 2>&5 || hard_links=no
16911 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 16912 { echo "$as_me:$LINENO: result: $hard_links" >&5
16913echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 16914 if test "$hard_links" = no; then
16915 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16916echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16917 need_locks=warn
16918 fi
16919else
16920 need_locks=no
16921fi
16922
64ff59ba 16923{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16924echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 16925
16926 runpath_var=
16927 allow_undefined_flag_GCJ=
16928 enable_shared_with_static_runtimes_GCJ=no
16929 archive_cmds_GCJ=
16930 archive_expsym_cmds_GCJ=
16931 old_archive_From_new_cmds_GCJ=
16932 old_archive_from_expsyms_cmds_GCJ=
16933 export_dynamic_flag_spec_GCJ=
16934 whole_archive_flag_spec_GCJ=
16935 thread_safe_flag_spec_GCJ=
16936 hardcode_libdir_flag_spec_GCJ=
16937 hardcode_libdir_flag_spec_ld_GCJ=
16938 hardcode_libdir_separator_GCJ=
16939 hardcode_direct_GCJ=no
16940 hardcode_minus_L_GCJ=no
16941 hardcode_shlibpath_var_GCJ=unsupported
16942 link_all_deplibs_GCJ=unknown
16943 hardcode_automatic_GCJ=no
16944 module_cmds_GCJ=
16945 module_expsym_cmds_GCJ=
16946 always_export_symbols_GCJ=no
16947 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16948 # include_expsyms should be a list of space-separated symbols to be *always*
16949 # included in the symbol list
16950 include_expsyms_GCJ=
16951 # exclude_expsyms can be an extended regexp of symbols to exclude
16952 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16953 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16954 # as well as any symbol that contains `d'.
16955 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16956 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16957 # platforms (ab)use it in PIC code, but their linkers get confused if
16958 # the symbol is explicitly referenced. Since portable code cannot
16959 # rely on this symbol name, it's probably fine to never include it in
16960 # preloaded symbol tables.
16961 extract_expsyms_cmds=
16962 # Just being paranoid about ensuring that cc_basename is set.
16963 for cc_temp in $compiler""; do
16964 case $cc_temp in
16965 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16966 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16967 \-*) ;;
16968 *) break;;
16969 esac
16970done
16971cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16972
16973 case $host_os in
16974 cygwin* | mingw* | pw32*)
16975 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16976 # When not using gcc, we currently assume that we are using
16977 # Microsoft Visual C++.
16978 if test "$GCC" != yes; then
16979 with_gnu_ld=no
16980 fi
16981 ;;
16982 interix*)
16983 # we just hope/assume this is gcc and not c89 (= MSVC++)
16984 with_gnu_ld=yes
16985 ;;
16986 openbsd*)
16987 with_gnu_ld=no
16988 ;;
16989 esac
16990
16991 ld_shlibs_GCJ=yes
16992 if test "$with_gnu_ld" = yes; then
16993 # If archive_cmds runs LD, not CC, wlarc should be empty
16994 wlarc='${wl}'
16995
16996 # Set some defaults for GNU ld with shared library support. These
16997 # are reset later if shared libraries are not supported. Putting them
16998 # here allows them to be overridden if necessary.
16999 runpath_var=LD_RUN_PATH
17000 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17001 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17002 # ancient GNU ld didn't support --whole-archive et. al.
17003 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17004 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17005 else
17006 whole_archive_flag_spec_GCJ=
17007 fi
17008 supports_anon_versioning=no
17009 case `$LD -v 2>/dev/null` in
17010 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17011 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17012 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17013 *\ 2.11.*) ;; # other 2.11 versions
17014 *) supports_anon_versioning=yes ;;
17015 esac
17016
17017 # See if GNU ld supports shared libraries.
17018 case $host_os in
17019 aix3* | aix4* | aix5*)
17020 # On AIX/PPC, the GNU linker is very broken
17021 if test "$host_cpu" != ia64; then
17022 ld_shlibs_GCJ=no
17023 cat <<EOF 1>&2
17024
17025*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17026*** to be unable to reliably create shared libraries on AIX.
17027*** Therefore, libtool is disabling shared libraries support. If you
17028*** really care for shared libraries, you may want to modify your PATH
17029*** so that a non-GNU linker is found, and then restart.
17030
17031EOF
17032 fi
17033 ;;
17034
17035 amigaos*)
17036 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)'
17037 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17038 hardcode_minus_L_GCJ=yes
17039
17040 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17041 # that the semantics of dynamic libraries on AmigaOS, at least up
17042 # to version 4, is to share data among multiple programs linked
17043 # with the same dynamic library. Since this doesn't match the
17044 # behavior of shared libraries on other platforms, we can't use
17045 # them.
17046 ld_shlibs_GCJ=no
17047 ;;
17048
17049 beos*)
17050 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17051 allow_undefined_flag_GCJ=unsupported
17052 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17053 # support --undefined. This deserves some investigation. FIXME
17054 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17055 else
17056 ld_shlibs_GCJ=no
17057 fi
17058 ;;
17059
17060 cygwin* | mingw* | pw32*)
17061 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17062 # as there is no search path for DLLs.
17063 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17064 allow_undefined_flag_GCJ=unsupported
17065 always_export_symbols_GCJ=no
17066 enable_shared_with_static_runtimes_GCJ=yes
17067 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17068
17069 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17070 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17071 # If the export-symbols file already is a .def file (1st line
17072 # is EXPORTS), use it as is; otherwise, prepend...
17073 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17074 cp $export_symbols $output_objdir/$soname.def;
17075 else
17076 echo EXPORTS > $output_objdir/$soname.def;
17077 cat $export_symbols >> $output_objdir/$soname.def;
17078 fi~
17079 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17080 else
17081 ld_shlibs_GCJ=no
17082 fi
17083 ;;
17084
17085 interix3*)
17086 hardcode_direct_GCJ=no
17087 hardcode_shlibpath_var_GCJ=no
17088 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17089 export_dynamic_flag_spec_GCJ='${wl}-E'
17090 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17091 # Instead, shared libraries are loaded at an image base (0x10000000 by
17092 # default) and relocated if they conflict, which is a slow very memory
17093 # consuming and fragmenting process. To avoid this, we pick a random,
17094 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17095 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17096 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'
17097 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'
17098 ;;
17099
17100 linux*)
17101 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17102 tmp_addflag=
17103 case $cc_basename,$host_cpu in
17104 pgcc*) # Portland Group C compiler
17105 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'
17106 tmp_addflag=' $pic_flag'
17107 ;;
17108 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17109 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'
17110 tmp_addflag=' $pic_flag -Mnomain' ;;
17111 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17112 tmp_addflag=' -i_dynamic' ;;
17113 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17114 tmp_addflag=' -i_dynamic -nofor_main' ;;
17115 ifc* | ifort*) # Intel Fortran compiler
17116 tmp_addflag=' -nofor_main' ;;
17117 esac
17118 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17119
17120 if test $supports_anon_versioning = yes; then
17121 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17122 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17123 $echo "local: *; };" >> $output_objdir/$libname.ver~
17124 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17125 fi
17126 else
17127 ld_shlibs_GCJ=no
17128 fi
17129 ;;
17130
17131 netbsd*)
17132 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17133 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17134 wlarc=
17135 else
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 fi
17139 ;;
17140
17141 solaris*)
17142 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17143 ld_shlibs_GCJ=no
17144 cat <<EOF 1>&2
17145
17146*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17147*** create shared libraries on Solaris systems. Therefore, libtool
17148*** is disabling shared libraries support. We urge you to upgrade GNU
17149*** binutils to release 2.9.1 or newer. Another option is to modify
17150*** your PATH or compiler configuration so that the native linker is
17151*** used, and then restart.
17152
17153EOF
17154 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17155 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17156 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17157 else
17158 ld_shlibs_GCJ=no
17159 fi
17160 ;;
17161
17162 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17163 case `$LD -v 2>&1` in
17164 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17165 ld_shlibs_GCJ=no
17166 cat <<_LT_EOF 1>&2
17167
17168*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17169*** reliably create shared libraries on SCO systems. Therefore, libtool
17170*** is disabling shared libraries support. We urge you to upgrade GNU
17171*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17172*** your PATH or compiler configuration so that the native linker is
17173*** used, and then restart.
17174
17175_LT_EOF
17176 ;;
17177 *)
17178 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17179 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17180 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17181 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17182 else
17183 ld_shlibs_GCJ=no
17184 fi
17185 ;;
17186 esac
17187 ;;
17188
17189 sunos4*)
17190 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17191 wlarc=
17192 hardcode_direct_GCJ=yes
17193 hardcode_shlibpath_var_GCJ=no
17194 ;;
17195
17196 *)
17197 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17198 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17199 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17200 else
17201 ld_shlibs_GCJ=no
17202 fi
17203 ;;
17204 esac
17205
17206 if test "$ld_shlibs_GCJ" = no; then
17207 runpath_var=
17208 hardcode_libdir_flag_spec_GCJ=
17209 export_dynamic_flag_spec_GCJ=
17210 whole_archive_flag_spec_GCJ=
17211 fi
17212 else
17213 # PORTME fill in a description of your system's linker (not GNU ld)
17214 case $host_os in
17215 aix3*)
17216 allow_undefined_flag_GCJ=unsupported
17217 always_export_symbols_GCJ=yes
17218 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'
17219 # Note: this linker hardcodes the directories in LIBPATH if there
17220 # are no directories specified by -L.
17221 hardcode_minus_L_GCJ=yes
17222 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17223 # Neither direct hardcoding nor static linking is supported with a
17224 # broken collect2.
17225 hardcode_direct_GCJ=unsupported
17226 fi
17227 ;;
17228
17229 aix4* | aix5*)
17230 if test "$host_cpu" = ia64; then
17231 # On IA64, the linker does run time linking by default, so we don't
17232 # have to do anything special.
17233 aix_use_runtimelinking=no
17234 exp_sym_flag='-Bexport'
17235 no_entry_flag=""
17236 else
17237 # If we're using GNU nm, then we don't want the "-C" option.
17238 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17239 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17240 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'
17241 else
17242 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'
17243 fi
17244 aix_use_runtimelinking=no
17245
17246 # Test if we are trying to use run time linking or normal
17247 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17248 # need to do runtime linking.
17249 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17250 for ld_flag in $LDFLAGS; do
17251 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17252 aix_use_runtimelinking=yes
17253 break
17254 fi
17255 done
17256 ;;
17257 esac
17258
17259 exp_sym_flag='-bexport'
17260 no_entry_flag='-bnoentry'
17261 fi
17262
17263 # When large executables or shared objects are built, AIX ld can
17264 # have problems creating the table of contents. If linking a library
17265 # or program results in "error TOC overflow" add -mminimal-toc to
17266 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17267 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17268
17269 archive_cmds_GCJ=''
17270 hardcode_direct_GCJ=yes
17271 hardcode_libdir_separator_GCJ=':'
17272 link_all_deplibs_GCJ=yes
17273
17274 if test "$GCC" = yes; then
17275 case $host_os in aix4.[012]|aix4.[012].*)
17276 # We only want to do this on AIX 4.2 and lower, the check
17277 # below for broken collect2 doesn't work under 4.3+
17278 collect2name=`${CC} -print-prog-name=collect2`
17279 if test -f "$collect2name" && \
17280 strings "$collect2name" | grep resolve_lib_name >/dev/null
17281 then
17282 # We have reworked collect2
17283 hardcode_direct_GCJ=yes
17284 else
17285 # We have old collect2
17286 hardcode_direct_GCJ=unsupported
17287 # It fails to find uninstalled libraries when the uninstalled
17288 # path is not listed in the libpath. Setting hardcode_minus_L
17289 # to unsupported forces relinking
17290 hardcode_minus_L_GCJ=yes
17291 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17292 hardcode_libdir_separator_GCJ=
17293 fi
17294 ;;
17295 esac
17296 shared_flag='-shared'
17297 if test "$aix_use_runtimelinking" = yes; then
17298 shared_flag="$shared_flag "'${wl}-G'
17299 fi
17300 else
17301 # not using gcc
17302 if test "$host_cpu" = ia64; then
17303 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17304 # chokes on -Wl,-G. The following line is correct:
17305 shared_flag='-G'
17306 else
17307 if test "$aix_use_runtimelinking" = yes; then
17308 shared_flag='${wl}-G'
17309 else
17310 shared_flag='${wl}-bM:SRE'
17311 fi
17312 fi
17313 fi
17314
17315 # It seems that -bexpall does not export symbols beginning with
17316 # underscore (_), so it is better to generate a list of symbols to export.
17317 always_export_symbols_GCJ=yes
17318 if test "$aix_use_runtimelinking" = yes; then
17319 # Warning - without using the other runtime loading flags (-brtl),
17320 # -berok will link without error, but may produce a broken library.
17321 allow_undefined_flag_GCJ='-berok'
17322 # Determine the default libpath from the value encoded in an empty executable.
17323 cat >conftest.$ac_ext <<_ACEOF
17324/* confdefs.h. */
17325_ACEOF
17326cat confdefs.h >>conftest.$ac_ext
17327cat >>conftest.$ac_ext <<_ACEOF
17328/* end confdefs.h. */
17329
17330int
17331main ()
17332{
17333
17334 ;
17335 return 0;
17336}
17337_ACEOF
17338rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 17339if { (ac_try="$ac_link"
17340case "(($ac_try" in
17341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342 *) ac_try_echo=$ac_try;;
17343esac
17344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345 (eval "$ac_link") 2>conftest.er1
d9898ee8 17346 ac_status=$?
17347 grep -v '^ *+' conftest.er1 >conftest.err
17348 rm -f conftest.er1
17349 cat conftest.err >&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 17351 (exit $ac_status); } && {
17352 test -z "$ac_c_werror_flag" ||
17353 test ! -s conftest.err
17354 } && test -s conftest$ac_exeext &&
17355 $as_test_x conftest$ac_exeext; then
d9898ee8 17356
17357aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17358}'`
17359# Check for a 64-bit object if we didn't find anything.
17360if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17361}'`; fi
17362else
17363 echo "$as_me: failed program was:" >&5
17364sed 's/^/| /' conftest.$ac_ext >&5
17365
64ff59ba 17366
d9898ee8 17367fi
64ff59ba 17368
17369rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17370 conftest$ac_exeext conftest.$ac_ext
17371if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17372
17373 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17374 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"
17375 else
17376 if test "$host_cpu" = ia64; then
17377 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17378 allow_undefined_flag_GCJ="-z nodefs"
17379 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"
17380 else
17381 # Determine the default libpath from the value encoded in an empty executable.
17382 cat >conftest.$ac_ext <<_ACEOF
17383/* confdefs.h. */
17384_ACEOF
17385cat confdefs.h >>conftest.$ac_ext
17386cat >>conftest.$ac_ext <<_ACEOF
17387/* end confdefs.h. */
17388
17389int
17390main ()
17391{
17392
17393 ;
17394 return 0;
17395}
17396_ACEOF
17397rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 17398if { (ac_try="$ac_link"
17399case "(($ac_try" in
17400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17401 *) ac_try_echo=$ac_try;;
17402esac
17403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17404 (eval "$ac_link") 2>conftest.er1
d9898ee8 17405 ac_status=$?
17406 grep -v '^ *+' conftest.er1 >conftest.err
17407 rm -f conftest.er1
17408 cat conftest.err >&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 17410 (exit $ac_status); } && {
17411 test -z "$ac_c_werror_flag" ||
17412 test ! -s conftest.err
17413 } && test -s conftest$ac_exeext &&
17414 $as_test_x conftest$ac_exeext; then
d9898ee8 17415
17416aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17417}'`
17418# Check for a 64-bit object if we didn't find anything.
17419if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17420}'`; fi
17421else
17422 echo "$as_me: failed program was:" >&5
17423sed 's/^/| /' conftest.$ac_ext >&5
17424
64ff59ba 17425
d9898ee8 17426fi
64ff59ba 17427
17428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17429 conftest$ac_exeext conftest.$ac_ext
17430if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17431
17432 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17433 # Warning - without using the other run time loading flags,
17434 # -berok will link without error, but may produce a broken library.
17435 no_undefined_flag_GCJ=' ${wl}-bernotok'
17436 allow_undefined_flag_GCJ=' ${wl}-berok'
17437 # Exported symbols can be pulled into shared objects from archives
17438 whole_archive_flag_spec_GCJ='$convenience'
17439 archive_cmds_need_lc_GCJ=yes
17440 # This is similar to how AIX traditionally builds its shared libraries.
17441 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'
17442 fi
17443 fi
17444 ;;
17445
17446 amigaos*)
17447 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)'
17448 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17449 hardcode_minus_L_GCJ=yes
17450 # see comment about different semantics on the GNU ld section
17451 ld_shlibs_GCJ=no
17452 ;;
17453
17454 bsdi[45]*)
17455 export_dynamic_flag_spec_GCJ=-rdynamic
17456 ;;
17457
17458 cygwin* | mingw* | pw32*)
17459 # When not using gcc, we currently assume that we are using
17460 # Microsoft Visual C++.
17461 # hardcode_libdir_flag_spec is actually meaningless, as there is
17462 # no search path for DLLs.
17463 hardcode_libdir_flag_spec_GCJ=' '
17464 allow_undefined_flag_GCJ=unsupported
17465 # Tell ltmain to make .lib files, not .a files.
17466 libext=lib
17467 # Tell ltmain to make .dll files, not .so files.
17468 shrext_cmds=".dll"
17469 # FIXME: Setting linknames here is a bad hack.
17470 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17471 # The linker will automatically build a .lib file if we build a DLL.
17472 old_archive_From_new_cmds_GCJ='true'
17473 # FIXME: Should let the user specify the lib program.
17474 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17475 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17476 enable_shared_with_static_runtimes_GCJ=yes
17477 ;;
17478
17479 darwin* | rhapsody*)
17480 case $host_os in
17481 rhapsody* | darwin1.[012])
17482 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17483 ;;
17484 *) # Darwin 1.3 on
17485 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17486 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17487 else
17488 case ${MACOSX_DEPLOYMENT_TARGET} in
17489 10.[012])
17490 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17491 ;;
17492 10.*)
17493 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17494 ;;
17495 esac
17496 fi
17497 ;;
17498 esac
17499 archive_cmds_need_lc_GCJ=no
17500 hardcode_direct_GCJ=no
17501 hardcode_automatic_GCJ=yes
17502 hardcode_shlibpath_var_GCJ=unsupported
17503 whole_archive_flag_spec_GCJ=''
17504 link_all_deplibs_GCJ=yes
17505 if test "$GCC" = yes ; then
17506 output_verbose_link_cmd='echo'
17507 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17508 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17509 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17510 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}'
17511 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}'
17512 else
17513 case $cc_basename in
17514 xlc*)
17515 output_verbose_link_cmd='echo'
17516 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17517 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17518 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17519 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17520 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}'
17521 ;;
17522 *)
17523 ld_shlibs_GCJ=no
17524 ;;
17525 esac
17526 fi
17527 ;;
17528
17529 dgux*)
17530 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17531 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17532 hardcode_shlibpath_var_GCJ=no
17533 ;;
17534
17535 freebsd1*)
17536 ld_shlibs_GCJ=no
17537 ;;
17538
17539 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17540 # support. Future versions do this automatically, but an explicit c++rt0.o
17541 # does not break anything, and helps significantly (at the cost of a little
17542 # extra space).
17543 freebsd2.2*)
17544 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17545 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17546 hardcode_direct_GCJ=yes
17547 hardcode_shlibpath_var_GCJ=no
17548 ;;
17549
17550 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17551 freebsd2*)
17552 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17553 hardcode_direct_GCJ=yes
17554 hardcode_minus_L_GCJ=yes
17555 hardcode_shlibpath_var_GCJ=no
17556 ;;
17557
17558 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17559 freebsd* | kfreebsd*-gnu | dragonfly*)
17560 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17561 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17562 hardcode_direct_GCJ=yes
17563 hardcode_shlibpath_var_GCJ=no
17564 ;;
17565
17566 hpux9*)
17567 if test "$GCC" = yes; then
17568 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'
17569 else
17570 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'
17571 fi
17572 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17573 hardcode_libdir_separator_GCJ=:
17574 hardcode_direct_GCJ=yes
17575
17576 # hardcode_minus_L: Not really in the search PATH,
17577 # but as the default location of the library.
17578 hardcode_minus_L_GCJ=yes
17579 export_dynamic_flag_spec_GCJ='${wl}-E'
17580 ;;
17581
17582 hpux10*)
17583 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17584 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17585 else
17586 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17587 fi
17588 if test "$with_gnu_ld" = no; then
17589 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17590 hardcode_libdir_separator_GCJ=:
17591
17592 hardcode_direct_GCJ=yes
17593 export_dynamic_flag_spec_GCJ='${wl}-E'
17594
17595 # hardcode_minus_L: Not really in the search PATH,
17596 # but as the default location of the library.
17597 hardcode_minus_L_GCJ=yes
17598 fi
17599 ;;
17600
17601 hpux11*)
17602 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17603 case $host_cpu in
17604 hppa*64*)
17605 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17606 ;;
17607 ia64*)
17608 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17609 ;;
17610 *)
17611 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17612 ;;
17613 esac
17614 else
17615 case $host_cpu in
17616 hppa*64*)
17617 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17618 ;;
17619 ia64*)
17620 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17621 ;;
17622 *)
17623 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17624 ;;
17625 esac
17626 fi
17627 if test "$with_gnu_ld" = no; then
17628 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17629 hardcode_libdir_separator_GCJ=:
17630
17631 case $host_cpu in
17632 hppa*64*|ia64*)
17633 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17634 hardcode_direct_GCJ=no
17635 hardcode_shlibpath_var_GCJ=no
17636 ;;
17637 *)
17638 hardcode_direct_GCJ=yes
17639 export_dynamic_flag_spec_GCJ='${wl}-E'
17640
17641 # hardcode_minus_L: Not really in the search PATH,
17642 # but as the default location of the library.
17643 hardcode_minus_L_GCJ=yes
17644 ;;
17645 esac
17646 fi
17647 ;;
17648
17649 irix5* | irix6* | nonstopux*)
17650 if test "$GCC" = yes; then
17651 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'
17652 else
17653 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'
17654 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17655 fi
17656 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17657 hardcode_libdir_separator_GCJ=:
17658 link_all_deplibs_GCJ=yes
17659 ;;
17660
17661 netbsd*)
17662 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17663 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17664 else
17665 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17666 fi
17667 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17668 hardcode_direct_GCJ=yes
17669 hardcode_shlibpath_var_GCJ=no
17670 ;;
17671
17672 newsos6)
17673 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17674 hardcode_direct_GCJ=yes
17675 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17676 hardcode_libdir_separator_GCJ=:
17677 hardcode_shlibpath_var_GCJ=no
17678 ;;
17679
17680 openbsd*)
17681 hardcode_direct_GCJ=yes
17682 hardcode_shlibpath_var_GCJ=no
17683 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17684 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17685 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17686 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17687 export_dynamic_flag_spec_GCJ='${wl}-E'
17688 else
17689 case $host_os in
17690 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17691 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17692 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17693 ;;
17694 *)
17695 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17696 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17697 ;;
17698 esac
17699 fi
17700 ;;
17701
17702 os2*)
17703 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17704 hardcode_minus_L_GCJ=yes
17705 allow_undefined_flag_GCJ=unsupported
17706 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'
17707 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17708 ;;
17709
17710 osf3*)
17711 if test "$GCC" = yes; then
17712 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17713 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'
17714 else
17715 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17716 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'
17717 fi
17718 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17719 hardcode_libdir_separator_GCJ=:
17720 ;;
17721
17722 osf4* | osf5*) # as osf3* with the addition of -msym flag
17723 if test "$GCC" = yes; then
17724 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17725 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'
17726 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17727 else
17728 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17729 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'
17730 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~
17731 $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'
17732
17733 # Both c and cxx compiler support -rpath directly
17734 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17735 fi
17736 hardcode_libdir_separator_GCJ=:
17737 ;;
17738
17739 solaris*)
17740 no_undefined_flag_GCJ=' -z text'
17741 if test "$GCC" = yes; then
17742 wlarc='${wl}'
17743 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17744 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17745 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17746 else
17747 wlarc=''
17748 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17749 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17750 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17751 fi
17752 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17753 hardcode_shlibpath_var_GCJ=no
17754 case $host_os in
17755 solaris2.[0-5] | solaris2.[0-5].*) ;;
17756 *)
17757 # The compiler driver will combine linker options so we
17758 # cannot just pass the convience library names through
17759 # without $wl, iff we do not link with $LD.
17760 # Luckily, gcc supports the same syntax we need for Sun Studio.
17761 # Supported since Solaris 2.6 (maybe 2.5.1?)
17762 case $wlarc in
17763 '')
17764 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17765 *)
17766 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17767 esac ;;
17768 esac
17769 link_all_deplibs_GCJ=yes
17770 ;;
17771
17772 sunos4*)
17773 if test "x$host_vendor" = xsequent; then
17774 # Use $CC to link under sequent, because it throws in some extra .o
17775 # files that make .init and .fini sections work.
17776 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17777 else
17778 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17779 fi
17780 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17781 hardcode_direct_GCJ=yes
17782 hardcode_minus_L_GCJ=yes
17783 hardcode_shlibpath_var_GCJ=no
17784 ;;
17785
17786 sysv4)
17787 case $host_vendor in
17788 sni)
17789 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17790 hardcode_direct_GCJ=yes # is this really true???
17791 ;;
17792 siemens)
17793 ## LD is ld it makes a PLAMLIB
17794 ## CC just makes a GrossModule.
17795 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17796 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17797 hardcode_direct_GCJ=no
17798 ;;
17799 motorola)
17800 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17801 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17802 ;;
17803 esac
17804 runpath_var='LD_RUN_PATH'
17805 hardcode_shlibpath_var_GCJ=no
17806 ;;
17807
17808 sysv4.3*)
17809 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17810 hardcode_shlibpath_var_GCJ=no
17811 export_dynamic_flag_spec_GCJ='-Bexport'
17812 ;;
17813
17814 sysv4*MP*)
17815 if test -d /usr/nec; then
17816 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17817 hardcode_shlibpath_var_GCJ=no
17818 runpath_var=LD_RUN_PATH
17819 hardcode_runpath_var=yes
17820 ld_shlibs_GCJ=yes
17821 fi
17822 ;;
17823
17824 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17825 no_undefined_flag_GCJ='${wl}-z,text'
17826 archive_cmds_need_lc_GCJ=no
17827 hardcode_shlibpath_var_GCJ=no
17828 runpath_var='LD_RUN_PATH'
17829
17830 if test "$GCC" = yes; then
17831 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17832 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17833 else
17834 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17835 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17836 fi
17837 ;;
17838
17839 sysv5* | sco3.2v5* | sco5v6*)
17840 # Note: We can NOT use -z defs as we might desire, because we do not
17841 # link with -lc, and that would cause any symbols used from libc to
17842 # always be unresolved, which means just about no library would
17843 # ever link correctly. If we're not using GNU ld we use -z text
17844 # though, which does catch some bad symbols but isn't as heavy-handed
17845 # as -z defs.
17846 no_undefined_flag_GCJ='${wl}-z,text'
17847 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17848 archive_cmds_need_lc_GCJ=no
17849 hardcode_shlibpath_var_GCJ=no
17850 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17851 hardcode_libdir_separator_GCJ=':'
17852 link_all_deplibs_GCJ=yes
17853 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17854 runpath_var='LD_RUN_PATH'
17855
17856 if test "$GCC" = yes; then
17857 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17858 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17859 else
17860 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17861 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17862 fi
17863 ;;
17864
17865 uts4*)
17866 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17867 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17868 hardcode_shlibpath_var_GCJ=no
17869 ;;
17870
17871 *)
17872 ld_shlibs_GCJ=no
17873 ;;
17874 esac
17875 fi
17876
64ff59ba 17877{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17878echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d9898ee8 17879test "$ld_shlibs_GCJ" = no && can_build_shared=no
17880
17881#
17882# Do we need to explicitly link libc?
17883#
17884case "x$archive_cmds_need_lc_GCJ" in
17885x|xyes)
17886 # Assume -lc should be added
17887 archive_cmds_need_lc_GCJ=yes
17888
17889 if test "$enable_shared" = yes && test "$GCC" = yes; then
17890 case $archive_cmds_GCJ in
17891 *'~'*)
17892 # FIXME: we may have to deal with multi-command sequences.
17893 ;;
17894 '$CC '*)
17895 # Test whether the compiler implicitly links with -lc since on some
17896 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17897 # to ld, don't add -lc before -lgcc.
64ff59ba 17898 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17899echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 17900 $rm conftest*
17901 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17902
17903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17904 (eval $ac_compile) 2>&5
17905 ac_status=$?
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } 2>conftest.err; then
17908 soname=conftest
17909 lib=conftest
17910 libobjs=conftest.$ac_objext
17911 deplibs=
17912 wl=$lt_prog_compiler_wl_GCJ
17913 pic_flag=$lt_prog_compiler_pic_GCJ
17914 compiler_flags=-v
17915 linker_flags=-v
17916 verstring=
17917 output_objdir=.
17918 libname=conftest
17919 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17920 allow_undefined_flag_GCJ=
17921 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17922 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17923 ac_status=$?
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }
17926 then
17927 archive_cmds_need_lc_GCJ=no
17928 else
17929 archive_cmds_need_lc_GCJ=yes
17930 fi
17931 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17932 else
17933 cat conftest.err 1>&5
17934 fi
17935 $rm conftest*
64ff59ba 17936 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17937echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d9898ee8 17938 ;;
17939 esac
17940 fi
17941 ;;
17942esac
17943
64ff59ba 17944{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17945echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 17946library_names_spec=
17947libname_spec='lib$name'
17948soname_spec=
17949shrext_cmds=".so"
17950postinstall_cmds=
17951postuninstall_cmds=
17952finish_cmds=
17953finish_eval=
17954shlibpath_var=
17955shlibpath_overrides_runpath=unknown
17956version_type=none
17957dynamic_linker="$host_os ld.so"
17958sys_lib_dlsearch_path_spec="/lib /usr/lib"
17959if test "$GCC" = yes; then
17960 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17961 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17962 # if the path contains ";" then we assume it to be the separator
17963 # otherwise default to the standard path separator (i.e. ":") - it is
17964 # assumed that no part of a normal pathname contains ";" but that should
17965 # okay in the real world where ";" in dirpaths is itself problematic.
17966 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17967 else
17968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17969 fi
17970else
17971 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17972fi
17973need_lib_prefix=unknown
17974hardcode_into_libs=no
17975
17976# when you set need_version to no, make sure it does not cause -set_version
17977# flags to be left without arguments
17978need_version=unknown
17979
17980case $host_os in
17981aix3*)
17982 version_type=linux
17983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17984 shlibpath_var=LIBPATH
17985
17986 # AIX 3 has no versioning support, so we append a major version to the name.
17987 soname_spec='${libname}${release}${shared_ext}$major'
17988 ;;
17989
17990aix4* | aix5*)
17991 version_type=linux
17992 need_lib_prefix=no
17993 need_version=no
17994 hardcode_into_libs=yes
17995 if test "$host_cpu" = ia64; then
17996 # AIX 5 supports IA64
17997 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17998 shlibpath_var=LD_LIBRARY_PATH
17999 else
18000 # With GCC up to 2.95.x, collect2 would create an import file
18001 # for dependence libraries. The import file would start with
18002 # the line `#! .'. This would cause the generated library to
18003 # depend on `.', always an invalid library. This was fixed in
18004 # development snapshots of GCC prior to 3.0.
18005 case $host_os in
18006 aix4 | aix4.[01] | aix4.[01].*)
18007 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18008 echo ' yes '
18009 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18010 :
18011 else
18012 can_build_shared=no
18013 fi
18014 ;;
18015 esac
18016 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18017 # soname into executable. Probably we can add versioning support to
18018 # collect2, so additional links can be useful in future.
18019 if test "$aix_use_runtimelinking" = yes; then
18020 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18021 # instead of lib<name>.a to let people know that these are not
18022 # typical AIX shared libraries.
18023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18024 else
18025 # We preserve .a as extension for shared libraries through AIX4.2
18026 # and later when we are not doing run time linking.
18027 library_names_spec='${libname}${release}.a $libname.a'
18028 soname_spec='${libname}${release}${shared_ext}$major'
18029 fi
18030 shlibpath_var=LIBPATH
18031 fi
18032 ;;
18033
18034amigaos*)
18035 library_names_spec='$libname.ixlibrary $libname.a'
18036 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18037 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'
18038 ;;
18039
18040beos*)
18041 library_names_spec='${libname}${shared_ext}'
18042 dynamic_linker="$host_os ld.so"
18043 shlibpath_var=LIBRARY_PATH
18044 ;;
18045
18046bsdi[45]*)
18047 version_type=linux
18048 need_version=no
18049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18050 soname_spec='${libname}${release}${shared_ext}$major'
18051 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18052 shlibpath_var=LD_LIBRARY_PATH
18053 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18054 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18055 # the default ld.so.conf also contains /usr/contrib/lib and
18056 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18057 # libtool to hard-code these into programs
18058 ;;
18059
18060cygwin* | mingw* | pw32*)
18061 version_type=windows
18062 shrext_cmds=".dll"
18063 need_version=no
18064 need_lib_prefix=no
18065
18066 case $GCC,$host_os in
18067 yes,cygwin* | yes,mingw* | yes,pw32*)
18068 library_names_spec='$libname.dll.a'
18069 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18070 postinstall_cmds='base_file=`basename \${file}`~
18071 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18072 dldir=$destdir/`dirname \$dlpath`~
18073 test -d \$dldir || mkdir -p \$dldir~
18074 $install_prog $dir/$dlname \$dldir/$dlname~
18075 chmod a+x \$dldir/$dlname'
18076 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18077 dlpath=$dir/\$dldll~
18078 $rm \$dlpath'
18079 shlibpath_overrides_runpath=yes
18080
18081 case $host_os in
18082 cygwin*)
18083 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18084 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18085 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18086 ;;
18087 mingw*)
18088 # MinGW DLLs use traditional 'lib' prefix
18089 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18090 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18091 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18092 # It is most probably a Windows format PATH printed by
18093 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18094 # path with ; separators, and with drive letters. We can handle the
18095 # drive letters (cygwin fileutils understands them), so leave them,
18096 # especially as we might pass files found there to a mingw objdump,
18097 # which wouldn't understand a cygwinified path. Ahh.
18098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18099 else
18100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18101 fi
18102 ;;
18103 pw32*)
18104 # pw32 DLLs use 'pw' prefix rather than 'lib'
18105 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18106 ;;
18107 esac
18108 ;;
18109
18110 *)
18111 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18112 ;;
18113 esac
18114 dynamic_linker='Win32 ld.exe'
18115 # FIXME: first we should search . and the directory the executable is in
18116 shlibpath_var=PATH
18117 ;;
18118
18119darwin* | rhapsody*)
18120 dynamic_linker="$host_os dyld"
18121 version_type=darwin
18122 need_lib_prefix=no
18123 need_version=no
18124 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18125 soname_spec='${libname}${release}${major}$shared_ext'
18126 shlibpath_overrides_runpath=yes
18127 shlibpath_var=DYLD_LIBRARY_PATH
18128 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18129 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18130 if test "$GCC" = yes; then
18131 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18132 else
18133 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18134 fi
18135 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18136 ;;
18137
18138dgux*)
18139 version_type=linux
18140 need_lib_prefix=no
18141 need_version=no
18142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18143 soname_spec='${libname}${release}${shared_ext}$major'
18144 shlibpath_var=LD_LIBRARY_PATH
18145 ;;
18146
18147freebsd1*)
18148 dynamic_linker=no
18149 ;;
18150
18151kfreebsd*-gnu)
18152 version_type=linux
18153 need_lib_prefix=no
18154 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
18158 shlibpath_overrides_runpath=no
18159 hardcode_into_libs=yes
18160 dynamic_linker='GNU ld.so'
18161 ;;
18162
18163freebsd* | dragonfly*)
18164 # DragonFly does not have aout. When/if they implement a new
18165 # versioning mechanism, adjust this.
18166 if test -x /usr/bin/objformat; then
18167 objformat=`/usr/bin/objformat`
18168 else
18169 case $host_os in
18170 freebsd[123]*) objformat=aout ;;
18171 *) objformat=elf ;;
18172 esac
18173 fi
18174 version_type=freebsd-$objformat
18175 case $version_type in
18176 freebsd-elf*)
18177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18178 need_version=no
18179 need_lib_prefix=no
18180 ;;
18181 freebsd-*)
18182 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18183 need_version=yes
18184 ;;
18185 esac
18186 shlibpath_var=LD_LIBRARY_PATH
18187 case $host_os in
18188 freebsd2*)
18189 shlibpath_overrides_runpath=yes
18190 ;;
18191 freebsd3.[01]* | freebsdelf3.[01]*)
18192 shlibpath_overrides_runpath=yes
18193 hardcode_into_libs=yes
18194 ;;
18195 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18196 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18197 shlibpath_overrides_runpath=no
18198 hardcode_into_libs=yes
18199 ;;
18200 freebsd*) # from 4.6 on
18201 shlibpath_overrides_runpath=yes
18202 hardcode_into_libs=yes
18203 ;;
18204 esac
18205 ;;
18206
18207gnu*)
18208 version_type=linux
18209 need_lib_prefix=no
18210 need_version=no
18211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18212 soname_spec='${libname}${release}${shared_ext}$major'
18213 shlibpath_var=LD_LIBRARY_PATH
18214 hardcode_into_libs=yes
18215 ;;
18216
18217hpux9* | hpux10* | hpux11*)
18218 # Give a soname corresponding to the major version so that dld.sl refuses to
18219 # link against other versions.
18220 version_type=sunos
18221 need_lib_prefix=no
18222 need_version=no
18223 case $host_cpu in
18224 ia64*)
18225 shrext_cmds='.so'
18226 hardcode_into_libs=yes
18227 dynamic_linker="$host_os dld.so"
18228 shlibpath_var=LD_LIBRARY_PATH
18229 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18231 soname_spec='${libname}${release}${shared_ext}$major'
18232 if test "X$HPUX_IA64_MODE" = X32; then
18233 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18234 else
18235 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18236 fi
18237 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18238 ;;
18239 hppa*64*)
18240 shrext_cmds='.sl'
18241 hardcode_into_libs=yes
18242 dynamic_linker="$host_os dld.sl"
18243 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18244 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18246 soname_spec='${libname}${release}${shared_ext}$major'
18247 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18249 ;;
18250 *)
18251 shrext_cmds='.sl'
18252 dynamic_linker="$host_os dld.sl"
18253 shlibpath_var=SHLIB_PATH
18254 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18256 soname_spec='${libname}${release}${shared_ext}$major'
18257 ;;
18258 esac
18259 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18260 postinstall_cmds='chmod 555 $lib'
18261 ;;
18262
18263interix3*)
18264 version_type=linux
18265 need_lib_prefix=no
18266 need_version=no
18267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18268 soname_spec='${libname}${release}${shared_ext}$major'
18269 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18270 shlibpath_var=LD_LIBRARY_PATH
18271 shlibpath_overrides_runpath=no
18272 hardcode_into_libs=yes
18273 ;;
18274
18275irix5* | irix6* | nonstopux*)
18276 case $host_os in
18277 nonstopux*) version_type=nonstopux ;;
18278 *)
18279 if test "$lt_cv_prog_gnu_ld" = yes; then
18280 version_type=linux
18281 else
18282 version_type=irix
18283 fi ;;
18284 esac
18285 need_lib_prefix=no
18286 need_version=no
18287 soname_spec='${libname}${release}${shared_ext}$major'
18288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18289 case $host_os in
18290 irix5* | nonstopux*)
18291 libsuff= shlibsuff=
18292 ;;
18293 *)
18294 case $LD in # libtool.m4 will add one of these switches to LD
18295 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18296 libsuff= shlibsuff= libmagic=32-bit;;
18297 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18298 libsuff=32 shlibsuff=N32 libmagic=N32;;
18299 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18300 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18301 *) libsuff= shlibsuff= libmagic=never-match;;
18302 esac
18303 ;;
18304 esac
18305 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18306 shlibpath_overrides_runpath=no
18307 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18308 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18309 hardcode_into_libs=yes
18310 ;;
18311
18312# No shared lib support for Linux oldld, aout, or coff.
18313linux*oldld* | linux*aout* | linux*coff*)
18314 dynamic_linker=no
18315 ;;
18316
18317# This must be Linux ELF.
18318linux*)
18319 version_type=linux
18320 need_lib_prefix=no
18321 need_version=no
18322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18323 soname_spec='${libname}${release}${shared_ext}$major'
18324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18325 shlibpath_var=LD_LIBRARY_PATH
18326 shlibpath_overrides_runpath=no
18327 # This implies no fast_install, which is unacceptable.
18328 # Some rework will be needed to allow for fast_install
18329 # before this can be enabled.
18330 hardcode_into_libs=yes
18331
18332 # find out which ABI we are using
18333 libsuff=
18334 case "$host_cpu" in
18335 x86_64*|s390x*|powerpc64*)
64ff59ba 18336 echo '#line 18336 "configure"' > conftest.$ac_ext
d9898ee8 18337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18338 (eval $ac_compile) 2>&5
18339 ac_status=$?
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); }; then
18342 case `/usr/bin/file conftest.$ac_objext` in
18343 *64-bit*)
18344 libsuff=64
18345 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18346 ;;
18347 esac
18348 fi
18349 rm -rf conftest*
18350 ;;
18351 esac
18352
18353 # Append ld.so.conf contents to the search path
18354 if test -f /etc/ld.so.conf; then
64ff59ba 18355 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 18356 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18357 fi
18358
18359 # We used to test for /lib/ld.so.1 and disable shared libraries on
18360 # powerpc, because MkLinux only supported shared libraries with the
18361 # GNU dynamic linker. Since this was broken with cross compilers,
18362 # most powerpc-linux boxes support dynamic linking these days and
18363 # people can always --disable-shared, the test was removed, and we
18364 # assume the GNU/Linux dynamic linker is in use.
18365 dynamic_linker='GNU/Linux ld.so'
18366 ;;
18367
18368knetbsd*-gnu)
18369 version_type=linux
18370 need_lib_prefix=no
18371 need_version=no
18372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18373 soname_spec='${libname}${release}${shared_ext}$major'
18374 shlibpath_var=LD_LIBRARY_PATH
18375 shlibpath_overrides_runpath=no
18376 hardcode_into_libs=yes
18377 dynamic_linker='GNU ld.so'
18378 ;;
18379
18380netbsd*)
18381 version_type=sunos
18382 need_lib_prefix=no
18383 need_version=no
18384 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18387 dynamic_linker='NetBSD (a.out) ld.so'
18388 else
18389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18390 soname_spec='${libname}${release}${shared_ext}$major'
18391 dynamic_linker='NetBSD ld.elf_so'
18392 fi
18393 shlibpath_var=LD_LIBRARY_PATH
18394 shlibpath_overrides_runpath=yes
18395 hardcode_into_libs=yes
18396 ;;
18397
18398newsos6)
18399 version_type=linux
18400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18401 shlibpath_var=LD_LIBRARY_PATH
18402 shlibpath_overrides_runpath=yes
18403 ;;
18404
18405nto-qnx*)
18406 version_type=linux
18407 need_lib_prefix=no
18408 need_version=no
18409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18410 soname_spec='${libname}${release}${shared_ext}$major'
18411 shlibpath_var=LD_LIBRARY_PATH
18412 shlibpath_overrides_runpath=yes
18413 ;;
18414
18415openbsd*)
18416 version_type=sunos
18417 sys_lib_dlsearch_path_spec="/usr/lib"
18418 need_lib_prefix=no
18419 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18420 case $host_os in
18421 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18422 *) need_version=no ;;
18423 esac
18424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18426 shlibpath_var=LD_LIBRARY_PATH
18427 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18428 case $host_os in
18429 openbsd2.[89] | openbsd2.[89].*)
18430 shlibpath_overrides_runpath=no
18431 ;;
18432 *)
18433 shlibpath_overrides_runpath=yes
18434 ;;
18435 esac
18436 else
18437 shlibpath_overrides_runpath=yes
18438 fi
18439 ;;
18440
18441os2*)
18442 libname_spec='$name'
18443 shrext_cmds=".dll"
18444 need_lib_prefix=no
18445 library_names_spec='$libname${shared_ext} $libname.a'
18446 dynamic_linker='OS/2 ld.exe'
18447 shlibpath_var=LIBPATH
18448 ;;
18449
18450osf3* | osf4* | osf5*)
18451 version_type=osf
18452 need_lib_prefix=no
18453 need_version=no
18454 soname_spec='${libname}${release}${shared_ext}$major'
18455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18456 shlibpath_var=LD_LIBRARY_PATH
18457 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18458 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18459 ;;
18460
18461solaris*)
18462 version_type=linux
18463 need_lib_prefix=no
18464 need_version=no
18465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18466 soname_spec='${libname}${release}${shared_ext}$major'
18467 shlibpath_var=LD_LIBRARY_PATH
18468 shlibpath_overrides_runpath=yes
18469 hardcode_into_libs=yes
18470 # ldd complains unless libraries are executable
18471 postinstall_cmds='chmod +x $lib'
18472 ;;
18473
18474sunos4*)
18475 version_type=sunos
18476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18477 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18478 shlibpath_var=LD_LIBRARY_PATH
18479 shlibpath_overrides_runpath=yes
18480 if test "$with_gnu_ld" = yes; then
18481 need_lib_prefix=no
18482 fi
18483 need_version=yes
18484 ;;
18485
18486sysv4 | sysv4.3*)
18487 version_type=linux
18488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18489 soname_spec='${libname}${release}${shared_ext}$major'
18490 shlibpath_var=LD_LIBRARY_PATH
18491 case $host_vendor in
18492 sni)
18493 shlibpath_overrides_runpath=no
18494 need_lib_prefix=no
18495 export_dynamic_flag_spec='${wl}-Blargedynsym'
18496 runpath_var=LD_RUN_PATH
18497 ;;
18498 siemens)
18499 need_lib_prefix=no
18500 ;;
18501 motorola)
18502 need_lib_prefix=no
18503 need_version=no
18504 shlibpath_overrides_runpath=no
18505 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18506 ;;
18507 esac
18508 ;;
18509
18510sysv4*MP*)
18511 if test -d /usr/nec ;then
18512 version_type=linux
18513 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18514 soname_spec='$libname${shared_ext}.$major'
18515 shlibpath_var=LD_LIBRARY_PATH
18516 fi
18517 ;;
18518
18519sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18520 version_type=freebsd-elf
18521 need_lib_prefix=no
18522 need_version=no
18523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18524 soname_spec='${libname}${release}${shared_ext}$major'
18525 shlibpath_var=LD_LIBRARY_PATH
18526 hardcode_into_libs=yes
18527 if test "$with_gnu_ld" = yes; then
18528 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18529 shlibpath_overrides_runpath=no
18530 else
18531 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18532 shlibpath_overrides_runpath=yes
18533 case $host_os in
18534 sco3.2v5*)
18535 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18536 ;;
18537 esac
18538 fi
18539 sys_lib_dlsearch_path_spec='/usr/lib'
18540 ;;
18541
18542uts4*)
18543 version_type=linux
18544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18545 soname_spec='${libname}${release}${shared_ext}$major'
18546 shlibpath_var=LD_LIBRARY_PATH
18547 ;;
18548
18549*)
18550 dynamic_linker=no
18551 ;;
18552esac
64ff59ba 18553{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18554echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 18555test "$dynamic_linker" = no && can_build_shared=no
18556
18557variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18558if test "$GCC" = yes; then
18559 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18560fi
18561
64ff59ba 18562{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18563echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 18564hardcode_action_GCJ=
18565if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18566 test -n "$runpath_var_GCJ" || \
18567 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18568
18569 # We can hardcode non-existant directories.
18570 if test "$hardcode_direct_GCJ" != no &&
18571 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18572 # have to relink, otherwise we might link with an installed library
18573 # when we should be linking with a yet-to-be-installed one
18574 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18575 test "$hardcode_minus_L_GCJ" != no; then
18576 # Linking always hardcodes the temporary library directory.
18577 hardcode_action_GCJ=relink
18578 else
18579 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18580 hardcode_action_GCJ=immediate
18581 fi
18582else
18583 # We cannot hardcode anything, or else we can only hardcode existing
18584 # directories.
18585 hardcode_action_GCJ=unsupported
18586fi
64ff59ba 18587{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18588echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d9898ee8 18589
18590if test "$hardcode_action_GCJ" = relink; then
18591 # Fast installation is not supported
18592 enable_fast_install=no
18593elif test "$shlibpath_overrides_runpath" = yes ||
18594 test "$enable_shared" = no; then
18595 # Fast installation is not necessary
18596 enable_fast_install=needless
18597fi
18598
18599
18600# The else clause should only fire when bootstrapping the
18601# libtool distribution, otherwise you forgot to ship ltmain.sh
18602# with your package, and you will get complaints that there are
18603# no rules to generate ltmain.sh.
18604if test -f "$ltmain"; then
18605 # See if we are running on zsh, and set the options which allow our commands through
18606 # without removal of \ escapes.
18607 if test -n "${ZSH_VERSION+set}" ; then
18608 setopt NO_GLOB_SUBST
18609 fi
18610 # Now quote all the things that may contain metacharacters while being
18611 # careful not to overquote the AC_SUBSTed values. We take copies of the
18612 # variables and quote the copies for generation of the libtool script.
18613 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18614 SED SHELL STRIP \
18615 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18616 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18617 deplibs_check_method reload_flag reload_cmds need_locks \
18618 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18619 lt_cv_sys_global_symbol_to_c_name_address \
18620 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18621 old_postinstall_cmds old_postuninstall_cmds \
18622 compiler_GCJ \
18623 CC_GCJ \
18624 LD_GCJ \
18625 lt_prog_compiler_wl_GCJ \
18626 lt_prog_compiler_pic_GCJ \
18627 lt_prog_compiler_static_GCJ \
18628 lt_prog_compiler_no_builtin_flag_GCJ \
18629 export_dynamic_flag_spec_GCJ \
18630 thread_safe_flag_spec_GCJ \
18631 whole_archive_flag_spec_GCJ \
18632 enable_shared_with_static_runtimes_GCJ \
18633 old_archive_cmds_GCJ \
18634 old_archive_from_new_cmds_GCJ \
18635 predep_objects_GCJ \
18636 postdep_objects_GCJ \
18637 predeps_GCJ \
18638 postdeps_GCJ \
18639 compiler_lib_search_path_GCJ \
18640 archive_cmds_GCJ \
18641 archive_expsym_cmds_GCJ \
18642 postinstall_cmds_GCJ \
18643 postuninstall_cmds_GCJ \
18644 old_archive_from_expsyms_cmds_GCJ \
18645 allow_undefined_flag_GCJ \
18646 no_undefined_flag_GCJ \
18647 export_symbols_cmds_GCJ \
18648 hardcode_libdir_flag_spec_GCJ \
18649 hardcode_libdir_flag_spec_ld_GCJ \
18650 hardcode_libdir_separator_GCJ \
18651 hardcode_automatic_GCJ \
18652 module_cmds_GCJ \
18653 module_expsym_cmds_GCJ \
18654 lt_cv_prog_compiler_c_o_GCJ \
18655 exclude_expsyms_GCJ \
18656 include_expsyms_GCJ; do
18657
18658 case $var in
18659 old_archive_cmds_GCJ | \
18660 old_archive_from_new_cmds_GCJ | \
18661 archive_cmds_GCJ | \
18662 archive_expsym_cmds_GCJ | \
18663 module_cmds_GCJ | \
18664 module_expsym_cmds_GCJ | \
18665 old_archive_from_expsyms_cmds_GCJ | \
18666 export_symbols_cmds_GCJ | \
18667 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18668 postinstall_cmds | postuninstall_cmds | \
18669 old_postinstall_cmds | old_postuninstall_cmds | \
18670 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18671 # Double-quote double-evaled strings.
18672 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18673 ;;
18674 *)
18675 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18676 ;;
18677 esac
18678 done
18679
18680 case $lt_echo in
18681 *'\$0 --fallback-echo"')
18682 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18683 ;;
18684 esac
18685
18686cfgfile="$ofile"
18687
18688 cat <<__EOF__ >> "$cfgfile"
18689# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18690
18691# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18692
18693# Shell to use when invoking shell scripts.
18694SHELL=$lt_SHELL
18695
18696# Whether or not to build shared libraries.
18697build_libtool_libs=$enable_shared
18698
18699# Whether or not to build static libraries.
18700build_old_libs=$enable_static
18701
18702# Whether or not to add -lc for building shared libraries.
18703build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18704
18705# Whether or not to disallow shared libs when runtime libs are static
18706allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18707
18708# Whether or not to optimize for fast installation.
18709fast_install=$enable_fast_install
18710
18711# The host system.
18712host_alias=$host_alias
18713host=$host
18714host_os=$host_os
18715
18716# The build system.
18717build_alias=$build_alias
18718build=$build
18719build_os=$build_os
18720
18721# An echo program that does not interpret backslashes.
18722echo=$lt_echo
18723
18724# The archiver.
18725AR=$lt_AR
18726AR_FLAGS=$lt_AR_FLAGS
18727
18728# A C compiler.
18729LTCC=$lt_LTCC
18730
18731# LTCC compiler flags.
18732LTCFLAGS=$lt_LTCFLAGS
18733
18734# A language-specific compiler.
18735CC=$lt_compiler_GCJ
18736
18737# Is the compiler the GNU C compiler?
18738with_gcc=$GCC_GCJ
18739
d9898ee8 18740# An ERE matcher.
18741EGREP=$lt_EGREP
18742
18743# The linker used to build libraries.
18744LD=$lt_LD_GCJ
18745
18746# Whether we need hard or soft links.
18747LN_S=$lt_LN_S
18748
18749# A BSD-compatible nm program.
18750NM=$lt_NM
18751
18752# A symbol stripping program
18753STRIP=$lt_STRIP
18754
18755# Used to examine libraries when file_magic_cmd begins "file"
18756MAGIC_CMD=$MAGIC_CMD
18757
18758# Used on cygwin: DLL creation program.
18759DLLTOOL="$DLLTOOL"
18760
18761# Used on cygwin: object dumper.
18762OBJDUMP="$OBJDUMP"
18763
18764# Used on cygwin: assembler.
18765AS="$AS"
18766
18767# The name of the directory that contains temporary libtool files.
18768objdir=$objdir
18769
18770# How to create reloadable object files.
18771reload_flag=$lt_reload_flag
18772reload_cmds=$lt_reload_cmds
18773
18774# How to pass a linker flag through the compiler.
18775wl=$lt_lt_prog_compiler_wl_GCJ
18776
18777# Object file suffix (normally "o").
18778objext="$ac_objext"
18779
18780# Old archive suffix (normally "a").
18781libext="$libext"
18782
18783# Shared library suffix (normally ".so").
18784shrext_cmds='$shrext_cmds'
18785
18786# Executable file suffix (normally "").
18787exeext="$exeext"
18788
18789# Additional compiler flags for building library objects.
18790pic_flag=$lt_lt_prog_compiler_pic_GCJ
18791pic_mode=$pic_mode
18792
18793# What is the maximum length of a command?
18794max_cmd_len=$lt_cv_sys_max_cmd_len
18795
18796# Does compiler simultaneously support -c and -o options?
18797compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18798
18799# Must we lock files when doing compilation?
18800need_locks=$lt_need_locks
18801
18802# Do we need the lib prefix for modules?
18803need_lib_prefix=$need_lib_prefix
18804
18805# Do we need a version for libraries?
18806need_version=$need_version
18807
18808# Whether dlopen is supported.
18809dlopen_support=$enable_dlopen
18810
18811# Whether dlopen of programs is supported.
18812dlopen_self=$enable_dlopen_self
18813
18814# Whether dlopen of statically linked programs is supported.
18815dlopen_self_static=$enable_dlopen_self_static
18816
18817# Compiler flag to prevent dynamic linking.
18818link_static_flag=$lt_lt_prog_compiler_static_GCJ
18819
18820# Compiler flag to turn off builtin functions.
18821no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18822
18823# Compiler flag to allow reflexive dlopens.
18824export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18825
18826# Compiler flag to generate shared objects directly from archives.
18827whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18828
18829# Compiler flag to generate thread-safe objects.
18830thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18831
18832# Library versioning type.
18833version_type=$version_type
18834
18835# Format of library name prefix.
18836libname_spec=$lt_libname_spec
18837
18838# List of archive names. First name is the real one, the rest are links.
18839# The last name is the one that the linker finds with -lNAME.
18840library_names_spec=$lt_library_names_spec
18841
18842# The coded name of the library, if different from the real name.
18843soname_spec=$lt_soname_spec
18844
18845# Commands used to build and install an old-style archive.
18846RANLIB=$lt_RANLIB
18847old_archive_cmds=$lt_old_archive_cmds_GCJ
18848old_postinstall_cmds=$lt_old_postinstall_cmds
18849old_postuninstall_cmds=$lt_old_postuninstall_cmds
18850
18851# Create an old-style archive from a shared archive.
18852old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18853
18854# Create a temporary old-style archive to link instead of a shared archive.
18855old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18856
18857# Commands used to build and install a shared archive.
18858archive_cmds=$lt_archive_cmds_GCJ
18859archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18860postinstall_cmds=$lt_postinstall_cmds
18861postuninstall_cmds=$lt_postuninstall_cmds
18862
18863# Commands used to build a loadable module (assumed same as above if empty)
18864module_cmds=$lt_module_cmds_GCJ
18865module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18866
18867# Commands to strip libraries.
18868old_striplib=$lt_old_striplib
18869striplib=$lt_striplib
18870
18871# Dependencies to place before the objects being linked to create a
18872# shared library.
64ff59ba 18873predep_objects=$lt_predep_objects_GCJ
d9898ee8 18874
18875# Dependencies to place after the objects being linked to create a
18876# shared library.
64ff59ba 18877postdep_objects=$lt_postdep_objects_GCJ
d9898ee8 18878
18879# Dependencies to place before the objects being linked to create a
18880# shared library.
18881predeps=$lt_predeps_GCJ
18882
18883# Dependencies to place after the objects being linked to create a
18884# shared library.
18885postdeps=$lt_postdeps_GCJ
18886
18887# The library search path used internally by the compiler when linking
18888# a shared library.
64ff59ba 18889compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
d9898ee8 18890
18891# Method to check whether dependent libraries are shared objects.
18892deplibs_check_method=$lt_deplibs_check_method
18893
18894# Command to use when deplibs_check_method == file_magic.
18895file_magic_cmd=$lt_file_magic_cmd
18896
18897# Flag that allows shared libraries with undefined symbols to be built.
18898allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18899
18900# Flag that forces no undefined symbols.
18901no_undefined_flag=$lt_no_undefined_flag_GCJ
18902
18903# Commands used to finish a libtool library installation in a directory.
18904finish_cmds=$lt_finish_cmds
18905
18906# Same as above, but a single script fragment to be evaled but not shown.
18907finish_eval=$lt_finish_eval
18908
18909# Take the output of nm and produce a listing of raw symbols and C names.
18910global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18911
18912# Transform the output of nm in a proper C declaration
18913global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18914
18915# Transform the output of nm in a C name address pair
18916global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18917
18918# This is the shared library runtime path variable.
18919runpath_var=$runpath_var
18920
18921# This is the shared library path variable.
18922shlibpath_var=$shlibpath_var
18923
18924# Is shlibpath searched before the hard-coded library search path?
18925shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18926
18927# How to hardcode a shared library path into an executable.
18928hardcode_action=$hardcode_action_GCJ
18929
18930# Whether we should hardcode library paths into libraries.
18931hardcode_into_libs=$hardcode_into_libs
18932
18933# Flag to hardcode \$libdir into a binary during linking.
18934# This must work even if \$libdir does not exist.
18935hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18936
18937# If ld is used when linking, flag to hardcode \$libdir into
18938# a binary during linking. This must work even if \$libdir does
18939# not exist.
18940hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18941
18942# Whether we need a single -rpath flag with a separated argument.
18943hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18944
18945# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18946# resulting binary.
18947hardcode_direct=$hardcode_direct_GCJ
18948
18949# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18950# resulting binary.
18951hardcode_minus_L=$hardcode_minus_L_GCJ
18952
18953# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18954# the resulting binary.
18955hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18956
18957# Set to yes if building a shared library automatically hardcodes DIR into the library
18958# and all subsequent libraries and executables linked against it.
18959hardcode_automatic=$hardcode_automatic_GCJ
18960
18961# Variables whose values should be saved in libtool wrapper scripts and
18962# restored at relink time.
18963variables_saved_for_relink="$variables_saved_for_relink"
18964
18965# Whether libtool must link a program against all its dependency libraries.
18966link_all_deplibs=$link_all_deplibs_GCJ
18967
18968# Compile-time system search path for libraries
64ff59ba 18969sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 18970
18971# Run-time system search path for libraries
18972sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18973
18974# Fix the shell variable \$srcfile for the compiler.
18975fix_srcfile_path="$fix_srcfile_path_GCJ"
18976
18977# Set to yes if exported symbols are required.
18978always_export_symbols=$always_export_symbols_GCJ
18979
18980# The commands to list exported symbols.
18981export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18982
18983# The commands to extract the exported symbol list from a shared archive.
18984extract_expsyms_cmds=$lt_extract_expsyms_cmds
18985
18986# Symbols that should not be listed in the preloaded symbols.
18987exclude_expsyms=$lt_exclude_expsyms_GCJ
18988
18989# Symbols that must always be exported.
18990include_expsyms=$lt_include_expsyms_GCJ
18991
18992# ### END LIBTOOL TAG CONFIG: $tagname
18993
18994__EOF__
18995
18996
18997else
18998 # If there is no Makefile yet, we rely on a make rule to execute
18999 # `config.status --recheck' to rerun these tests and create the
19000 # libtool script then.
19001 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19002 if test -f "$ltmain_in"; then
19003 test -f Makefile && make "$ltmain"
19004 fi
19005fi
19006
19007
19008ac_ext=c
19009ac_cpp='$CPP $CPPFLAGS'
19010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19012ac_compiler_gnu=$ac_cv_c_compiler_gnu
19013
19014CC="$lt_save_CC"
19015
19016 else
19017 tagname=""
19018 fi
19019 ;;
19020
19021 RC)
19022
19023
d9898ee8 19024# Source file extension for RC test sources.
19025ac_ext=rc
19026
19027# Object file extension for compiled RC test sources.
19028objext=o
19029objext_RC=$objext
19030
19031# Code to be used in simple compile tests
19032lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19033
19034# Code to be used in simple link tests
19035lt_simple_link_test_code="$lt_simple_compile_test_code"
19036
19037# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19038
19039# If no C compiler was specified, use CC.
19040LTCC=${LTCC-"$CC"}
19041
19042# If no C compiler flags were specified, use CFLAGS.
19043LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19044
19045# Allow CC to be a program name with arguments.
19046compiler=$CC
19047
19048
19049# save warnings/boilerplate of simple test code
19050ac_outfile=conftest.$ac_objext
19051printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19052eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19053_lt_compiler_boilerplate=`cat conftest.err`
19054$rm conftest*
19055
19056ac_outfile=conftest.$ac_objext
19057printf "$lt_simple_link_test_code" >conftest.$ac_ext
19058eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19059_lt_linker_boilerplate=`cat conftest.err`
19060$rm conftest*
19061
19062
19063# Allow CC to be a program name with arguments.
19064lt_save_CC="$CC"
19065CC=${RC-"windres"}
19066compiler=$CC
19067compiler_RC=$CC
19068for cc_temp in $compiler""; do
19069 case $cc_temp in
19070 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19071 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19072 \-*) ;;
19073 *) break;;
19074 esac
19075done
19076cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19077
19078lt_cv_prog_compiler_c_o_RC=yes
19079
19080# The else clause should only fire when bootstrapping the
19081# libtool distribution, otherwise you forgot to ship ltmain.sh
19082# with your package, and you will get complaints that there are
19083# no rules to generate ltmain.sh.
19084if test -f "$ltmain"; then
19085 # See if we are running on zsh, and set the options which allow our commands through
19086 # without removal of \ escapes.
19087 if test -n "${ZSH_VERSION+set}" ; then
19088 setopt NO_GLOB_SUBST
19089 fi
19090 # Now quote all the things that may contain metacharacters while being
19091 # careful not to overquote the AC_SUBSTed values. We take copies of the
19092 # variables and quote the copies for generation of the libtool script.
19093 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19094 SED SHELL STRIP \
19095 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19096 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19097 deplibs_check_method reload_flag reload_cmds need_locks \
19098 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19099 lt_cv_sys_global_symbol_to_c_name_address \
19100 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19101 old_postinstall_cmds old_postuninstall_cmds \
19102 compiler_RC \
19103 CC_RC \
19104 LD_RC \
19105 lt_prog_compiler_wl_RC \
19106 lt_prog_compiler_pic_RC \
19107 lt_prog_compiler_static_RC \
19108 lt_prog_compiler_no_builtin_flag_RC \
19109 export_dynamic_flag_spec_RC \
19110 thread_safe_flag_spec_RC \
19111 whole_archive_flag_spec_RC \
19112 enable_shared_with_static_runtimes_RC \
19113 old_archive_cmds_RC \
19114 old_archive_from_new_cmds_RC \
19115 predep_objects_RC \
19116 postdep_objects_RC \
19117 predeps_RC \
19118 postdeps_RC \
19119 compiler_lib_search_path_RC \
19120 archive_cmds_RC \
19121 archive_expsym_cmds_RC \
19122 postinstall_cmds_RC \
19123 postuninstall_cmds_RC \
19124 old_archive_from_expsyms_cmds_RC \
19125 allow_undefined_flag_RC \
19126 no_undefined_flag_RC \
19127 export_symbols_cmds_RC \
19128 hardcode_libdir_flag_spec_RC \
19129 hardcode_libdir_flag_spec_ld_RC \
19130 hardcode_libdir_separator_RC \
19131 hardcode_automatic_RC \
19132 module_cmds_RC \
19133 module_expsym_cmds_RC \
19134 lt_cv_prog_compiler_c_o_RC \
19135 exclude_expsyms_RC \
19136 include_expsyms_RC; do
19137
19138 case $var in
19139 old_archive_cmds_RC | \
19140 old_archive_from_new_cmds_RC | \
19141 archive_cmds_RC | \
19142 archive_expsym_cmds_RC | \
19143 module_cmds_RC | \
19144 module_expsym_cmds_RC | \
19145 old_archive_from_expsyms_cmds_RC | \
19146 export_symbols_cmds_RC | \
19147 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19148 postinstall_cmds | postuninstall_cmds | \
19149 old_postinstall_cmds | old_postuninstall_cmds | \
19150 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19151 # Double-quote double-evaled strings.
19152 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19153 ;;
19154 *)
19155 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19156 ;;
19157 esac
19158 done
19159
19160 case $lt_echo in
19161 *'\$0 --fallback-echo"')
19162 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19163 ;;
19164 esac
19165
19166cfgfile="$ofile"
19167
19168 cat <<__EOF__ >> "$cfgfile"
19169# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19170
19171# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19172
19173# Shell to use when invoking shell scripts.
19174SHELL=$lt_SHELL
19175
19176# Whether or not to build shared libraries.
19177build_libtool_libs=$enable_shared
19178
19179# Whether or not to build static libraries.
19180build_old_libs=$enable_static
19181
19182# Whether or not to add -lc for building shared libraries.
19183build_libtool_need_lc=$archive_cmds_need_lc_RC
19184
19185# Whether or not to disallow shared libs when runtime libs are static
19186allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19187
19188# Whether or not to optimize for fast installation.
19189fast_install=$enable_fast_install
19190
19191# The host system.
19192host_alias=$host_alias
19193host=$host
19194host_os=$host_os
19195
19196# The build system.
19197build_alias=$build_alias
19198build=$build
19199build_os=$build_os
19200
19201# An echo program that does not interpret backslashes.
19202echo=$lt_echo
19203
19204# The archiver.
19205AR=$lt_AR
19206AR_FLAGS=$lt_AR_FLAGS
19207
19208# A C compiler.
19209LTCC=$lt_LTCC
19210
19211# LTCC compiler flags.
19212LTCFLAGS=$lt_LTCFLAGS
19213
19214# A language-specific compiler.
19215CC=$lt_compiler_RC
19216
19217# Is the compiler the GNU C compiler?
19218with_gcc=$GCC_RC
19219
d9898ee8 19220# An ERE matcher.
19221EGREP=$lt_EGREP
19222
19223# The linker used to build libraries.
19224LD=$lt_LD_RC
19225
19226# Whether we need hard or soft links.
19227LN_S=$lt_LN_S
19228
19229# A BSD-compatible nm program.
19230NM=$lt_NM
19231
19232# A symbol stripping program
19233STRIP=$lt_STRIP
19234
19235# Used to examine libraries when file_magic_cmd begins "file"
19236MAGIC_CMD=$MAGIC_CMD
19237
19238# Used on cygwin: DLL creation program.
19239DLLTOOL="$DLLTOOL"
19240
19241# Used on cygwin: object dumper.
19242OBJDUMP="$OBJDUMP"
19243
19244# Used on cygwin: assembler.
19245AS="$AS"
19246
19247# The name of the directory that contains temporary libtool files.
19248objdir=$objdir
19249
19250# How to create reloadable object files.
19251reload_flag=$lt_reload_flag
19252reload_cmds=$lt_reload_cmds
19253
19254# How to pass a linker flag through the compiler.
19255wl=$lt_lt_prog_compiler_wl_RC
19256
19257# Object file suffix (normally "o").
19258objext="$ac_objext"
19259
19260# Old archive suffix (normally "a").
19261libext="$libext"
19262
19263# Shared library suffix (normally ".so").
19264shrext_cmds='$shrext_cmds'
19265
19266# Executable file suffix (normally "").
19267exeext="$exeext"
19268
19269# Additional compiler flags for building library objects.
19270pic_flag=$lt_lt_prog_compiler_pic_RC
19271pic_mode=$pic_mode
19272
19273# What is the maximum length of a command?
19274max_cmd_len=$lt_cv_sys_max_cmd_len
19275
19276# Does compiler simultaneously support -c and -o options?
19277compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19278
19279# Must we lock files when doing compilation?
19280need_locks=$lt_need_locks
19281
19282# Do we need the lib prefix for modules?
19283need_lib_prefix=$need_lib_prefix
19284
19285# Do we need a version for libraries?
19286need_version=$need_version
19287
19288# Whether dlopen is supported.
19289dlopen_support=$enable_dlopen
19290
19291# Whether dlopen of programs is supported.
19292dlopen_self=$enable_dlopen_self
19293
19294# Whether dlopen of statically linked programs is supported.
19295dlopen_self_static=$enable_dlopen_self_static
19296
19297# Compiler flag to prevent dynamic linking.
19298link_static_flag=$lt_lt_prog_compiler_static_RC
19299
19300# Compiler flag to turn off builtin functions.
19301no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19302
19303# Compiler flag to allow reflexive dlopens.
19304export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19305
19306# Compiler flag to generate shared objects directly from archives.
19307whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19308
19309# Compiler flag to generate thread-safe objects.
19310thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19311
19312# Library versioning type.
19313version_type=$version_type
19314
19315# Format of library name prefix.
19316libname_spec=$lt_libname_spec
19317
19318# List of archive names. First name is the real one, the rest are links.
19319# The last name is the one that the linker finds with -lNAME.
19320library_names_spec=$lt_library_names_spec
19321
19322# The coded name of the library, if different from the real name.
19323soname_spec=$lt_soname_spec
19324
19325# Commands used to build and install an old-style archive.
19326RANLIB=$lt_RANLIB
19327old_archive_cmds=$lt_old_archive_cmds_RC
19328old_postinstall_cmds=$lt_old_postinstall_cmds
19329old_postuninstall_cmds=$lt_old_postuninstall_cmds
19330
19331# Create an old-style archive from a shared archive.
19332old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19333
19334# Create a temporary old-style archive to link instead of a shared archive.
19335old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19336
19337# Commands used to build and install a shared archive.
19338archive_cmds=$lt_archive_cmds_RC
19339archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19340postinstall_cmds=$lt_postinstall_cmds
19341postuninstall_cmds=$lt_postuninstall_cmds
19342
19343# Commands used to build a loadable module (assumed same as above if empty)
19344module_cmds=$lt_module_cmds_RC
19345module_expsym_cmds=$lt_module_expsym_cmds_RC
19346
19347# Commands to strip libraries.
19348old_striplib=$lt_old_striplib
19349striplib=$lt_striplib
19350
19351# Dependencies to place before the objects being linked to create a
19352# shared library.
64ff59ba 19353predep_objects=$lt_predep_objects_RC
d9898ee8 19354
19355# Dependencies to place after the objects being linked to create a
19356# shared library.
64ff59ba 19357postdep_objects=$lt_postdep_objects_RC
d9898ee8 19358
19359# Dependencies to place before the objects being linked to create a
19360# shared library.
19361predeps=$lt_predeps_RC
19362
19363# Dependencies to place after the objects being linked to create a
19364# shared library.
19365postdeps=$lt_postdeps_RC
19366
19367# The library search path used internally by the compiler when linking
19368# a shared library.
64ff59ba 19369compiler_lib_search_path=$lt_compiler_lib_search_path_RC
d9898ee8 19370
19371# Method to check whether dependent libraries are shared objects.
19372deplibs_check_method=$lt_deplibs_check_method
19373
19374# Command to use when deplibs_check_method == file_magic.
19375file_magic_cmd=$lt_file_magic_cmd
19376
19377# Flag that allows shared libraries with undefined symbols to be built.
19378allow_undefined_flag=$lt_allow_undefined_flag_RC
19379
19380# Flag that forces no undefined symbols.
19381no_undefined_flag=$lt_no_undefined_flag_RC
19382
19383# Commands used to finish a libtool library installation in a directory.
19384finish_cmds=$lt_finish_cmds
19385
19386# Same as above, but a single script fragment to be evaled but not shown.
19387finish_eval=$lt_finish_eval
19388
19389# Take the output of nm and produce a listing of raw symbols and C names.
19390global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19391
19392# Transform the output of nm in a proper C declaration
19393global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19394
19395# Transform the output of nm in a C name address pair
19396global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19397
19398# This is the shared library runtime path variable.
19399runpath_var=$runpath_var
19400
19401# This is the shared library path variable.
19402shlibpath_var=$shlibpath_var
19403
19404# Is shlibpath searched before the hard-coded library search path?
19405shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19406
19407# How to hardcode a shared library path into an executable.
19408hardcode_action=$hardcode_action_RC
19409
19410# Whether we should hardcode library paths into libraries.
19411hardcode_into_libs=$hardcode_into_libs
19412
19413# Flag to hardcode \$libdir into a binary during linking.
19414# This must work even if \$libdir does not exist.
19415hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19416
19417# If ld is used when linking, flag to hardcode \$libdir into
19418# a binary during linking. This must work even if \$libdir does
19419# not exist.
19420hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19421
19422# Whether we need a single -rpath flag with a separated argument.
19423hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19424
19425# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19426# resulting binary.
19427hardcode_direct=$hardcode_direct_RC
19428
19429# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19430# resulting binary.
19431hardcode_minus_L=$hardcode_minus_L_RC
19432
19433# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19434# the resulting binary.
19435hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19436
19437# Set to yes if building a shared library automatically hardcodes DIR into the library
19438# and all subsequent libraries and executables linked against it.
19439hardcode_automatic=$hardcode_automatic_RC
19440
19441# Variables whose values should be saved in libtool wrapper scripts and
19442# restored at relink time.
19443variables_saved_for_relink="$variables_saved_for_relink"
19444
19445# Whether libtool must link a program against all its dependency libraries.
19446link_all_deplibs=$link_all_deplibs_RC
19447
19448# Compile-time system search path for libraries
64ff59ba 19449sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19450
19451# Run-time system search path for libraries
19452sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19453
19454# Fix the shell variable \$srcfile for the compiler.
19455fix_srcfile_path="$fix_srcfile_path_RC"
19456
19457# Set to yes if exported symbols are required.
19458always_export_symbols=$always_export_symbols_RC
19459
19460# The commands to list exported symbols.
19461export_symbols_cmds=$lt_export_symbols_cmds_RC
19462
19463# The commands to extract the exported symbol list from a shared archive.
19464extract_expsyms_cmds=$lt_extract_expsyms_cmds
19465
19466# Symbols that should not be listed in the preloaded symbols.
19467exclude_expsyms=$lt_exclude_expsyms_RC
19468
19469# Symbols that must always be exported.
19470include_expsyms=$lt_include_expsyms_RC
19471
19472# ### END LIBTOOL TAG CONFIG: $tagname
19473
19474__EOF__
19475
19476
19477else
19478 # If there is no Makefile yet, we rely on a make rule to execute
19479 # `config.status --recheck' to rerun these tests and create the
19480 # libtool script then.
19481 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19482 if test -f "$ltmain_in"; then
19483 test -f Makefile && make "$ltmain"
19484 fi
19485fi
19486
19487
19488ac_ext=c
19489ac_cpp='$CPP $CPPFLAGS'
19490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19492ac_compiler_gnu=$ac_cv_c_compiler_gnu
19493
19494CC="$lt_save_CC"
19495
19496 ;;
19497
19498 *)
19499 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19500echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19501 { (exit 1); exit 1; }; }
19502 ;;
19503 esac
19504
19505 # Append the new tag name to the list of available tags.
19506 if test -n "$tagname" ; then
19507 available_tags="$available_tags $tagname"
19508 fi
19509 fi
19510 done
19511 IFS="$lt_save_ifs"
19512
19513 # Now substitute the updated list of available tags.
19514 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19515 mv "${ofile}T" "$ofile"
19516 chmod +x "$ofile"
19517 else
19518 rm -f "${ofile}T"
19519 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19520echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19521 { (exit 1); exit 1; }; }
19522 fi
19523fi
19524
19525
19526
19527# This can be used to rebuild libtool when needed
19528LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19529
19530# Always use our own libtool.
19531LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19532
19533# Prevent multiple expansion
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556saveLIBS="$LIBS"
64ff59ba 19557{ echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
19558echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6; }
d9898ee8 19559if test "${ac_cv_lib_db_dbopen+set}" = set; then
19560 echo $ECHO_N "(cached) $ECHO_C" >&6
19561else
19562 ac_check_lib_save_LIBS=$LIBS
19563LIBS="-ldb $LIBS"
19564cat >conftest.$ac_ext <<_ACEOF
19565/* confdefs.h. */
19566_ACEOF
19567cat confdefs.h >>conftest.$ac_ext
19568cat >>conftest.$ac_ext <<_ACEOF
19569/* end confdefs.h. */
19570
64ff59ba 19571/* Override any GCC internal prototype to avoid an error.
19572 Use char because int might match the return type of a GCC
19573 builtin and then its argument prototype would still apply. */
d9898ee8 19574#ifdef __cplusplus
19575extern "C"
19576#endif
d9898ee8 19577char dbopen ();
19578int
19579main ()
19580{
64ff59ba 19581return dbopen ();
d9898ee8 19582 ;
19583 return 0;
19584}
19585_ACEOF
19586rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 19587if { (ac_try="$ac_link"
19588case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19591esac
19592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593 (eval "$ac_link") 2>conftest.er1
d9898ee8 19594 ac_status=$?
19595 grep -v '^ *+' conftest.er1 >conftest.err
19596 rm -f conftest.er1
19597 cat conftest.err >&5
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19599 (exit $ac_status); } && {
19600 test -z "$ac_c_werror_flag" ||
19601 test ! -s conftest.err
19602 } && test -s conftest$ac_exeext &&
19603 $as_test_x conftest$ac_exeext; then
d9898ee8 19604 ac_cv_lib_db_dbopen=yes
19605else
19606 echo "$as_me: failed program was:" >&5
19607sed 's/^/| /' conftest.$ac_ext >&5
19608
64ff59ba 19609 ac_cv_lib_db_dbopen=no
d9898ee8 19610fi
64ff59ba 19611
19612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 19613 conftest$ac_exeext conftest.$ac_ext
19614LIBS=$ac_check_lib_save_LIBS
19615fi
64ff59ba 19616{ echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
19617echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6; }
d9898ee8 19618if test $ac_cv_lib_db_dbopen = yes; then
19619 LIBDB=-ldb ; LIBS="-ldb $LIBS"
19620else
64ff59ba 19621 { echo "$as_me:$LINENO: checking for db_open in -ldb" >&5
19622echo $ECHO_N "checking for db_open in -ldb... $ECHO_C" >&6; }
d9898ee8 19623if test "${ac_cv_lib_db_db_open+set}" = set; then
19624 echo $ECHO_N "(cached) $ECHO_C" >&6
19625else
19626 ac_check_lib_save_LIBS=$LIBS
19627LIBS="-ldb $LIBS"
19628cat >conftest.$ac_ext <<_ACEOF
19629/* confdefs.h. */
19630_ACEOF
19631cat confdefs.h >>conftest.$ac_ext
19632cat >>conftest.$ac_ext <<_ACEOF
19633/* end confdefs.h. */
19634
64ff59ba 19635/* Override any GCC internal prototype to avoid an error.
19636 Use char because int might match the return type of a GCC
19637 builtin and then its argument prototype would still apply. */
d9898ee8 19638#ifdef __cplusplus
19639extern "C"
19640#endif
d9898ee8 19641char db_open ();
19642int
19643main ()
19644{
64ff59ba 19645return db_open ();
d9898ee8 19646 ;
19647 return 0;
19648}
19649_ACEOF
19650rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 19651if { (ac_try="$ac_link"
19652case "(($ac_try" in
19653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19654 *) ac_try_echo=$ac_try;;
19655esac
19656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19657 (eval "$ac_link") 2>conftest.er1
d9898ee8 19658 ac_status=$?
19659 grep -v '^ *+' conftest.er1 >conftest.err
19660 rm -f conftest.er1
19661 cat conftest.err >&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19663 (exit $ac_status); } && {
19664 test -z "$ac_c_werror_flag" ||
19665 test ! -s conftest.err
19666 } && test -s conftest$ac_exeext &&
19667 $as_test_x conftest$ac_exeext; then
d9898ee8 19668 ac_cv_lib_db_db_open=yes
19669else
19670 echo "$as_me: failed program was:" >&5
19671sed 's/^/| /' conftest.$ac_ext >&5
19672
64ff59ba 19673 ac_cv_lib_db_db_open=no
d9898ee8 19674fi
64ff59ba 19675
19676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 19677 conftest$ac_exeext conftest.$ac_ext
19678LIBS=$ac_check_lib_save_LIBS
19679fi
64ff59ba 19680{ echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_open" >&5
19681echo "${ECHO_T}$ac_cv_lib_db_db_open" >&6; }
d9898ee8 19682if test $ac_cv_lib_db_db_open = yes; then
19683 LIBDB=-ldb ; LIBS="-ldb $LIBS"
19684else
64ff59ba 19685 { echo "$as_me:$LINENO: checking for db_env_create in -ldb" >&5
19686echo $ECHO_N "checking for db_env_create in -ldb... $ECHO_C" >&6; }
d9898ee8 19687if test "${ac_cv_lib_db_db_env_create+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19689else
19690 ac_check_lib_save_LIBS=$LIBS
19691LIBS="-ldb $LIBS"
19692cat >conftest.$ac_ext <<_ACEOF
19693/* confdefs.h. */
19694_ACEOF
19695cat confdefs.h >>conftest.$ac_ext
19696cat >>conftest.$ac_ext <<_ACEOF
19697/* end confdefs.h. */
19698
64ff59ba 19699/* Override any GCC internal prototype to avoid an error.
19700 Use char because int might match the return type of a GCC
19701 builtin and then its argument prototype would still apply. */
d9898ee8 19702#ifdef __cplusplus
19703extern "C"
19704#endif
d9898ee8 19705char db_env_create ();
19706int
19707main ()
19708{
64ff59ba 19709return db_env_create ();
d9898ee8 19710 ;
19711 return 0;
19712}
19713_ACEOF
19714rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 19715if { (ac_try="$ac_link"
19716case "(($ac_try" in
19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718 *) ac_try_echo=$ac_try;;
19719esac
19720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721 (eval "$ac_link") 2>conftest.er1
d9898ee8 19722 ac_status=$?
19723 grep -v '^ *+' conftest.er1 >conftest.err
19724 rm -f conftest.er1
19725 cat conftest.err >&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19727 (exit $ac_status); } && {
19728 test -z "$ac_c_werror_flag" ||
19729 test ! -s conftest.err
19730 } && test -s conftest$ac_exeext &&
19731 $as_test_x conftest$ac_exeext; then
d9898ee8 19732 ac_cv_lib_db_db_env_create=yes
19733else
19734 echo "$as_me: failed program was:" >&5
19735sed 's/^/| /' conftest.$ac_ext >&5
19736
64ff59ba 19737 ac_cv_lib_db_db_env_create=no
d9898ee8 19738fi
64ff59ba 19739
19740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 19741 conftest$ac_exeext conftest.$ac_ext
19742LIBS=$ac_check_lib_save_LIBS
19743fi
64ff59ba 19744{ echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_env_create" >&5
19745echo "${ECHO_T}$ac_cv_lib_db_db_env_create" >&6; }
d9898ee8 19746if test $ac_cv_lib_db_db_env_create = yes; then
19747 LIBDB=-ldb; LIBS="-ldb $LIBS"
19748fi
19749
19750
19751fi
19752
19753fi
19754
19755
19756FOUND_DB=0
64ff59ba 19757{ echo "$as_me:$LINENO: checking for dbopen" >&5
19758echo $ECHO_N "checking for dbopen... $ECHO_C" >&6; }
d9898ee8 19759if test "${ac_cv_func_dbopen+set}" = set; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19761else
19762 cat >conftest.$ac_ext <<_ACEOF
19763/* confdefs.h. */
19764_ACEOF
19765cat confdefs.h >>conftest.$ac_ext
19766cat >>conftest.$ac_ext <<_ACEOF
19767/* end confdefs.h. */
19768/* Define dbopen to an innocuous variant, in case <limits.h> declares dbopen.
19769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19770#define dbopen innocuous_dbopen
19771
19772/* System header to define __stub macros and hopefully few prototypes,
19773 which can conflict with char dbopen (); below.
19774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19775 <limits.h> exists even on freestanding compilers. */
19776
19777#ifdef __STDC__
19778# include <limits.h>
19779#else
19780# include <assert.h>
19781#endif
19782
19783#undef dbopen
19784
64ff59ba 19785/* Override any GCC internal prototype to avoid an error.
19786 Use char because int might match the return type of a GCC
19787 builtin and then its argument prototype would still apply. */
d9898ee8 19788#ifdef __cplusplus
19789extern "C"
d9898ee8 19790#endif
d9898ee8 19791char dbopen ();
19792/* The GNU C library defines this for functions which it implements
19793 to always fail with ENOSYS. Some functions are actually named
19794 something starting with __ and the normal name is an alias. */
64ff59ba 19795#if defined __stub_dbopen || defined __stub___dbopen
d9898ee8 19796choke me
d9898ee8 19797#endif
19798
19799int
19800main ()
19801{
64ff59ba 19802return dbopen ();
d9898ee8 19803 ;
19804 return 0;
19805}
19806_ACEOF
19807rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 19808if { (ac_try="$ac_link"
19809case "(($ac_try" in
19810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19811 *) ac_try_echo=$ac_try;;
19812esac
19813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19814 (eval "$ac_link") 2>conftest.er1
d9898ee8 19815 ac_status=$?
19816 grep -v '^ *+' conftest.er1 >conftest.err
19817 rm -f conftest.er1
19818 cat conftest.err >&5
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19820 (exit $ac_status); } && {
19821 test -z "$ac_c_werror_flag" ||
19822 test ! -s conftest.err
19823 } && test -s conftest$ac_exeext &&
19824 $as_test_x conftest$ac_exeext; then
d9898ee8 19825 ac_cv_func_dbopen=yes
19826else
19827 echo "$as_me: failed program was:" >&5
19828sed 's/^/| /' conftest.$ac_ext >&5
19829
64ff59ba 19830 ac_cv_func_dbopen=no
d9898ee8 19831fi
64ff59ba 19832
19833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 19834 conftest$ac_exeext conftest.$ac_ext
19835fi
64ff59ba 19836{ echo "$as_me:$LINENO: result: $ac_cv_func_dbopen" >&5
19837echo "${ECHO_T}$ac_cv_func_dbopen" >&6; }
d9898ee8 19838if test $ac_cv_func_dbopen = yes; then
19839 FOUND_DB=1
19840fi
19841
64ff59ba 19842{ echo "$as_me:$LINENO: checking for db_open" >&5
19843echo $ECHO_N "checking for db_open... $ECHO_C" >&6; }
d9898ee8 19844if test "${ac_cv_func_db_open+set}" = set; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19846else
19847 cat >conftest.$ac_ext <<_ACEOF
19848/* confdefs.h. */
19849_ACEOF
19850cat confdefs.h >>conftest.$ac_ext
19851cat >>conftest.$ac_ext <<_ACEOF
19852/* end confdefs.h. */
19853/* Define db_open to an innocuous variant, in case <limits.h> declares db_open.
19854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19855#define db_open innocuous_db_open
19856
19857/* System header to define __stub macros and hopefully few prototypes,
19858 which can conflict with char db_open (); below.
19859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19860 <limits.h> exists even on freestanding compilers. */
19861
19862#ifdef __STDC__
19863# include <limits.h>
19864#else
19865# include <assert.h>
19866#endif
19867
19868#undef db_open
19869
64ff59ba 19870/* Override any GCC internal prototype to avoid an error.
19871 Use char because int might match the return type of a GCC
19872 builtin and then its argument prototype would still apply. */
d9898ee8 19873#ifdef __cplusplus
19874extern "C"
d9898ee8 19875#endif
d9898ee8 19876char db_open ();
19877/* The GNU C library defines this for functions which it implements
19878 to always fail with ENOSYS. Some functions are actually named
19879 something starting with __ and the normal name is an alias. */
64ff59ba 19880#if defined __stub_db_open || defined __stub___db_open
d9898ee8 19881choke me
d9898ee8 19882#endif
19883
19884int
19885main ()
19886{
64ff59ba 19887return db_open ();
d9898ee8 19888 ;
19889 return 0;
19890}
19891_ACEOF
19892rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 19893if { (ac_try="$ac_link"
19894case "(($ac_try" in
19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19897esac
19898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_link") 2>conftest.er1
d9898ee8 19900 ac_status=$?
19901 grep -v '^ *+' conftest.er1 >conftest.err
19902 rm -f conftest.er1
19903 cat conftest.err >&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19905 (exit $ac_status); } && {
19906 test -z "$ac_c_werror_flag" ||
19907 test ! -s conftest.err
19908 } && test -s conftest$ac_exeext &&
19909 $as_test_x conftest$ac_exeext; then
d9898ee8 19910 ac_cv_func_db_open=yes
19911else
19912 echo "$as_me: failed program was:" >&5
19913sed 's/^/| /' conftest.$ac_ext >&5
19914
64ff59ba 19915 ac_cv_func_db_open=no
d9898ee8 19916fi
64ff59ba 19917
19918rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 19919 conftest$ac_exeext conftest.$ac_ext
19920fi
64ff59ba 19921{ echo "$as_me:$LINENO: result: $ac_cv_func_db_open" >&5
19922echo "${ECHO_T}$ac_cv_func_db_open" >&6; }
d9898ee8 19923if test $ac_cv_func_db_open = yes; then
19924 FOUND_DB=1
19925fi
19926
64ff59ba 19927{ echo "$as_me:$LINENO: checking for db_env_create" >&5
19928echo $ECHO_N "checking for db_env_create... $ECHO_C" >&6; }
d9898ee8 19929if test "${ac_cv_func_db_env_create+set}" = set; then
19930 echo $ECHO_N "(cached) $ECHO_C" >&6
19931else
19932 cat >conftest.$ac_ext <<_ACEOF
19933/* confdefs.h. */
19934_ACEOF
19935cat confdefs.h >>conftest.$ac_ext
19936cat >>conftest.$ac_ext <<_ACEOF
19937/* end confdefs.h. */
19938/* Define db_env_create to an innocuous variant, in case <limits.h> declares db_env_create.
19939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19940#define db_env_create innocuous_db_env_create
19941
19942/* System header to define __stub macros and hopefully few prototypes,
19943 which can conflict with char db_env_create (); below.
19944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19945 <limits.h> exists even on freestanding compilers. */
19946
19947#ifdef __STDC__
19948# include <limits.h>
19949#else
19950# include <assert.h>
19951#endif
19952
19953#undef db_env_create
19954
64ff59ba 19955/* Override any GCC internal prototype to avoid an error.
19956 Use char because int might match the return type of a GCC
19957 builtin and then its argument prototype would still apply. */
d9898ee8 19958#ifdef __cplusplus
19959extern "C"
d9898ee8 19960#endif
d9898ee8 19961char db_env_create ();
19962/* The GNU C library defines this for functions which it implements
19963 to always fail with ENOSYS. Some functions are actually named
19964 something starting with __ and the normal name is an alias. */
64ff59ba 19965#if defined __stub_db_env_create || defined __stub___db_env_create
d9898ee8 19966choke me
d9898ee8 19967#endif
19968
19969int
19970main ()
19971{
64ff59ba 19972return db_env_create ();
d9898ee8 19973 ;
19974 return 0;
19975}
19976_ACEOF
19977rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 19978if { (ac_try="$ac_link"
19979case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19982esac
19983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19984 (eval "$ac_link") 2>conftest.er1
d9898ee8 19985 ac_status=$?
19986 grep -v '^ *+' conftest.er1 >conftest.err
19987 rm -f conftest.er1
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19990 (exit $ac_status); } && {
19991 test -z "$ac_c_werror_flag" ||
19992 test ! -s conftest.err
19993 } && test -s conftest$ac_exeext &&
19994 $as_test_x conftest$ac_exeext; then
d9898ee8 19995 ac_cv_func_db_env_create=yes
19996else
19997 echo "$as_me: failed program was:" >&5
19998sed 's/^/| /' conftest.$ac_ext >&5
19999
64ff59ba 20000 ac_cv_func_db_env_create=no
d9898ee8 20001fi
64ff59ba 20002
20003rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20004 conftest$ac_exeext conftest.$ac_ext
20005fi
64ff59ba 20006{ echo "$as_me:$LINENO: result: $ac_cv_func_db_env_create" >&5
20007echo "${ECHO_T}$ac_cv_func_db_env_create" >&6; }
d9898ee8 20008if test $ac_cv_func_db_env_create = yes; then
20009 FOUND_DB=1
20010fi
20011
20012
20013LIBS="$saveLIBS"
20014
20015
20016
64ff59ba 20017 if test "$FOUND_DB" != 0; then
d9898ee8 20018 FOUND_DB_TRUE=
20019 FOUND_DB_FALSE='#'
20020else
20021 FOUND_DB_TRUE='#'
20022 FOUND_DB_FALSE=
20023fi
20024
20025
20026
20027
20028
20029
20030for ac_header in limits.h fcntl.h unistd.h
20031do
20032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 20033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 20037 echo $ECHO_N "(cached) $ECHO_C" >&6
20038fi
64ff59ba 20039ac_res=`eval echo '${'$as_ac_Header'}'`
20040 { echo "$as_me:$LINENO: result: $ac_res" >&5
20041echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 20042else
20043 # Is the header compilable?
64ff59ba 20044{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20045echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 20046cat >conftest.$ac_ext <<_ACEOF
20047/* confdefs.h. */
20048_ACEOF
20049cat confdefs.h >>conftest.$ac_ext
20050cat >>conftest.$ac_ext <<_ACEOF
20051/* end confdefs.h. */
20052$ac_includes_default
20053#include <$ac_header>
20054_ACEOF
20055rm -f conftest.$ac_objext
64ff59ba 20056if { (ac_try="$ac_compile"
20057case "(($ac_try" in
20058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20059 *) ac_try_echo=$ac_try;;
20060esac
20061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20062 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20063 ac_status=$?
20064 grep -v '^ *+' conftest.er1 >conftest.err
20065 rm -f conftest.er1
20066 cat conftest.err >&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20068 (exit $ac_status); } && {
20069 test -z "$ac_c_werror_flag" ||
20070 test ! -s conftest.err
20071 } && test -s conftest.$ac_objext; then
d9898ee8 20072 ac_header_compiler=yes
20073else
20074 echo "$as_me: failed program was:" >&5
20075sed 's/^/| /' conftest.$ac_ext >&5
20076
64ff59ba 20077 ac_header_compiler=no
d9898ee8 20078fi
64ff59ba 20079
20080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20081{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20082echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 20083
20084# Is the header present?
64ff59ba 20085{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20086echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 20087cat >conftest.$ac_ext <<_ACEOF
20088/* confdefs.h. */
20089_ACEOF
20090cat confdefs.h >>conftest.$ac_ext
20091cat >>conftest.$ac_ext <<_ACEOF
20092/* end confdefs.h. */
20093#include <$ac_header>
20094_ACEOF
64ff59ba 20095if { (ac_try="$ac_cpp conftest.$ac_ext"
20096case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20099esac
20100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 20102 ac_status=$?
20103 grep -v '^ *+' conftest.er1 >conftest.err
20104 rm -f conftest.er1
20105 cat conftest.err >&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20107 (exit $ac_status); } >/dev/null && {
20108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20109 test ! -s conftest.err
20110 }; then
d9898ee8 20111 ac_header_preproc=yes
20112else
20113 echo "$as_me: failed program was:" >&5
20114sed 's/^/| /' conftest.$ac_ext >&5
20115
20116 ac_header_preproc=no
20117fi
64ff59ba 20118
d9898ee8 20119rm -f conftest.err conftest.$ac_ext
64ff59ba 20120{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20121echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 20122
20123# So? What about this header?
20124case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20125 yes:no: )
20126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20127echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20129echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20130 ac_header_preproc=yes
20131 ;;
20132 no:yes:* )
20133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20134echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20136echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20138echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20140echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20142echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20144echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 20145 ( cat <<\_ASBOX
d9898ee8 20146## -------------------------------------------------- ##
20147## Report this to courier-users@lists.sourceforge.net ##
20148## -------------------------------------------------- ##
20149_ASBOX
64ff59ba 20150 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 20151 ;;
20152esac
64ff59ba 20153{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 20156 echo $ECHO_N "(cached) $ECHO_C" >&6
20157else
20158 eval "$as_ac_Header=\$ac_header_preproc"
20159fi
64ff59ba 20160ac_res=`eval echo '${'$as_ac_Header'}'`
20161 { echo "$as_me:$LINENO: result: $ac_res" >&5
20162echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 20163
20164fi
20165if test `eval echo '${'$as_ac_Header'}'` = yes; then
20166 cat >>confdefs.h <<_ACEOF
20167#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20168_ACEOF
20169
20170fi
20171
20172done
20173
20174
64ff59ba 20175{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20176echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
d9898ee8 20177if test "${ac_cv_c_const+set}" = set; then
20178 echo $ECHO_N "(cached) $ECHO_C" >&6
20179else
20180 cat >conftest.$ac_ext <<_ACEOF
20181/* confdefs.h. */
20182_ACEOF
20183cat confdefs.h >>conftest.$ac_ext
20184cat >>conftest.$ac_ext <<_ACEOF
20185/* end confdefs.h. */
20186
20187int
20188main ()
20189{
20190/* FIXME: Include the comments suggested by Paul. */
20191#ifndef __cplusplus
20192 /* Ultrix mips cc rejects this. */
20193 typedef int charset[2];
64ff59ba 20194 const charset cs;
d9898ee8 20195 /* SunOS 4.1.1 cc rejects this. */
64ff59ba 20196 char const *const *pcpcc;
20197 char **ppc;
d9898ee8 20198 /* NEC SVR4.0.2 mips cc rejects this. */
20199 struct point {int x, y;};
20200 static struct point const zero = {0,0};
20201 /* AIX XL C 1.02.0.0 rejects this.
20202 It does not let you subtract one const X* pointer from another in
20203 an arm of an if-expression whose if-part is not a constant
20204 expression */
20205 const char *g = "string";
64ff59ba 20206 pcpcc = &g + (g ? g-g : 0);
d9898ee8 20207 /* HPUX 7.0 cc rejects these. */
64ff59ba 20208 ++pcpcc;
20209 ppc = (char**) pcpcc;
20210 pcpcc = (char const *const *) ppc;
d9898ee8 20211 { /* SCO 3.2v4 cc rejects this. */
20212 char *t;
20213 char const *s = 0 ? (char *) 0 : (char const *) 0;
20214
20215 *t++ = 0;
64ff59ba 20216 if (s) return 0;
d9898ee8 20217 }
20218 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20219 int x[] = {25, 17};
20220 const int *foo = &x[0];
20221 ++foo;
20222 }
20223 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20224 typedef const int *iptr;
20225 iptr p = 0;
20226 ++p;
20227 }
20228 { /* AIX XL C 1.02.0.0 rejects this saying
20229 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20230 struct s { int j; const int *ap[3]; };
20231 struct s *b; b->j = 5;
20232 }
20233 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20234 const int foo = 10;
64ff59ba 20235 if (!foo) return 0;
d9898ee8 20236 }
64ff59ba 20237 return !cs[0] && !zero.x;
d9898ee8 20238#endif
20239
20240 ;
20241 return 0;
20242}
20243_ACEOF
20244rm -f conftest.$ac_objext
64ff59ba 20245if { (ac_try="$ac_compile"
20246case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20249esac
20250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20252 ac_status=$?
20253 grep -v '^ *+' conftest.er1 >conftest.err
20254 rm -f conftest.er1
20255 cat conftest.err >&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20257 (exit $ac_status); } && {
20258 test -z "$ac_c_werror_flag" ||
20259 test ! -s conftest.err
20260 } && test -s conftest.$ac_objext; then
d9898ee8 20261 ac_cv_c_const=yes
20262else
20263 echo "$as_me: failed program was:" >&5
20264sed 's/^/| /' conftest.$ac_ext >&5
20265
64ff59ba 20266 ac_cv_c_const=no
d9898ee8 20267fi
64ff59ba 20268
20269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20270fi
64ff59ba 20271{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20272echo "${ECHO_T}$ac_cv_c_const" >&6; }
d9898ee8 20273if test $ac_cv_c_const = no; then
20274
20275cat >>confdefs.h <<\_ACEOF
20276#define const
20277_ACEOF
20278
20279fi
20280
64ff59ba 20281{ echo "$as_me:$LINENO: checking for size_t" >&5
20282echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
d9898ee8 20283if test "${ac_cv_type_size_t+set}" = set; then
20284 echo $ECHO_N "(cached) $ECHO_C" >&6
20285else
20286 cat >conftest.$ac_ext <<_ACEOF
20287/* confdefs.h. */
20288_ACEOF
20289cat confdefs.h >>conftest.$ac_ext
20290cat >>conftest.$ac_ext <<_ACEOF
20291/* end confdefs.h. */
20292$ac_includes_default
64ff59ba 20293typedef size_t ac__type_new_;
d9898ee8 20294int
20295main ()
20296{
64ff59ba 20297if ((ac__type_new_ *) 0)
d9898ee8 20298 return 0;
64ff59ba 20299if (sizeof (ac__type_new_))
d9898ee8 20300 return 0;
20301 ;
20302 return 0;
20303}
20304_ACEOF
20305rm -f conftest.$ac_objext
64ff59ba 20306if { (ac_try="$ac_compile"
20307case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20310esac
20311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20313 ac_status=$?
20314 grep -v '^ *+' conftest.er1 >conftest.err
20315 rm -f conftest.er1
20316 cat conftest.err >&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20318 (exit $ac_status); } && {
20319 test -z "$ac_c_werror_flag" ||
20320 test ! -s conftest.err
20321 } && test -s conftest.$ac_objext; then
d9898ee8 20322 ac_cv_type_size_t=yes
20323else
20324 echo "$as_me: failed program was:" >&5
20325sed 's/^/| /' conftest.$ac_ext >&5
20326
64ff59ba 20327 ac_cv_type_size_t=no
d9898ee8 20328fi
64ff59ba 20329
20330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20331fi
64ff59ba 20332{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20333echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
d9898ee8 20334if test $ac_cv_type_size_t = yes; then
20335 :
20336else
20337
20338cat >>confdefs.h <<_ACEOF
64ff59ba 20339#define size_t unsigned int
d9898ee8 20340_ACEOF
20341
20342fi
20343
20344
64ff59ba 20345ac_ext=cpp
d9898ee8 20346ac_cpp='$CXXCPP $CPPFLAGS'
20347ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20348ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20349ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20350
64ff59ba 20351{ echo "$as_me:$LINENO: checking if the C++ compiler needs -fhandle-exceptions" >&5
20352echo $ECHO_N "checking if the C++ compiler needs -fhandle-exceptions... $ECHO_C" >&6; }
d9898ee8 20353if test "${ac_cxx_need_handlexceptions+set}" = set; then
20354 echo $ECHO_N "(cached) $ECHO_C" >&6
20355else
20356 cat >conftest.$ac_ext <<_ACEOF
20357/* confdefs.h. */
20358_ACEOF
20359cat confdefs.h >>conftest.$ac_ext
20360cat >>conftest.$ac_ext <<_ACEOF
20361/* end confdefs.h. */
20362
20363int
20364main ()
20365{
20366
20367throw;
20368
20369 ;
20370 return 0;
20371}
20372_ACEOF
20373rm -f conftest.$ac_objext
64ff59ba 20374if { (ac_try="$ac_compile"
20375case "(($ac_try" in
20376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377 *) ac_try_echo=$ac_try;;
20378esac
20379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20381 ac_status=$?
20382 grep -v '^ *+' conftest.er1 >conftest.err
20383 rm -f conftest.er1
20384 cat conftest.err >&5
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20386 (exit $ac_status); } && {
20387 test -z "$ac_cxx_werror_flag" ||
20388 test ! -s conftest.err
20389 } && test -s conftest.$ac_objext; then
d9898ee8 20390 ac_cxx_need_handlexceptions=no
20391else
20392 echo "$as_me: failed program was:" >&5
20393sed 's/^/| /' conftest.$ac_ext >&5
20394
64ff59ba 20395 ac_cxx_need_handlexceptions=yes
d9898ee8 20396fi
64ff59ba 20397
20398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20399
20400fi
64ff59ba 20401{ echo "$as_me:$LINENO: result: $ac_cxx_need_handlexceptions" >&5
20402echo "${ECHO_T}$ac_cxx_need_handlexceptions" >&6; }
d9898ee8 20403
20404if test "$ac_cxx_need_handlexceptions" = "yes"
20405then
20406 case "$CXXFLAGS" in
20407 *handle-exceptions*)
20408 ;;
20409 *)
20410 CXXFLAGS="-fhandle-exceptions $CXXFLAGS"
20411 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2//'`
20412 ;;
20413 esac
20414fi
20415
20416if test "$GCC" = "yes"
20417then
20418 CFLAGS="-Wall $CFLAGS"
20419fi
20420
64ff59ba 20421ac_config_files="$ac_config_files Makefile"
20422
d9898ee8 20423cat >confcache <<\_ACEOF
20424# This file is a shell script that caches the results of configure
20425# tests run on this system so they can be shared between configure
20426# scripts and configure runs, see configure's option --config-cache.
20427# It is not useful on other systems. If it contains results you don't
20428# want to keep, you may remove or edit it.
20429#
20430# config.status only pays attention to the cache file if you give it
20431# the --recheck option to rerun configure.
20432#
20433# `ac_cv_env_foo' variables (set or unset) will be overridden when
20434# loading this file, other *unset* `ac_cv_foo' will be assigned the
20435# following values.
20436
20437_ACEOF
20438
20439# The following way of writing the cache mishandles newlines in values,
20440# but we know of no workaround that is simple, portable, and efficient.
64ff59ba 20441# So, we kill variables containing newlines.
d9898ee8 20442# Ultrix sh set writes to stderr and can't be redirected directly,
20443# and sets the high bit in the cache file unless we assign to the vars.
64ff59ba 20444(
20445 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20446 eval ac_val=\$$ac_var
20447 case $ac_val in #(
20448 *${as_nl}*)
20449 case $ac_var in #(
20450 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20451echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20452 esac
20453 case $ac_var in #(
20454 _ | IFS | as_nl) ;; #(
20455 *) $as_unset $ac_var ;;
20456 esac ;;
20457 esac
20458 done
20459
d9898ee8 20460 (set) 2>&1 |
64ff59ba 20461 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20462 *${as_nl}ac_space=\ *)
d9898ee8 20463 # `set' does not quote correctly, so add quotes (double-quote
20464 # substitution turns \\\\ into \\, and sed turns \\ into \).
20465 sed -n \
20466 "s/'/'\\\\''/g;
20467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
64ff59ba 20468 ;; #(
d9898ee8 20469 *)
20470 # `set' quotes correctly as required by POSIX, so do not add quotes.
64ff59ba 20471 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 20472 ;;
64ff59ba 20473 esac |
20474 sort
20475) |
d9898ee8 20476 sed '
64ff59ba 20477 /^ac_cv_env_/b end
d9898ee8 20478 t clear
64ff59ba 20479 :clear
d9898ee8 20480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20481 t end
64ff59ba 20482 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20483 :end' >>confcache
20484if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20485 if test -w "$cache_file"; then
20486 test "x$cache_file" != "x/dev/null" &&
20487 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20488echo "$as_me: updating cache $cache_file" >&6;}
d9898ee8 20489 cat confcache >$cache_file
20490 else
64ff59ba 20491 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20492echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d9898ee8 20493 fi
20494fi
20495rm -f confcache
20496
20497test "x$prefix" = xNONE && prefix=$ac_default_prefix
20498# Let make expand exec_prefix.
20499test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20500
d9898ee8 20501DEFS=-DHAVE_CONFIG_H
20502
20503ac_libobjs=
20504ac_ltlibobjs=
20505for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20506 # 1. Remove the extension, and $U if already installed.
64ff59ba 20507 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20508 ac_i=`echo "$ac_i" | sed "$ac_script"`
20509 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20510 # will be set to the directory where LIBOBJS objects are built.
20511 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20512 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 20513done
20514LIBOBJS=$ac_libobjs
20515
20516LTLIBOBJS=$ac_ltlibobjs
20517
20518
20519if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20520 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20521Usually this means the macro was only invoked conditionally." >&5
20522echo "$as_me: error: conditional \"AMDEP\" was never defined.
20523Usually this means the macro was only invoked conditionally." >&2;}
20524 { (exit 1); exit 1; }; }
20525fi
20526if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20527 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20528Usually this means the macro was only invoked conditionally." >&5
20529echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20530Usually this means the macro was only invoked conditionally." >&2;}
20531 { (exit 1); exit 1; }; }
20532fi
20533if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20534 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20535Usually this means the macro was only invoked conditionally." >&5
20536echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20537Usually this means the macro was only invoked conditionally." >&2;}
20538 { (exit 1); exit 1; }; }
20539fi
20540if test -z "${FOUND_DB_TRUE}" && test -z "${FOUND_DB_FALSE}"; then
20541 { { echo "$as_me:$LINENO: error: conditional \"FOUND_DB\" was never defined.
20542Usually this means the macro was only invoked conditionally." >&5
20543echo "$as_me: error: conditional \"FOUND_DB\" was never defined.
20544Usually this means the macro was only invoked conditionally." >&2;}
20545 { (exit 1); exit 1; }; }
20546fi
20547
20548: ${CONFIG_STATUS=./config.status}
20549ac_clean_files_save=$ac_clean_files
20550ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20551{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20552echo "$as_me: creating $CONFIG_STATUS" >&6;}
20553cat >$CONFIG_STATUS <<_ACEOF
20554#! $SHELL
20555# Generated by $as_me.
20556# Run this file to recreate the current configuration.
20557# Compiler output produced by configure, useful for debugging
20558# configure, is in config.log if it exists.
20559
20560debug=false
20561ac_cs_recheck=false
20562ac_cs_silent=false
20563SHELL=\${CONFIG_SHELL-$SHELL}
20564_ACEOF
20565
20566cat >>$CONFIG_STATUS <<\_ACEOF
20567## --------------------- ##
20568## M4sh Initialization. ##
20569## --------------------- ##
20570
64ff59ba 20571# Be more Bourne compatible
20572DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 20573if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20574 emulate sh
20575 NULLCMD=:
20576 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20577 # is contrary to our usage. Disable this feature.
20578 alias -g '${1+"$@"}'='"$@"'
64ff59ba 20579 setopt NO_GLOB_SUBST
d9898ee8 20580else
64ff59ba 20581 case `(set -o) 2>/dev/null` in
20582 *posix*) set -o posix ;;
20583esac
20584
d9898ee8 20585fi
20586
20587
d9898ee8 20588
d9898ee8 20589
64ff59ba 20590# PATH needs CR
d9898ee8 20591# Avoid depending upon Character Ranges.
20592as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20593as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20594as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20595as_cr_digits='0123456789'
20596as_cr_alnum=$as_cr_Letters$as_cr_digits
20597
20598# The user is always right.
20599if test "${PATH_SEPARATOR+set}" != set; then
20600 echo "#! /bin/sh" >conf$$.sh
20601 echo "exit 0" >>conf$$.sh
20602 chmod +x conf$$.sh
20603 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20604 PATH_SEPARATOR=';'
20605 else
20606 PATH_SEPARATOR=:
20607 fi
20608 rm -f conf$$.sh
20609fi
20610
64ff59ba 20611# Support unset when possible.
20612if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20613 as_unset=unset
20614else
20615 as_unset=false
20616fi
d9898ee8 20617
64ff59ba 20618
20619# IFS
20620# We need space, tab and new line, in precisely that order. Quoting is
20621# there to prevent editors from complaining about space-tab.
20622# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20623# splitting by setting IFS to empty value.)
20624as_nl='
20625'
20626IFS=" "" $as_nl"
20627
20628# Find who we are. Look in the path if we contain no directory separator.
20629case $0 in
20630 *[\\/]* ) as_myself=$0 ;;
20631 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 20632for as_dir in $PATH
20633do
20634 IFS=$as_save_IFS
20635 test -z "$as_dir" && as_dir=.
20636 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20637done
64ff59ba 20638IFS=$as_save_IFS
d9898ee8 20639
64ff59ba 20640 ;;
20641esac
20642# We did not find ourselves, most probably we were run as `sh COMMAND'
20643# in which case we are not to be found in the path.
20644if test "x$as_myself" = x; then
20645 as_myself=$0
20646fi
20647if test ! -f "$as_myself"; then
20648 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20649 { (exit 1); exit 1; }
20650fi
20651
20652# Work around bugs in pre-3.0 UWIN ksh.
20653for as_var in ENV MAIL MAILPATH
20654do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20655done
20656PS1='$ '
20657PS2='> '
20658PS4='+ '
20659
20660# NLS nuisances.
20661for as_var in \
20662 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20663 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20664 LC_TELEPHONE LC_TIME
d9898ee8 20665do
64ff59ba 20666 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20667 eval $as_var=C; export $as_var
20668 else
20669 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20670 fi
20671done
20672
20673# Required to use basename.
20674if expr a : '\(a\)' >/dev/null 2>&1 &&
20675 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20676 as_expr=expr
20677else
20678 as_expr=false
20679fi
20680
20681if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20682 as_basename=basename
20683else
20684 as_basename=false
20685fi
20686
20687
20688# Name of the executable.
20689as_me=`$as_basename -- "$0" ||
20690$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20691 X"$0" : 'X\(//\)$' \| \
20692 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20693echo X/"$0" |
20694 sed '/^.*\/\([^/][^/]*\)\/*$/{
20695 s//\1/
20696 q
20697 }
20698 /^X\/\(\/\/\)$/{
20699 s//\1/
20700 q
20701 }
20702 /^X\/\(\/\).*/{
20703 s//\1/
20704 q
20705 }
20706 s/.*/./; q'`
20707
20708# CDPATH.
20709$as_unset CDPATH
20710
20711
20712
d9898ee8 20713 as_lineno_1=$LINENO
20714 as_lineno_2=$LINENO
d9898ee8 20715 test "x$as_lineno_1" != "x$as_lineno_2" &&
64ff59ba 20716 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 20717
20718 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20719 # uniformly replaced by the line number. The first 'sed' inserts a
64ff59ba 20720 # line-number line after each line using $LINENO; the second 'sed'
20721 # does the real work. The second script uses 'N' to pair each
20722 # line-number line with the line containing $LINENO, and appends
20723 # trailing '-' during substitution so that $LINENO is not a special
20724 # case at line end.
d9898ee8 20725 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
64ff59ba 20726 # scripts with optimization help from Paolo Bonzini. Blame Lee
20727 # E. McMahon (1931-1989) for sed's syntax. :-)
20728 sed -n '
20729 p
20730 /[$]LINENO/=
20731 ' <$as_myself |
d9898ee8 20732 sed '
64ff59ba 20733 s/[$]LINENO.*/&-/
20734 t lineno
20735 b
20736 :lineno
d9898ee8 20737 N
64ff59ba 20738 :loop
20739 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 20740 t loop
64ff59ba 20741 s/-\n.*//
d9898ee8 20742 ' >$as_me.lineno &&
64ff59ba 20743 chmod +x "$as_me.lineno" ||
20744 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 20745 { (exit 1); exit 1; }; }
20746
20747 # Don't try to exec as it changes $[0], causing all sort of problems
20748 # (the dirname of $[0] is not the place where we might find the
64ff59ba 20749 # original and so on. Autoconf is especially sensitive to this).
20750 . "./$as_me.lineno"
d9898ee8 20751 # Exit status is that of the last command.
20752 exit
20753}
20754
20755
64ff59ba 20756if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20757 as_dirname=dirname
20758else
20759 as_dirname=false
20760fi
20761
20762ECHO_C= ECHO_N= ECHO_T=
20763case `echo -n x` in
20764-n*)
20765 case `echo 'x\c'` in
20766 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20767 *) ECHO_C='\c';;
20768 esac;;
20769*)
20770 ECHO_N='-n';;
d9898ee8 20771esac
20772
64ff59ba 20773if expr a : '\(a\)' >/dev/null 2>&1 &&
20774 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 20775 as_expr=expr
20776else
20777 as_expr=false
20778fi
20779
20780rm -f conf$$ conf$$.exe conf$$.file
64ff59ba 20781if test -d conf$$.dir; then
20782 rm -f conf$$.dir/conf$$.file
20783else
20784 rm -f conf$$.dir
20785 mkdir conf$$.dir
20786fi
d9898ee8 20787echo >conf$$.file
20788if ln -s conf$$.file conf$$ 2>/dev/null; then
64ff59ba 20789 as_ln_s='ln -s'
20790 # ... but there are two gotchas:
20791 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20792 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20793 # In both cases, we have to default to `cp -p'.
20794 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 20795 as_ln_s='cp -p'
d9898ee8 20796elif ln conf$$.file conf$$ 2>/dev/null; then
20797 as_ln_s=ln
20798else
20799 as_ln_s='cp -p'
20800fi
64ff59ba 20801rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20802rmdir conf$$.dir 2>/dev/null
d9898ee8 20803
20804if mkdir -p . 2>/dev/null; then
20805 as_mkdir_p=:
20806else
20807 test -d ./-p && rmdir ./-p
20808 as_mkdir_p=false
20809fi
20810
64ff59ba 20811if test -x / >/dev/null 2>&1; then
20812 as_test_x='test -x'
20813else
20814 if ls -dL / >/dev/null 2>&1; then
20815 as_ls_L_option=L
20816 else
20817 as_ls_L_option=
20818 fi
20819 as_test_x='
20820 eval sh -c '\''
20821 if test -d "$1"; then
20822 test -d "$1/.";
20823 else
20824 case $1 in
20825 -*)set "./$1";;
20826 esac;
20827 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20828 ???[sx]*):;;*)false;;esac;fi
20829 '\'' sh
20830 '
20831fi
20832as_executable_p=$as_test_x
d9898ee8 20833
20834# Sed expression to map a string onto a valid CPP name.
20835as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20836
20837# Sed expression to map a string onto a valid variable name.
20838as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20839
20840
d9898ee8 20841exec 6>&1
20842
64ff59ba 20843# Save the log message, to keep $[0] and so on meaningful, and to
d9898ee8 20844# report actual input values of CONFIG_FILES etc. instead of their
64ff59ba 20845# values after options handling.
20846ac_log="
d9898ee8 20847This file was extended by bdbobj $as_me 0.10, which was
64ff59ba 20848generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 20849
20850 CONFIG_FILES = $CONFIG_FILES
20851 CONFIG_HEADERS = $CONFIG_HEADERS
20852 CONFIG_LINKS = $CONFIG_LINKS
20853 CONFIG_COMMANDS = $CONFIG_COMMANDS
20854 $ $0 $@
20855
64ff59ba 20856on `(hostname || uname -n) 2>/dev/null | sed 1q`
20857"
20858
d9898ee8 20859_ACEOF
20860
64ff59ba 20861cat >>$CONFIG_STATUS <<_ACEOF
d9898ee8 20862# Files that config.status was made for.
64ff59ba 20863config_files="$ac_config_files"
20864config_headers="$ac_config_headers"
20865config_commands="$ac_config_commands"
d9898ee8 20866
64ff59ba 20867_ACEOF
d9898ee8 20868
20869cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 20870ac_cs_usage="\
20871\`$as_me' instantiates files from templates according to the
20872current configuration.
20873
20874Usage: $0 [OPTIONS] [FILE]...
20875
20876 -h, --help print this help, then exit
64ff59ba 20877 -V, --version print version number and configuration settings, then exit
d9898ee8 20878 -q, --quiet do not print progress messages
20879 -d, --debug don't remove temporary files
20880 --recheck update $as_me by reconfiguring in the same conditions
20881 --file=FILE[:TEMPLATE]
20882 instantiate the configuration file FILE
20883 --header=FILE[:TEMPLATE]
20884 instantiate the configuration header FILE
20885
20886Configuration files:
20887$config_files
20888
20889Configuration headers:
20890$config_headers
20891
20892Configuration commands:
20893$config_commands
20894
20895Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 20896
64ff59ba 20897_ACEOF
d9898ee8 20898cat >>$CONFIG_STATUS <<_ACEOF
20899ac_cs_version="\\
20900bdbobj config.status 0.10
64ff59ba 20901configured by $0, generated by GNU Autoconf 2.61,
20902 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 20903
64ff59ba 20904Copyright (C) 2006 Free Software Foundation, Inc.
d9898ee8 20905This config.status script is free software; the Free Software Foundation
20906gives unlimited permission to copy, distribute and modify it."
64ff59ba 20907
20908ac_pwd='$ac_pwd'
20909srcdir='$srcdir'
20910INSTALL='$INSTALL'
20911MKDIR_P='$MKDIR_P'
d9898ee8 20912_ACEOF
20913
20914cat >>$CONFIG_STATUS <<\_ACEOF
20915# If no file are specified by the user, then we need to provide default
20916# value. By we need to know if files were specified by the user.
20917ac_need_defaults=:
20918while test $# != 0
20919do
20920 case $1 in
20921 --*=*)
64ff59ba 20922 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20923 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d9898ee8 20924 ac_shift=:
20925 ;;
64ff59ba 20926 *)
d9898ee8 20927 ac_option=$1
20928 ac_optarg=$2
20929 ac_shift=shift
20930 ;;
d9898ee8 20931 esac
20932
20933 case $ac_option in
20934 # Handling of the options.
d9898ee8 20935 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20936 ac_cs_recheck=: ;;
64ff59ba 20937 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20938 echo "$ac_cs_version"; exit ;;
20939 --debug | --debu | --deb | --de | --d | -d )
d9898ee8 20940 debug=: ;;
20941 --file | --fil | --fi | --f )
20942 $ac_shift
20943 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20944 ac_need_defaults=false;;
20945 --header | --heade | --head | --hea )
20946 $ac_shift
20947 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20948 ac_need_defaults=false;;
64ff59ba 20949 --he | --h)
20950 # Conflict between --help and --header
20951 { echo "$as_me: error: ambiguous option: $1
20952Try \`$0 --help' for more information." >&2
20953 { (exit 1); exit 1; }; };;
20954 --help | --hel | -h )
20955 echo "$ac_cs_usage"; exit ;;
d9898ee8 20956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20957 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20958 ac_cs_silent=: ;;
20959
20960 # This is an error.
64ff59ba 20961 -*) { echo "$as_me: error: unrecognized option: $1
20962Try \`$0 --help' for more information." >&2
d9898ee8 20963 { (exit 1); exit 1; }; } ;;
20964
64ff59ba 20965 *) ac_config_targets="$ac_config_targets $1"
20966 ac_need_defaults=false ;;
d9898ee8 20967
20968 esac
20969 shift
20970done
20971
20972ac_configure_extra_args=
20973
20974if $ac_cs_silent; then
20975 exec 6>/dev/null
20976 ac_configure_extra_args="$ac_configure_extra_args --silent"
20977fi
20978
20979_ACEOF
20980cat >>$CONFIG_STATUS <<_ACEOF
20981if \$ac_cs_recheck; then
64ff59ba 20982 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20983 CONFIG_SHELL=$SHELL
20984 export CONFIG_SHELL
20985 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9898ee8 20986fi
20987
20988_ACEOF
64ff59ba 20989cat >>$CONFIG_STATUS <<\_ACEOF
20990exec 5>>config.log
20991{
20992 echo
20993 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20994## Running $as_me. ##
20995_ASBOX
20996 echo "$ac_log"
20997} >&5
d9898ee8 20998
64ff59ba 20999_ACEOF
d9898ee8 21000cat >>$CONFIG_STATUS <<_ACEOF
21001#
64ff59ba 21002# INIT-COMMANDS
d9898ee8 21003#
d9898ee8 21004AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21005
21006_ACEOF
21007
d9898ee8 21008cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 21009
21010# Handling of arguments.
d9898ee8 21011for ac_config_target in $ac_config_targets
21012do
64ff59ba 21013 case $ac_config_target in
21014 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21015 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21016 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21017
d9898ee8 21018 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21019echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21020 { (exit 1); exit 1; }; };;
21021 esac
21022done
21023
64ff59ba 21024
d9898ee8 21025# If the user did not use the arguments to specify the items to instantiate,
21026# then the envvar interface is used. Set only those that are not.
21027# We use the long form for the default assignment because of an extremely
21028# bizarre bug on SunOS 4.1.3.
21029if $ac_need_defaults; then
21030 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21031 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21032 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21033fi
21034
21035# Have a temporary directory for convenience. Make it in the build tree
64ff59ba 21036# simply because there is no reason against having it here, and in addition,
d9898ee8 21037# creating and moving files from /tmp can sometimes cause problems.
64ff59ba 21038# Hook for its removal unless debugging.
21039# Note that there is a small window in which the directory will not be cleaned:
21040# after its creation but before its name has been assigned to `$tmp'.
d9898ee8 21041$debug ||
21042{
64ff59ba 21043 tmp=
21044 trap 'exit_status=$?
21045 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21046' 0
d9898ee8 21047 trap '{ (exit 1); exit 1; }' 1 2 13 15
21048}
d9898ee8 21049# Create a (secure) tmp directory for tmp files.
21050
21051{
64ff59ba 21052 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d9898ee8 21053 test -n "$tmp" && test -d "$tmp"
21054} ||
21055{
64ff59ba 21056 tmp=./conf$$-$RANDOM
21057 (umask 077 && mkdir "$tmp")
d9898ee8 21058} ||
21059{
21060 echo "$me: cannot create a temporary directory in ." >&2
21061 { (exit 1); exit 1; }
21062}
21063
d9898ee8 21064#
64ff59ba 21065# Set up the sed scripts for CONFIG_FILES section.
d9898ee8 21066#
21067
21068# No need to generate the scripts if there are no CONFIG_FILES.
21069# This happens for instance when ./config.status config.h
64ff59ba 21070if test -n "$CONFIG_FILES"; then
d9898ee8 21071
21072_ACEOF
21073
64ff59ba 21074
21075
21076ac_delim='%!_!# '
21077for ac_last_try in false false false false false :; do
21078 cat >conf$$subs.sed <<_ACEOF
21079SHELL!$SHELL$ac_delim
21080PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21081PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21082PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21083PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21084PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21085PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21086exec_prefix!$exec_prefix$ac_delim
21087prefix!$prefix$ac_delim
21088program_transform_name!$program_transform_name$ac_delim
21089bindir!$bindir$ac_delim
21090sbindir!$sbindir$ac_delim
21091libexecdir!$libexecdir$ac_delim
21092datarootdir!$datarootdir$ac_delim
21093datadir!$datadir$ac_delim
21094sysconfdir!$sysconfdir$ac_delim
21095sharedstatedir!$sharedstatedir$ac_delim
21096localstatedir!$localstatedir$ac_delim
21097includedir!$includedir$ac_delim
21098oldincludedir!$oldincludedir$ac_delim
21099docdir!$docdir$ac_delim
21100infodir!$infodir$ac_delim
21101htmldir!$htmldir$ac_delim
21102dvidir!$dvidir$ac_delim
21103pdfdir!$pdfdir$ac_delim
21104psdir!$psdir$ac_delim
21105libdir!$libdir$ac_delim
21106localedir!$localedir$ac_delim
21107mandir!$mandir$ac_delim
21108DEFS!$DEFS$ac_delim
21109ECHO_C!$ECHO_C$ac_delim
21110ECHO_N!$ECHO_N$ac_delim
21111ECHO_T!$ECHO_T$ac_delim
21112LIBS!$LIBS$ac_delim
21113build_alias!$build_alias$ac_delim
21114host_alias!$host_alias$ac_delim
21115target_alias!$target_alias$ac_delim
21116INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21117INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21118INSTALL_DATA!$INSTALL_DATA$ac_delim
21119am__isrc!$am__isrc$ac_delim
21120CYGPATH_W!$CYGPATH_W$ac_delim
21121PACKAGE!$PACKAGE$ac_delim
21122VERSION!$VERSION$ac_delim
21123ACLOCAL!$ACLOCAL$ac_delim
21124AUTOCONF!$AUTOCONF$ac_delim
21125AUTOMAKE!$AUTOMAKE$ac_delim
21126AUTOHEADER!$AUTOHEADER$ac_delim
21127MAKEINFO!$MAKEINFO$ac_delim
21128install_sh!$install_sh$ac_delim
21129STRIP!$STRIP$ac_delim
21130INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21131mkdir_p!$mkdir_p$ac_delim
21132AWK!$AWK$ac_delim
21133SET_MAKE!$SET_MAKE$ac_delim
21134am__leading_dot!$am__leading_dot$ac_delim
21135AMTAR!$AMTAR$ac_delim
21136am__tar!$am__tar$ac_delim
21137am__untar!$am__untar$ac_delim
21138CC!$CC$ac_delim
21139CFLAGS!$CFLAGS$ac_delim
21140LDFLAGS!$LDFLAGS$ac_delim
21141CPPFLAGS!$CPPFLAGS$ac_delim
21142ac_ct_CC!$ac_ct_CC$ac_delim
21143EXEEXT!$EXEEXT$ac_delim
21144OBJEXT!$OBJEXT$ac_delim
21145DEPDIR!$DEPDIR$ac_delim
21146am__include!$am__include$ac_delim
21147am__quote!$am__quote$ac_delim
21148AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21149AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21150AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21151CCDEPMODE!$CCDEPMODE$ac_delim
21152am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21153am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21154CPP!$CPP$ac_delim
21155GREP!$GREP$ac_delim
21156EGREP!$EGREP$ac_delim
21157CXX!$CXX$ac_delim
21158CXXFLAGS!$CXXFLAGS$ac_delim
21159ac_ct_CXX!$ac_ct_CXX$ac_delim
21160CXXDEPMODE!$CXXDEPMODE$ac_delim
21161am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21162am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21163build!$build$ac_delim
21164build_cpu!$build_cpu$ac_delim
21165build_vendor!$build_vendor$ac_delim
21166build_os!$build_os$ac_delim
21167host!$host$ac_delim
21168host_cpu!$host_cpu$ac_delim
21169host_vendor!$host_vendor$ac_delim
21170host_os!$host_os$ac_delim
21171SED!$SED$ac_delim
21172LN_S!$LN_S$ac_delim
21173ECHO!$ECHO$ac_delim
21174AR!$AR$ac_delim
21175RANLIB!$RANLIB$ac_delim
21176_ACEOF
21177
21178 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21179 break
21180 elif $ac_last_try; then
21181 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21182echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21183 { (exit 1); exit 1; }; }
21184 else
21185 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d9898ee8 21186 fi
64ff59ba 21187done
21188
21189ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21190if test -n "$ac_eof"; then
21191 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21192 ac_eof=`expr $ac_eof + 1`
21193fi
21194
21195cat >>$CONFIG_STATUS <<_ACEOF
21196cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21197/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21198_ACEOF
21199sed '
21200s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21201s/^/s,@/; s/!/@,|#_!!_#|/
21202:n
21203t n
21204s/'"$ac_delim"'$/,g/; t
21205s/$/\\/; p
21206N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21207' >>$CONFIG_STATUS <conf$$subs.sed
21208rm -f conf$$subs.sed
21209cat >>$CONFIG_STATUS <<_ACEOF
21210CEOF$ac_eof
21211_ACEOF
21212
21213
21214ac_delim='%!_!# '
21215for ac_last_try in false false false false false :; do
21216 cat >conf$$subs.sed <<_ACEOF
21217CXXCPP!$CXXCPP$ac_delim
21218F77!$F77$ac_delim
21219FFLAGS!$FFLAGS$ac_delim
21220ac_ct_F77!$ac_ct_F77$ac_delim
21221LIBTOOL!$LIBTOOL$ac_delim
21222LIBDB!$LIBDB$ac_delim
21223FOUND_DB_TRUE!$FOUND_DB_TRUE$ac_delim
21224FOUND_DB_FALSE!$FOUND_DB_FALSE$ac_delim
21225LIBOBJS!$LIBOBJS$ac_delim
21226LTLIBOBJS!$LTLIBOBJS$ac_delim
21227_ACEOF
21228
21229 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
21230 break
21231 elif $ac_last_try; then
21232 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21233echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21234 { (exit 1); exit 1; }; }
21235 else
21236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21237 fi
21238done
21239
21240ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21241if test -n "$ac_eof"; then
21242 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21243 ac_eof=`expr $ac_eof + 1`
21244fi
d9898ee8 21245
64ff59ba 21246cat >>$CONFIG_STATUS <<_ACEOF
21247cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21248/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21249_ACEOF
21250sed '
21251s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21252s/^/s,@/; s/!/@,|#_!!_#|/
21253:n
21254t n
21255s/'"$ac_delim"'$/,g/; t
21256s/$/\\/; p
21257N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21258' >>$CONFIG_STATUS <conf$$subs.sed
21259rm -f conf$$subs.sed
21260cat >>$CONFIG_STATUS <<_ACEOF
21261:end
21262s/|#_!!_#|//g
21263CEOF$ac_eof
d9898ee8 21264_ACEOF
64ff59ba 21265
21266
21267# VPATH may cause trouble with some makes, so we remove $(srcdir),
21268# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21269# trailing colons and then remove the whole line if VPATH becomes empty
21270# (actually we leave an empty line to preserve line numbers).
21271if test "x$srcdir" = x.; then
21272 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21273s/:*\$(srcdir):*/:/
21274s/:*\${srcdir}:*/:/
21275s/:*@srcdir@:*/:/
21276s/^\([^=]*=[ ]*\):*/\1/
21277s/:*$//
21278s/^[^=]*=[ ]*$//
21279}'
21280fi
21281
d9898ee8 21282cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 21283fi # test -n "$CONFIG_FILES"
21284
21285
21286for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21287do
21288 case $ac_tag in
21289 :[FHLC]) ac_mode=$ac_tag; continue;;
21290 esac
21291 case $ac_mode$ac_tag in
21292 :[FHL]*:*);;
21293 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21294echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21295 { (exit 1); exit 1; }; };;
21296 :[FH]-) ac_tag=-:-;;
21297 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21298 esac
21299 ac_save_IFS=$IFS
21300 IFS=:
21301 set x $ac_tag
21302 IFS=$ac_save_IFS
21303 shift
21304 ac_file=$1
21305 shift
21306
21307 case $ac_mode in
21308 :L) ac_source=$1;;
21309 :[FH])
21310 ac_file_inputs=
21311 for ac_f
21312 do
21313 case $ac_f in
21314 -) ac_f="$tmp/stdin";;
21315 *) # Look for the file first in the build tree, then in the source tree
21316 # (if the path is not absolute). The absolute path cannot be DOS-style,
21317 # because $ac_f cannot contain `:'.
21318 test -f "$ac_f" ||
21319 case $ac_f in
21320 [\\/$]*) false;;
21321 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21322 esac ||
21323 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21324echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21325 { (exit 1); exit 1; }; };;
21326 esac
21327 ac_file_inputs="$ac_file_inputs $ac_f"
21328 done
21329
21330 # Let's still pretend it is `configure' which instantiates (i.e., don't
21331 # use $as_me), people would be surprised to read:
21332 # /* config.h. Generated by config.status. */
21333 configure_input="Generated from "`IFS=:
21334 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21335 if test x"$ac_file" != x-; then
21336 configure_input="$ac_file. $configure_input"
21337 { echo "$as_me:$LINENO: creating $ac_file" >&5
21338echo "$as_me: creating $ac_file" >&6;}
21339 fi
21340
21341 case $ac_tag in
21342 *:-:* | *:-) cat >"$tmp/stdin";;
21343 esac
21344 ;;
d9898ee8 21345 esac
21346
64ff59ba 21347 ac_dir=`$as_dirname -- "$ac_file" ||
d9898ee8 21348$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21349 X"$ac_file" : 'X\(//\)[^/]' \| \
21350 X"$ac_file" : 'X\(//\)$' \| \
64ff59ba 21351 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21352echo X"$ac_file" |
64ff59ba 21353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21354 s//\1/
21355 q
21356 }
21357 /^X\(\/\/\)[^/].*/{
21358 s//\1/
21359 q
21360 }
21361 /^X\(\/\/\)$/{
21362 s//\1/
21363 q
21364 }
21365 /^X\(\/\).*/{
21366 s//\1/
21367 q
21368 }
21369 s/.*/./; q'`
21370 { as_dir="$ac_dir"
21371 case $as_dir in #(
21372 -*) as_dir=./$as_dir;;
21373 esac
21374 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 21375 as_dirs=
64ff59ba 21376 while :; do
21377 case $as_dir in #(
21378 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21379 *) as_qdir=$as_dir;;
21380 esac
21381 as_dirs="'$as_qdir' $as_dirs"
21382 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 21383$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21384 X"$as_dir" : 'X\(//\)[^/]' \| \
21385 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 21386 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21387echo X"$as_dir" |
64ff59ba 21388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21389 s//\1/
21390 q
21391 }
21392 /^X\(\/\/\)[^/].*/{
21393 s//\1/
21394 q
21395 }
21396 /^X\(\/\/\)$/{
21397 s//\1/
21398 q
21399 }
21400 /^X\(\/\).*/{
21401 s//\1/
21402 q
21403 }
21404 s/.*/./; q'`
21405 test -d "$as_dir" && break
d9898ee8 21406 done
64ff59ba 21407 test -z "$as_dirs" || eval "mkdir $as_dirs"
21408 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21409echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 21410 { (exit 1); exit 1; }; }; }
d9898ee8 21411 ac_builddir=.
21412
64ff59ba 21413case "$ac_dir" in
21414.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21415*)
d9898ee8 21416 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 21417 # A ".." for each directory in $ac_dir_suffix.
21418 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21419 case $ac_top_builddir_sub in
21420 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21421 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21422 esac ;;
21423esac
21424ac_abs_top_builddir=$ac_pwd
21425ac_abs_builddir=$ac_pwd$ac_dir_suffix
21426# for backward compatibility:
21427ac_top_builddir=$ac_top_build_prefix
d9898ee8 21428
21429case $srcdir in
64ff59ba 21430 .) # We are building in place.
d9898ee8 21431 ac_srcdir=.
64ff59ba 21432 ac_top_srcdir=$ac_top_builddir_sub
21433 ac_abs_top_srcdir=$ac_pwd ;;
21434 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 21435 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 21436 ac_top_srcdir=$srcdir
21437 ac_abs_top_srcdir=$srcdir ;;
21438 *) # Relative name.
21439 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21440 ac_top_srcdir=$ac_top_build_prefix$srcdir
21441 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 21442esac
64ff59ba 21443ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 21444
d9898ee8 21445
64ff59ba 21446 case $ac_mode in
21447 :F)
21448 #
21449 # CONFIG_FILE
21450 #
d9898ee8 21451
21452 case $INSTALL in
21453 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
64ff59ba 21454 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21455 esac
21456 ac_MKDIR_P=$MKDIR_P
21457 case $MKDIR_P in
21458 [\\/$]* | ?:[\\/]* ) ;;
21459 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d9898ee8 21460 esac
64ff59ba 21461_ACEOF
d9898ee8 21462
64ff59ba 21463cat >>$CONFIG_STATUS <<\_ACEOF
21464# If the template does not know about datarootdir, expand it.
21465# FIXME: This hack should be removed a few years after 2.60.
21466ac_datarootdir_hack=; ac_datarootdir_seen=
21467
21468case `sed -n '/datarootdir/ {
21469 p
21470 q
21471}
21472/@datadir@/p
21473/@docdir@/p
21474/@infodir@/p
21475/@localedir@/p
21476/@mandir@/p
21477' $ac_file_inputs` in
21478*datarootdir*) ac_datarootdir_seen=yes;;
21479*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21480 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21481echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 21482_ACEOF
64ff59ba 21483cat >>$CONFIG_STATUS <<_ACEOF
21484 ac_datarootdir_hack='
21485 s&@datadir@&$datadir&g
21486 s&@docdir@&$docdir&g
21487 s&@infodir@&$infodir&g
21488 s&@localedir@&$localedir&g
21489 s&@mandir@&$mandir&g
21490 s&\\\${datarootdir}&$datarootdir&g' ;;
21491esac
21492_ACEOF
21493
21494# Neutralize VPATH when `$srcdir' = `.'.
21495# Shell code in configure.ac might set extrasub.
21496# FIXME: do we really want to maintain this feature?
d9898ee8 21497cat >>$CONFIG_STATUS <<_ACEOF
21498 sed "$ac_vpsub
21499$extrasub
21500_ACEOF
21501cat >>$CONFIG_STATUS <<\_ACEOF
21502:t
21503/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
64ff59ba 21504s&@configure_input@&$configure_input&;t t
21505s&@top_builddir@&$ac_top_builddir_sub&;t t
21506s&@srcdir@&$ac_srcdir&;t t
21507s&@abs_srcdir@&$ac_abs_srcdir&;t t
21508s&@top_srcdir@&$ac_top_srcdir&;t t
21509s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21510s&@builddir@&$ac_builddir&;t t
21511s&@abs_builddir@&$ac_abs_builddir&;t t
21512s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21513s&@INSTALL@&$ac_INSTALL&;t t
21514s&@MKDIR_P@&$ac_MKDIR_P&;t t
21515$ac_datarootdir_hack
21516" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21517
21518test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21519 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21520 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21521 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21522which seems to be undefined. Please make sure it is defined." >&5
21523echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21524which seems to be undefined. Please make sure it is defined." >&2;}
21525
21526 rm -f "$tmp/stdin"
d9898ee8 21527 case $ac_file in
64ff59ba 21528 -) cat "$tmp/out"; rm -f "$tmp/out";;
21529 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
d9898ee8 21530 esac
64ff59ba 21531 ;;
21532 :H)
21533 #
21534 # CONFIG_HEADER
21535 #
d9898ee8 21536_ACEOF
21537
64ff59ba 21538# Transform confdefs.h into a sed script `conftest.defines', that
21539# substitutes the proper values into config.h.in to produce config.h.
21540rm -f conftest.defines conftest.tail
21541# First, append a space to every undef/define line, to ease matching.
21542echo 's/$/ /' >conftest.defines
21543# Then, protect against being on the right side of a sed subst, or in
21544# an unquoted here document, in config.status. If some macros were
21545# called several times there might be several #defines for the same
21546# symbol, which is useless. But do not sort them, since the last
21547# AC_DEFINE must be honored.
21548ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21549# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21550# NAME is the cpp macro being defined, VALUE is the value it is being given.
21551# PARAMS is the parameter list in the macro definition--in most cases, it's
21552# just an empty string.
21553ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21554ac_dB='\\)[ (].*,\\1define\\2'
21555ac_dC=' '
21556ac_dD=' ,'
21557
21558uniq confdefs.h |
21559 sed -n '
21560 t rset
21561 :rset
21562 s/^[ ]*#[ ]*define[ ][ ]*//
21563 t ok
21564 d
21565 :ok
21566 s/[\\&,]/\\&/g
21567 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21568 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21569 ' >>conftest.defines
21570
21571# Remove the space that was appended to ease matching.
21572# Then replace #undef with comments. This is necessary, for
d9898ee8 21573# example, in the case of _POSIX_SOURCE, which is predefined and required
21574# on some systems where configure will not decide to define it.
64ff59ba 21575# (The regexp can be short, since the line contains either #define or #undef.)
21576echo 's/ $//
21577s,^[ #]*u.*,/* & */,' >>conftest.defines
21578
21579# Break up conftest.defines:
21580ac_max_sed_lines=50
21581
21582# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21583# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21584# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21585# et cetera.
21586ac_in='$ac_file_inputs'
21587ac_out='"$tmp/out1"'
21588ac_nxt='"$tmp/out2"'
21589
21590while :
d9898ee8 21591do
64ff59ba 21592 # Write a here document:
21593 cat >>$CONFIG_STATUS <<_ACEOF
21594 # First, check the format of the line:
21595 cat >"\$tmp/defines.sed" <<\\CEOF
21596/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21597/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21598b
21599:def
21600_ACEOF
21601 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
d9898ee8 21602 echo 'CEOF
64ff59ba 21603 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21604 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21605 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21606 grep . conftest.tail >/dev/null || break
d9898ee8 21607 rm -f conftest.defines
21608 mv conftest.tail conftest.defines
21609done
64ff59ba 21610rm -f conftest.defines conftest.tail
d9898ee8 21611
64ff59ba 21612echo "ac_result=$ac_in" >>$CONFIG_STATUS
d9898ee8 21613cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 21614 if test x"$ac_file" != x-; then
64ff59ba 21615 echo "/* $configure_input */" >"$tmp/config.h"
21616 cat "$ac_result" >>"$tmp/config.h"
21617 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
d9898ee8 21618 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21619echo "$as_me: $ac_file is unchanged" >&6;}
21620 else
d9898ee8 21621 rm -f $ac_file
64ff59ba 21622 mv "$tmp/config.h" $ac_file
d9898ee8 21623 fi
21624 else
64ff59ba 21625 echo "/* $configure_input */"
21626 cat "$ac_result"
d9898ee8 21627 fi
64ff59ba 21628 rm -f "$tmp/out12"
d9898ee8 21629# Compute $ac_file's index in $config_headers.
21630_am_stamp_count=1
21631for _am_header in $config_headers :; do
21632 case $_am_header in
21633 $ac_file | $ac_file:* )
21634 break ;;
21635 * )
21636 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21637 esac
21638done
64ff59ba 21639echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
d9898ee8 21640$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21641 X$ac_file : 'X\(//\)[^/]' \| \
21642 X$ac_file : 'X\(//\)$' \| \
64ff59ba 21643 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21644echo X$ac_file |
64ff59ba 21645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21646 s//\1/
21647 q
21648 }
21649 /^X\(\/\/\)[^/].*/{
21650 s//\1/
21651 q
21652 }
21653 /^X\(\/\/\)$/{
21654 s//\1/
21655 q
21656 }
21657 /^X\(\/\).*/{
21658 s//\1/
21659 q
21660 }
21661 s/.*/./; q'`/stamp-h$_am_stamp_count
21662 ;;
d9898ee8 21663
64ff59ba 21664 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21665echo "$as_me: executing $ac_file commands" >&6;}
21666 ;;
21667 esac
d9898ee8 21668
21669
64ff59ba 21670 case $ac_file$ac_mode in
21671 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
d9898ee8 21672 # Strip MF so we end up with the name of the file.
21673 mf=`echo "$mf" | sed -e 's/:.*$//'`
21674 # Check whether this is an Automake generated Makefile or not.
21675 # We used to match only the files named `Makefile.in', but
21676 # some people rename them; so instead we look at the file content.
21677 # Grep'ing the first line is not enough: some people post-process
21678 # each Makefile.in and add a new line on top of each file to say so.
64ff59ba 21679 # Grep'ing the whole file is not good either: AIX grep has a line
21680 # limit of 2048, but all sed's we know have understand at least 4000.
21681 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21682 dirpart=`$as_dirname -- "$mf" ||
d9898ee8 21683$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21684 X"$mf" : 'X\(//\)[^/]' \| \
21685 X"$mf" : 'X\(//\)$' \| \
64ff59ba 21686 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21687echo X"$mf" |
64ff59ba 21688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21689 s//\1/
21690 q
21691 }
21692 /^X\(\/\/\)[^/].*/{
21693 s//\1/
21694 q
21695 }
21696 /^X\(\/\/\)$/{
21697 s//\1/
21698 q
21699 }
21700 /^X\(\/\).*/{
21701 s//\1/
21702 q
21703 }
21704 s/.*/./; q'`
d9898ee8 21705 else
21706 continue
21707 fi
21708 # Extract the definition of DEPDIR, am__include, and am__quote
21709 # from the Makefile without running `make'.
21710 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21711 test -z "$DEPDIR" && continue
21712 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21713 test -z "am__include" && continue
21714 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21715 # When using ansi2knr, U may be empty or an underscore; expand it
21716 U=`sed -n 's/^U = //p' < "$mf"`
21717 # Find all dependency output files, they are included files with
21718 # $(DEPDIR) in their names. We invoke sed twice because it is the
21719 # simplest approach to changing $(DEPDIR) to its actual value in the
21720 # expansion.
21721 for file in `sed -n "
21722 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21723 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21724 # Make sure the directory exists.
21725 test -f "$dirpart/$file" && continue
64ff59ba 21726 fdir=`$as_dirname -- "$file" ||
d9898ee8 21727$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21728 X"$file" : 'X\(//\)[^/]' \| \
21729 X"$file" : 'X\(//\)$' \| \
64ff59ba 21730 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21731echo X"$file" |
64ff59ba 21732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21733 s//\1/
21734 q
21735 }
21736 /^X\(\/\/\)[^/].*/{
21737 s//\1/
21738 q
21739 }
21740 /^X\(\/\/\)$/{
21741 s//\1/
21742 q
21743 }
21744 /^X\(\/\).*/{
21745 s//\1/
21746 q
21747 }
21748 s/.*/./; q'`
21749 { as_dir=$dirpart/$fdir
21750 case $as_dir in #(
21751 -*) as_dir=./$as_dir;;
21752 esac
21753 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 21754 as_dirs=
64ff59ba 21755 while :; do
21756 case $as_dir in #(
21757 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21758 *) as_qdir=$as_dir;;
21759 esac
21760 as_dirs="'$as_qdir' $as_dirs"
21761 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 21762$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21763 X"$as_dir" : 'X\(//\)[^/]' \| \
21764 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 21765 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21766echo X"$as_dir" |
64ff59ba 21767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21768 s//\1/
21769 q
21770 }
21771 /^X\(\/\/\)[^/].*/{
21772 s//\1/
21773 q
21774 }
21775 /^X\(\/\/\)$/{
21776 s//\1/
21777 q
21778 }
21779 /^X\(\/\).*/{
21780 s//\1/
21781 q
21782 }
21783 s/.*/./; q'`
21784 test -d "$as_dir" && break
d9898ee8 21785 done
64ff59ba 21786 test -z "$as_dirs" || eval "mkdir $as_dirs"
21787 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21788echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 21789 { (exit 1); exit 1; }; }; }
d9898ee8 21790 # echo "creating $dirpart/$file"
21791 echo '# dummy' > "$dirpart/$file"
21792 done
21793done
21794 ;;
64ff59ba 21795
d9898ee8 21796 esac
64ff59ba 21797done # for ac_tag
d9898ee8 21798
d9898ee8 21799
21800{ (exit 0); exit 0; }
21801_ACEOF
21802chmod +x $CONFIG_STATUS
21803ac_clean_files=$ac_clean_files_save
21804
21805
21806# configure is writing to config.log, and then calls config.status.
21807# config.status does its own redirection, appending to config.log.
21808# Unfortunately, on DOS this fails, as config.log is still kept open
21809# by configure, so config.status won't be able to write to it; its
21810# output is simply discarded. So we exec the FD to /dev/null,
21811# effectively closing config.log, so it can be properly (re)opened and
21812# appended to by config.status. When coming back to configure, we
21813# need to make the FD available again.
21814if test "$no_create" != yes; then
21815 ac_cs_success=:
21816 ac_config_status_args=
21817 test "$silent" = yes &&
21818 ac_config_status_args="$ac_config_status_args --quiet"
21819 exec 5>/dev/null
21820 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21821 exec 5>>config.log
21822 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21823 # would make configure fail if this is the last instruction.
21824 $ac_cs_success || { (exit 1); exit 1; }
21825fi
21826