Imported upstream version 0.60.1
[hcoop/debian/courier-authlib.git] / liblock / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
dd184caf 3# Generated by GNU Autoconf 2.61 for liblock 0.60.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
dd184caf 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
dd184caf 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
dd184caf 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
d9898ee8 53fi
d9898ee8 54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
61
62
dd184caf 63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
d9898ee8 96# Work around bugs in pre-3.0 UWIN ksh.
dd184caf 97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
d9898ee8 100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
dd184caf 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 114 fi
115done
116
117# Required to use basename.
dd184caf 118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 120 as_expr=expr
121else
122 as_expr=false
123fi
124
dd184caf 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
dd184caf 133as_me=`$as_basename -- "$0" ||
d9898ee8 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
dd184caf 136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 137echo X/"$0" |
dd184caf 138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
d9898ee8 151
dd184caf 152# CDPATH.
153$as_unset CDPATH
d9898ee8 154
d9898ee8 155
dd184caf 156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
d9898ee8 161fi
162
dd184caf 163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
d9898ee8 179
dd184caf 180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
d9898ee8 187
dd184caf 188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
d9898ee8 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
dd184caf 228 case $as_dir in
d9898ee8 229 /*)
dd184caf 230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
d9898ee8 330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
d9898ee8 332 test "x$as_lineno_1" != "x$as_lineno_2" &&
dd184caf 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
dd184caf 432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
d9898ee8 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dd184caf 438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
d9898ee8 444 sed '
dd184caf 445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
d9898ee8 449 N
dd184caf 450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 452 t loop
dd184caf 453 s/-\n.*//
d9898ee8 454 ' >$as_me.lineno &&
dd184caf 455 chmod +x "$as_me.lineno" ||
d9898ee8 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
dd184caf 461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
d9898ee8 463 # Exit status is that of the last command.
464 exit
465}
466
467
dd184caf 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
d9898ee8 483esac
484
dd184caf 485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
dd184caf 493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
d9898ee8 499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
dd184caf 501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 507 as_ln_s='cp -p'
d9898ee8 508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
dd184caf 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
d9898ee8 515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
dd184caf 523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
d9898ee8 545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
d9898ee8 553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584$*
585EOF
586 exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
dd184caf 708exec 7<&0 </dev/null 6>&1
709
d9898ee8 710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
d9898ee8 715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
dd184caf 719ac_clean_files=
d9898ee8 720ac_config_libobj_dir=.
dd184caf 721LIBOBJS=
d9898ee8 722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
d9898ee8 728# Identity of this package.
729PACKAGE_NAME='liblock'
730PACKAGE_TARNAME='liblock'
731PACKAGE_VERSION='0.60'
732PACKAGE_STRING='liblock 0.60'
733PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735ac_unique_file="liblock.h"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
dd184caf 739#ifdef HAVE_SYS_TYPES_H
d9898ee8 740# include <sys/types.h>
741#endif
dd184caf 742#ifdef HAVE_SYS_STAT_H
d9898ee8 743# include <sys/stat.h>
744#endif
dd184caf 745#ifdef STDC_HEADERS
d9898ee8 746# include <stdlib.h>
747# include <stddef.h>
748#else
dd184caf 749# ifdef HAVE_STDLIB_H
d9898ee8 750# include <stdlib.h>
751# endif
752#endif
dd184caf 753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 755# include <memory.h>
756# endif
757# include <string.h>
758#endif
dd184caf 759#ifdef HAVE_STRINGS_H
d9898ee8 760# include <strings.h>
761#endif
dd184caf 762#ifdef HAVE_INTTYPES_H
d9898ee8 763# include <inttypes.h>
d9898ee8 764#endif
dd184caf 765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
d9898ee8 769# include <unistd.h>
770#endif"
771
dd184caf 772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809INSTALL_PROGRAM
810INSTALL_SCRIPT
811INSTALL_DATA
812am__isrc
813CYGPATH_W
814PACKAGE
815VERSION
816ACLOCAL
817AUTOCONF
818AUTOMAKE
819AUTOHEADER
820MAKEINFO
821install_sh
822STRIP
823INSTALL_STRIP_PROGRAM
824mkdir_p
825AWK
826SET_MAKE
827am__leading_dot
828AMTAR
829am__tar
830am__untar
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
847LN_S
848build
849build_cpu
850build_vendor
851build_os
852host
853host_cpu
854host_vendor
855host_os
856SED
857GREP
858EGREP
859ECHO
860AR
861RANLIB
862CPP
863CXX
864CXXFLAGS
865ac_ct_CXX
866CXXDEPMODE
867am__fastdepCXX_TRUE
868am__fastdepCXX_FALSE
869CXXCPP
870F77
871FFLAGS
872ac_ct_F77
873LIBTOOL
874USE_FCNTL_TRUE
875USE_FCNTL_FALSE
876USE_FLOCK_TRUE
877USE_FLOCK_FALSE
878USE_LOCKF_TRUE
879USE_LOCKF_FALSE
880HAVE_SGML_TRUE
881HAVE_SGML_FALSE
882LIBOBJS
883LTLIBOBJS'
d9898ee8 884ac_subst_files=''
dd184caf 885 ac_precious_vars='build_alias
886host_alias
887target_alias
888CC
889CFLAGS
890LDFLAGS
891LIBS
892CPPFLAGS
893CPP
894CXX
895CXXFLAGS
896CCC
897CXXCPP
898F77
899FFLAGS'
900
d9898ee8 901
902# Initialize some variables set by options.
903ac_init_help=
904ac_init_version=false
905# The variables have the same names as the options, with
906# dashes changed to underlines.
907cache_file=/dev/null
908exec_prefix=NONE
909no_create=
910no_recursion=
911prefix=NONE
912program_prefix=NONE
913program_suffix=NONE
914program_transform_name=s,x,x,
915silent=
916site=
917srcdir=
918verbose=
919x_includes=NONE
920x_libraries=NONE
921
922# Installation directory options.
923# These are left unexpanded so users can "make install exec_prefix=/foo"
924# and all the variables that are supposed to be based on exec_prefix
925# by default will actually change.
926# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 927# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 928bindir='${exec_prefix}/bin'
929sbindir='${exec_prefix}/sbin'
930libexecdir='${exec_prefix}/libexec'
dd184caf 931datarootdir='${prefix}/share'
932datadir='${datarootdir}'
d9898ee8 933sysconfdir='${prefix}/etc'
934sharedstatedir='${prefix}/com'
935localstatedir='${prefix}/var'
d9898ee8 936includedir='${prefix}/include'
937oldincludedir='/usr/include'
dd184caf 938docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939infodir='${datarootdir}/info'
940htmldir='${docdir}'
941dvidir='${docdir}'
942pdfdir='${docdir}'
943psdir='${docdir}'
944libdir='${exec_prefix}/lib'
945localedir='${datarootdir}/locale'
946mandir='${datarootdir}/man'
d9898ee8 947
948ac_prev=
dd184caf 949ac_dashdash=
d9898ee8 950for ac_option
951do
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
dd184caf 954 eval $ac_prev=\$ac_option
d9898ee8 955 ac_prev=
956 continue
957 fi
958
dd184caf 959 case $ac_option in
960 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 *) ac_optarg=yes ;;
962 esac
d9898ee8 963
964 # Accept the important Cygnus configure options, so we can diagnose typos.
965
dd184caf 966 case $ac_dashdash$ac_option in
967 --)
968 ac_dashdash=yes ;;
d9898ee8 969
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 ac_prev=bindir ;;
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973 bindir=$ac_optarg ;;
974
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
979
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
986
987 --config-cache | -C)
988 cache_file=config.cache ;;
989
dd184caf 990 -datadir | --datadir | --datadi | --datad)
d9898ee8 991 ac_prev=datadir ;;
dd184caf 992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 993 datadir=$ac_optarg ;;
994
dd184caf 995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1001
d9898ee8 1002 -disable-* | --disable-*)
1003 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
dd184caf 1005 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1006 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007 { (exit 1); exit 1; }; }
dd184caf 1008 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009 eval enable_$ac_feature=no ;;
1010
1011 -docdir | --docdir | --docdi | --doc | --do)
1012 ac_prev=docdir ;;
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1015
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017 ac_prev=dvidir ;;
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
d9898ee8 1020
1021 -enable-* | --enable-*)
1022 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
dd184caf 1024 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1025 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026 { (exit 1); exit 1; }; }
dd184caf 1027 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028 eval enable_$ac_feature=\$ac_optarg ;;
d9898ee8 1029
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1038
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1041 with_gas=yes ;;
1042
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1049
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1054
dd184caf 1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056 ac_prev=htmldir ;;
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058 | --ht=*)
1059 htmldir=$ac_optarg ;;
1060
d9898ee8 1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1067
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1069 ac_prev=infodir ;;
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1072
1073 -libdir | --libdir | --libdi | --libd)
1074 ac_prev=libdir ;;
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1077
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1084
dd184caf 1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1089
d9898ee8 1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 1091 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1095 localstatedir=$ac_optarg ;;
1096
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098 ac_prev=mandir ;;
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1101
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1104 with_fp=no ;;
1105
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1108 no_create=yes ;;
1109
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112 no_recursion=yes ;;
1113
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1122
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124 ac_prev=prefix ;;
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1127
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1134
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
1141
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1158
dd184caf 1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160 ac_prev=pdfdir ;;
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1163
1164 -psdir | --psdir | --psdi | --psd | --ps)
1165 ac_prev=psdir ;;
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167 psdir=$ac_optarg ;;
1168
d9898ee8 1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1171 silent=yes ;;
1172
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174 ac_prev=sbindir ;;
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176 | --sbi=* | --sb=*)
1177 sbindir=$ac_optarg ;;
1178
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1182 | --sha | --sh)
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187 | --sha=* | --sh=*)
1188 sharedstatedir=$ac_optarg ;;
1189
1190 -site | --site | --sit)
1191 ac_prev=site ;;
1192 -site=* | --site=* | --sit=*)
1193 site=$ac_optarg ;;
1194
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196 ac_prev=srcdir ;;
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198 srcdir=$ac_optarg ;;
1199
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205 sysconfdir=$ac_optarg ;;
1206
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
1208 ac_prev=target_alias ;;
1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210 target_alias=$ac_optarg ;;
1211
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213 verbose=yes ;;
1214
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
1217
1218 -with-* | --with-*)
1219 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
dd184caf 1221 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1222 { echo "$as_me: error: invalid package name: $ac_package" >&2
1223 { (exit 1); exit 1; }; }
dd184caf 1224 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225 eval with_$ac_package=\$ac_optarg ;;
d9898ee8 1226
1227 -without-* | --without-*)
1228 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
dd184caf 1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1231 { echo "$as_me: error: invalid package name: $ac_package" >&2
1232 { (exit 1); exit 1; }; }
dd184caf 1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234 eval with_$ac_package=no ;;
d9898ee8 1235
1236 --x)
1237 # Obsolete; use --with-x.
1238 with_x=yes ;;
1239
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1246
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1253
1254 -*) { echo "$as_me: error: unrecognized option: $ac_option
1255Try \`$0 --help' for more information." >&2
1256 { (exit 1); exit 1; }; }
1257 ;;
1258
1259 *=*)
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264 { (exit 1); exit 1; }; }
dd184caf 1265 eval $ac_envvar=\$ac_optarg
d9898ee8 1266 export $ac_envvar ;;
1267
1268 *)
1269 # FIXME: should be removed in autoconf 3.0.
1270 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274 ;;
1275
1276 esac
1277done
1278
1279if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 { echo "$as_me: error: missing argument to $ac_option" >&2
1282 { (exit 1); exit 1; }; }
1283fi
1284
dd184caf 1285# Be sure to have absolute directory names.
1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
d9898ee8 1290do
dd184caf 1291 eval ac_val=\$$ac_var
d9898ee8 1292 case $ac_val in
dd184caf 1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1295 esac
dd184caf 1296 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297 { (exit 1); exit 1; }; }
d9898ee8 1298done
1299
1300# There might be people who depend on the old broken behavior: `$host'
1301# used to hold the argument of --host etc.
1302# FIXME: To remove some day.
1303build=$build_alias
1304host=$host_alias
1305target=$target_alias
1306
1307# FIXME: To remove some day.
1308if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
1311 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312 If a cross compiler is detected then cross compile mode will be used." >&2
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316fi
1317
1318ac_tool_prefix=
1319test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321test "$silent" = yes && exec 6>/dev/null
1322
1323
dd184caf 1324ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325ac_ls_di=`ls -di .` &&
1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 { echo "$as_me: error: Working directory cannot be determined" >&2
1328 { (exit 1); exit 1; }; }
1329test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330 { echo "$as_me: error: pwd does not report name of working directory" >&2
1331 { (exit 1); exit 1; }; }
1332
1333
d9898ee8 1334# Find the source files, if location was not specified.
1335if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
dd184caf 1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$0" ||
d9898ee8 1339$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$0" : 'X\(//\)[^/]' \| \
1341 X"$0" : 'X\(//\)$' \| \
dd184caf 1342 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 1343echo X"$0" |
dd184caf 1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)[^/].*/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)$/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\).*/{
1357 s//\1/
1358 q
1359 }
1360 s/.*/./; q'`
d9898ee8 1361 srcdir=$ac_confdir
dd184caf 1362 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1363 srcdir=..
1364 fi
1365else
1366 ac_srcdir_defaulted=no
1367fi
dd184caf 1368if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1371 { (exit 1); exit 1; }; }
d9898ee8 1372fi
dd184caf 1373ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374ac_abs_confdir=`(
1375 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
d9898ee8 1376 { (exit 1); exit 1; }; }
dd184caf 1377 pwd)`
1378# When building in place, set srcdir=.
1379if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1381fi
1382# Remove unnecessary trailing slashes from srcdir.
1383# Double slashes in file names in object file debugging info
1384# mess up M-x gdb in Emacs.
1385case $srcdir in
1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387esac
1388for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393done
d9898ee8 1394
1395#
1396# Report the --help message.
1397#
1398if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
1402\`configure' configures liblock 0.60 to adapt to many kinds of systems.
1403
1404Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407VAR=VALUE. See below for descriptions of some of the useful variables.
1408
1409Defaults for the options are specified in brackets.
1410
1411Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421
d9898ee8 1422Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 [PREFIX]
1427
1428By default, \`make install' will install all the files in
1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431for instance \`--prefix=\$HOME'.
1432
1433For better control, use the options below.
1434
1435Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
d9898ee8 1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
dd184caf 1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/liblock]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1455_ACEOF
1456
1457 cat <<\_ACEOF
1458
1459Program names:
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1463
1464System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467_ACEOF
1468fi
1469
1470if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1472 short | recursive ) echo "Configuration of liblock 0.60:";;
1473 esac
1474 cat <<\_ACEOF
1475
1476Optional Features:
1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1479 --disable-dependency-tracking speeds up one-time build
1480 --enable-dependency-tracking do not reject slow dependency extractors
dd184caf 1481 --enable-shared[=PKGS] build shared libraries [default=yes]
1482 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1483 --enable-fast-install[=PKGS]
1484 optimize for fast installation [default=yes]
1485 --disable-libtool-lock avoid locking (might break parallel builds)
1486
1487Optional Packages:
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1491 --with-pic try to use only PIC/non-PIC objects [default=use
1492 both]
dd184caf 1493 --with-tags[=TAGS] include additional configurations [automatic]
d9898ee8 1494
1495
1496Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
dd184caf 1501 LIBS libraries to pass to the linker, e.g. -l<library>
1502 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1503 you have headers in a nonstandard directory <include dir>
d9898ee8 1504 CPP C preprocessor
1505 CXX C++ compiler command
1506 CXXFLAGS C++ compiler flags
1507 CXXCPP C++ preprocessor
1508 F77 Fortran 77 compiler command
1509 FFLAGS Fortran 77 compiler flags
1510
1511Use these variables to override the choices made by `configure' or to help
1512it to find libraries and programs with nonstandard names/locations.
1513
1514Report bugs to <courier-users@lists.sourceforge.net>.
1515_ACEOF
dd184caf 1516ac_status=$?
d9898ee8 1517fi
1518
1519if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
d9898ee8 1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
dd184caf 1522 test -d "$ac_dir" || continue
d9898ee8 1523 ac_builddir=.
1524
dd184caf 1525case "$ac_dir" in
1526.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527*)
d9898ee8 1528 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
dd184caf 1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534 esac ;;
1535esac
1536ac_abs_top_builddir=$ac_pwd
1537ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538# for backward compatibility:
1539ac_top_builddir=$ac_top_build_prefix
d9898ee8 1540
1541case $srcdir in
dd184caf 1542 .) # We are building in place.
d9898ee8 1543 ac_srcdir=.
dd184caf 1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1547 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1550 *) # Relative name.
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1554esac
dd184caf 1555ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1565 else
1566 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1567 fi || ac_status=$?
1568 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1569 done
1570fi
1571
dd184caf 1572test -n "$ac_init_help" && exit $ac_status
d9898ee8 1573if $ac_init_version; then
1574 cat <<\_ACEOF
1575liblock configure 0.60
dd184caf 1576generated by GNU Autoconf 2.61
d9898ee8 1577
dd184caf 1578Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15792002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 1580This configure script is free software; the Free Software Foundation
1581gives unlimited permission to copy, distribute and modify it.
1582_ACEOF
dd184caf 1583 exit
d9898ee8 1584fi
dd184caf 1585cat >config.log <<_ACEOF
d9898ee8 1586This file contains any messages produced by compilers while
1587running configure, to aid debugging if configure makes a mistake.
1588
1589It was created by liblock $as_me 0.60, which was
dd184caf 1590generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 1591
1592 $ $0 $@
1593
1594_ACEOF
dd184caf 1595exec 5>>config.log
d9898ee8 1596{
1597cat <<_ASUNAME
1598## --------- ##
1599## Platform. ##
1600## --------- ##
1601
1602hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1603uname -m = `(uname -m) 2>/dev/null || echo unknown`
1604uname -r = `(uname -r) 2>/dev/null || echo unknown`
1605uname -s = `(uname -s) 2>/dev/null || echo unknown`
1606uname -v = `(uname -v) 2>/dev/null || echo unknown`
1607
1608/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1609/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1610
1611/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1612/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1613/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1614/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1615/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1616/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1617/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1618
1619_ASUNAME
1620
1621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622for as_dir in $PATH
1623do
1624 IFS=$as_save_IFS
1625 test -z "$as_dir" && as_dir=.
1626 echo "PATH: $as_dir"
1627done
dd184caf 1628IFS=$as_save_IFS
d9898ee8 1629
1630} >&5
1631
1632cat >&5 <<_ACEOF
1633
1634
1635## ----------- ##
1636## Core tests. ##
1637## ----------- ##
1638
1639_ACEOF
1640
1641
1642# Keep a trace of the command line.
1643# Strip out --no-create and --no-recursion so they do not pile up.
1644# Strip out --silent because we don't want to record it for future runs.
1645# Also quote any args containing shell meta-characters.
1646# Make two passes to allow for proper duplicate-argument suppression.
1647ac_configure_args=
1648ac_configure_args0=
1649ac_configure_args1=
d9898ee8 1650ac_must_keep_next=false
1651for ac_pass in 1 2
1652do
1653 for ac_arg
1654 do
1655 case $ac_arg in
1656 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1658 | -silent | --silent | --silen | --sile | --sil)
1659 continue ;;
dd184caf 1660 *\'*)
d9898ee8 1661 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1662 esac
1663 case $ac_pass in
1664 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1665 2)
1666 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1667 if test $ac_must_keep_next = true; then
1668 ac_must_keep_next=false # Got value, back to normal.
1669 else
1670 case $ac_arg in
1671 *=* | --config-cache | -C | -disable-* | --disable-* \
1672 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1673 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1674 | -with-* | --with-* | -without-* | --without-* | --x)
1675 case "$ac_configure_args0 " in
1676 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1677 esac
1678 ;;
1679 -* ) ac_must_keep_next=true ;;
1680 esac
1681 fi
dd184caf 1682 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1683 ;;
1684 esac
1685 done
1686done
1687$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1688$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1689
1690# When interrupted or exit'd, cleanup temporary files, and complete
1691# config.log. We remove comments because anyway the quotes in there
1692# would cause problems or look ugly.
dd184caf 1693# WARNING: Use '\'' to represent an apostrophe within the trap.
1694# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1695trap 'exit_status=$?
1696 # Save into config.log some information that might help in debugging.
1697 {
1698 echo
1699
1700 cat <<\_ASBOX
1701## ---------------- ##
1702## Cache variables. ##
1703## ---------------- ##
1704_ASBOX
1705 echo
1706 # The following way of writing the cache mishandles newlines in values,
dd184caf 1707(
1708 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1709 eval ac_val=\$$ac_var
1710 case $ac_val in #(
1711 *${as_nl}*)
1712 case $ac_var in #(
1713 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1714echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1715 esac
1716 case $ac_var in #(
1717 _ | IFS | as_nl) ;; #(
1718 *) $as_unset $ac_var ;;
1719 esac ;;
1720 esac
1721 done
d9898ee8 1722 (set) 2>&1 |
dd184caf 1723 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1724 *${as_nl}ac_space=\ *)
d9898ee8 1725 sed -n \
dd184caf 1726 "s/'\''/'\''\\\\'\'''\''/g;
1727 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1728 ;; #(
d9898ee8 1729 *)
dd184caf 1730 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1731 ;;
dd184caf 1732 esac |
1733 sort
1734)
d9898ee8 1735 echo
1736
1737 cat <<\_ASBOX
1738## ----------------- ##
1739## Output variables. ##
1740## ----------------- ##
1741_ASBOX
1742 echo
1743 for ac_var in $ac_subst_vars
1744 do
dd184caf 1745 eval ac_val=\$$ac_var
1746 case $ac_val in
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748 esac
1749 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1750 done | sort
1751 echo
1752
1753 if test -n "$ac_subst_files"; then
1754 cat <<\_ASBOX
dd184caf 1755## ------------------- ##
1756## File substitutions. ##
1757## ------------------- ##
d9898ee8 1758_ASBOX
1759 echo
1760 for ac_var in $ac_subst_files
1761 do
dd184caf 1762 eval ac_val=\$$ac_var
1763 case $ac_val in
1764 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765 esac
1766 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1767 done | sort
1768 echo
1769 fi
1770
1771 if test -s confdefs.h; then
1772 cat <<\_ASBOX
1773## ----------- ##
1774## confdefs.h. ##
1775## ----------- ##
1776_ASBOX
1777 echo
dd184caf 1778 cat confdefs.h
d9898ee8 1779 echo
1780 fi
1781 test "$ac_signal" != 0 &&
1782 echo "$as_me: caught signal $ac_signal"
1783 echo "$as_me: exit $exit_status"
1784 } >&5
dd184caf 1785 rm -f core *.core core.conftest.* &&
1786 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1787 exit $exit_status
dd184caf 1788' 0
d9898ee8 1789for ac_signal in 1 2 13 15; do
1790 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1791done
1792ac_signal=0
1793
1794# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 1795rm -f -r conftest* confdefs.h
d9898ee8 1796
1797# Predefined preprocessor variables.
1798
1799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_NAME "$PACKAGE_NAME"
1801_ACEOF
1802
1803
1804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1806_ACEOF
1807
1808
1809cat >>confdefs.h <<_ACEOF
1810#define PACKAGE_VERSION "$PACKAGE_VERSION"
1811_ACEOF
1812
1813
1814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE_STRING "$PACKAGE_STRING"
1816_ACEOF
1817
1818
1819cat >>confdefs.h <<_ACEOF
1820#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1821_ACEOF
1822
1823
1824# Let the site file select an alternate cache file if it wants to.
1825# Prefer explicitly selected file to automatically selected ones.
dd184caf 1826if test -n "$CONFIG_SITE"; then
1827 set x "$CONFIG_SITE"
1828elif test "x$prefix" != xNONE; then
1829 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1830else
1831 set x "$ac_default_prefix/share/config.site" \
1832 "$ac_default_prefix/etc/config.site"
d9898ee8 1833fi
dd184caf 1834shift
1835for ac_site_file
1836do
d9898ee8 1837 if test -r "$ac_site_file"; then
1838 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1839echo "$as_me: loading site script $ac_site_file" >&6;}
1840 sed 's/^/| /' "$ac_site_file" >&5
1841 . "$ac_site_file"
1842 fi
1843done
1844
1845if test -r "$cache_file"; then
1846 # Some versions of bash will fail to source /dev/null (special
1847 # files actually), so we avoid doing that.
1848 if test -f "$cache_file"; then
1849 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1850echo "$as_me: loading cache $cache_file" >&6;}
1851 case $cache_file in
dd184caf 1852 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1853 *) . "./$cache_file";;
d9898ee8 1854 esac
1855 fi
1856else
1857 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1858echo "$as_me: creating cache $cache_file" >&6;}
1859 >$cache_file
1860fi
1861
1862# Check that the precious variables saved in the cache have kept the same
1863# value.
1864ac_cache_corrupted=false
dd184caf 1865for ac_var in $ac_precious_vars; do
d9898ee8 1866 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1867 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 1868 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1869 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1870 case $ac_old_set,$ac_new_set in
1871 set,)
1872 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1873echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1874 ac_cache_corrupted=: ;;
1875 ,set)
1876 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1877echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1879 ,);;
1880 *)
1881 if test "x$ac_old_val" != "x$ac_new_val"; then
1882 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1883echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1884 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1885echo "$as_me: former value: $ac_old_val" >&2;}
1886 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1887echo "$as_me: current value: $ac_new_val" >&2;}
1888 ac_cache_corrupted=:
1889 fi;;
1890 esac
1891 # Pass precious variables to config.status.
1892 if test "$ac_new_set" = set; then
1893 case $ac_new_val in
dd184caf 1894 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1895 *) ac_arg=$ac_var=$ac_new_val ;;
1896 esac
1897 case " $ac_configure_args " in
1898 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1899 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1900 esac
1901 fi
1902done
1903if $ac_cache_corrupted; then
1904 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1905echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1906 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1907echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1908 { (exit 1); exit 1; }; }
1909fi
1910
d9898ee8 1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
dd184caf 1935ac_ext=c
1936ac_cpp='$CPP $CPPFLAGS'
1937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 1940
1941
1942
1943>confdefs.h # Kill PACKAGE_ macros
1944
1945
dd184caf 1946ac_config_headers="$ac_config_headers config.h"
1947
1948am__api_version='1.10'
d9898ee8 1949
d9898ee8 1950ac_aux_dir=
dd184caf 1951for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1952 if test -f "$ac_dir/install-sh"; then
d9898ee8 1953 ac_aux_dir=$ac_dir
1954 ac_install_sh="$ac_aux_dir/install-sh -c"
1955 break
dd184caf 1956 elif test -f "$ac_dir/install.sh"; then
d9898ee8 1957 ac_aux_dir=$ac_dir
1958 ac_install_sh="$ac_aux_dir/install.sh -c"
1959 break
dd184caf 1960 elif test -f "$ac_dir/shtool"; then
d9898ee8 1961 ac_aux_dir=$ac_dir
1962 ac_install_sh="$ac_aux_dir/shtool install -c"
1963 break
1964 fi
1965done
1966if test -z "$ac_aux_dir"; then
dd184caf 1967 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1968echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 1969 { (exit 1); exit 1; }; }
1970fi
dd184caf 1971
1972# These three variables are undocumented and unsupported,
1973# and are intended to be withdrawn in a future Autoconf release.
1974# They can cause serious problems if a builder's source tree is in a directory
1975# whose full name contains unusual characters.
1976ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1977ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1978ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1979
d9898ee8 1980
1981# Find a good install program. We prefer a C program (faster),
1982# so one script is as good as another. But avoid the broken or
1983# incompatible versions:
1984# SysV /etc/install, /usr/sbin/install
1985# SunOS /usr/etc/install
1986# IRIX /sbin/install
1987# AIX /bin/install
1988# AmigaOS /C/install, which installs bootblocks on floppy discs
1989# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1990# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1991# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1992# OS/2's system install, which has a completely different semantic
1993# ./install, which can be erroneously created by make from ./install.sh.
dd184caf 1994{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1995echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 1996if test -z "$INSTALL"; then
1997if test "${ac_cv_path_install+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
1999else
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001for as_dir in $PATH
2002do
2003 IFS=$as_save_IFS
2004 test -z "$as_dir" && as_dir=.
2005 # Account for people who put trailing slashes in PATH elements.
2006case $as_dir/ in
2007 ./ | .// | /cC/* | \
2008 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2009 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2010 /usr/ucb/* ) ;;
2011 *)
2012 # OSF1 and SCO ODT 3.0 have their own names for install.
2013 # Don't use installbsd from OSF since it installs stuff as root
2014 # by default.
2015 for ac_prog in ginstall scoinst install; do
2016 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2017 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2018 if test $ac_prog = install &&
2019 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2020 # AIX install. It has an incompatible calling convention.
2021 :
2022 elif test $ac_prog = install &&
2023 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2024 # program-specific install script used by HP pwplus--don't use.
2025 :
2026 else
2027 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2028 break 3
2029 fi
2030 fi
2031 done
2032 done
2033 ;;
2034esac
2035done
dd184caf 2036IFS=$as_save_IFS
d9898ee8 2037
2038
2039fi
2040 if test "${ac_cv_path_install+set}" = set; then
2041 INSTALL=$ac_cv_path_install
2042 else
dd184caf 2043 # As a last resort, use the slow shell script. Don't cache a
2044 # value for INSTALL within a source directory, because that will
d9898ee8 2045 # break other packages using the cache if that directory is
dd184caf 2046 # removed, or if the value is a relative name.
d9898ee8 2047 INSTALL=$ac_install_sh
2048 fi
2049fi
dd184caf 2050{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2051echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 2052
2053# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2054# It thinks the first close brace ends the variable substitution.
2055test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2056
2057test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2058
2059test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2060
dd184caf 2061{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2062echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
d9898ee8 2063# Just in case
2064sleep 1
2065echo timestamp > conftest.file
2066# Do `set' in a subshell so we don't clobber the current shell's
2067# arguments. Must try -L first in case configure is actually a
2068# symlink; some systems play weird games with the mod time of symlinks
2069# (eg FreeBSD returns the mod time of the symlink's containing
2070# directory).
2071if (
2072 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2073 if test "$*" = "X"; then
2074 # -L didn't work.
2075 set X `ls -t $srcdir/configure conftest.file`
2076 fi
2077 rm -f conftest.file
2078 if test "$*" != "X $srcdir/configure conftest.file" \
2079 && test "$*" != "X conftest.file $srcdir/configure"; then
2080
2081 # If neither matched, then we have a broken ls. This can happen
2082 # if, for instance, CONFIG_SHELL is bash and it inherits a
2083 # broken ls alias from the environment. This has actually
2084 # happened. Such a system could not be considered "sane".
2085 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2086alias in your environment" >&5
2087echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2088alias in your environment" >&2;}
2089 { (exit 1); exit 1; }; }
2090 fi
2091
2092 test "$2" = conftest.file
2093 )
2094then
2095 # Ok.
2096 :
2097else
2098 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2099Check your system clock" >&5
2100echo "$as_me: error: newly created file is older than distributed files!
2101Check your system clock" >&2;}
2102 { (exit 1); exit 1; }; }
2103fi
dd184caf 2104{ echo "$as_me:$LINENO: result: yes" >&5
2105echo "${ECHO_T}yes" >&6; }
d9898ee8 2106test "$program_prefix" != NONE &&
dd184caf 2107 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2108# Use a double $ so make ignores it.
2109test "$program_suffix" != NONE &&
dd184caf 2110 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
d9898ee8 2111# Double any \ or $. echo might interpret backslashes.
2112# By default was `s,x,x', remove it if useless.
2113cat <<\_ACEOF >conftest.sed
2114s/[\\$]/&&/g;s/;s,x,x,$//
2115_ACEOF
2116program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
dd184caf 2117rm -f conftest.sed
d9898ee8 2118
2119# expand $ac_aux_dir to an absolute path
2120am_aux_dir=`cd $ac_aux_dir && pwd`
2121
2122test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2123# Use eval to expand $SHELL
2124if eval "$MISSING --run true"; then
2125 am_missing_run="$MISSING --run "
2126else
2127 am_missing_run=
2128 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2129echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2130fi
2131
dd184caf 2132{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2133echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2134if test -z "$MKDIR_P"; then
2135 if test "${ac_cv_path_mkdir+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137else
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2140do
2141 IFS=$as_save_IFS
2142 test -z "$as_dir" && as_dir=.
2143 for ac_prog in mkdir gmkdir; do
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2146 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2147 'mkdir (GNU coreutils) '* | \
2148 'mkdir (coreutils) '* | \
2149 'mkdir (fileutils) '4.1*)
2150 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2151 break 3;;
2152 esac
2153 done
2154 done
2155done
2156IFS=$as_save_IFS
2157
2158fi
2159
2160 if test "${ac_cv_path_mkdir+set}" = set; then
2161 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2162 else
dd184caf 2163 # As a last resort, use the slow shell script. Don't cache a
2164 # value for MKDIR_P within a source directory, because that will
2165 # break other packages using the cache if that directory is
2166 # removed, or if the value is a relative name.
2167 test -d ./--version && rmdir ./--version
2168 MKDIR_P="$ac_install_sh -d"
d9898ee8 2169 fi
2170fi
dd184caf 2171{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2172echo "${ECHO_T}$MKDIR_P" >&6; }
2173
2174mkdir_p="$MKDIR_P"
2175case $mkdir_p in
2176 [\\/$]* | ?:[\\/]*) ;;
2177 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2178esac
d9898ee8 2179
2180for ac_prog in gawk mawk nawk awk
2181do
2182 # Extract the first word of "$ac_prog", so it can be a program name with args.
2183set dummy $ac_prog; ac_word=$2
dd184caf 2184{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2186if test "${ac_cv_prog_AWK+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2188else
2189 if test -n "$AWK"; then
2190 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2191else
2192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193for as_dir in $PATH
2194do
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2199 ac_cv_prog_AWK="$ac_prog"
2200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 break 2
2202 fi
2203done
2204done
dd184caf 2205IFS=$as_save_IFS
d9898ee8 2206
2207fi
2208fi
2209AWK=$ac_cv_prog_AWK
2210if test -n "$AWK"; then
dd184caf 2211 { echo "$as_me:$LINENO: result: $AWK" >&5
2212echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2213else
dd184caf 2214 { echo "$as_me:$LINENO: result: no" >&5
2215echo "${ECHO_T}no" >&6; }
d9898ee8 2216fi
2217
dd184caf 2218
d9898ee8 2219 test -n "$AWK" && break
2220done
2221
dd184caf 2222{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2223echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2224set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2225if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2227else
2228 cat >conftest.make <<\_ACEOF
dd184caf 2229SHELL = /bin/sh
d9898ee8 2230all:
dd184caf 2231 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2232_ACEOF
2233# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
dd184caf 2234case `${MAKE-make} -f conftest.make 2>/dev/null` in
2235 *@@@%%%=?*=@@@%%%*)
2236 eval ac_cv_prog_make_${ac_make}_set=yes;;
2237 *)
2238 eval ac_cv_prog_make_${ac_make}_set=no;;
2239esac
d9898ee8 2240rm -f conftest.make
2241fi
dd184caf 2242if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2243 { echo "$as_me:$LINENO: result: yes" >&5
2244echo "${ECHO_T}yes" >&6; }
d9898ee8 2245 SET_MAKE=
2246else
dd184caf 2247 { echo "$as_me:$LINENO: result: no" >&5
2248echo "${ECHO_T}no" >&6; }
d9898ee8 2249 SET_MAKE="MAKE=${MAKE-make}"
2250fi
2251
2252rm -rf .tst 2>/dev/null
2253mkdir .tst 2>/dev/null
2254if test -d .tst; then
2255 am__leading_dot=.
2256else
2257 am__leading_dot=_
2258fi
2259rmdir .tst 2>/dev/null
2260
dd184caf 2261if test "`cd $srcdir && pwd`" != "`pwd`"; then
2262 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2263 # is not polluted with repeated "-I."
2264 am__isrc=' -I$(srcdir)'
2265 # test to see if srcdir already configured
2266 if test -f $srcdir/config.status; then
2267 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d9898ee8 2268echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2269 { (exit 1); exit 1; }; }
dd184caf 2270 fi
d9898ee8 2271fi
2272
2273# test whether we have cygpath
2274if test -z "$CYGPATH_W"; then
2275 if (cygpath --version) >/dev/null 2>/dev/null; then
2276 CYGPATH_W='cygpath -w'
2277 else
2278 CYGPATH_W=echo
2279 fi
2280fi
2281
2282
2283# Define the identity of the package.
2284 PACKAGE='liblock'
2285 VERSION='0.60'
2286
2287
2288# Some tools Automake needs.
2289
2290ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2291
2292
2293AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2294
2295
2296AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2297
2298
2299AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2300
2301
2302MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2303
dd184caf 2304install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
d9898ee8 2305
2306# Installed binaries are usually stripped using `strip' when the user
2307# run `make install-strip'. However `strip' might not be the right
2308# tool to use in cross-compilation environments, therefore Automake
2309# will honor the `STRIP' environment variable to overrule this program.
2310if test "$cross_compiling" != no; then
2311 if test -n "$ac_tool_prefix"; then
2312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2313set dummy ${ac_tool_prefix}strip; ac_word=$2
dd184caf 2314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2316if test "${ac_cv_prog_STRIP+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2318else
2319 if test -n "$STRIP"; then
2320 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2321else
2322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323for as_dir in $PATH
2324do
2325 IFS=$as_save_IFS
2326 test -z "$as_dir" && as_dir=.
2327 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2329 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2331 break 2
2332 fi
2333done
2334done
dd184caf 2335IFS=$as_save_IFS
d9898ee8 2336
2337fi
2338fi
2339STRIP=$ac_cv_prog_STRIP
2340if test -n "$STRIP"; then
dd184caf 2341 { echo "$as_me:$LINENO: result: $STRIP" >&5
2342echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 2343else
dd184caf 2344 { echo "$as_me:$LINENO: result: no" >&5
2345echo "${ECHO_T}no" >&6; }
d9898ee8 2346fi
2347
dd184caf 2348
d9898ee8 2349fi
2350if test -z "$ac_cv_prog_STRIP"; then
2351 ac_ct_STRIP=$STRIP
2352 # Extract the first word of "strip", so it can be a program name with args.
2353set dummy strip; ac_word=$2
dd184caf 2354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2356if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2358else
2359 if test -n "$ac_ct_STRIP"; then
2360 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2361else
2362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363for as_dir in $PATH
2364do
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2369 ac_cv_prog_ac_ct_STRIP="strip"
2370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 break 2
2372 fi
2373done
2374done
dd184caf 2375IFS=$as_save_IFS
d9898ee8 2376
d9898ee8 2377fi
2378fi
2379ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2380if test -n "$ac_ct_STRIP"; then
dd184caf 2381 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2382echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 2383else
dd184caf 2384 { echo "$as_me:$LINENO: result: no" >&5
2385echo "${ECHO_T}no" >&6; }
d9898ee8 2386fi
2387
dd184caf 2388 if test "x$ac_ct_STRIP" = x; then
2389 STRIP=":"
2390 else
2391 case $cross_compiling:$ac_tool_warned in
2392yes:)
2393{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2394whose name does not start with the host triplet. If you think this
2395configuration is useful to you, please write to autoconf@gnu.org." >&5
2396echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2397whose name does not start with the host triplet. If you think this
2398configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2399ac_tool_warned=yes ;;
2400esac
2401 STRIP=$ac_ct_STRIP
2402 fi
d9898ee8 2403else
2404 STRIP="$ac_cv_prog_STRIP"
2405fi
2406
2407fi
dd184caf 2408INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2409
2410# We need awk for the "check" target. The system "awk" is bad on
2411# some platforms.
2412# Always define AMTAR for backward compatibility.
2413
2414AMTAR=${AMTAR-"${am_missing_run}tar"}
2415
2416am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2417
2418
2419
2420
2421
2422
2423for ac_prog in gawk mawk nawk awk
2424do
2425 # Extract the first word of "$ac_prog", so it can be a program name with args.
2426set dummy $ac_prog; ac_word=$2
dd184caf 2427{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2429if test "${ac_cv_prog_AWK+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431else
2432 if test -n "$AWK"; then
2433 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2434else
2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436for as_dir in $PATH
2437do
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2442 ac_cv_prog_AWK="$ac_prog"
2443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 break 2
2445 fi
2446done
2447done
dd184caf 2448IFS=$as_save_IFS
d9898ee8 2449
2450fi
2451fi
2452AWK=$ac_cv_prog_AWK
2453if test -n "$AWK"; then
dd184caf 2454 { echo "$as_me:$LINENO: result: $AWK" >&5
2455echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2456else
dd184caf 2457 { echo "$as_me:$LINENO: result: no" >&5
2458echo "${ECHO_T}no" >&6; }
d9898ee8 2459fi
2460
dd184caf 2461
d9898ee8 2462 test -n "$AWK" && break
2463done
2464
2465ac_ext=c
2466ac_cpp='$CPP $CPPFLAGS'
2467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470if test -n "$ac_tool_prefix"; then
2471 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2472set dummy ${ac_tool_prefix}gcc; ac_word=$2
dd184caf 2473{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2475if test "${ac_cv_prog_CC+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477else
2478 if test -n "$CC"; then
2479 ac_cv_prog_CC="$CC" # Let the user override the test.
2480else
2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2488 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 break 2
2491 fi
2492done
2493done
dd184caf 2494IFS=$as_save_IFS
d9898ee8 2495
2496fi
2497fi
2498CC=$ac_cv_prog_CC
2499if test -n "$CC"; then
dd184caf 2500 { echo "$as_me:$LINENO: result: $CC" >&5
2501echo "${ECHO_T}$CC" >&6; }
d9898ee8 2502else
dd184caf 2503 { echo "$as_me:$LINENO: result: no" >&5
2504echo "${ECHO_T}no" >&6; }
d9898ee8 2505fi
2506
dd184caf 2507
d9898ee8 2508fi
2509if test -z "$ac_cv_prog_CC"; then
2510 ac_ct_CC=$CC
2511 # Extract the first word of "gcc", so it can be a program name with args.
2512set dummy gcc; ac_word=$2
dd184caf 2513{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2515if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2517else
2518 if test -n "$ac_ct_CC"; then
2519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2520else
2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2528 ac_cv_prog_ac_ct_CC="gcc"
2529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 break 2
2531 fi
2532done
2533done
dd184caf 2534IFS=$as_save_IFS
d9898ee8 2535
2536fi
2537fi
2538ac_ct_CC=$ac_cv_prog_ac_ct_CC
2539if test -n "$ac_ct_CC"; then
dd184caf 2540 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2541echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2542else
dd184caf 2543 { echo "$as_me:$LINENO: result: no" >&5
2544echo "${ECHO_T}no" >&6; }
d9898ee8 2545fi
2546
dd184caf 2547 if test "x$ac_ct_CC" = x; then
2548 CC=""
2549 else
2550 case $cross_compiling:$ac_tool_warned in
2551yes:)
2552{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2553whose name does not start with the host triplet. If you think this
2554configuration is useful to you, please write to autoconf@gnu.org." >&5
2555echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2556whose name does not start with the host triplet. If you think this
2557configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2558ac_tool_warned=yes ;;
2559esac
2560 CC=$ac_ct_CC
2561 fi
d9898ee8 2562else
2563 CC="$ac_cv_prog_CC"
2564fi
2565
2566if test -z "$CC"; then
dd184caf 2567 if test -n "$ac_tool_prefix"; then
2568 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2569set dummy ${ac_tool_prefix}cc; ac_word=$2
dd184caf 2570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2572if test "${ac_cv_prog_CC+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2574else
2575 if test -n "$CC"; then
2576 ac_cv_prog_CC="$CC" # Let the user override the test.
2577else
2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579for as_dir in $PATH
2580do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2585 ac_cv_prog_CC="${ac_tool_prefix}cc"
2586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 break 2
2588 fi
2589done
2590done
dd184caf 2591IFS=$as_save_IFS
d9898ee8 2592
2593fi
2594fi
2595CC=$ac_cv_prog_CC
2596if test -n "$CC"; then
dd184caf 2597 { echo "$as_me:$LINENO: result: $CC" >&5
2598echo "${ECHO_T}$CC" >&6; }
d9898ee8 2599else
dd184caf 2600 { echo "$as_me:$LINENO: result: no" >&5
2601echo "${ECHO_T}no" >&6; }
d9898ee8 2602fi
2603
d9898ee8 2604
dd184caf 2605 fi
d9898ee8 2606fi
2607if test -z "$CC"; then
2608 # Extract the first word of "cc", so it can be a program name with args.
2609set dummy cc; ac_word=$2
dd184caf 2610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2612if test "${ac_cv_prog_CC+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2614else
2615 if test -n "$CC"; then
2616 ac_cv_prog_CC="$CC" # Let the user override the test.
2617else
2618 ac_prog_rejected=no
2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620for as_dir in $PATH
2621do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2626 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2627 ac_prog_rejected=yes
2628 continue
2629 fi
2630 ac_cv_prog_CC="cc"
2631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2633 fi
2634done
2635done
dd184caf 2636IFS=$as_save_IFS
d9898ee8 2637
2638if test $ac_prog_rejected = yes; then
2639 # We found a bogon in the path, so make sure we never use it.
2640 set dummy $ac_cv_prog_CC
2641 shift
2642 if test $# != 0; then
2643 # We chose a different compiler from the bogus one.
2644 # However, it has the same basename, so the bogon will be chosen
2645 # first if we set CC to just the basename; use the full file name.
2646 shift
2647 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2648 fi
2649fi
2650fi
2651fi
2652CC=$ac_cv_prog_CC
2653if test -n "$CC"; then
dd184caf 2654 { echo "$as_me:$LINENO: result: $CC" >&5
2655echo "${ECHO_T}$CC" >&6; }
d9898ee8 2656else
dd184caf 2657 { echo "$as_me:$LINENO: result: no" >&5
2658echo "${ECHO_T}no" >&6; }
d9898ee8 2659fi
2660
dd184caf 2661
d9898ee8 2662fi
2663if test -z "$CC"; then
2664 if test -n "$ac_tool_prefix"; then
dd184caf 2665 for ac_prog in cl.exe
d9898ee8 2666 do
2667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2668set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 2669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2671if test "${ac_cv_prog_CC+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673else
2674 if test -n "$CC"; then
2675 ac_cv_prog_CC="$CC" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2684 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688done
2689done
dd184caf 2690IFS=$as_save_IFS
d9898ee8 2691
2692fi
2693fi
2694CC=$ac_cv_prog_CC
2695if test -n "$CC"; then
dd184caf 2696 { echo "$as_me:$LINENO: result: $CC" >&5
2697echo "${ECHO_T}$CC" >&6; }
d9898ee8 2698else
dd184caf 2699 { echo "$as_me:$LINENO: result: no" >&5
2700echo "${ECHO_T}no" >&6; }
d9898ee8 2701fi
2702
dd184caf 2703
d9898ee8 2704 test -n "$CC" && break
2705 done
2706fi
2707if test -z "$CC"; then
2708 ac_ct_CC=$CC
dd184caf 2709 for ac_prog in cl.exe
d9898ee8 2710do
2711 # Extract the first word of "$ac_prog", so it can be a program name with args.
2712set dummy $ac_prog; ac_word=$2
dd184caf 2713{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2715if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717else
2718 if test -n "$ac_ct_CC"; then
2719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2720else
2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH
2723do
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2728 ac_cv_prog_ac_ct_CC="$ac_prog"
2729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2731 fi
2732done
2733done
dd184caf 2734IFS=$as_save_IFS
d9898ee8 2735
2736fi
2737fi
2738ac_ct_CC=$ac_cv_prog_ac_ct_CC
2739if test -n "$ac_ct_CC"; then
dd184caf 2740 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2741echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2742else
dd184caf 2743 { echo "$as_me:$LINENO: result: no" >&5
2744echo "${ECHO_T}no" >&6; }
d9898ee8 2745fi
2746
dd184caf 2747
d9898ee8 2748 test -n "$ac_ct_CC" && break
2749done
2750
dd184caf 2751 if test "x$ac_ct_CC" = x; then
2752 CC=""
2753 else
2754 case $cross_compiling:$ac_tool_warned in
2755yes:)
2756{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2757whose name does not start with the host triplet. If you think this
2758configuration is useful to you, please write to autoconf@gnu.org." >&5
2759echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2760whose name does not start with the host triplet. If you think this
2761configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2762ac_tool_warned=yes ;;
2763esac
2764 CC=$ac_ct_CC
2765 fi
d9898ee8 2766fi
2767
2768fi
2769
2770
2771test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2772See \`config.log' for more details." >&5
2773echo "$as_me: error: no acceptable C compiler found in \$PATH
2774See \`config.log' for more details." >&2;}
2775 { (exit 1); exit 1; }; }
2776
2777# Provide some information about the compiler.
dd184caf 2778echo "$as_me:$LINENO: checking for C compiler version" >&5
d9898ee8 2779ac_compiler=`set X $ac_compile; echo $2`
dd184caf 2780{ (ac_try="$ac_compiler --version >&5"
2781case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784esac
2785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }
dd184caf 2790{ (ac_try="$ac_compiler -v >&5"
2791case "(($ac_try" in
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2794esac
2795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2796 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }
dd184caf 2800{ (ac_try="$ac_compiler -V >&5"
2801case "(($ac_try" in
2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2804esac
2805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2806 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2807 ac_status=$?
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }
2810
2811cat >conftest.$ac_ext <<_ACEOF
2812/* confdefs.h. */
2813_ACEOF
2814cat confdefs.h >>conftest.$ac_ext
2815cat >>conftest.$ac_ext <<_ACEOF
2816/* end confdefs.h. */
2817
2818int
2819main ()
2820{
2821
2822 ;
2823 return 0;
2824}
2825_ACEOF
2826ac_clean_files_save=$ac_clean_files
2827ac_clean_files="$ac_clean_files a.out a.exe b.out"
2828# Try to create an executable without -o first, disregard a.out.
2829# It will help us diagnose broken compilers, and finding out an intuition
2830# of exeext.
dd184caf 2831{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2832echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
d9898ee8 2833ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
dd184caf 2834#
2835# List of possible output files, starting from the most likely.
2836# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2837# only as a last resort. b.out is created by i960 compilers.
2838ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2839#
2840# The IRIX 6 linker writes into existing files which may not be
2841# executable, retaining their permissions. Remove them first so a
2842# subsequent execution test works.
2843ac_rmfiles=
2844for ac_file in $ac_files
2845do
2846 case $ac_file in
2847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2848 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2849 esac
2850done
2851rm -f $ac_rmfiles
2852
2853if { (ac_try="$ac_link_default"
2854case "(($ac_try" in
2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856 *) ac_try_echo=$ac_try;;
2857esac
2858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2859 (eval "$ac_link_default") 2>&5
d9898ee8 2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; then
dd184caf 2863 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2864# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2865# in a Makefile. We should not override ac_cv_exeext if it was cached,
2866# so that the user can short-circuit this test for compilers unknown to
2867# Autoconf.
2868for ac_file in $ac_files ''
d9898ee8 2869do
2870 test -f "$ac_file" || continue
2871 case $ac_file in
dd184caf 2872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
d9898ee8 2873 ;;
2874 [ab].out )
2875 # We found the default executable, but exeext='' is most
2876 # certainly right.
2877 break;;
2878 *.* )
dd184caf 2879 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2880 then :; else
2881 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2882 fi
2883 # We set ac_cv_exeext here because the later test for it is not
2884 # safe: cross compilers may not add the suffix if given an `-o'
2885 # argument, so we may need to know it at that point already.
2886 # Even if this section looks crufty: it has the advantage of
2887 # actually working.
d9898ee8 2888 break;;
2889 * )
2890 break;;
2891 esac
2892done
dd184caf 2893test "$ac_cv_exeext" = no && ac_cv_exeext=
2894
d9898ee8 2895else
dd184caf 2896 ac_file=''
2897fi
2898
2899{ echo "$as_me:$LINENO: result: $ac_file" >&5
2900echo "${ECHO_T}$ac_file" >&6; }
2901if test -z "$ac_file"; then
d9898ee8 2902 echo "$as_me: failed program was:" >&5
2903sed 's/^/| /' conftest.$ac_ext >&5
2904
2905{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2906See \`config.log' for more details." >&5
2907echo "$as_me: error: C compiler cannot create executables
2908See \`config.log' for more details." >&2;}
2909 { (exit 77); exit 77; }; }
2910fi
2911
2912ac_exeext=$ac_cv_exeext
d9898ee8 2913
dd184caf 2914# Check that the compiler produces executables we can run. If not, either
d9898ee8 2915# the compiler is broken, or we cross compile.
dd184caf 2916{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2917echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
d9898ee8 2918# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2919# If not cross compiling, check that we can run a simple program.
2920if test "$cross_compiling" != yes; then
2921 if { ac_try='./$ac_file'
dd184caf 2922 { (case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925esac
2926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_try") 2>&5
d9898ee8 2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2931 cross_compiling=no
2932 else
2933 if test "$cross_compiling" = maybe; then
2934 cross_compiling=yes
2935 else
2936 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2937If you meant to cross compile, use \`--host'.
2938See \`config.log' for more details." >&5
2939echo "$as_me: error: cannot run C compiled programs.
2940If you meant to cross compile, use \`--host'.
2941See \`config.log' for more details." >&2;}
2942 { (exit 1); exit 1; }; }
2943 fi
2944 fi
2945fi
dd184caf 2946{ echo "$as_me:$LINENO: result: yes" >&5
2947echo "${ECHO_T}yes" >&6; }
d9898ee8 2948
2949rm -f a.out a.exe conftest$ac_cv_exeext b.out
2950ac_clean_files=$ac_clean_files_save
dd184caf 2951# Check that the compiler produces executables we can run. If not, either
d9898ee8 2952# the compiler is broken, or we cross compile.
dd184caf 2953{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2954echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2955{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2956echo "${ECHO_T}$cross_compiling" >&6; }
2957
2958{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2959echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2960if { (ac_try="$ac_link"
2961case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964esac
2965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_link") 2>&5
d9898ee8 2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; then
2970 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2971# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2972# work properly (i.e., refer to `conftest.exe'), while it won't with
2973# `rm'.
2974for ac_file in conftest.exe conftest conftest.*; do
2975 test -f "$ac_file" || continue
2976 case $ac_file in
dd184caf 2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
d9898ee8 2978 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 2979 break;;
2980 * ) break;;
2981 esac
2982done
2983else
2984 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2985See \`config.log' for more details." >&5
2986echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2987See \`config.log' for more details." >&2;}
2988 { (exit 1); exit 1; }; }
2989fi
2990
2991rm -f conftest$ac_cv_exeext
dd184caf 2992{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2993echo "${ECHO_T}$ac_cv_exeext" >&6; }
d9898ee8 2994
2995rm -f conftest.$ac_ext
2996EXEEXT=$ac_cv_exeext
2997ac_exeext=$EXEEXT
dd184caf 2998{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2999echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
d9898ee8 3000if test "${ac_cv_objext+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3002else
3003 cat >conftest.$ac_ext <<_ACEOF
3004/* confdefs.h. */
3005_ACEOF
3006cat confdefs.h >>conftest.$ac_ext
3007cat >>conftest.$ac_ext <<_ACEOF
3008/* end confdefs.h. */
3009
3010int
3011main ()
3012{
3013
3014 ;
3015 return 0;
3016}
3017_ACEOF
3018rm -f conftest.o conftest.obj
dd184caf 3019if { (ac_try="$ac_compile"
3020case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_compile") 2>&5
d9898ee8 3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; then
dd184caf 3029 for ac_file in conftest.o conftest.obj conftest.*; do
3030 test -f "$ac_file" || continue;
d9898ee8 3031 case $ac_file in
dd184caf 3032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
d9898ee8 3033 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3034 break;;
3035 esac
3036done
3037else
3038 echo "$as_me: failed program was:" >&5
3039sed 's/^/| /' conftest.$ac_ext >&5
3040
3041{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3042See \`config.log' for more details." >&5
3043echo "$as_me: error: cannot compute suffix of object files: cannot compile
3044See \`config.log' for more details." >&2;}
3045 { (exit 1); exit 1; }; }
3046fi
3047
3048rm -f conftest.$ac_cv_objext conftest.$ac_ext
3049fi
dd184caf 3050{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3051echo "${ECHO_T}$ac_cv_objext" >&6; }
d9898ee8 3052OBJEXT=$ac_cv_objext
3053ac_objext=$OBJEXT
dd184caf 3054{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3055echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d9898ee8 3056if test "${ac_cv_c_compiler_gnu+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3058else
3059 cat >conftest.$ac_ext <<_ACEOF
3060/* confdefs.h. */
3061_ACEOF
3062cat confdefs.h >>conftest.$ac_ext
3063cat >>conftest.$ac_ext <<_ACEOF
3064/* end confdefs.h. */
3065
3066int
3067main ()
3068{
3069#ifndef __GNUC__
3070 choke me
3071#endif
3072
3073 ;
3074 return 0;
3075}
3076_ACEOF
3077rm -f conftest.$ac_objext
dd184caf 3078if { (ac_try="$ac_compile"
3079case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082esac
3083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3085 ac_status=$?
3086 grep -v '^ *+' conftest.er1 >conftest.err
3087 rm -f conftest.er1
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3090 (exit $ac_status); } && {
3091 test -z "$ac_c_werror_flag" ||
3092 test ! -s conftest.err
3093 } && test -s conftest.$ac_objext; then
d9898ee8 3094 ac_compiler_gnu=yes
3095else
3096 echo "$as_me: failed program was:" >&5
3097sed 's/^/| /' conftest.$ac_ext >&5
3098
dd184caf 3099 ac_compiler_gnu=no
d9898ee8 3100fi
dd184caf 3101
3102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3103ac_cv_c_compiler_gnu=$ac_compiler_gnu
3104
3105fi
dd184caf 3106{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3107echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d9898ee8 3108GCC=`test $ac_compiler_gnu = yes && echo yes`
3109ac_test_CFLAGS=${CFLAGS+set}
3110ac_save_CFLAGS=$CFLAGS
dd184caf 3111{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3112echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d9898ee8 3113if test "${ac_cv_prog_cc_g+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3115else
dd184caf 3116 ac_save_c_werror_flag=$ac_c_werror_flag
3117 ac_c_werror_flag=yes
3118 ac_cv_prog_cc_g=no
3119 CFLAGS="-g"
3120 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126
3127int
3128main ()
3129{
3130
3131 ;
3132 return 0;
3133}
3134_ACEOF
3135rm -f conftest.$ac_objext
dd184caf 3136if { (ac_try="$ac_compile"
3137case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3148 (exit $ac_status); } && {
3149 test -z "$ac_c_werror_flag" ||
3150 test ! -s conftest.err
3151 } && test -s conftest.$ac_objext; then
3152 ac_cv_prog_cc_g=yes
3153else
3154 echo "$as_me: failed program was:" >&5
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
3157 CFLAGS=""
3158 cat >conftest.$ac_ext <<_ACEOF
3159/* confdefs.h. */
3160_ACEOF
3161cat confdefs.h >>conftest.$ac_ext
3162cat >>conftest.$ac_ext <<_ACEOF
3163/* end confdefs.h. */
3164
3165int
3166main ()
3167{
3168
3169 ;
3170 return 0;
3171}
3172_ACEOF
3173rm -f conftest.$ac_objext
3174if { (ac_try="$ac_compile"
3175case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178esac
3179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3181 ac_status=$?
dd184caf 3182 grep -v '^ *+' conftest.er1 >conftest.err
3183 rm -f conftest.er1
3184 cat conftest.err >&5
d9898ee8 3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3186 (exit $ac_status); } && {
3187 test -z "$ac_c_werror_flag" ||
3188 test ! -s conftest.err
3189 } && test -s conftest.$ac_objext; then
3190 :
3191else
3192 echo "$as_me: failed program was:" >&5
3193sed 's/^/| /' conftest.$ac_ext >&5
3194
3195 ac_c_werror_flag=$ac_save_c_werror_flag
3196 CFLAGS="-g"
3197 cat >conftest.$ac_ext <<_ACEOF
3198/* confdefs.h. */
3199_ACEOF
3200cat confdefs.h >>conftest.$ac_ext
3201cat >>conftest.$ac_ext <<_ACEOF
3202/* end confdefs.h. */
3203
3204int
3205main ()
3206{
3207
3208 ;
3209 return 0;
3210}
3211_ACEOF
3212rm -f conftest.$ac_objext
3213if { (ac_try="$ac_compile"
3214case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217esac
3218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3220 ac_status=$?
dd184caf 3221 grep -v '^ *+' conftest.er1 >conftest.err
3222 rm -f conftest.er1
3223 cat conftest.err >&5
d9898ee8 3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3225 (exit $ac_status); } && {
3226 test -z "$ac_c_werror_flag" ||
3227 test ! -s conftest.err
3228 } && test -s conftest.$ac_objext; then
d9898ee8 3229 ac_cv_prog_cc_g=yes
3230else
3231 echo "$as_me: failed program was:" >&5
3232sed 's/^/| /' conftest.$ac_ext >&5
3233
dd184caf 3234
3235fi
3236
3237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238fi
3239
3240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3241fi
dd184caf 3242
3243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3245fi
dd184caf 3246{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3247echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d9898ee8 3248if test "$ac_test_CFLAGS" = set; then
3249 CFLAGS=$ac_save_CFLAGS
3250elif test $ac_cv_prog_cc_g = yes; then
3251 if test "$GCC" = yes; then
3252 CFLAGS="-g -O2"
3253 else
3254 CFLAGS="-g"
3255 fi
3256else
3257 if test "$GCC" = yes; then
3258 CFLAGS="-O2"
3259 else
3260 CFLAGS=
3261 fi
3262fi
dd184caf 3263{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3264echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3265if test "${ac_cv_prog_cc_c89+set}" = set; then
d9898ee8 3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267else
dd184caf 3268 ac_cv_prog_cc_c89=no
d9898ee8 3269ac_save_CC=$CC
3270cat >conftest.$ac_ext <<_ACEOF
3271/* confdefs.h. */
3272_ACEOF
3273cat confdefs.h >>conftest.$ac_ext
3274cat >>conftest.$ac_ext <<_ACEOF
3275/* end confdefs.h. */
3276#include <stdarg.h>
3277#include <stdio.h>
3278#include <sys/types.h>
3279#include <sys/stat.h>
3280/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3281struct buf { int x; };
3282FILE * (*rcsopen) (struct buf *, struct stat *, int);
3283static char *e (p, i)
3284 char **p;
3285 int i;
3286{
3287 return p[i];
3288}
3289static char *f (char * (*g) (char **, int), char **p, ...)
3290{
3291 char *s;
3292 va_list v;
3293 va_start (v,p);
3294 s = g (p, va_arg (v,int));
3295 va_end (v);
3296 return s;
3297}
3298
3299/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3300 function prototypes and stuff, but not '\xHH' hex character constants.
3301 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3302 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3303 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3304 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3305 that's true only with -std. */
d9898ee8 3306int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3307
dd184caf 3308/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3309 inside strings and character constants. */
3310#define FOO(x) 'x'
3311int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3312
d9898ee8 3313int test (int i, double x);
3314struct s1 {int (*f) (int a);};
3315struct s2 {int (*f) (double a);};
3316int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3317int argc;
3318char **argv;
3319int
3320main ()
3321{
3322return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3323 ;
3324 return 0;
3325}
3326_ACEOF
dd184caf 3327for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3328 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3329do
3330 CC="$ac_save_CC $ac_arg"
3331 rm -f conftest.$ac_objext
dd184caf 3332if { (ac_try="$ac_compile"
3333case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336esac
3337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3339 ac_status=$?
3340 grep -v '^ *+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3344 (exit $ac_status); } && {
3345 test -z "$ac_c_werror_flag" ||
3346 test ! -s conftest.err
3347 } && test -s conftest.$ac_objext; then
3348 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3349else
3350 echo "$as_me: failed program was:" >&5
3351sed 's/^/| /' conftest.$ac_ext >&5
3352
dd184caf 3353
d9898ee8 3354fi
dd184caf 3355
3356rm -f core conftest.err conftest.$ac_objext
3357 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3358done
dd184caf 3359rm -f conftest.$ac_ext
d9898ee8 3360CC=$ac_save_CC
3361
3362fi
dd184caf 3363# AC_CACHE_VAL
3364case "x$ac_cv_prog_cc_c89" in
3365 x)
3366 { echo "$as_me:$LINENO: result: none needed" >&5
3367echo "${ECHO_T}none needed" >&6; } ;;
3368 xno)
3369 { echo "$as_me:$LINENO: result: unsupported" >&5
3370echo "${ECHO_T}unsupported" >&6; } ;;
d9898ee8 3371 *)
dd184caf 3372 CC="$CC $ac_cv_prog_cc_c89"
3373 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3374echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3375esac
3376
d9898ee8 3377
d9898ee8 3378ac_ext=c
3379ac_cpp='$CPP $CPPFLAGS'
3380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382ac_compiler_gnu=$ac_cv_c_compiler_gnu
3383DEPDIR="${am__leading_dot}deps"
3384
dd184caf 3385ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3386
3387
3388am_make=${MAKE-make}
3389cat > confinc << 'END'
3390am__doit:
3391 @echo done
3392.PHONY: am__doit
3393END
3394# If we don't find an include directive, just comment out the code.
dd184caf 3395{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3396echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
d9898ee8 3397am__include="#"
3398am__quote=
3399_am_result=none
3400# First try GNU make style include.
3401echo "include confinc" > confmf
3402# We grep out `Entering directory' and `Leaving directory'
3403# messages which can occur if `w' ends up in MAKEFLAGS.
3404# In particular we don't look at `^make:' because GNU make might
3405# be invoked under some other name (usually "gmake"), in which
3406# case it prints its new name instead of `make'.
3407if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3408 am__include=include
3409 am__quote=
3410 _am_result=GNU
3411fi
3412# Now try BSD make style include.
3413if test "$am__include" = "#"; then
3414 echo '.include "confinc"' > confmf
3415 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3416 am__include=.include
3417 am__quote="\""
3418 _am_result=BSD
3419 fi
3420fi
3421
3422
dd184caf 3423{ echo "$as_me:$LINENO: result: $_am_result" >&5
3424echo "${ECHO_T}$_am_result" >&6; }
d9898ee8 3425rm -f confinc confmf
3426
dd184caf 3427# Check whether --enable-dependency-tracking was given.
d9898ee8 3428if test "${enable_dependency_tracking+set}" = set; then
dd184caf 3429 enableval=$enable_dependency_tracking;
3430fi
d9898ee8 3431
d9898ee8 3432if test "x$enable_dependency_tracking" != xno; then
3433 am_depcomp="$ac_aux_dir/depcomp"
3434 AMDEPBACKSLASH='\'
3435fi
dd184caf 3436 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3437 AMDEP_TRUE=
3438 AMDEP_FALSE='#'
3439else
3440 AMDEP_TRUE='#'
3441 AMDEP_FALSE=
3442fi
3443
3444
3445
d9898ee8 3446depcc="$CC" am_compiler_list=
3447
dd184caf 3448{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3449echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 3450if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3452else
3453 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3454 # We make a subdir and do the tests there. Otherwise we can end up
3455 # making bogus files that we don't know about and never remove. For
3456 # instance it was reported that on HP-UX the gcc test will end up
3457 # making a dummy file named `D' -- because `-MD' means `put the output
3458 # in D'.
3459 mkdir conftest.dir
3460 # Copy depcomp to subdir because otherwise we won't find it if we're
3461 # using a relative directory.
3462 cp "$am_depcomp" conftest.dir
3463 cd conftest.dir
3464 # We will build objects and dependencies in a subdirectory because
3465 # it helps to detect inapplicable dependency modes. For instance
3466 # both Tru64's cc and ICC support -MD to output dependencies as a
3467 # side effect of compilation, but ICC will put the dependencies in
3468 # the current directory while Tru64 will put them in the object
3469 # directory.
3470 mkdir sub
3471
3472 am_cv_CC_dependencies_compiler_type=none
3473 if test "$am_compiler_list" = ""; then
3474 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3475 fi
3476 for depmode in $am_compiler_list; do
3477 # Setup a source with many dependencies, because some compilers
3478 # like to wrap large dependency lists on column 80 (with \), and
3479 # we should not choose a depcomp mode which is confused by this.
3480 #
3481 # We need to recreate these files for each test, as the compiler may
3482 # overwrite some of them when testing with obscure command lines.
3483 # This happens at least with the AIX C compiler.
3484 : > sub/conftest.c
3485 for i in 1 2 3 4 5 6; do
3486 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3487 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3488 # Solaris 8's {/usr,}/bin/sh.
3489 touch sub/conftst$i.h
3490 done
3491 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3492
3493 case $depmode in
3494 nosideeffect)
3495 # after this tag, mechanisms are not by side-effect, so they'll
3496 # only be used when explicitly requested
3497 if test "x$enable_dependency_tracking" = xyes; then
3498 continue
3499 else
3500 break
3501 fi
3502 ;;
3503 none) break ;;
3504 esac
3505 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3506 # mode. It turns out that the SunPro C++ compiler does not properly
3507 # handle `-M -o', and we need to detect this.
3508 if depmode=$depmode \
3509 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3510 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3511 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3512 >/dev/null 2>conftest.err &&
dd184caf 3513 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3514 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3515 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3516 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3517 # icc doesn't choke on unknown options, it will just issue warnings
3518 # or remarks (even with -Werror). So we grep stderr for any message
3519 # that says an option was ignored or not supported.
3520 # When given -MP, icc 7.0 and 7.1 complain thusly:
3521 # icc: Command line warning: ignoring option '-M'; no argument required
3522 # The diagnosis changed in icc 8.0:
3523 # icc: Command line remark: option '-MP' not supported
3524 if (grep 'ignoring option' conftest.err ||
3525 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3526 am_cv_CC_dependencies_compiler_type=$depmode
3527 break
3528 fi
3529 fi
3530 done
3531
3532 cd ..
3533 rm -rf conftest.dir
3534else
3535 am_cv_CC_dependencies_compiler_type=none
3536fi
3537
3538fi
dd184caf 3539{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3540echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3541CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3542
dd184caf 3543 if
d9898ee8 3544 test "x$enable_dependency_tracking" != xno \
3545 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3546 am__fastdepCC_TRUE=
3547 am__fastdepCC_FALSE='#'
3548else
3549 am__fastdepCC_TRUE='#'
3550 am__fastdepCC_FALSE=
3551fi
3552
3553
3554# Find a good install program. We prefer a C program (faster),
3555# so one script is as good as another. But avoid the broken or
3556# incompatible versions:
3557# SysV /etc/install, /usr/sbin/install
3558# SunOS /usr/etc/install
3559# IRIX /sbin/install
3560# AIX /bin/install
3561# AmigaOS /C/install, which installs bootblocks on floppy discs
3562# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3563# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3564# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3565# OS/2's system install, which has a completely different semantic
3566# ./install, which can be erroneously created by make from ./install.sh.
dd184caf 3567{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3568echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 3569if test -z "$INSTALL"; then
3570if test "${ac_cv_path_install+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3572else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574for as_dir in $PATH
3575do
3576 IFS=$as_save_IFS
3577 test -z "$as_dir" && as_dir=.
3578 # Account for people who put trailing slashes in PATH elements.
3579case $as_dir/ in
3580 ./ | .// | /cC/* | \
3581 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3582 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3583 /usr/ucb/* ) ;;
3584 *)
3585 # OSF1 and SCO ODT 3.0 have their own names for install.
3586 # Don't use installbsd from OSF since it installs stuff as root
3587 # by default.
3588 for ac_prog in ginstall scoinst install; do
3589 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 3590 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 3591 if test $ac_prog = install &&
3592 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3593 # AIX install. It has an incompatible calling convention.
3594 :
3595 elif test $ac_prog = install &&
3596 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3597 # program-specific install script used by HP pwplus--don't use.
3598 :
3599 else
3600 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3601 break 3
3602 fi
3603 fi
3604 done
3605 done
3606 ;;
3607esac
3608done
dd184caf 3609IFS=$as_save_IFS
d9898ee8 3610
3611
3612fi
3613 if test "${ac_cv_path_install+set}" = set; then
3614 INSTALL=$ac_cv_path_install
3615 else
dd184caf 3616 # As a last resort, use the slow shell script. Don't cache a
3617 # value for INSTALL within a source directory, because that will
d9898ee8 3618 # break other packages using the cache if that directory is
dd184caf 3619 # removed, or if the value is a relative name.
d9898ee8 3620 INSTALL=$ac_install_sh
3621 fi
3622fi
dd184caf 3623{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3624echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 3625
3626# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3627# It thinks the first close brace ends the variable substitution.
3628test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3629
3630test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3631
3632test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3633
dd184caf 3634{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3635echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d9898ee8 3636LN_S=$as_ln_s
3637if test "$LN_S" = "ln -s"; then
dd184caf 3638 { echo "$as_me:$LINENO: result: yes" >&5
3639echo "${ECHO_T}yes" >&6; }
d9898ee8 3640else
dd184caf 3641 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3642echo "${ECHO_T}no, using $LN_S" >&6; }
d9898ee8 3643fi
3644
dd184caf 3645# Check whether --enable-shared was given.
d9898ee8 3646if test "${enable_shared+set}" = set; then
dd184caf 3647 enableval=$enable_shared; p=${PACKAGE-default}
d9898ee8 3648 case $enableval in
3649 yes) enable_shared=yes ;;
3650 no) enable_shared=no ;;
3651 *)
3652 enable_shared=no
3653 # Look at the argument we got. We use all the common list separators.
3654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3655 for pkg in $enableval; do
3656 IFS="$lt_save_ifs"
3657 if test "X$pkg" = "X$p"; then
3658 enable_shared=yes
3659 fi
3660 done
3661 IFS="$lt_save_ifs"
3662 ;;
3663 esac
3664else
3665 enable_shared=yes
dd184caf 3666fi
3667
d9898ee8 3668
dd184caf 3669# Check whether --enable-static was given.
d9898ee8 3670if test "${enable_static+set}" = set; then
dd184caf 3671 enableval=$enable_static; p=${PACKAGE-default}
d9898ee8 3672 case $enableval in
3673 yes) enable_static=yes ;;
3674 no) enable_static=no ;;
3675 *)
3676 enable_static=no
3677 # Look at the argument we got. We use all the common list separators.
3678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3679 for pkg in $enableval; do
3680 IFS="$lt_save_ifs"
3681 if test "X$pkg" = "X$p"; then
3682 enable_static=yes
3683 fi
3684 done
3685 IFS="$lt_save_ifs"
3686 ;;
3687 esac
3688else
3689 enable_static=yes
dd184caf 3690fi
3691
d9898ee8 3692
dd184caf 3693# Check whether --enable-fast-install was given.
d9898ee8 3694if test "${enable_fast_install+set}" = set; then
dd184caf 3695 enableval=$enable_fast_install; p=${PACKAGE-default}
d9898ee8 3696 case $enableval in
3697 yes) enable_fast_install=yes ;;
3698 no) enable_fast_install=no ;;
3699 *)
3700 enable_fast_install=no
3701 # Look at the argument we got. We use all the common list separators.
3702 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3703 for pkg in $enableval; do
3704 IFS="$lt_save_ifs"
3705 if test "X$pkg" = "X$p"; then
3706 enable_fast_install=yes
3707 fi
3708 done
3709 IFS="$lt_save_ifs"
3710 ;;
3711 esac
3712else
3713 enable_fast_install=yes
dd184caf 3714fi
3715
d9898ee8 3716
3717# Make sure we can run config.sub.
dd184caf 3718$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3719 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3720echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 3721 { (exit 1); exit 1; }; }
3722
dd184caf 3723{ echo "$as_me:$LINENO: checking build system type" >&5
3724echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
d9898ee8 3725if test "${ac_cv_build+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3727else
dd184caf 3728 ac_build_alias=$build_alias
3729test "x$ac_build_alias" = x &&
3730 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3731test "x$ac_build_alias" = x &&
d9898ee8 3732 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3733echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3734 { (exit 1); exit 1; }; }
dd184caf 3735ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3736 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3737echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 3738 { (exit 1); exit 1; }; }
3739
3740fi
dd184caf 3741{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3742echo "${ECHO_T}$ac_cv_build" >&6; }
3743case $ac_cv_build in
3744*-*-*) ;;
3745*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3746echo "$as_me: error: invalid value of canonical build" >&2;}
3747 { (exit 1); exit 1; }; };;
3748esac
d9898ee8 3749build=$ac_cv_build
dd184caf 3750ac_save_IFS=$IFS; IFS='-'
3751set x $ac_cv_build
3752shift
3753build_cpu=$1
3754build_vendor=$2
3755shift; shift
3756# Remember, the first character of IFS is used to create $*,
3757# except with old shells:
3758build_os=$*
3759IFS=$ac_save_IFS
3760case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3761
3762
3763{ echo "$as_me:$LINENO: checking host system type" >&5
3764echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
d9898ee8 3765if test "${ac_cv_host+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767else
dd184caf 3768 if test "x$host_alias" = x; then
3769 ac_cv_host=$ac_cv_build
3770else
3771 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3772 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3773echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 3774 { (exit 1); exit 1; }; }
dd184caf 3775fi
d9898ee8 3776
3777fi
dd184caf 3778{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3779echo "${ECHO_T}$ac_cv_host" >&6; }
3780case $ac_cv_host in
3781*-*-*) ;;
3782*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3783echo "$as_me: error: invalid value of canonical host" >&2;}
3784 { (exit 1); exit 1; }; };;
3785esac
d9898ee8 3786host=$ac_cv_host
dd184caf 3787ac_save_IFS=$IFS; IFS='-'
3788set x $ac_cv_host
3789shift
3790host_cpu=$1
3791host_vendor=$2
3792shift; shift
3793# Remember, the first character of IFS is used to create $*,
3794# except with old shells:
3795host_os=$*
3796IFS=$ac_save_IFS
3797case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3798
3799
3800{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3801echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
d9898ee8 3802if test "${lt_cv_path_SED+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3804else
3805 # Loop through the user's path and test for sed and gsed.
3806# Then use that list of sed's as ones to test for truncation.
3807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808for as_dir in $PATH
3809do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for lt_ac_prog in sed gsed; do
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3815 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3816 fi
3817 done
3818 done
3819done
3820IFS=$as_save_IFS
3821lt_ac_max=0
3822lt_ac_count=0
3823# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3824# along with /bin/sed that truncates output.
3825for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3826 test ! -f $lt_ac_sed && continue
3827 cat /dev/null > conftest.in
3828 lt_ac_count=0
3829 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3830 # Check for GNU sed and select it if it is found.
3831 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3832 lt_cv_path_SED=$lt_ac_sed
3833 break
3834 fi
3835 while true; do
3836 cat conftest.in conftest.in >conftest.tmp
3837 mv conftest.tmp conftest.in
3838 cp conftest.in conftest.nl
3839 echo >>conftest.nl
3840 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3841 cmp -s conftest.out conftest.nl || break
3842 # 10000 chars as input seems more than enough
3843 test $lt_ac_count -gt 10 && break
3844 lt_ac_count=`expr $lt_ac_count + 1`
3845 if test $lt_ac_count -gt $lt_ac_max; then
3846 lt_ac_max=$lt_ac_count
3847 lt_cv_path_SED=$lt_ac_sed
3848 fi
3849 done
3850done
3851
3852fi
3853
3854SED=$lt_cv_path_SED
3855
dd184caf 3856{ echo "$as_me:$LINENO: result: $SED" >&5
3857echo "${ECHO_T}$SED" >&6; }
3858
3859{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3860echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3861if test "${ac_cv_path_GREP+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863else
3864 # Extract the first word of "grep ggrep" to use in msg output
3865if test -z "$GREP"; then
3866set dummy grep ggrep; ac_prog_name=$2
3867if test "${ac_cv_path_GREP+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869else
3870 ac_path_GREP_found=false
3871# Loop through the user's path and test for each of PROGNAME-LIST
3872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3874do
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_prog in grep ggrep; do
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3880 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3881 # Check for GNU ac_path_GREP and select it if it is found.
3882 # Check for GNU $ac_path_GREP
3883case `"$ac_path_GREP" --version 2>&1` in
3884*GNU*)
3885 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3886*)
3887 ac_count=0
3888 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3889 while :
3890 do
3891 cat "conftest.in" "conftest.in" >"conftest.tmp"
3892 mv "conftest.tmp" "conftest.in"
3893 cp "conftest.in" "conftest.nl"
3894 echo 'GREP' >> "conftest.nl"
3895 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3896 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3897 ac_count=`expr $ac_count + 1`
3898 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3899 # Best one so far, save it but keep looking for a better one
3900 ac_cv_path_GREP="$ac_path_GREP"
3901 ac_path_GREP_max=$ac_count
3902 fi
3903 # 10*(2^10) chars as input seems more than enough
3904 test $ac_count -gt 10 && break
3905 done
3906 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3907esac
3908
3909
3910 $ac_path_GREP_found && break 3
3911 done
3912done
3913
3914done
3915IFS=$as_save_IFS
3916
3917
3918fi
3919
3920GREP="$ac_cv_path_GREP"
3921if test -z "$GREP"; then
3922 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3923echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3924 { (exit 1); exit 1; }; }
3925fi
3926
3927else
3928 ac_cv_path_GREP=$GREP
3929fi
3930
d9898ee8 3931
dd184caf 3932fi
3933{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3934echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3935 GREP="$ac_cv_path_GREP"
3936
3937
3938{ echo "$as_me:$LINENO: checking for egrep" >&5
3939echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3940if test "${ac_cv_path_EGREP+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3942else
3943 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3944 then ac_cv_path_EGREP="$GREP -E"
3945 else
3946 # Extract the first word of "egrep" to use in msg output
3947if test -z "$EGREP"; then
3948set dummy egrep; ac_prog_name=$2
3949if test "${ac_cv_path_EGREP+set}" = set; then
d9898ee8 3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951else
dd184caf 3952 ac_path_EGREP_found=false
3953# Loop through the user's path and test for each of PROGNAME-LIST
3954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3956do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_prog in egrep; do
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3962 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3963 # Check for GNU ac_path_EGREP and select it if it is found.
3964 # Check for GNU $ac_path_EGREP
3965case `"$ac_path_EGREP" --version 2>&1` in
3966*GNU*)
3967 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3968*)
3969 ac_count=0
3970 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3971 while :
3972 do
3973 cat "conftest.in" "conftest.in" >"conftest.tmp"
3974 mv "conftest.tmp" "conftest.in"
3975 cp "conftest.in" "conftest.nl"
3976 echo 'EGREP' >> "conftest.nl"
3977 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3979 ac_count=`expr $ac_count + 1`
3980 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3981 # Best one so far, save it but keep looking for a better one
3982 ac_cv_path_EGREP="$ac_path_EGREP"
3983 ac_path_EGREP_max=$ac_count
d9898ee8 3984 fi
dd184caf 3985 # 10*(2^10) chars as input seems more than enough
3986 test $ac_count -gt 10 && break
3987 done
3988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3989esac
3990
3991
3992 $ac_path_EGREP_found && break 3
3993 done
3994done
3995
3996done
3997IFS=$as_save_IFS
3998
3999
4000fi
4001
4002EGREP="$ac_cv_path_EGREP"
4003if test -z "$EGREP"; then
4004 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4005echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4006 { (exit 1); exit 1; }; }
4007fi
4008
4009else
4010 ac_cv_path_EGREP=$EGREP
4011fi
4012
4013
4014 fi
d9898ee8 4015fi
dd184caf 4016{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4017echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4018 EGREP="$ac_cv_path_EGREP"
d9898ee8 4019
4020
4021
dd184caf 4022# Check whether --with-gnu-ld was given.
d9898ee8 4023if test "${with_gnu_ld+set}" = set; then
dd184caf 4024 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4025else
4026 with_gnu_ld=no
dd184caf 4027fi
4028
d9898ee8 4029ac_prog=ld
4030if test "$GCC" = yes; then
4031 # Check if gcc -print-prog-name=ld gives a path.
dd184caf 4032 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4033echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 4034 case $host in
4035 *-*-mingw*)
4036 # gcc leaves a trailing carriage return which upsets mingw
4037 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4038 *)
4039 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4040 esac
4041 case $ac_prog in
4042 # Accept absolute paths.
4043 [\\/]* | ?:[\\/]*)
4044 re_direlt='/[^/][^/]*/\.\./'
4045 # Canonicalize the pathname of ld
4046 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4047 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4048 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4049 done
4050 test -z "$LD" && LD="$ac_prog"
4051 ;;
4052 "")
4053 # If it fails, then pretend we aren't using GCC.
4054 ac_prog=ld
4055 ;;
4056 *)
4057 # If it is relative, then search for the first ld in PATH.
4058 with_gnu_ld=unknown
4059 ;;
4060 esac
4061elif test "$with_gnu_ld" = yes; then
dd184caf 4062 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4063echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 4064else
dd184caf 4065 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4066echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 4067fi
4068if test "${lt_cv_path_LD+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070else
4071 if test -z "$LD"; then
4072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4073 for ac_dir in $PATH; do
4074 IFS="$lt_save_ifs"
4075 test -z "$ac_dir" && ac_dir=.
4076 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4077 lt_cv_path_LD="$ac_dir/$ac_prog"
4078 # Check to see if the program is GNU ld. I'd rather use --version,
4079 # but apparently some variants of GNU ld only accept -v.
4080 # Break only if it was the GNU/non-GNU ld that we prefer.
4081 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4082 *GNU* | *'with BFD'*)
4083 test "$with_gnu_ld" != no && break
4084 ;;
4085 *)
4086 test "$with_gnu_ld" != yes && break
4087 ;;
4088 esac
4089 fi
4090 done
4091 IFS="$lt_save_ifs"
4092else
4093 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4094fi
4095fi
4096
4097LD="$lt_cv_path_LD"
4098if test -n "$LD"; then
dd184caf 4099 { echo "$as_me:$LINENO: result: $LD" >&5
4100echo "${ECHO_T}$LD" >&6; }
d9898ee8 4101else
dd184caf 4102 { echo "$as_me:$LINENO: result: no" >&5
4103echo "${ECHO_T}no" >&6; }
d9898ee8 4104fi
4105test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4106echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4107 { (exit 1); exit 1; }; }
dd184caf 4108{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4109echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 4110if test "${lt_cv_prog_gnu_ld+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112else
4113 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4114case `$LD -v 2>&1 </dev/null` in
4115*GNU* | *'with BFD'*)
4116 lt_cv_prog_gnu_ld=yes
4117 ;;
4118*)
4119 lt_cv_prog_gnu_ld=no
4120 ;;
4121esac
4122fi
dd184caf 4123{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4124echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4125with_gnu_ld=$lt_cv_prog_gnu_ld
4126
4127
dd184caf 4128{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4129echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d9898ee8 4130if test "${lt_cv_ld_reload_flag+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4132else
4133 lt_cv_ld_reload_flag='-r'
4134fi
dd184caf 4135{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4136echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
d9898ee8 4137reload_flag=$lt_cv_ld_reload_flag
4138case $reload_flag in
4139"" | " "*) ;;
4140*) reload_flag=" $reload_flag" ;;
4141esac
4142reload_cmds='$LD$reload_flag -o $output$reload_objs'
4143case $host_os in
4144 darwin*)
4145 if test "$GCC" = yes; then
4146 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4147 else
4148 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4149 fi
4150 ;;
4151esac
4152
dd184caf 4153{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4154echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
d9898ee8 4155if test "${lt_cv_path_NM+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4157else
4158 if test -n "$NM"; then
4159 # Let the user override the test.
4160 lt_cv_path_NM="$NM"
4161else
4162 lt_nm_to_check="${ac_tool_prefix}nm"
4163 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4164 lt_nm_to_check="$lt_nm_to_check nm"
4165 fi
4166 for lt_tmp_nm in $lt_nm_to_check; do
4167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4168 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4169 IFS="$lt_save_ifs"
4170 test -z "$ac_dir" && ac_dir=.
4171 tmp_nm="$ac_dir/$lt_tmp_nm"
4172 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4173 # Check to see if the nm accepts a BSD-compat flag.
4174 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4175 # nm: unknown option "B" ignored
4176 # Tru64's nm complains that /dev/null is an invalid object file
4177 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4178 */dev/null* | *'Invalid file or object type'*)
4179 lt_cv_path_NM="$tmp_nm -B"
4180 break
4181 ;;
4182 *)
4183 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4184 */dev/null*)
4185 lt_cv_path_NM="$tmp_nm -p"
4186 break
4187 ;;
4188 *)
4189 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4190 continue # so that we can try to find one that supports BSD flags
4191 ;;
4192 esac
4193 ;;
4194 esac
4195 fi
4196 done
4197 IFS="$lt_save_ifs"
4198 done
4199 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4200fi
4201fi
dd184caf 4202{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4203echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d9898ee8 4204NM="$lt_cv_path_NM"
4205
dd184caf 4206{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4207echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
d9898ee8 4208if test "${lt_cv_deplibs_check_method+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4210else
4211 lt_cv_file_magic_cmd='$MAGIC_CMD'
4212lt_cv_file_magic_test_file=
4213lt_cv_deplibs_check_method='unknown'
4214# Need to set the preceding variable on all platforms that support
4215# interlibrary dependencies.
4216# 'none' -- dependencies not supported.
4217# `unknown' -- same as none, but documents that we really don't know.
4218# 'pass_all' -- all dependencies passed with no checks.
4219# 'test_compile' -- check by making test program.
4220# 'file_magic [[regex]]' -- check by looking for files in library path
4221# which responds to the $file_magic_cmd with a given extended regex.
4222# If you have `file' or equivalent on your system and you're not sure
4223# whether `pass_all' will *always* work, you probably want this one.
4224
4225case $host_os in
4226aix4* | aix5*)
4227 lt_cv_deplibs_check_method=pass_all
4228 ;;
4229
4230beos*)
4231 lt_cv_deplibs_check_method=pass_all
4232 ;;
4233
4234bsdi[45]*)
4235 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4236 lt_cv_file_magic_cmd='/usr/bin/file -L'
4237 lt_cv_file_magic_test_file=/shlib/libc.so
4238 ;;
4239
4240cygwin*)
4241 # func_win32_libid is a shell function defined in ltmain.sh
4242 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4243 lt_cv_file_magic_cmd='func_win32_libid'
4244 ;;
4245
4246mingw* | pw32*)
4247 # Base MSYS/MinGW do not provide the 'file' command needed by
4248 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4249 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4250 lt_cv_file_magic_cmd='$OBJDUMP -f'
4251 ;;
4252
4253darwin* | rhapsody*)
4254 lt_cv_deplibs_check_method=pass_all
4255 ;;
4256
4257freebsd* | kfreebsd*-gnu | dragonfly*)
4258 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4259 case $host_cpu in
4260 i*86 )
4261 # Not sure whether the presence of OpenBSD here was a mistake.
4262 # Let's accept both of them until this is cleared up.
4263 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4264 lt_cv_file_magic_cmd=/usr/bin/file
4265 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4266 ;;
4267 esac
4268 else
4269 lt_cv_deplibs_check_method=pass_all
4270 fi
4271 ;;
4272
4273gnu*)
4274 lt_cv_deplibs_check_method=pass_all
4275 ;;
4276
4277hpux10.20* | hpux11*)
4278 lt_cv_file_magic_cmd=/usr/bin/file
4279 case $host_cpu in
4280 ia64*)
4281 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4282 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4283 ;;
4284 hppa*64*)
4285 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]'
4286 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4287 ;;
4288 *)
4289 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4290 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4291 ;;
4292 esac
4293 ;;
4294
4295interix3*)
4296 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4298 ;;
4299
4300irix5* | irix6* | nonstopux*)
4301 case $LD in
4302 *-32|*"-32 ") libmagic=32-bit;;
4303 *-n32|*"-n32 ") libmagic=N32;;
4304 *-64|*"-64 ") libmagic=64-bit;;
4305 *) libmagic=never-match;;
4306 esac
4307 lt_cv_deplibs_check_method=pass_all
4308 ;;
4309
4310# This must be Linux ELF.
4311linux*)
4312 lt_cv_deplibs_check_method=pass_all
4313 ;;
4314
4315netbsd*)
4316 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4318 else
4319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4320 fi
4321 ;;
4322
4323newos6*)
4324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4325 lt_cv_file_magic_cmd=/usr/bin/file
4326 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4327 ;;
4328
4329nto-qnx*)
4330 lt_cv_deplibs_check_method=unknown
4331 ;;
4332
4333openbsd*)
4334 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4336 else
4337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4338 fi
4339 ;;
4340
4341osf3* | osf4* | osf5*)
4342 lt_cv_deplibs_check_method=pass_all
4343 ;;
4344
4345solaris*)
4346 lt_cv_deplibs_check_method=pass_all
4347 ;;
4348
4349sysv4 | sysv4.3*)
4350 case $host_vendor in
4351 motorola)
4352 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]'
4353 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4354 ;;
4355 ncr)
4356 lt_cv_deplibs_check_method=pass_all
4357 ;;
4358 sequent)
4359 lt_cv_file_magic_cmd='/bin/file'
4360 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4361 ;;
4362 sni)
4363 lt_cv_file_magic_cmd='/bin/file'
4364 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4365 lt_cv_file_magic_test_file=/lib/libc.so
4366 ;;
4367 siemens)
4368 lt_cv_deplibs_check_method=pass_all
4369 ;;
4370 pc)
4371 lt_cv_deplibs_check_method=pass_all
4372 ;;
4373 esac
4374 ;;
4375
4376sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4377 lt_cv_deplibs_check_method=pass_all
4378 ;;
4379esac
4380
4381fi
dd184caf 4382{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4383echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
d9898ee8 4384file_magic_cmd=$lt_cv_file_magic_cmd
4385deplibs_check_method=$lt_cv_deplibs_check_method
4386test -z "$deplibs_check_method" && deplibs_check_method=unknown
4387
4388
4389
4390
4391# If no C compiler was specified, use CC.
4392LTCC=${LTCC-"$CC"}
4393
4394# If no C compiler flags were specified, use CFLAGS.
4395LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4396
4397# Allow CC to be a program name with arguments.
4398compiler=$CC
4399
4400
dd184caf 4401# Check whether --enable-libtool-lock was given.
d9898ee8 4402if test "${enable_libtool_lock+set}" = set; then
dd184caf 4403 enableval=$enable_libtool_lock;
4404fi
d9898ee8 4405
d9898ee8 4406test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4407
4408# Some flags need to be propagated to the compiler or linker for good
4409# libtool support.
4410case $host in
4411ia64-*-hpux*)
4412 # Find out which ABI we are using.
4413 echo 'int i;' > conftest.$ac_ext
4414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4415 (eval $ac_compile) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; then
4419 case `/usr/bin/file conftest.$ac_objext` in
4420 *ELF-32*)
4421 HPUX_IA64_MODE="32"
4422 ;;
4423 *ELF-64*)
4424 HPUX_IA64_MODE="64"
4425 ;;
4426 esac
4427 fi
4428 rm -rf conftest*
4429 ;;
4430*-*-irix6*)
4431 # Find out which ABI we are using.
dd184caf 4432 echo '#line 4432 "configure"' > conftest.$ac_ext
d9898ee8 4433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4434 (eval $ac_compile) 2>&5
4435 ac_status=$?
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; then
4438 if test "$lt_cv_prog_gnu_ld" = yes; then
4439 case `/usr/bin/file conftest.$ac_objext` in
4440 *32-bit*)
4441 LD="${LD-ld} -melf32bsmip"
4442 ;;
4443 *N32*)
4444 LD="${LD-ld} -melf32bmipn32"
4445 ;;
4446 *64-bit*)
4447 LD="${LD-ld} -melf64bmip"
4448 ;;
4449 esac
4450 else
4451 case `/usr/bin/file conftest.$ac_objext` in
4452 *32-bit*)
4453 LD="${LD-ld} -32"
4454 ;;
4455 *N32*)
4456 LD="${LD-ld} -n32"
4457 ;;
4458 *64-bit*)
4459 LD="${LD-ld} -64"
4460 ;;
4461 esac
4462 fi
4463 fi
4464 rm -rf conftest*
4465 ;;
4466
4467x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4468 # Find out which ABI we are using.
4469 echo 'int i;' > conftest.$ac_ext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4471 (eval $ac_compile) 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; then
4475 case `/usr/bin/file conftest.o` in
4476 *32-bit*)
4477 case $host in
4478 x86_64-*linux*)
4479 LD="${LD-ld} -m elf_i386"
4480 ;;
4481 ppc64-*linux*|powerpc64-*linux*)
4482 LD="${LD-ld} -m elf32ppclinux"
4483 ;;
4484 s390x-*linux*)
4485 LD="${LD-ld} -m elf_s390"
4486 ;;
4487 sparc64-*linux*)
4488 LD="${LD-ld} -m elf32_sparc"
4489 ;;
4490 esac
4491 ;;
4492 *64-bit*)
4493 case $host in
4494 x86_64-*linux*)
4495 LD="${LD-ld} -m elf_x86_64"
4496 ;;
4497 ppc*-*linux*|powerpc*-*linux*)
4498 LD="${LD-ld} -m elf64ppc"
4499 ;;
4500 s390*-*linux*)
4501 LD="${LD-ld} -m elf64_s390"
4502 ;;
4503 sparc*-*linux*)
4504 LD="${LD-ld} -m elf64_sparc"
4505 ;;
4506 esac
4507 ;;
4508 esac
4509 fi
4510 rm -rf conftest*
4511 ;;
4512
4513*-*-sco3.2v5*)
4514 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4515 SAVE_CFLAGS="$CFLAGS"
4516 CFLAGS="$CFLAGS -belf"
dd184caf 4517 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4518echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d9898ee8 4519if test "${lt_cv_cc_needs_belf+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521else
4522 ac_ext=c
4523ac_cpp='$CPP $CPPFLAGS'
4524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527
4528 cat >conftest.$ac_ext <<_ACEOF
4529/* confdefs.h. */
4530_ACEOF
4531cat confdefs.h >>conftest.$ac_ext
4532cat >>conftest.$ac_ext <<_ACEOF
4533/* end confdefs.h. */
4534
4535int
4536main ()
4537{
4538
4539 ;
4540 return 0;
4541}
4542_ACEOF
4543rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 4544if { (ac_try="$ac_link"
4545case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4548esac
4549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_link") 2>conftest.er1
d9898ee8 4551 ac_status=$?
4552 grep -v '^ *+' conftest.er1 >conftest.err
4553 rm -f conftest.er1
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4556 (exit $ac_status); } && {
4557 test -z "$ac_c_werror_flag" ||
4558 test ! -s conftest.err
4559 } && test -s conftest$ac_exeext &&
4560 $as_test_x conftest$ac_exeext; then
d9898ee8 4561 lt_cv_cc_needs_belf=yes
4562else
4563 echo "$as_me: failed program was:" >&5
4564sed 's/^/| /' conftest.$ac_ext >&5
4565
dd184caf 4566 lt_cv_cc_needs_belf=no
d9898ee8 4567fi
dd184caf 4568
4569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 4570 conftest$ac_exeext conftest.$ac_ext
4571 ac_ext=c
4572ac_cpp='$CPP $CPPFLAGS'
4573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4575ac_compiler_gnu=$ac_cv_c_compiler_gnu
4576
4577fi
dd184caf 4578{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4579echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
d9898ee8 4580 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4581 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4582 CFLAGS="$SAVE_CFLAGS"
4583 fi
4584 ;;
4585sparc*-*solaris*)
4586 # Find out which ABI we are using.
4587 echo 'int i;' > conftest.$ac_ext
4588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4589 (eval $ac_compile) 2>&5
4590 ac_status=$?
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; then
4593 case `/usr/bin/file conftest.o` in
4594 *64-bit*)
4595 case $lt_cv_prog_gnu_ld in
4596 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4597 *) LD="${LD-ld} -64" ;;
4598 esac
4599 ;;
4600 esac
4601 fi
4602 rm -rf conftest*
4603 ;;
4604
4605
4606esac
4607
4608need_locks="$enable_libtool_lock"
4609
4610
4611ac_ext=c
4612ac_cpp='$CPP $CPPFLAGS'
4613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615ac_compiler_gnu=$ac_cv_c_compiler_gnu
dd184caf 4616{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4617echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d9898ee8 4618# On Suns, sometimes $CPP names a directory.
4619if test -n "$CPP" && test -d "$CPP"; then
4620 CPP=
4621fi
4622if test -z "$CPP"; then
4623 if test "${ac_cv_prog_CPP+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625else
4626 # Double quotes because CPP needs to be expanded
4627 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4628 do
4629 ac_preproc_ok=false
4630for ac_c_preproc_warn_flag in '' yes
4631do
4632 # Use a header file that comes with gcc, so configuring glibc
4633 # with a fresh cross-compiler works.
4634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4635 # <limits.h> exists even on freestanding compilers.
4636 # On the NeXT, cc -E runs the code through the compiler's parser,
4637 # not just through cpp. "Syntax error" is here to catch this case.
4638 cat >conftest.$ac_ext <<_ACEOF
4639/* confdefs.h. */
4640_ACEOF
4641cat confdefs.h >>conftest.$ac_ext
4642cat >>conftest.$ac_ext <<_ACEOF
4643/* end confdefs.h. */
4644#ifdef __STDC__
4645# include <limits.h>
4646#else
4647# include <assert.h>
4648#endif
4649 Syntax error
4650_ACEOF
dd184caf 4651if { (ac_try="$ac_cpp conftest.$ac_ext"
4652case "(($ac_try" in
4653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4655esac
4656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4658 ac_status=$?
4659 grep -v '^ *+' conftest.er1 >conftest.err
4660 rm -f conftest.er1
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4663 (exit $ac_status); } >/dev/null && {
4664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4665 test ! -s conftest.err
4666 }; then
d9898ee8 4667 :
4668else
4669 echo "$as_me: failed program was:" >&5
4670sed 's/^/| /' conftest.$ac_ext >&5
4671
4672 # Broken: fails on valid input.
4673continue
4674fi
dd184caf 4675
d9898ee8 4676rm -f conftest.err conftest.$ac_ext
4677
dd184caf 4678 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4679 # can be detected and how.
4680 cat >conftest.$ac_ext <<_ACEOF
4681/* confdefs.h. */
4682_ACEOF
4683cat confdefs.h >>conftest.$ac_ext
4684cat >>conftest.$ac_ext <<_ACEOF
4685/* end confdefs.h. */
4686#include <ac_nonexistent.h>
4687_ACEOF
dd184caf 4688if { (ac_try="$ac_cpp conftest.$ac_ext"
4689case "(($ac_try" in
4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691 *) ac_try_echo=$ac_try;;
4692esac
4693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4695 ac_status=$?
4696 grep -v '^ *+' conftest.er1 >conftest.err
4697 rm -f conftest.er1
4698 cat conftest.err >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4700 (exit $ac_status); } >/dev/null && {
4701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4702 test ! -s conftest.err
4703 }; then
d9898ee8 4704 # Broken: success on invalid input.
4705continue
4706else
4707 echo "$as_me: failed program was:" >&5
4708sed 's/^/| /' conftest.$ac_ext >&5
4709
4710 # Passes both tests.
4711ac_preproc_ok=:
4712break
4713fi
dd184caf 4714
d9898ee8 4715rm -f conftest.err conftest.$ac_ext
4716
4717done
4718# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4719rm -f conftest.err conftest.$ac_ext
4720if $ac_preproc_ok; then
4721 break
4722fi
4723
4724 done
4725 ac_cv_prog_CPP=$CPP
4726
4727fi
4728 CPP=$ac_cv_prog_CPP
4729else
4730 ac_cv_prog_CPP=$CPP
4731fi
dd184caf 4732{ echo "$as_me:$LINENO: result: $CPP" >&5
4733echo "${ECHO_T}$CPP" >&6; }
d9898ee8 4734ac_preproc_ok=false
4735for ac_c_preproc_warn_flag in '' yes
4736do
4737 # Use a header file that comes with gcc, so configuring glibc
4738 # with a fresh cross-compiler works.
4739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4740 # <limits.h> exists even on freestanding compilers.
4741 # On the NeXT, cc -E runs the code through the compiler's parser,
4742 # not just through cpp. "Syntax error" is here to catch this case.
4743 cat >conftest.$ac_ext <<_ACEOF
4744/* confdefs.h. */
4745_ACEOF
4746cat confdefs.h >>conftest.$ac_ext
4747cat >>conftest.$ac_ext <<_ACEOF
4748/* end confdefs.h. */
4749#ifdef __STDC__
4750# include <limits.h>
4751#else
4752# include <assert.h>
4753#endif
4754 Syntax error
4755_ACEOF
dd184caf 4756if { (ac_try="$ac_cpp conftest.$ac_ext"
4757case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4760esac
4761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4768 (exit $ac_status); } >/dev/null && {
4769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4770 test ! -s conftest.err
4771 }; then
d9898ee8 4772 :
4773else
4774 echo "$as_me: failed program was:" >&5
4775sed 's/^/| /' conftest.$ac_ext >&5
4776
4777 # Broken: fails on valid input.
4778continue
4779fi
dd184caf 4780
d9898ee8 4781rm -f conftest.err conftest.$ac_ext
4782
dd184caf 4783 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4784 # can be detected and how.
4785 cat >conftest.$ac_ext <<_ACEOF
4786/* confdefs.h. */
4787_ACEOF
4788cat confdefs.h >>conftest.$ac_ext
4789cat >>conftest.$ac_ext <<_ACEOF
4790/* end confdefs.h. */
4791#include <ac_nonexistent.h>
4792_ACEOF
dd184caf 4793if { (ac_try="$ac_cpp conftest.$ac_ext"
4794case "(($ac_try" in
4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796 *) ac_try_echo=$ac_try;;
4797esac
4798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4800 ac_status=$?
4801 grep -v '^ *+' conftest.er1 >conftest.err
4802 rm -f conftest.er1
4803 cat conftest.err >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4805 (exit $ac_status); } >/dev/null && {
4806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4807 test ! -s conftest.err
4808 }; then
d9898ee8 4809 # Broken: success on invalid input.
4810continue
4811else
4812 echo "$as_me: failed program was:" >&5
4813sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 # Passes both tests.
4816ac_preproc_ok=:
4817break
4818fi
dd184caf 4819
d9898ee8 4820rm -f conftest.err conftest.$ac_ext
4821
4822done
4823# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4824rm -f conftest.err conftest.$ac_ext
4825if $ac_preproc_ok; then
4826 :
4827else
4828 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4829See \`config.log' for more details." >&5
4830echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4831See \`config.log' for more details." >&2;}
4832 { (exit 1); exit 1; }; }
4833fi
4834
4835ac_ext=c
4836ac_cpp='$CPP $CPPFLAGS'
4837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839ac_compiler_gnu=$ac_cv_c_compiler_gnu
4840
4841
dd184caf 4842{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4843echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 4844if test "${ac_cv_header_stdc+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4846else
4847 cat >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#include <stdlib.h>
4854#include <stdarg.h>
4855#include <string.h>
4856#include <float.h>
4857
4858int
4859main ()
4860{
4861
4862 ;
4863 return 0;
4864}
4865_ACEOF
4866rm -f conftest.$ac_objext
dd184caf 4867if { (ac_try="$ac_compile"
4868case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4871esac
4872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4874 ac_status=$?
4875 grep -v '^ *+' conftest.er1 >conftest.err
4876 rm -f conftest.er1
4877 cat conftest.err >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4879 (exit $ac_status); } && {
4880 test -z "$ac_c_werror_flag" ||
4881 test ! -s conftest.err
4882 } && test -s conftest.$ac_objext; then
d9898ee8 4883 ac_cv_header_stdc=yes
4884else
4885 echo "$as_me: failed program was:" >&5
4886sed 's/^/| /' conftest.$ac_ext >&5
4887
dd184caf 4888 ac_cv_header_stdc=no
d9898ee8 4889fi
dd184caf 4890
4891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4892
4893if test $ac_cv_header_stdc = yes; then
4894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4895 cat >conftest.$ac_ext <<_ACEOF
4896/* confdefs.h. */
4897_ACEOF
4898cat confdefs.h >>conftest.$ac_ext
4899cat >>conftest.$ac_ext <<_ACEOF
4900/* end confdefs.h. */
4901#include <string.h>
4902
4903_ACEOF
4904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4905 $EGREP "memchr" >/dev/null 2>&1; then
4906 :
4907else
4908 ac_cv_header_stdc=no
4909fi
4910rm -f conftest*
4911
4912fi
4913
4914if test $ac_cv_header_stdc = yes; then
4915 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4916 cat >conftest.$ac_ext <<_ACEOF
4917/* confdefs.h. */
4918_ACEOF
4919cat confdefs.h >>conftest.$ac_ext
4920cat >>conftest.$ac_ext <<_ACEOF
4921/* end confdefs.h. */
4922#include <stdlib.h>
4923
4924_ACEOF
4925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4926 $EGREP "free" >/dev/null 2>&1; then
4927 :
4928else
4929 ac_cv_header_stdc=no
4930fi
4931rm -f conftest*
4932
4933fi
4934
4935if test $ac_cv_header_stdc = yes; then
4936 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4937 if test "$cross_compiling" = yes; then
4938 :
4939else
4940 cat >conftest.$ac_ext <<_ACEOF
4941/* confdefs.h. */
4942_ACEOF
4943cat confdefs.h >>conftest.$ac_ext
4944cat >>conftest.$ac_ext <<_ACEOF
4945/* end confdefs.h. */
4946#include <ctype.h>
dd184caf 4947#include <stdlib.h>
d9898ee8 4948#if ((' ' & 0x0FF) == 0x020)
4949# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4950# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4951#else
4952# define ISLOWER(c) \
4953 (('a' <= (c) && (c) <= 'i') \
4954 || ('j' <= (c) && (c) <= 'r') \
4955 || ('s' <= (c) && (c) <= 'z'))
4956# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4957#endif
4958
4959#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4960int
4961main ()
4962{
4963 int i;
4964 for (i = 0; i < 256; i++)
4965 if (XOR (islower (i), ISLOWER (i))
4966 || toupper (i) != TOUPPER (i))
dd184caf 4967 return 2;
4968 return 0;
d9898ee8 4969}
4970_ACEOF
4971rm -f conftest$ac_exeext
dd184caf 4972if { (ac_try="$ac_link"
4973case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4976esac
4977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978 (eval "$ac_link") 2>&5
d9898ee8 4979 ac_status=$?
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 4982 { (case "(($ac_try" in
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4985esac
4986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4987 (eval "$ac_try") 2>&5
d9898ee8 4988 ac_status=$?
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4991 :
4992else
4993 echo "$as_me: program exited with status $ac_status" >&5
4994echo "$as_me: failed program was:" >&5
4995sed 's/^/| /' conftest.$ac_ext >&5
4996
4997( exit $ac_status )
4998ac_cv_header_stdc=no
4999fi
dd184caf 5000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 5001fi
dd184caf 5002
5003
d9898ee8 5004fi
5005fi
dd184caf 5006{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5007echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 5008if test $ac_cv_header_stdc = yes; then
5009
5010cat >>confdefs.h <<\_ACEOF
5011#define STDC_HEADERS 1
5012_ACEOF
5013
5014fi
5015
5016# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5027 inttypes.h stdint.h unistd.h
5028do
5029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 5030{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034else
5035 cat >conftest.$ac_ext <<_ACEOF
5036/* confdefs.h. */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h. */
5041$ac_includes_default
5042
5043#include <$ac_header>
5044_ACEOF
5045rm -f conftest.$ac_objext
dd184caf 5046if { (ac_try="$ac_compile"
5047case "(($ac_try" in
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5050esac
5051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5053 ac_status=$?
5054 grep -v '^ *+' conftest.er1 >conftest.err
5055 rm -f conftest.er1
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5058 (exit $ac_status); } && {
5059 test -z "$ac_c_werror_flag" ||
5060 test ! -s conftest.err
5061 } && test -s conftest.$ac_objext; then
d9898ee8 5062 eval "$as_ac_Header=yes"
5063else
5064 echo "$as_me: failed program was:" >&5
5065sed 's/^/| /' conftest.$ac_ext >&5
5066
dd184caf 5067 eval "$as_ac_Header=no"
d9898ee8 5068fi
dd184caf 5069
5070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5071fi
dd184caf 5072ac_res=`eval echo '${'$as_ac_Header'}'`
5073 { echo "$as_me:$LINENO: result: $ac_res" >&5
5074echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5075if test `eval echo '${'$as_ac_Header'}'` = yes; then
5076 cat >>confdefs.h <<_ACEOF
5077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5078_ACEOF
5079
5080fi
5081
5082done
5083
5084
5085
5086for ac_header in dlfcn.h
5087do
5088as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 5089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5094fi
dd184caf 5095ac_res=`eval echo '${'$as_ac_Header'}'`
5096 { echo "$as_me:$LINENO: result: $ac_res" >&5
5097echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5098else
5099 # Is the header compilable?
dd184caf 5100{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5101echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 5102cat >conftest.$ac_ext <<_ACEOF
5103/* confdefs.h. */
5104_ACEOF
5105cat confdefs.h >>conftest.$ac_ext
5106cat >>conftest.$ac_ext <<_ACEOF
5107/* end confdefs.h. */
5108$ac_includes_default
5109#include <$ac_header>
5110_ACEOF
5111rm -f conftest.$ac_objext
dd184caf 5112if { (ac_try="$ac_compile"
5113case "(($ac_try" in
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5116esac
5117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5119 ac_status=$?
5120 grep -v '^ *+' conftest.er1 >conftest.err
5121 rm -f conftest.er1
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5124 (exit $ac_status); } && {
5125 test -z "$ac_c_werror_flag" ||
5126 test ! -s conftest.err
5127 } && test -s conftest.$ac_objext; then
d9898ee8 5128 ac_header_compiler=yes
5129else
5130 echo "$as_me: failed program was:" >&5
5131sed 's/^/| /' conftest.$ac_ext >&5
5132
dd184caf 5133 ac_header_compiler=no
d9898ee8 5134fi
dd184caf 5135
5136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5138echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 5139
5140# Is the header present?
dd184caf 5141{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5142echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 5143cat >conftest.$ac_ext <<_ACEOF
5144/* confdefs.h. */
5145_ACEOF
5146cat confdefs.h >>conftest.$ac_ext
5147cat >>conftest.$ac_ext <<_ACEOF
5148/* end confdefs.h. */
5149#include <$ac_header>
5150_ACEOF
dd184caf 5151if { (ac_try="$ac_cpp conftest.$ac_ext"
5152case "(($ac_try" in
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5155esac
5156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5158 ac_status=$?
5159 grep -v '^ *+' conftest.er1 >conftest.err
5160 rm -f conftest.er1
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5163 (exit $ac_status); } >/dev/null && {
5164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5165 test ! -s conftest.err
5166 }; then
d9898ee8 5167 ac_header_preproc=yes
5168else
5169 echo "$as_me: failed program was:" >&5
5170sed 's/^/| /' conftest.$ac_ext >&5
5171
5172 ac_header_preproc=no
5173fi
dd184caf 5174
d9898ee8 5175rm -f conftest.err conftest.$ac_ext
dd184caf 5176{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5177echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 5178
5179# So? What about this header?
5180case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5181 yes:no: )
5182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5183echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5185echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5186 ac_header_preproc=yes
5187 ;;
5188 no:yes:* )
5189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5190echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5192echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5194echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5196echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5198echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5200echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dd184caf 5201 ( cat <<\_ASBOX
d9898ee8 5202## -------------------------------------------------- ##
5203## Report this to courier-users@lists.sourceforge.net ##
5204## -------------------------------------------------- ##
5205_ASBOX
dd184caf 5206 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 5207 ;;
5208esac
dd184caf 5209{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5213else
5214 eval "$as_ac_Header=\$ac_header_preproc"
5215fi
dd184caf 5216ac_res=`eval echo '${'$as_ac_Header'}'`
5217 { echo "$as_me:$LINENO: result: $ac_res" >&5
5218echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5219
5220fi
5221if test `eval echo '${'$as_ac_Header'}'` = yes; then
5222 cat >>confdefs.h <<_ACEOF
5223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5224_ACEOF
5225
5226fi
5227
5228done
5229
dd184caf 5230ac_ext=cpp
d9898ee8 5231ac_cpp='$CXXCPP $CPPFLAGS'
5232ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5233ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
dd184caf 5235if test -z "$CXX"; then
5236 if test -n "$CCC"; then
5237 CXX=$CCC
5238 else
5239 if test -n "$ac_tool_prefix"; then
5240 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5241 do
5242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5243set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 5244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5246if test "${ac_cv_prog_CXX+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248else
5249 if test -n "$CXX"; then
5250 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5251else
5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5259 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5262 fi
5263done
5264done
dd184caf 5265IFS=$as_save_IFS
d9898ee8 5266
5267fi
5268fi
5269CXX=$ac_cv_prog_CXX
5270if test -n "$CXX"; then
dd184caf 5271 { echo "$as_me:$LINENO: result: $CXX" >&5
5272echo "${ECHO_T}$CXX" >&6; }
d9898ee8 5273else
dd184caf 5274 { echo "$as_me:$LINENO: result: no" >&5
5275echo "${ECHO_T}no" >&6; }
d9898ee8 5276fi
5277
dd184caf 5278
d9898ee8 5279 test -n "$CXX" && break
5280 done
5281fi
5282if test -z "$CXX"; then
5283 ac_ct_CXX=$CXX
dd184caf 5284 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5285do
5286 # Extract the first word of "$ac_prog", so it can be a program name with args.
5287set dummy $ac_prog; ac_word=$2
dd184caf 5288{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5290if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292else
5293 if test -n "$ac_ct_CXX"; then
5294 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5295else
5296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297for as_dir in $PATH
5298do
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5303 ac_cv_prog_ac_ct_CXX="$ac_prog"
5304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 break 2
5306 fi
5307done
5308done
dd184caf 5309IFS=$as_save_IFS
d9898ee8 5310
5311fi
5312fi
5313ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5314if test -n "$ac_ct_CXX"; then
dd184caf 5315 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5316echo "${ECHO_T}$ac_ct_CXX" >&6; }
d9898ee8 5317else
dd184caf 5318 { echo "$as_me:$LINENO: result: no" >&5
5319echo "${ECHO_T}no" >&6; }
d9898ee8 5320fi
5321
dd184caf 5322
d9898ee8 5323 test -n "$ac_ct_CXX" && break
5324done
d9898ee8 5325
dd184caf 5326 if test "x$ac_ct_CXX" = x; then
5327 CXX="g++"
5328 else
5329 case $cross_compiling:$ac_tool_warned in
5330yes:)
5331{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5332whose name does not start with the host triplet. If you think this
5333configuration is useful to you, please write to autoconf@gnu.org." >&5
5334echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5335whose name does not start with the host triplet. If you think this
5336configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5337ac_tool_warned=yes ;;
5338esac
5339 CXX=$ac_ct_CXX
5340 fi
d9898ee8 5341fi
5342
dd184caf 5343 fi
5344fi
d9898ee8 5345# Provide some information about the compiler.
dd184caf 5346echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d9898ee8 5347ac_compiler=`set X $ac_compile; echo $2`
dd184caf 5348{ (ac_try="$ac_compiler --version >&5"
5349case "(($ac_try" in
5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5352esac
5353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 5355 ac_status=$?
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }
dd184caf 5358{ (ac_try="$ac_compiler -v >&5"
5359case "(($ac_try" in
5360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361 *) ac_try_echo=$ac_try;;
5362esac
5363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5364 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 5365 ac_status=$?
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); }
dd184caf 5368{ (ac_try="$ac_compiler -V >&5"
5369case "(($ac_try" in
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5372esac
5373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }
5378
dd184caf 5379{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5380echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d9898ee8 5381if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5383else
5384 cat >conftest.$ac_ext <<_ACEOF
5385/* confdefs.h. */
5386_ACEOF
5387cat confdefs.h >>conftest.$ac_ext
5388cat >>conftest.$ac_ext <<_ACEOF
5389/* end confdefs.h. */
5390
5391int
5392main ()
5393{
5394#ifndef __GNUC__
5395 choke me
5396#endif
5397
5398 ;
5399 return 0;
5400}
5401_ACEOF
5402rm -f conftest.$ac_objext
dd184caf 5403if { (ac_try="$ac_compile"
5404case "(($ac_try" in
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5407esac
5408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5410 ac_status=$?
5411 grep -v '^ *+' conftest.er1 >conftest.err
5412 rm -f conftest.er1
5413 cat conftest.err >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5415 (exit $ac_status); } && {
5416 test -z "$ac_cxx_werror_flag" ||
5417 test ! -s conftest.err
5418 } && test -s conftest.$ac_objext; then
d9898ee8 5419 ac_compiler_gnu=yes
5420else
5421 echo "$as_me: failed program was:" >&5
5422sed 's/^/| /' conftest.$ac_ext >&5
5423
dd184caf 5424 ac_compiler_gnu=no
d9898ee8 5425fi
dd184caf 5426
5427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5428ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5429
5430fi
dd184caf 5431{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5432echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d9898ee8 5433GXX=`test $ac_compiler_gnu = yes && echo yes`
5434ac_test_CXXFLAGS=${CXXFLAGS+set}
5435ac_save_CXXFLAGS=$CXXFLAGS
dd184caf 5436{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5437echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d9898ee8 5438if test "${ac_cv_prog_cxx_g+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5440else
dd184caf 5441 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5442 ac_cxx_werror_flag=yes
5443 ac_cv_prog_cxx_g=no
5444 CXXFLAGS="-g"
5445 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5446/* confdefs.h. */
5447_ACEOF
5448cat confdefs.h >>conftest.$ac_ext
5449cat >>conftest.$ac_ext <<_ACEOF
5450/* end confdefs.h. */
5451
5452int
5453main ()
5454{
5455
5456 ;
5457 return 0;
5458}
5459_ACEOF
5460rm -f conftest.$ac_objext
dd184caf 5461if { (ac_try="$ac_compile"
5462case "(($ac_try" in
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5465esac
5466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5468 ac_status=$?
5469 grep -v '^ *+' conftest.er1 >conftest.err
5470 rm -f conftest.er1
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5473 (exit $ac_status); } && {
5474 test -z "$ac_cxx_werror_flag" ||
5475 test ! -s conftest.err
5476 } && test -s conftest.$ac_objext; then
d9898ee8 5477 ac_cv_prog_cxx_g=yes
5478else
5479 echo "$as_me: failed program was:" >&5
5480sed 's/^/| /' conftest.$ac_ext >&5
5481
dd184caf 5482 CXXFLAGS=""
5483 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5484/* confdefs.h. */
5485_ACEOF
5486cat confdefs.h >>conftest.$ac_ext
5487cat >>conftest.$ac_ext <<_ACEOF
5488/* end confdefs.h. */
dd184caf 5489
d9898ee8 5490int
5491main ()
5492{
dd184caf 5493
d9898ee8 5494 ;
5495 return 0;
5496}
5497_ACEOF
5498rm -f conftest.$ac_objext
dd184caf 5499if { (ac_try="$ac_compile"
5500case "(($ac_try" in
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5503esac
5504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5506 ac_status=$?
5507 grep -v '^ *+' conftest.er1 >conftest.err
5508 rm -f conftest.er1
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5511 (exit $ac_status); } && {
5512 test -z "$ac_cxx_werror_flag" ||
5513 test ! -s conftest.err
5514 } && test -s conftest.$ac_objext; then
d9898ee8 5515 :
5516else
5517 echo "$as_me: failed program was:" >&5
5518sed 's/^/| /' conftest.$ac_ext >&5
5519
dd184caf 5520 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5521 CXXFLAGS="-g"
5522 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5523/* confdefs.h. */
5524_ACEOF
5525cat confdefs.h >>conftest.$ac_ext
5526cat >>conftest.$ac_ext <<_ACEOF
5527/* end confdefs.h. */
dd184caf 5528
d9898ee8 5529int
5530main ()
5531{
dd184caf 5532
d9898ee8 5533 ;
5534 return 0;
5535}
5536_ACEOF
5537rm -f conftest.$ac_objext
dd184caf 5538if { (ac_try="$ac_compile"
5539case "(($ac_try" in
5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5542esac
5543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5545 ac_status=$?
5546 grep -v '^ *+' conftest.er1 >conftest.err
5547 rm -f conftest.er1
5548 cat conftest.err >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5550 (exit $ac_status); } && {
5551 test -z "$ac_cxx_werror_flag" ||
5552 test ! -s conftest.err
5553 } && test -s conftest.$ac_objext; then
5554 ac_cv_prog_cxx_g=yes
d9898ee8 5555else
5556 echo "$as_me: failed program was:" >&5
5557sed 's/^/| /' conftest.$ac_ext >&5
5558
dd184caf 5559
d9898ee8 5560fi
dd184caf 5561
5562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563fi
5564
5565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5566fi
5567
dd184caf 5568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5570fi
5571{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5572echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5573if test "$ac_test_CXXFLAGS" = set; then
5574 CXXFLAGS=$ac_save_CXXFLAGS
5575elif test $ac_cv_prog_cxx_g = yes; then
5576 if test "$GXX" = yes; then
5577 CXXFLAGS="-g -O2"
5578 else
5579 CXXFLAGS="-g"
5580 fi
5581else
5582 if test "$GXX" = yes; then
5583 CXXFLAGS="-O2"
5584 else
5585 CXXFLAGS=
5586 fi
5587fi
5588ac_ext=cpp
d9898ee8 5589ac_cpp='$CXXCPP $CPPFLAGS'
5590ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5591ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5592ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5593
5594depcc="$CXX" am_compiler_list=
5595
dd184caf 5596{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5597echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 5598if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5600else
5601 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5602 # We make a subdir and do the tests there. Otherwise we can end up
5603 # making bogus files that we don't know about and never remove. For
5604 # instance it was reported that on HP-UX the gcc test will end up
5605 # making a dummy file named `D' -- because `-MD' means `put the output
5606 # in D'.
5607 mkdir conftest.dir
5608 # Copy depcomp to subdir because otherwise we won't find it if we're
5609 # using a relative directory.
5610 cp "$am_depcomp" conftest.dir
5611 cd conftest.dir
5612 # We will build objects and dependencies in a subdirectory because
5613 # it helps to detect inapplicable dependency modes. For instance
5614 # both Tru64's cc and ICC support -MD to output dependencies as a
5615 # side effect of compilation, but ICC will put the dependencies in
5616 # the current directory while Tru64 will put them in the object
5617 # directory.
5618 mkdir sub
5619
5620 am_cv_CXX_dependencies_compiler_type=none
5621 if test "$am_compiler_list" = ""; then
5622 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5623 fi
5624 for depmode in $am_compiler_list; do
5625 # Setup a source with many dependencies, because some compilers
5626 # like to wrap large dependency lists on column 80 (with \), and
5627 # we should not choose a depcomp mode which is confused by this.
5628 #
5629 # We need to recreate these files for each test, as the compiler may
5630 # overwrite some of them when testing with obscure command lines.
5631 # This happens at least with the AIX C compiler.
5632 : > sub/conftest.c
5633 for i in 1 2 3 4 5 6; do
5634 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5635 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5636 # Solaris 8's {/usr,}/bin/sh.
5637 touch sub/conftst$i.h
5638 done
5639 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5640
5641 case $depmode in
5642 nosideeffect)
5643 # after this tag, mechanisms are not by side-effect, so they'll
5644 # only be used when explicitly requested
5645 if test "x$enable_dependency_tracking" = xyes; then
5646 continue
5647 else
5648 break
5649 fi
5650 ;;
5651 none) break ;;
5652 esac
5653 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5654 # mode. It turns out that the SunPro C++ compiler does not properly
5655 # handle `-M -o', and we need to detect this.
5656 if depmode=$depmode \
5657 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5658 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5659 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5660 >/dev/null 2>conftest.err &&
dd184caf 5661 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5662 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5663 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5664 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5665 # icc doesn't choke on unknown options, it will just issue warnings
5666 # or remarks (even with -Werror). So we grep stderr for any message
5667 # that says an option was ignored or not supported.
5668 # When given -MP, icc 7.0 and 7.1 complain thusly:
5669 # icc: Command line warning: ignoring option '-M'; no argument required
5670 # The diagnosis changed in icc 8.0:
5671 # icc: Command line remark: option '-MP' not supported
5672 if (grep 'ignoring option' conftest.err ||
5673 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5674 am_cv_CXX_dependencies_compiler_type=$depmode
5675 break
5676 fi
5677 fi
5678 done
5679
5680 cd ..
5681 rm -rf conftest.dir
5682else
5683 am_cv_CXX_dependencies_compiler_type=none
5684fi
5685
5686fi
dd184caf 5687{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5688echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
d9898ee8 5689CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5690
dd184caf 5691 if
d9898ee8 5692 test "x$enable_dependency_tracking" != xno \
5693 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5694 am__fastdepCXX_TRUE=
5695 am__fastdepCXX_FALSE='#'
5696else
5697 am__fastdepCXX_TRUE='#'
5698 am__fastdepCXX_FALSE=
5699fi
5700
5701
5702
5703
5704if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5705 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5706 (test "X$CXX" != "Xg++"))) ; then
dd184caf 5707 ac_ext=cpp
d9898ee8 5708ac_cpp='$CXXCPP $CPPFLAGS'
5709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
dd184caf 5712{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5713echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d9898ee8 5714if test -z "$CXXCPP"; then
5715 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717else
5718 # Double quotes because CXXCPP needs to be expanded
5719 for CXXCPP in "$CXX -E" "/lib/cpp"
5720 do
5721 ac_preproc_ok=false
5722for ac_cxx_preproc_warn_flag in '' yes
5723do
5724 # Use a header file that comes with gcc, so configuring glibc
5725 # with a fresh cross-compiler works.
5726 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5727 # <limits.h> exists even on freestanding compilers.
5728 # On the NeXT, cc -E runs the code through the compiler's parser,
5729 # not just through cpp. "Syntax error" is here to catch this case.
5730 cat >conftest.$ac_ext <<_ACEOF
5731/* confdefs.h. */
5732_ACEOF
5733cat confdefs.h >>conftest.$ac_ext
5734cat >>conftest.$ac_ext <<_ACEOF
5735/* end confdefs.h. */
5736#ifdef __STDC__
5737# include <limits.h>
5738#else
5739# include <assert.h>
5740#endif
5741 Syntax error
5742_ACEOF
dd184caf 5743if { (ac_try="$ac_cpp conftest.$ac_ext"
5744case "(($ac_try" in
5745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746 *) ac_try_echo=$ac_try;;
5747esac
5748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5750 ac_status=$?
5751 grep -v '^ *+' conftest.er1 >conftest.err
5752 rm -f conftest.er1
5753 cat conftest.err >&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5755 (exit $ac_status); } >/dev/null && {
5756 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5757 test ! -s conftest.err
5758 }; then
d9898ee8 5759 :
5760else
5761 echo "$as_me: failed program was:" >&5
5762sed 's/^/| /' conftest.$ac_ext >&5
5763
5764 # Broken: fails on valid input.
5765continue
5766fi
dd184caf 5767
d9898ee8 5768rm -f conftest.err conftest.$ac_ext
5769
dd184caf 5770 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5771 # can be detected and how.
5772 cat >conftest.$ac_ext <<_ACEOF
5773/* confdefs.h. */
5774_ACEOF
5775cat confdefs.h >>conftest.$ac_ext
5776cat >>conftest.$ac_ext <<_ACEOF
5777/* end confdefs.h. */
5778#include <ac_nonexistent.h>
5779_ACEOF
dd184caf 5780if { (ac_try="$ac_cpp conftest.$ac_ext"
5781case "(($ac_try" in
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5784esac
5785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5787 ac_status=$?
5788 grep -v '^ *+' conftest.er1 >conftest.err
5789 rm -f conftest.er1
5790 cat conftest.err >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5792 (exit $ac_status); } >/dev/null && {
5793 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5794 test ! -s conftest.err
5795 }; then
d9898ee8 5796 # Broken: success on invalid input.
5797continue
5798else
5799 echo "$as_me: failed program was:" >&5
5800sed 's/^/| /' conftest.$ac_ext >&5
5801
5802 # Passes both tests.
5803ac_preproc_ok=:
5804break
5805fi
dd184caf 5806
d9898ee8 5807rm -f conftest.err conftest.$ac_ext
5808
5809done
5810# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5811rm -f conftest.err conftest.$ac_ext
5812if $ac_preproc_ok; then
5813 break
5814fi
5815
5816 done
5817 ac_cv_prog_CXXCPP=$CXXCPP
5818
5819fi
5820 CXXCPP=$ac_cv_prog_CXXCPP
5821else
5822 ac_cv_prog_CXXCPP=$CXXCPP
5823fi
dd184caf 5824{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5825echo "${ECHO_T}$CXXCPP" >&6; }
d9898ee8 5826ac_preproc_ok=false
5827for ac_cxx_preproc_warn_flag in '' yes
5828do
5829 # Use a header file that comes with gcc, so configuring glibc
5830 # with a fresh cross-compiler works.
5831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5832 # <limits.h> exists even on freestanding compilers.
5833 # On the NeXT, cc -E runs the code through the compiler's parser,
5834 # not just through cpp. "Syntax error" is here to catch this case.
5835 cat >conftest.$ac_ext <<_ACEOF
5836/* confdefs.h. */
5837_ACEOF
5838cat confdefs.h >>conftest.$ac_ext
5839cat >>conftest.$ac_ext <<_ACEOF
5840/* end confdefs.h. */
5841#ifdef __STDC__
5842# include <limits.h>
5843#else
5844# include <assert.h>
5845#endif
5846 Syntax error
5847_ACEOF
dd184caf 5848if { (ac_try="$ac_cpp conftest.$ac_ext"
5849case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852esac
5853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5860 (exit $ac_status); } >/dev/null && {
5861 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5862 test ! -s conftest.err
5863 }; then
d9898ee8 5864 :
5865else
5866 echo "$as_me: failed program was:" >&5
5867sed 's/^/| /' conftest.$ac_ext >&5
5868
5869 # Broken: fails on valid input.
5870continue
5871fi
dd184caf 5872
d9898ee8 5873rm -f conftest.err conftest.$ac_ext
5874
dd184caf 5875 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5876 # can be detected and how.
5877 cat >conftest.$ac_ext <<_ACEOF
5878/* confdefs.h. */
5879_ACEOF
5880cat confdefs.h >>conftest.$ac_ext
5881cat >>conftest.$ac_ext <<_ACEOF
5882/* end confdefs.h. */
5883#include <ac_nonexistent.h>
5884_ACEOF
dd184caf 5885if { (ac_try="$ac_cpp conftest.$ac_ext"
5886case "(($ac_try" in
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5889esac
5890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5892 ac_status=$?
5893 grep -v '^ *+' conftest.er1 >conftest.err
5894 rm -f conftest.er1
5895 cat conftest.err >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5897 (exit $ac_status); } >/dev/null && {
5898 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5899 test ! -s conftest.err
5900 }; then
d9898ee8 5901 # Broken: success on invalid input.
5902continue
5903else
5904 echo "$as_me: failed program was:" >&5
5905sed 's/^/| /' conftest.$ac_ext >&5
5906
5907 # Passes both tests.
5908ac_preproc_ok=:
5909break
5910fi
dd184caf 5911
d9898ee8 5912rm -f conftest.err conftest.$ac_ext
5913
5914done
5915# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5916rm -f conftest.err conftest.$ac_ext
5917if $ac_preproc_ok; then
5918 :
5919else
5920 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5921See \`config.log' for more details." >&5
5922echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5923See \`config.log' for more details." >&2;}
5924 { (exit 1); exit 1; }; }
5925fi
5926
dd184caf 5927ac_ext=cpp
d9898ee8 5928ac_cpp='$CXXCPP $CPPFLAGS'
5929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5932
5933fi
5934
5935
5936ac_ext=f
5937ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5938ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5939ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5940if test -n "$ac_tool_prefix"; then
dd184caf 5941 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 5942 do
5943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5944set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 5945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5947if test "${ac_cv_prog_F77+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949else
5950 if test -n "$F77"; then
5951 ac_cv_prog_F77="$F77" # Let the user override the test.
5952else
5953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954for as_dir in $PATH
5955do
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5960 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5963 fi
5964done
5965done
dd184caf 5966IFS=$as_save_IFS
d9898ee8 5967
5968fi
5969fi
5970F77=$ac_cv_prog_F77
5971if test -n "$F77"; then
dd184caf 5972 { echo "$as_me:$LINENO: result: $F77" >&5
5973echo "${ECHO_T}$F77" >&6; }
d9898ee8 5974else
dd184caf 5975 { echo "$as_me:$LINENO: result: no" >&5
5976echo "${ECHO_T}no" >&6; }
d9898ee8 5977fi
5978
dd184caf 5979
d9898ee8 5980 test -n "$F77" && break
5981 done
5982fi
5983if test -z "$F77"; then
5984 ac_ct_F77=$F77
dd184caf 5985 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 5986do
5987 # Extract the first word of "$ac_prog", so it can be a program name with args.
5988set dummy $ac_prog; ac_word=$2
dd184caf 5989{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5991if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993else
5994 if test -n "$ac_ct_F77"; then
5995 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5996else
5997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998for as_dir in $PATH
5999do
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6004 ac_cv_prog_ac_ct_F77="$ac_prog"
6005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 break 2
6007 fi
6008done
6009done
dd184caf 6010IFS=$as_save_IFS
d9898ee8 6011
6012fi
6013fi
6014ac_ct_F77=$ac_cv_prog_ac_ct_F77
6015if test -n "$ac_ct_F77"; then
dd184caf 6016 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6017echo "${ECHO_T}$ac_ct_F77" >&6; }
d9898ee8 6018else
dd184caf 6019 { echo "$as_me:$LINENO: result: no" >&5
6020echo "${ECHO_T}no" >&6; }
d9898ee8 6021fi
6022
dd184caf 6023
d9898ee8 6024 test -n "$ac_ct_F77" && break
6025done
6026
dd184caf 6027 if test "x$ac_ct_F77" = x; then
6028 F77=""
6029 else
6030 case $cross_compiling:$ac_tool_warned in
6031yes:)
6032{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6033whose name does not start with the host triplet. If you think this
6034configuration is useful to you, please write to autoconf@gnu.org." >&5
6035echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6036whose name does not start with the host triplet. If you think this
6037configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6038ac_tool_warned=yes ;;
6039esac
6040 F77=$ac_ct_F77
6041 fi
d9898ee8 6042fi
6043
6044
6045# Provide some information about the compiler.
dd184caf 6046echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d9898ee8 6047ac_compiler=`set X $ac_compile; echo $2`
dd184caf 6048{ (ac_try="$ac_compiler --version >&5"
6049case "(($ac_try" in
6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6052esac
6053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 6055 ac_status=$?
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }
dd184caf 6058{ (ac_try="$ac_compiler -v >&5"
6059case "(($ac_try" in
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6062esac
6063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }
dd184caf 6068{ (ac_try="$ac_compiler -V >&5"
6069case "(($ac_try" in
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6072esac
6073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }
6078rm -f a.out
6079
6080# If we don't use `.F' as extension, the preprocessor is not run on the
6081# input file. (Note that this only needs to work for GNU compilers.)
6082ac_save_ext=$ac_ext
6083ac_ext=F
dd184caf 6084{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6085echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d9898ee8 6086if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088else
6089 cat >conftest.$ac_ext <<_ACEOF
6090 program main
6091#ifndef __GNUC__
6092 choke me
6093#endif
6094
6095 end
6096_ACEOF
6097rm -f conftest.$ac_objext
dd184caf 6098if { (ac_try="$ac_compile"
6099case "(($ac_try" in
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6102esac
6103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6105 ac_status=$?
6106 grep -v '^ *+' conftest.er1 >conftest.err
6107 rm -f conftest.er1
6108 cat conftest.err >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 6110 (exit $ac_status); } && {
6111 test -z "$ac_f77_werror_flag" ||
6112 test ! -s conftest.err
6113 } && test -s conftest.$ac_objext; then
d9898ee8 6114 ac_compiler_gnu=yes
6115else
6116 echo "$as_me: failed program was:" >&5
6117sed 's/^/| /' conftest.$ac_ext >&5
6118
dd184caf 6119 ac_compiler_gnu=no
d9898ee8 6120fi
dd184caf 6121
6122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6123ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6124
6125fi
dd184caf 6126{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6127echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d9898ee8 6128ac_ext=$ac_save_ext
6129ac_test_FFLAGS=${FFLAGS+set}
6130ac_save_FFLAGS=$FFLAGS
6131FFLAGS=
dd184caf 6132{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6133echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d9898ee8 6134if test "${ac_cv_prog_f77_g+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6136else
6137 FFLAGS=-g
6138cat >conftest.$ac_ext <<_ACEOF
6139 program main
6140
6141 end
6142_ACEOF
6143rm -f conftest.$ac_objext
dd184caf 6144if { (ac_try="$ac_compile"
6145case "(($ac_try" in
6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6148esac
6149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6151 ac_status=$?
6152 grep -v '^ *+' conftest.er1 >conftest.err
6153 rm -f conftest.er1
6154 cat conftest.err >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 6156 (exit $ac_status); } && {
6157 test -z "$ac_f77_werror_flag" ||
6158 test ! -s conftest.err
6159 } && test -s conftest.$ac_objext; then
d9898ee8 6160 ac_cv_prog_f77_g=yes
6161else
6162 echo "$as_me: failed program was:" >&5
6163sed 's/^/| /' conftest.$ac_ext >&5
6164
dd184caf 6165 ac_cv_prog_f77_g=no
d9898ee8 6166fi
dd184caf 6167
6168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6169
6170fi
dd184caf 6171{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6172echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d9898ee8 6173if test "$ac_test_FFLAGS" = set; then
6174 FFLAGS=$ac_save_FFLAGS
6175elif test $ac_cv_prog_f77_g = yes; then
6176 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6177 FFLAGS="-g -O2"
6178 else
6179 FFLAGS="-g"
6180 fi
6181else
6182 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6183 FFLAGS="-O2"
6184 else
6185 FFLAGS=
6186 fi
6187fi
6188
6189G77=`test $ac_compiler_gnu = yes && echo yes`
6190ac_ext=c
6191ac_cpp='$CPP $CPPFLAGS'
6192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6194ac_compiler_gnu=$ac_cv_c_compiler_gnu
6195
6196
6197
6198# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6199
6200# find the maximum length of command line arguments
dd184caf 6201{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6202echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
d9898ee8 6203if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205else
6206 i=0
6207 teststring="ABCD"
6208
6209 case $build_os in
6210 msdosdjgpp*)
6211 # On DJGPP, this test can blow up pretty badly due to problems in libc
6212 # (any single argument exceeding 2000 bytes causes a buffer overrun
6213 # during glob expansion). Even if it were fixed, the result of this
6214 # check would be larger than it should be.
6215 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6216 ;;
6217
6218 gnu*)
6219 # Under GNU Hurd, this test is not required because there is
6220 # no limit to the length of command line arguments.
6221 # Libtool will interpret -1 as no limit whatsoever
6222 lt_cv_sys_max_cmd_len=-1;
6223 ;;
6224
6225 cygwin* | mingw*)
6226 # On Win9x/ME, this test blows up -- it succeeds, but takes
6227 # about 5 minutes as the teststring grows exponentially.
6228 # Worse, since 9x/ME are not pre-emptively multitasking,
6229 # you end up with a "frozen" computer, even though with patience
6230 # the test eventually succeeds (with a max line length of 256k).
6231 # Instead, let's just punt: use the minimum linelength reported by
6232 # all of the supported platforms: 8192 (on NT/2K/XP).
6233 lt_cv_sys_max_cmd_len=8192;
6234 ;;
6235
6236 amigaos*)
6237 # On AmigaOS with pdksh, this test takes hours, literally.
6238 # So we just punt and use a minimum line length of 8192.
6239 lt_cv_sys_max_cmd_len=8192;
6240 ;;
6241
6242 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6243 # This has been around since 386BSD, at least. Likely further.
6244 if test -x /sbin/sysctl; then
6245 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6246 elif test -x /usr/sbin/sysctl; then
6247 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6248 else
6249 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6250 fi
6251 # And add a safety zone
6252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6254 ;;
6255
6256 interix*)
6257 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6258 lt_cv_sys_max_cmd_len=196608
6259 ;;
6260
6261 osf*)
6262 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6263 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6264 # nice to cause kernel panics so lets avoid the loop below.
6265 # First set a reasonable default.
6266 lt_cv_sys_max_cmd_len=16384
6267 #
6268 if test -x /sbin/sysconfig; then
6269 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6270 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6271 esac
6272 fi
6273 ;;
6274 sco3.2v5*)
6275 lt_cv_sys_max_cmd_len=102400
6276 ;;
6277 sysv5* | sco5v6* | sysv4.2uw2*)
6278 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6279 if test -n "$kargmax"; then
6280 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6281 else
6282 lt_cv_sys_max_cmd_len=32768
6283 fi
6284 ;;
6285 *)
6286 # If test is not a shell built-in, we'll probably end up computing a
6287 # maximum length that is only half of the actual maximum length, but
6288 # we can't tell.
6289 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6290 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6291 = "XX$teststring") >/dev/null 2>&1 &&
6292 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6293 lt_cv_sys_max_cmd_len=$new_result &&
6294 test $i != 17 # 1/2 MB should be enough
6295 do
6296 i=`expr $i + 1`
6297 teststring=$teststring$teststring
6298 done
6299 teststring=
6300 # Add a significant safety factor because C++ compilers can tack on massive
6301 # amounts of additional arguments before passing them to the linker.
6302 # It appears as though 1/2 is a usable value.
6303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6304 ;;
6305 esac
6306
6307fi
6308
6309if test -n $lt_cv_sys_max_cmd_len ; then
dd184caf 6310 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6311echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 6312else
dd184caf 6313 { echo "$as_me:$LINENO: result: none" >&5
6314echo "${ECHO_T}none" >&6; }
d9898ee8 6315fi
6316
6317
6318
6319
6320# Check for command to grab the raw symbol name followed by C symbol from nm.
dd184caf 6321{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6322echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d9898ee8 6323if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6325else
6326
6327# These are sane defaults that work on at least a few old systems.
6328# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6329
6330# Character class describing NM global symbol codes.
6331symcode='[BCDEGRST]'
6332
6333# Regexp to match symbols that can be accessed directly from C.
6334sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6335
6336# Transform an extracted symbol line into a proper C declaration
6337lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6338
6339# Transform an extracted symbol line into symbol name and symbol address
6340lt_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'"
6341
6342# Define system-specific variables.
6343case $host_os in
6344aix*)
6345 symcode='[BCDT]'
6346 ;;
6347cygwin* | mingw* | pw32*)
6348 symcode='[ABCDGISTW]'
6349 ;;
6350hpux*) # Its linker distinguishes data from code symbols
6351 if test "$host_cpu" = ia64; then
6352 symcode='[ABCDEGRST]'
6353 fi
6354 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6355 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'"
6356 ;;
6357linux*)
6358 if test "$host_cpu" = ia64; then
6359 symcode='[ABCDGIRSTW]'
6360 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6361 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'"
6362 fi
6363 ;;
6364irix* | nonstopux*)
6365 symcode='[BCDEGRST]'
6366 ;;
6367osf*)
6368 symcode='[BCDEGQRST]'
6369 ;;
6370solaris*)
6371 symcode='[BDRT]'
6372 ;;
6373sco3.2v5*)
6374 symcode='[DT]'
6375 ;;
6376sysv4.2uw2*)
6377 symcode='[DT]'
6378 ;;
6379sysv5* | sco5v6* | unixware* | OpenUNIX*)
6380 symcode='[ABDT]'
6381 ;;
6382sysv4)
6383 symcode='[DFNSTU]'
6384 ;;
6385esac
6386
6387# Handle CRLF in mingw tool chain
6388opt_cr=
6389case $build_os in
6390mingw*)
6391 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6392 ;;
6393esac
6394
6395# If we're using GNU nm, then use its standard symbol codes.
6396case `$NM -V 2>&1` in
6397*GNU* | *'with BFD'*)
6398 symcode='[ABCDGIRSTW]' ;;
6399esac
6400
6401# Try without a prefix undercore, then with it.
6402for ac_symprfx in "" "_"; do
6403
6404 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6405 symxfrm="\\1 $ac_symprfx\\2 \\2"
6406
6407 # Write the raw and C identifiers.
6408 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6409
6410 # Check to see that the pipe works correctly.
6411 pipe_works=no
6412
6413 rm -f conftest*
6414 cat > conftest.$ac_ext <<EOF
6415#ifdef __cplusplus
6416extern "C" {
6417#endif
6418char nm_test_var;
6419void nm_test_func(){}
6420#ifdef __cplusplus
6421}
6422#endif
6423int main(){nm_test_var='a';nm_test_func();return(0);}
6424EOF
6425
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427 (eval $ac_compile) 2>&5
6428 ac_status=$?
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; then
6431 # Now try to grab the symbols.
6432 nlist=conftest.nm
6433 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6434 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } && test -s "$nlist"; then
6438 # Try sorting and uniquifying the output.
6439 if sort "$nlist" | uniq > "$nlist"T; then
6440 mv -f "$nlist"T "$nlist"
6441 else
6442 rm -f "$nlist"T
6443 fi
6444
6445 # Make sure that we snagged all the symbols we need.
6446 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6447 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6448 cat <<EOF > conftest.$ac_ext
6449#ifdef __cplusplus
6450extern "C" {
6451#endif
6452
6453EOF
6454 # Now generate the symbol file.
6455 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6456
6457 cat <<EOF >> conftest.$ac_ext
6458#if defined (__STDC__) && __STDC__
6459# define lt_ptr_t void *
6460#else
6461# define lt_ptr_t char *
6462# define const
6463#endif
6464
6465/* The mapping between symbol names and symbols. */
6466const struct {
6467 const char *name;
6468 lt_ptr_t address;
6469}
6470lt_preloaded_symbols[] =
6471{
6472EOF
6473 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6474 cat <<\EOF >> conftest.$ac_ext
6475 {0, (lt_ptr_t) 0}
6476};
6477
6478#ifdef __cplusplus
6479}
6480#endif
6481EOF
6482 # Now try linking the two files.
6483 mv conftest.$ac_objext conftstm.$ac_objext
6484 lt_save_LIBS="$LIBS"
6485 lt_save_CFLAGS="$CFLAGS"
6486 LIBS="conftstm.$ac_objext"
6487 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6489 (eval $ac_link) 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6493 pipe_works=yes
6494 fi
6495 LIBS="$lt_save_LIBS"
6496 CFLAGS="$lt_save_CFLAGS"
6497 else
6498 echo "cannot find nm_test_func in $nlist" >&5
6499 fi
6500 else
6501 echo "cannot find nm_test_var in $nlist" >&5
6502 fi
6503 else
6504 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6505 fi
6506 else
6507 echo "$progname: failed program was:" >&5
6508 cat conftest.$ac_ext >&5
6509 fi
6510 rm -f conftest* conftst*
6511
6512 # Do not use the global_symbol_pipe unless it works.
6513 if test "$pipe_works" = yes; then
6514 break
6515 else
6516 lt_cv_sys_global_symbol_pipe=
6517 fi
6518done
6519
6520fi
6521
6522if test -z "$lt_cv_sys_global_symbol_pipe"; then
6523 lt_cv_sys_global_symbol_to_cdecl=
6524fi
6525if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
dd184caf 6526 { echo "$as_me:$LINENO: result: failed" >&5
6527echo "${ECHO_T}failed" >&6; }
d9898ee8 6528else
dd184caf 6529 { echo "$as_me:$LINENO: result: ok" >&5
6530echo "${ECHO_T}ok" >&6; }
d9898ee8 6531fi
6532
dd184caf 6533{ echo "$as_me:$LINENO: checking for objdir" >&5
6534echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d9898ee8 6535if test "${lt_cv_objdir+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6537else
6538 rm -f .libs 2>/dev/null
6539mkdir .libs 2>/dev/null
6540if test -d .libs; then
6541 lt_cv_objdir=.libs
6542else
6543 # MS-DOS does not allow filenames that begin with a dot.
6544 lt_cv_objdir=_libs
6545fi
6546rmdir .libs 2>/dev/null
6547fi
dd184caf 6548{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6549echo "${ECHO_T}$lt_cv_objdir" >&6; }
d9898ee8 6550objdir=$lt_cv_objdir
6551
6552
6553
6554
6555
6556case $host_os in
6557aix3*)
6558 # AIX sometimes has problems with the GCC collect2 program. For some
6559 # reason, if we set the COLLECT_NAMES environment variable, the problems
6560 # vanish in a puff of smoke.
6561 if test "X${COLLECT_NAMES+set}" != Xset; then
6562 COLLECT_NAMES=
6563 export COLLECT_NAMES
6564 fi
6565 ;;
6566esac
6567
6568# Sed substitution that helps us do robust quoting. It backslashifies
6569# metacharacters that are still active within double-quoted strings.
6570Xsed='sed -e 1s/^X//'
6571sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6572
6573# Same as above, but do not quote variable references.
6574double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6575
6576# Sed substitution to delay expansion of an escaped shell variable in a
6577# double_quote_subst'ed string.
6578delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6579
6580# Sed substitution to avoid accidental globbing in evaled expressions
6581no_glob_subst='s/\*/\\\*/g'
6582
6583# Constants:
6584rm="rm -f"
6585
6586# Global variables:
6587default_ofile=libtool
6588can_build_shared=yes
6589
6590# All known linkers require a `.a' archive for static linking (except MSVC,
6591# which needs '.lib').
6592libext=a
6593ltmain="$ac_aux_dir/ltmain.sh"
6594ofile="$default_ofile"
6595with_gnu_ld="$lt_cv_prog_gnu_ld"
6596
6597if test -n "$ac_tool_prefix"; then
6598 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6599set dummy ${ac_tool_prefix}ar; ac_word=$2
dd184caf 6600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6602if test "${ac_cv_prog_AR+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6604else
6605 if test -n "$AR"; then
6606 ac_cv_prog_AR="$AR" # Let the user override the test.
6607else
6608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609for as_dir in $PATH
6610do
6611 IFS=$as_save_IFS
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6615 ac_cv_prog_AR="${ac_tool_prefix}ar"
6616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 break 2
6618 fi
6619done
6620done
dd184caf 6621IFS=$as_save_IFS
d9898ee8 6622
6623fi
6624fi
6625AR=$ac_cv_prog_AR
6626if test -n "$AR"; then
dd184caf 6627 { echo "$as_me:$LINENO: result: $AR" >&5
6628echo "${ECHO_T}$AR" >&6; }
d9898ee8 6629else
dd184caf 6630 { echo "$as_me:$LINENO: result: no" >&5
6631echo "${ECHO_T}no" >&6; }
d9898ee8 6632fi
6633
dd184caf 6634
d9898ee8 6635fi
6636if test -z "$ac_cv_prog_AR"; then
6637 ac_ct_AR=$AR
6638 # Extract the first word of "ar", so it can be a program name with args.
6639set dummy ar; ac_word=$2
dd184caf 6640{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6642if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6644else
6645 if test -n "$ac_ct_AR"; then
6646 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6647else
6648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649for as_dir in $PATH
6650do
6651 IFS=$as_save_IFS
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6655 ac_cv_prog_ac_ct_AR="ar"
6656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 break 2
6658 fi
6659done
6660done
dd184caf 6661IFS=$as_save_IFS
d9898ee8 6662
d9898ee8 6663fi
6664fi
6665ac_ct_AR=$ac_cv_prog_ac_ct_AR
6666if test -n "$ac_ct_AR"; then
dd184caf 6667 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6668echo "${ECHO_T}$ac_ct_AR" >&6; }
d9898ee8 6669else
dd184caf 6670 { echo "$as_me:$LINENO: result: no" >&5
6671echo "${ECHO_T}no" >&6; }
d9898ee8 6672fi
6673
dd184caf 6674 if test "x$ac_ct_AR" = x; then
6675 AR="false"
6676 else
6677 case $cross_compiling:$ac_tool_warned in
6678yes:)
6679{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6680whose name does not start with the host triplet. If you think this
6681configuration is useful to you, please write to autoconf@gnu.org." >&5
6682echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6683whose name does not start with the host triplet. If you think this
6684configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6685ac_tool_warned=yes ;;
6686esac
6687 AR=$ac_ct_AR
6688 fi
d9898ee8 6689else
6690 AR="$ac_cv_prog_AR"
6691fi
6692
6693if test -n "$ac_tool_prefix"; then
6694 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6695set dummy ${ac_tool_prefix}ranlib; ac_word=$2
dd184caf 6696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6698if test "${ac_cv_prog_RANLIB+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6700else
6701 if test -n "$RANLIB"; then
6702 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6703else
6704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705for as_dir in $PATH
6706do
6707 IFS=$as_save_IFS
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6711 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 break 2
6714 fi
6715done
6716done
dd184caf 6717IFS=$as_save_IFS
d9898ee8 6718
6719fi
6720fi
6721RANLIB=$ac_cv_prog_RANLIB
6722if test -n "$RANLIB"; then
dd184caf 6723 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6724echo "${ECHO_T}$RANLIB" >&6; }
d9898ee8 6725else
dd184caf 6726 { echo "$as_me:$LINENO: result: no" >&5
6727echo "${ECHO_T}no" >&6; }
d9898ee8 6728fi
6729
dd184caf 6730
d9898ee8 6731fi
6732if test -z "$ac_cv_prog_RANLIB"; then
6733 ac_ct_RANLIB=$RANLIB
6734 # Extract the first word of "ranlib", so it can be a program name with args.
6735set dummy ranlib; ac_word=$2
dd184caf 6736{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6738if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6740else
6741 if test -n "$ac_ct_RANLIB"; then
6742 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6743else
6744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745for as_dir in $PATH
6746do
6747 IFS=$as_save_IFS
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6751 ac_cv_prog_ac_ct_RANLIB="ranlib"
6752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 break 2
6754 fi
6755done
6756done
dd184caf 6757IFS=$as_save_IFS
d9898ee8 6758
d9898ee8 6759fi
6760fi
6761ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6762if test -n "$ac_ct_RANLIB"; then
dd184caf 6763 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6764echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d9898ee8 6765else
dd184caf 6766 { echo "$as_me:$LINENO: result: no" >&5
6767echo "${ECHO_T}no" >&6; }
d9898ee8 6768fi
6769
dd184caf 6770 if test "x$ac_ct_RANLIB" = x; then
6771 RANLIB=":"
6772 else
6773 case $cross_compiling:$ac_tool_warned in
6774yes:)
6775{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6776whose name does not start with the host triplet. If you think this
6777configuration is useful to you, please write to autoconf@gnu.org." >&5
6778echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6779whose name does not start with the host triplet. If you think this
6780configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6781ac_tool_warned=yes ;;
6782esac
6783 RANLIB=$ac_ct_RANLIB
6784 fi
d9898ee8 6785else
6786 RANLIB="$ac_cv_prog_RANLIB"
6787fi
6788
6789if test -n "$ac_tool_prefix"; then
6790 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6791set dummy ${ac_tool_prefix}strip; ac_word=$2
dd184caf 6792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6794if test "${ac_cv_prog_STRIP+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796else
6797 if test -n "$STRIP"; then
6798 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6799else
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6807 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6810 fi
6811done
6812done
dd184caf 6813IFS=$as_save_IFS
d9898ee8 6814
6815fi
6816fi
6817STRIP=$ac_cv_prog_STRIP
6818if test -n "$STRIP"; then
dd184caf 6819 { echo "$as_me:$LINENO: result: $STRIP" >&5
6820echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 6821else
dd184caf 6822 { echo "$as_me:$LINENO: result: no" >&5
6823echo "${ECHO_T}no" >&6; }
d9898ee8 6824fi
6825
dd184caf 6826
d9898ee8 6827fi
6828if test -z "$ac_cv_prog_STRIP"; then
6829 ac_ct_STRIP=$STRIP
6830 # Extract the first word of "strip", so it can be a program name with args.
6831set dummy strip; ac_word=$2
dd184caf 6832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6834if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6836else
6837 if test -n "$ac_ct_STRIP"; then
6838 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6839else
6840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6847 ac_cv_prog_ac_ct_STRIP="strip"
6848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6850 fi
6851done
6852done
dd184caf 6853IFS=$as_save_IFS
d9898ee8 6854
d9898ee8 6855fi
6856fi
6857ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6858if test -n "$ac_ct_STRIP"; then
dd184caf 6859 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6860echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 6861else
dd184caf 6862 { echo "$as_me:$LINENO: result: no" >&5
6863echo "${ECHO_T}no" >&6; }
d9898ee8 6864fi
6865
dd184caf 6866 if test "x$ac_ct_STRIP" = x; then
6867 STRIP=":"
6868 else
6869 case $cross_compiling:$ac_tool_warned in
6870yes:)
6871{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6872whose name does not start with the host triplet. If you think this
6873configuration is useful to you, please write to autoconf@gnu.org." >&5
6874echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6875whose name does not start with the host triplet. If you think this
6876configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6877ac_tool_warned=yes ;;
6878esac
6879 STRIP=$ac_ct_STRIP
6880 fi
d9898ee8 6881else
6882 STRIP="$ac_cv_prog_STRIP"
6883fi
6884
6885
6886old_CC="$CC"
6887old_CFLAGS="$CFLAGS"
6888
6889# Set sane defaults for various variables
6890test -z "$AR" && AR=ar
6891test -z "$AR_FLAGS" && AR_FLAGS=cru
6892test -z "$AS" && AS=as
6893test -z "$CC" && CC=cc
6894test -z "$LTCC" && LTCC=$CC
6895test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6896test -z "$DLLTOOL" && DLLTOOL=dlltool
6897test -z "$LD" && LD=ld
6898test -z "$LN_S" && LN_S="ln -s"
6899test -z "$MAGIC_CMD" && MAGIC_CMD=file
6900test -z "$NM" && NM=nm
6901test -z "$SED" && SED=sed
6902test -z "$OBJDUMP" && OBJDUMP=objdump
6903test -z "$RANLIB" && RANLIB=:
6904test -z "$STRIP" && STRIP=:
6905test -z "$ac_objext" && ac_objext=o
6906
6907# Determine commands to create old-style static archives.
6908old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6909old_postinstall_cmds='chmod 644 $oldlib'
6910old_postuninstall_cmds=
6911
6912if test -n "$RANLIB"; then
6913 case $host_os in
6914 openbsd*)
6915 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6916 ;;
6917 *)
6918 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6919 ;;
6920 esac
6921 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6922fi
6923
6924for cc_temp in $compiler""; do
6925 case $cc_temp in
6926 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6927 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6928 \-*) ;;
6929 *) break;;
6930 esac
6931done
6932cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6933
6934
6935# Only perform the check for file, if the check method requires it
6936case $deplibs_check_method in
6937file_magic*)
6938 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
dd184caf 6939 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6940echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d9898ee8 6941if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6943else
6944 case $MAGIC_CMD in
6945[\\/*] | ?:[\\/]*)
6946 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6947 ;;
6948*)
6949 lt_save_MAGIC_CMD="$MAGIC_CMD"
6950 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6951 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6952 for ac_dir in $ac_dummy; do
6953 IFS="$lt_save_ifs"
6954 test -z "$ac_dir" && ac_dir=.
6955 if test -f $ac_dir/${ac_tool_prefix}file; then
6956 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6957 if test -n "$file_magic_test_file"; then
6958 case $deplibs_check_method in
6959 "file_magic "*)
6960 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6962 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6963 $EGREP "$file_magic_regex" > /dev/null; then
6964 :
6965 else
6966 cat <<EOF 1>&2
6967
6968*** Warning: the command libtool uses to detect shared libraries,
6969*** $file_magic_cmd, produces output that libtool cannot recognize.
6970*** The result is that libtool may fail to recognize shared libraries
6971*** as such. This will affect the creation of libtool libraries that
6972*** depend on shared libraries, but programs linked with such libtool
6973*** libraries will work regardless of this problem. Nevertheless, you
6974*** may want to report the problem to your system manager and/or to
6975*** bug-libtool@gnu.org
6976
6977EOF
6978 fi ;;
6979 esac
6980 fi
6981 break
6982 fi
6983 done
6984 IFS="$lt_save_ifs"
6985 MAGIC_CMD="$lt_save_MAGIC_CMD"
6986 ;;
6987esac
6988fi
6989
6990MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6991if test -n "$MAGIC_CMD"; then
dd184caf 6992 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6993echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 6994else
dd184caf 6995 { echo "$as_me:$LINENO: result: no" >&5
6996echo "${ECHO_T}no" >&6; }
d9898ee8 6997fi
6998
6999if test -z "$lt_cv_path_MAGIC_CMD"; then
7000 if test -n "$ac_tool_prefix"; then
dd184caf 7001 { echo "$as_me:$LINENO: checking for file" >&5
7002echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d9898ee8 7003if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7005else
7006 case $MAGIC_CMD in
7007[\\/*] | ?:[\\/]*)
7008 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7009 ;;
7010*)
7011 lt_save_MAGIC_CMD="$MAGIC_CMD"
7012 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7013 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7014 for ac_dir in $ac_dummy; do
7015 IFS="$lt_save_ifs"
7016 test -z "$ac_dir" && ac_dir=.
7017 if test -f $ac_dir/file; then
7018 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7019 if test -n "$file_magic_test_file"; then
7020 case $deplibs_check_method in
7021 "file_magic "*)
7022 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7024 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7025 $EGREP "$file_magic_regex" > /dev/null; then
7026 :
7027 else
7028 cat <<EOF 1>&2
7029
7030*** Warning: the command libtool uses to detect shared libraries,
7031*** $file_magic_cmd, produces output that libtool cannot recognize.
7032*** The result is that libtool may fail to recognize shared libraries
7033*** as such. This will affect the creation of libtool libraries that
7034*** depend on shared libraries, but programs linked with such libtool
7035*** libraries will work regardless of this problem. Nevertheless, you
7036*** may want to report the problem to your system manager and/or to
7037*** bug-libtool@gnu.org
7038
7039EOF
7040 fi ;;
7041 esac
7042 fi
7043 break
7044 fi
7045 done
7046 IFS="$lt_save_ifs"
7047 MAGIC_CMD="$lt_save_MAGIC_CMD"
7048 ;;
7049esac
7050fi
7051
7052MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7053if test -n "$MAGIC_CMD"; then
dd184caf 7054 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7055echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7056else
dd184caf 7057 { echo "$as_me:$LINENO: result: no" >&5
7058echo "${ECHO_T}no" >&6; }
d9898ee8 7059fi
7060
7061 else
7062 MAGIC_CMD=:
7063 fi
7064fi
7065
7066 fi
7067 ;;
7068esac
7069
7070enable_dlopen=no
7071enable_win32_dll=no
7072
dd184caf 7073# Check whether --enable-libtool-lock was given.
d9898ee8 7074if test "${enable_libtool_lock+set}" = set; then
dd184caf 7075 enableval=$enable_libtool_lock;
7076fi
d9898ee8 7077
d9898ee8 7078test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7079
7080
dd184caf 7081# Check whether --with-pic was given.
d9898ee8 7082if test "${with_pic+set}" = set; then
dd184caf 7083 withval=$with_pic; pic_mode="$withval"
d9898ee8 7084else
7085 pic_mode=default
dd184caf 7086fi
7087
d9898ee8 7088test -z "$pic_mode" && pic_mode=default
7089
7090# Use C for the default configuration in the libtool script
7091tagname=
7092lt_save_CC="$CC"
7093ac_ext=c
7094ac_cpp='$CPP $CPPFLAGS'
7095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7097ac_compiler_gnu=$ac_cv_c_compiler_gnu
7098
7099
7100# Source file extension for C test sources.
7101ac_ext=c
7102
7103# Object file extension for compiled C test sources.
7104objext=o
7105objext=$objext
7106
7107# Code to be used in simple compile tests
7108lt_simple_compile_test_code="int some_variable = 0;\n"
7109
7110# Code to be used in simple link tests
7111lt_simple_link_test_code='int main(){return(0);}\n'
7112
7113
7114# If no C compiler was specified, use CC.
7115LTCC=${LTCC-"$CC"}
7116
7117# If no C compiler flags were specified, use CFLAGS.
7118LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7119
7120# Allow CC to be a program name with arguments.
7121compiler=$CC
7122
7123
7124# save warnings/boilerplate of simple test code
7125ac_outfile=conftest.$ac_objext
7126printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7127eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7128_lt_compiler_boilerplate=`cat conftest.err`
7129$rm conftest*
7130
7131ac_outfile=conftest.$ac_objext
7132printf "$lt_simple_link_test_code" >conftest.$ac_ext
7133eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7134_lt_linker_boilerplate=`cat conftest.err`
7135$rm conftest*
7136
7137
7138
7139lt_prog_compiler_no_builtin_flag=
7140
7141if test "$GCC" = yes; then
7142 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7143
7144
dd184caf 7145{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7146echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 7147if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149else
7150 lt_cv_prog_compiler_rtti_exceptions=no
7151 ac_outfile=conftest.$ac_objext
7152 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7153 lt_compiler_flag="-fno-rtti -fno-exceptions"
7154 # Insert the option either (1) after the last *FLAGS variable, or
7155 # (2) before a word containing "conftest.", or (3) at the end.
7156 # Note that $ac_compile itself does not contain backslashes and begins
7157 # with a dollar sign (not a hyphen), so the echo should work correctly.
7158 # The option is referenced via a variable to avoid confusing sed.
7159 lt_compile=`echo "$ac_compile" | $SED \
7160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7162 -e 's:$: $lt_compiler_flag:'`
dd184caf 7163 (eval echo "\"\$as_me:7163: $lt_compile\"" >&5)
d9898ee8 7164 (eval "$lt_compile" 2>conftest.err)
7165 ac_status=$?
7166 cat conftest.err >&5
dd184caf 7167 echo "$as_me:7167: \$? = $ac_status" >&5
d9898ee8 7168 if (exit $ac_status) && test -s "$ac_outfile"; then
7169 # The compiler can only warn and ignore the option if not recognized
7170 # So say no if there are warnings other than the usual output.
7171 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7173 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7174 lt_cv_prog_compiler_rtti_exceptions=yes
7175 fi
7176 fi
7177 $rm conftest*
7178
7179fi
dd184caf 7180{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7181echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7182
7183if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7184 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7185else
7186 :
7187fi
7188
7189fi
7190
7191lt_prog_compiler_wl=
7192lt_prog_compiler_pic=
7193lt_prog_compiler_static=
7194
dd184caf 7195{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7196echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 7197
7198 if test "$GCC" = yes; then
7199 lt_prog_compiler_wl='-Wl,'
7200 lt_prog_compiler_static='-static'
7201
7202 case $host_os in
7203 aix*)
7204 # All AIX code is PIC.
7205 if test "$host_cpu" = ia64; then
7206 # AIX 5 now supports IA64 processor
7207 lt_prog_compiler_static='-Bstatic'
7208 fi
7209 ;;
7210
7211 amigaos*)
7212 # FIXME: we need at least 68020 code to build shared libraries, but
7213 # adding the `-m68020' flag to GCC prevents building anything better,
7214 # like `-m68040'.
7215 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7216 ;;
7217
7218 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7219 # PIC is the default for these OSes.
7220 ;;
7221
7222 mingw* | pw32* | os2*)
7223 # This hack is so that the source file can tell whether it is being
7224 # built for inclusion in a dll (and should export symbols for example).
7225 lt_prog_compiler_pic='-DDLL_EXPORT'
7226 ;;
7227
7228 darwin* | rhapsody*)
7229 # PIC is the default on this platform
7230 # Common symbols not allowed in MH_DYLIB files
7231 lt_prog_compiler_pic='-fno-common'
7232 ;;
7233
7234 interix3*)
7235 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7236 # Instead, we relocate shared libraries at runtime.
7237 ;;
7238
7239 msdosdjgpp*)
7240 # Just because we use GCC doesn't mean we suddenly get shared libraries
7241 # on systems that don't support them.
7242 lt_prog_compiler_can_build_shared=no
7243 enable_shared=no
7244 ;;
7245
7246 sysv4*MP*)
7247 if test -d /usr/nec; then
7248 lt_prog_compiler_pic=-Kconform_pic
7249 fi
7250 ;;
7251
7252 hpux*)
7253 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7254 # not for PA HP-UX.
7255 case $host_cpu in
7256 hppa*64*|ia64*)
7257 # +Z the default
7258 ;;
7259 *)
7260 lt_prog_compiler_pic='-fPIC'
7261 ;;
7262 esac
7263 ;;
7264
7265 *)
7266 lt_prog_compiler_pic='-fPIC'
7267 ;;
7268 esac
7269 else
7270 # PORTME Check for flag to pass linker flags through the system compiler.
7271 case $host_os in
7272 aix*)
7273 lt_prog_compiler_wl='-Wl,'
7274 if test "$host_cpu" = ia64; then
7275 # AIX 5 now supports IA64 processor
7276 lt_prog_compiler_static='-Bstatic'
7277 else
7278 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7279 fi
7280 ;;
7281 darwin*)
7282 # PIC is the default on this platform
7283 # Common symbols not allowed in MH_DYLIB files
7284 case $cc_basename in
7285 xlc*)
7286 lt_prog_compiler_pic='-qnocommon'
7287 lt_prog_compiler_wl='-Wl,'
7288 ;;
7289 esac
7290 ;;
7291
7292 mingw* | pw32* | os2*)
7293 # This hack is so that the source file can tell whether it is being
7294 # built for inclusion in a dll (and should export symbols for example).
7295 lt_prog_compiler_pic='-DDLL_EXPORT'
7296 ;;
7297
7298 hpux9* | hpux10* | hpux11*)
7299 lt_prog_compiler_wl='-Wl,'
7300 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7301 # not for PA HP-UX.
7302 case $host_cpu in
7303 hppa*64*|ia64*)
7304 # +Z the default
7305 ;;
7306 *)
7307 lt_prog_compiler_pic='+Z'
7308 ;;
7309 esac
7310 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7311 lt_prog_compiler_static='${wl}-a ${wl}archive'
7312 ;;
7313
7314 irix5* | irix6* | nonstopux*)
7315 lt_prog_compiler_wl='-Wl,'
7316 # PIC (with -KPIC) is the default.
7317 lt_prog_compiler_static='-non_shared'
7318 ;;
7319
7320 newsos6)
7321 lt_prog_compiler_pic='-KPIC'
7322 lt_prog_compiler_static='-Bstatic'
7323 ;;
7324
7325 linux*)
7326 case $cc_basename in
7327 icc* | ecc*)
7328 lt_prog_compiler_wl='-Wl,'
7329 lt_prog_compiler_pic='-KPIC'
7330 lt_prog_compiler_static='-static'
7331 ;;
7332 pgcc* | pgf77* | pgf90* | pgf95*)
7333 # Portland Group compilers (*not* the Pentium gcc compiler,
7334 # which looks to be a dead project)
7335 lt_prog_compiler_wl='-Wl,'
7336 lt_prog_compiler_pic='-fpic'
7337 lt_prog_compiler_static='-Bstatic'
7338 ;;
7339 ccc*)
7340 lt_prog_compiler_wl='-Wl,'
7341 # All Alpha code is PIC.
7342 lt_prog_compiler_static='-non_shared'
7343 ;;
7344 esac
7345 ;;
7346
7347 osf3* | osf4* | osf5*)
7348 lt_prog_compiler_wl='-Wl,'
7349 # All OSF/1 code is PIC.
7350 lt_prog_compiler_static='-non_shared'
7351 ;;
7352
7353 solaris*)
7354 lt_prog_compiler_pic='-KPIC'
7355 lt_prog_compiler_static='-Bstatic'
7356 case $cc_basename in
7357 f77* | f90* | f95*)
7358 lt_prog_compiler_wl='-Qoption ld ';;
7359 *)
7360 lt_prog_compiler_wl='-Wl,';;
7361 esac
7362 ;;
7363
7364 sunos4*)
7365 lt_prog_compiler_wl='-Qoption ld '
7366 lt_prog_compiler_pic='-PIC'
7367 lt_prog_compiler_static='-Bstatic'
7368 ;;
7369
7370 sysv4 | sysv4.2uw2* | sysv4.3*)
7371 lt_prog_compiler_wl='-Wl,'
7372 lt_prog_compiler_pic='-KPIC'
7373 lt_prog_compiler_static='-Bstatic'
7374 ;;
7375
7376 sysv4*MP*)
7377 if test -d /usr/nec ;then
7378 lt_prog_compiler_pic='-Kconform_pic'
7379 lt_prog_compiler_static='-Bstatic'
7380 fi
7381 ;;
7382
7383 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7384 lt_prog_compiler_wl='-Wl,'
7385 lt_prog_compiler_pic='-KPIC'
7386 lt_prog_compiler_static='-Bstatic'
7387 ;;
7388
7389 unicos*)
7390 lt_prog_compiler_wl='-Wl,'
7391 lt_prog_compiler_can_build_shared=no
7392 ;;
7393
7394 uts4*)
7395 lt_prog_compiler_pic='-pic'
7396 lt_prog_compiler_static='-Bstatic'
7397 ;;
7398
7399 *)
7400 lt_prog_compiler_can_build_shared=no
7401 ;;
7402 esac
7403 fi
7404
dd184caf 7405{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7406echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d9898ee8 7407
7408#
7409# Check to make sure the PIC flag actually works.
7410#
7411if test -n "$lt_prog_compiler_pic"; then
7412
dd184caf 7413{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7414echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d9898ee8 7415if test "${lt_prog_compiler_pic_works+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7417else
7418 lt_prog_compiler_pic_works=no
7419 ac_outfile=conftest.$ac_objext
7420 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7421 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7422 # Insert the option either (1) after the last *FLAGS variable, or
7423 # (2) before a word containing "conftest.", or (3) at the end.
7424 # Note that $ac_compile itself does not contain backslashes and begins
7425 # with a dollar sign (not a hyphen), so the echo should work correctly.
7426 # The option is referenced via a variable to avoid confusing sed.
7427 lt_compile=`echo "$ac_compile" | $SED \
7428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7430 -e 's:$: $lt_compiler_flag:'`
dd184caf 7431 (eval echo "\"\$as_me:7431: $lt_compile\"" >&5)
d9898ee8 7432 (eval "$lt_compile" 2>conftest.err)
7433 ac_status=$?
7434 cat conftest.err >&5
dd184caf 7435 echo "$as_me:7435: \$? = $ac_status" >&5
d9898ee8 7436 if (exit $ac_status) && test -s "$ac_outfile"; then
7437 # The compiler can only warn and ignore the option if not recognized
7438 # So say no if there are warnings other than the usual output.
7439 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7441 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7442 lt_prog_compiler_pic_works=yes
7443 fi
7444 fi
7445 $rm conftest*
7446
7447fi
dd184caf 7448{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7449echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d9898ee8 7450
7451if test x"$lt_prog_compiler_pic_works" = xyes; then
7452 case $lt_prog_compiler_pic in
7453 "" | " "*) ;;
7454 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7455 esac
7456else
7457 lt_prog_compiler_pic=
7458 lt_prog_compiler_can_build_shared=no
7459fi
7460
7461fi
7462case $host_os in
7463 # For platforms which do not support PIC, -DPIC is meaningless:
7464 *djgpp*)
7465 lt_prog_compiler_pic=
7466 ;;
7467 *)
7468 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7469 ;;
7470esac
7471
7472#
7473# Check to make sure the static flag actually works.
7474#
7475wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
dd184caf 7476{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7477echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 7478if test "${lt_prog_compiler_static_works+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480else
7481 lt_prog_compiler_static_works=no
7482 save_LDFLAGS="$LDFLAGS"
7483 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7484 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7485 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7486 # The linker can only warn and ignore the option if not recognized
7487 # So say no if there are warnings
7488 if test -s conftest.err; then
7489 # Append any errors to the config.log.
7490 cat conftest.err 1>&5
7491 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7493 if diff conftest.exp conftest.er2 >/dev/null; then
7494 lt_prog_compiler_static_works=yes
7495 fi
7496 else
7497 lt_prog_compiler_static_works=yes
7498 fi
7499 fi
7500 $rm conftest*
7501 LDFLAGS="$save_LDFLAGS"
7502
7503fi
dd184caf 7504{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7505echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
d9898ee8 7506
7507if test x"$lt_prog_compiler_static_works" = xyes; then
7508 :
7509else
7510 lt_prog_compiler_static=
7511fi
7512
7513
dd184caf 7514{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7515echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 7516if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518else
7519 lt_cv_prog_compiler_c_o=no
7520 $rm -r conftest 2>/dev/null
7521 mkdir conftest
7522 cd conftest
7523 mkdir out
7524 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7525
7526 lt_compiler_flag="-o out/conftest2.$ac_objext"
7527 # Insert the option either (1) after the last *FLAGS variable, or
7528 # (2) before a word containing "conftest.", or (3) at the end.
7529 # Note that $ac_compile itself does not contain backslashes and begins
7530 # with a dollar sign (not a hyphen), so the echo should work correctly.
7531 lt_compile=`echo "$ac_compile" | $SED \
7532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7534 -e 's:$: $lt_compiler_flag:'`
dd184caf 7535 (eval echo "\"\$as_me:7535: $lt_compile\"" >&5)
d9898ee8 7536 (eval "$lt_compile" 2>out/conftest.err)
7537 ac_status=$?
7538 cat out/conftest.err >&5
dd184caf 7539 echo "$as_me:7539: \$? = $ac_status" >&5
d9898ee8 7540 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7541 then
7542 # The compiler can only warn and ignore the option if not recognized
7543 # So say no if there are warnings
7544 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7545 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7546 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7547 lt_cv_prog_compiler_c_o=yes
7548 fi
7549 fi
7550 chmod u+w . 2>&5
7551 $rm conftest*
7552 # SGI C++ compiler will create directory out/ii_files/ for
7553 # template instantiation
7554 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7555 $rm out/* && rmdir out
7556 cd ..
7557 rmdir conftest
7558 $rm conftest*
7559
7560fi
dd184caf 7561{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7562echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 7563
7564
7565hard_links="nottested"
7566if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7567 # do not overwrite the value of need_locks provided by the user
dd184caf 7568 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7569echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 7570 hard_links=yes
7571 $rm conftest*
7572 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7573 touch conftest.a
7574 ln conftest.a conftest.b 2>&5 || hard_links=no
7575 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 7576 { echo "$as_me:$LINENO: result: $hard_links" >&5
7577echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 7578 if test "$hard_links" = no; then
7579 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7580echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7581 need_locks=warn
7582 fi
7583else
7584 need_locks=no
7585fi
7586
dd184caf 7587{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7588echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 7589
7590 runpath_var=
7591 allow_undefined_flag=
7592 enable_shared_with_static_runtimes=no
7593 archive_cmds=
7594 archive_expsym_cmds=
7595 old_archive_From_new_cmds=
7596 old_archive_from_expsyms_cmds=
7597 export_dynamic_flag_spec=
7598 whole_archive_flag_spec=
7599 thread_safe_flag_spec=
7600 hardcode_libdir_flag_spec=
7601 hardcode_libdir_flag_spec_ld=
7602 hardcode_libdir_separator=
7603 hardcode_direct=no
7604 hardcode_minus_L=no
7605 hardcode_shlibpath_var=unsupported
7606 link_all_deplibs=unknown
7607 hardcode_automatic=no
7608 module_cmds=
7609 module_expsym_cmds=
7610 always_export_symbols=no
7611 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7612 # include_expsyms should be a list of space-separated symbols to be *always*
7613 # included in the symbol list
7614 include_expsyms=
7615 # exclude_expsyms can be an extended regexp of symbols to exclude
7616 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7617 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7618 # as well as any symbol that contains `d'.
7619 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7620 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7621 # platforms (ab)use it in PIC code, but their linkers get confused if
7622 # the symbol is explicitly referenced. Since portable code cannot
7623 # rely on this symbol name, it's probably fine to never include it in
7624 # preloaded symbol tables.
7625 extract_expsyms_cmds=
7626 # Just being paranoid about ensuring that cc_basename is set.
7627 for cc_temp in $compiler""; do
7628 case $cc_temp in
7629 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7630 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7631 \-*) ;;
7632 *) break;;
7633 esac
7634done
7635cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7636
7637 case $host_os in
7638 cygwin* | mingw* | pw32*)
7639 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7640 # When not using gcc, we currently assume that we are using
7641 # Microsoft Visual C++.
7642 if test "$GCC" != yes; then
7643 with_gnu_ld=no
7644 fi
7645 ;;
7646 interix*)
7647 # we just hope/assume this is gcc and not c89 (= MSVC++)
7648 with_gnu_ld=yes
7649 ;;
7650 openbsd*)
7651 with_gnu_ld=no
7652 ;;
7653 esac
7654
7655 ld_shlibs=yes
7656 if test "$with_gnu_ld" = yes; then
7657 # If archive_cmds runs LD, not CC, wlarc should be empty
7658 wlarc='${wl}'
7659
7660 # Set some defaults for GNU ld with shared library support. These
7661 # are reset later if shared libraries are not supported. Putting them
7662 # here allows them to be overridden if necessary.
7663 runpath_var=LD_RUN_PATH
7664 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7665 export_dynamic_flag_spec='${wl}--export-dynamic'
7666 # ancient GNU ld didn't support --whole-archive et. al.
7667 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7668 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7669 else
7670 whole_archive_flag_spec=
7671 fi
7672 supports_anon_versioning=no
7673 case `$LD -v 2>/dev/null` in
7674 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7675 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7676 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7677 *\ 2.11.*) ;; # other 2.11 versions
7678 *) supports_anon_versioning=yes ;;
7679 esac
7680
7681 # See if GNU ld supports shared libraries.
7682 case $host_os in
7683 aix3* | aix4* | aix5*)
7684 # On AIX/PPC, the GNU linker is very broken
7685 if test "$host_cpu" != ia64; then
7686 ld_shlibs=no
7687 cat <<EOF 1>&2
7688
7689*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7690*** to be unable to reliably create shared libraries on AIX.
7691*** Therefore, libtool is disabling shared libraries support. If you
7692*** really care for shared libraries, you may want to modify your PATH
7693*** so that a non-GNU linker is found, and then restart.
7694
7695EOF
7696 fi
7697 ;;
7698
7699 amigaos*)
7700 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)'
7701 hardcode_libdir_flag_spec='-L$libdir'
7702 hardcode_minus_L=yes
7703
7704 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7705 # that the semantics of dynamic libraries on AmigaOS, at least up
7706 # to version 4, is to share data among multiple programs linked
7707 # with the same dynamic library. Since this doesn't match the
7708 # behavior of shared libraries on other platforms, we can't use
7709 # them.
7710 ld_shlibs=no
7711 ;;
7712
7713 beos*)
7714 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7715 allow_undefined_flag=unsupported
7716 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7717 # support --undefined. This deserves some investigation. FIXME
7718 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7719 else
7720 ld_shlibs=no
7721 fi
7722 ;;
7723
7724 cygwin* | mingw* | pw32*)
7725 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7726 # as there is no search path for DLLs.
7727 hardcode_libdir_flag_spec='-L$libdir'
7728 allow_undefined_flag=unsupported
7729 always_export_symbols=no
7730 enable_shared_with_static_runtimes=yes
7731 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7732
7733 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7735 # If the export-symbols file already is a .def file (1st line
7736 # is EXPORTS), use it as is; otherwise, prepend...
7737 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7738 cp $export_symbols $output_objdir/$soname.def;
7739 else
7740 echo EXPORTS > $output_objdir/$soname.def;
7741 cat $export_symbols >> $output_objdir/$soname.def;
7742 fi~
7743 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7744 else
7745 ld_shlibs=no
7746 fi
7747 ;;
7748
7749 interix3*)
7750 hardcode_direct=no
7751 hardcode_shlibpath_var=no
7752 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7753 export_dynamic_flag_spec='${wl}-E'
7754 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7755 # Instead, shared libraries are loaded at an image base (0x10000000 by
7756 # default) and relocated if they conflict, which is a slow very memory
7757 # consuming and fragmenting process. To avoid this, we pick a random,
7758 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7759 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7760 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7761 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'
7762 ;;
7763
7764 linux*)
7765 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7766 tmp_addflag=
7767 case $cc_basename,$host_cpu in
7768 pgcc*) # Portland Group C compiler
7769 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'
7770 tmp_addflag=' $pic_flag'
7771 ;;
7772 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7773 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'
7774 tmp_addflag=' $pic_flag -Mnomain' ;;
7775 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7776 tmp_addflag=' -i_dynamic' ;;
7777 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7778 tmp_addflag=' -i_dynamic -nofor_main' ;;
7779 ifc* | ifort*) # Intel Fortran compiler
7780 tmp_addflag=' -nofor_main' ;;
7781 esac
7782 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7783
7784 if test $supports_anon_versioning = yes; then
7785 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7786 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7787 $echo "local: *; };" >> $output_objdir/$libname.ver~
7788 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7789 fi
7790 else
7791 ld_shlibs=no
7792 fi
7793 ;;
7794
7795 netbsd*)
7796 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7797 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7798 wlarc=
7799 else
7800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7802 fi
7803 ;;
7804
7805 solaris*)
7806 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7807 ld_shlibs=no
7808 cat <<EOF 1>&2
7809
7810*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7811*** create shared libraries on Solaris systems. Therefore, libtool
7812*** is disabling shared libraries support. We urge you to upgrade GNU
7813*** binutils to release 2.9.1 or newer. Another option is to modify
7814*** your PATH or compiler configuration so that the native linker is
7815*** used, and then restart.
7816
7817EOF
7818 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7820 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7821 else
7822 ld_shlibs=no
7823 fi
7824 ;;
7825
7826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7827 case `$LD -v 2>&1` in
7828 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7829 ld_shlibs=no
7830 cat <<_LT_EOF 1>&2
7831
7832*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7833*** reliably create shared libraries on SCO systems. Therefore, libtool
7834*** is disabling shared libraries support. We urge you to upgrade GNU
7835*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7836*** your PATH or compiler configuration so that the native linker is
7837*** used, and then restart.
7838
7839_LT_EOF
7840 ;;
7841 *)
7842 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7843 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7846 else
7847 ld_shlibs=no
7848 fi
7849 ;;
7850 esac
7851 ;;
7852
7853 sunos4*)
7854 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7855 wlarc=
7856 hardcode_direct=yes
7857 hardcode_shlibpath_var=no
7858 ;;
7859
7860 *)
7861 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7863 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7864 else
7865 ld_shlibs=no
7866 fi
7867 ;;
7868 esac
7869
7870 if test "$ld_shlibs" = no; then
7871 runpath_var=
7872 hardcode_libdir_flag_spec=
7873 export_dynamic_flag_spec=
7874 whole_archive_flag_spec=
7875 fi
7876 else
7877 # PORTME fill in a description of your system's linker (not GNU ld)
7878 case $host_os in
7879 aix3*)
7880 allow_undefined_flag=unsupported
7881 always_export_symbols=yes
7882 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'
7883 # Note: this linker hardcodes the directories in LIBPATH if there
7884 # are no directories specified by -L.
7885 hardcode_minus_L=yes
7886 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7887 # Neither direct hardcoding nor static linking is supported with a
7888 # broken collect2.
7889 hardcode_direct=unsupported
7890 fi
7891 ;;
7892
7893 aix4* | aix5*)
7894 if test "$host_cpu" = ia64; then
7895 # On IA64, the linker does run time linking by default, so we don't
7896 # have to do anything special.
7897 aix_use_runtimelinking=no
7898 exp_sym_flag='-Bexport'
7899 no_entry_flag=""
7900 else
7901 # If we're using GNU nm, then we don't want the "-C" option.
7902 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7903 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7904 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'
7905 else
7906 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'
7907 fi
7908 aix_use_runtimelinking=no
7909
7910 # Test if we are trying to use run time linking or normal
7911 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7912 # need to do runtime linking.
7913 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7914 for ld_flag in $LDFLAGS; do
7915 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7916 aix_use_runtimelinking=yes
7917 break
7918 fi
7919 done
7920 ;;
7921 esac
7922
7923 exp_sym_flag='-bexport'
7924 no_entry_flag='-bnoentry'
7925 fi
7926
7927 # When large executables or shared objects are built, AIX ld can
7928 # have problems creating the table of contents. If linking a library
7929 # or program results in "error TOC overflow" add -mminimal-toc to
7930 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7931 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7932
7933 archive_cmds=''
7934 hardcode_direct=yes
7935 hardcode_libdir_separator=':'
7936 link_all_deplibs=yes
7937
7938 if test "$GCC" = yes; then
7939 case $host_os in aix4.[012]|aix4.[012].*)
7940 # We only want to do this on AIX 4.2 and lower, the check
7941 # below for broken collect2 doesn't work under 4.3+
7942 collect2name=`${CC} -print-prog-name=collect2`
7943 if test -f "$collect2name" && \
7944 strings "$collect2name" | grep resolve_lib_name >/dev/null
7945 then
7946 # We have reworked collect2
7947 hardcode_direct=yes
7948 else
7949 # We have old collect2
7950 hardcode_direct=unsupported
7951 # It fails to find uninstalled libraries when the uninstalled
7952 # path is not listed in the libpath. Setting hardcode_minus_L
7953 # to unsupported forces relinking
7954 hardcode_minus_L=yes
7955 hardcode_libdir_flag_spec='-L$libdir'
7956 hardcode_libdir_separator=
7957 fi
7958 ;;
7959 esac
7960 shared_flag='-shared'
7961 if test "$aix_use_runtimelinking" = yes; then
7962 shared_flag="$shared_flag "'${wl}-G'
7963 fi
7964 else
7965 # not using gcc
7966 if test "$host_cpu" = ia64; then
7967 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7968 # chokes on -Wl,-G. The following line is correct:
7969 shared_flag='-G'
7970 else
7971 if test "$aix_use_runtimelinking" = yes; then
7972 shared_flag='${wl}-G'
7973 else
7974 shared_flag='${wl}-bM:SRE'
7975 fi
7976 fi
7977 fi
7978
7979 # It seems that -bexpall does not export symbols beginning with
7980 # underscore (_), so it is better to generate a list of symbols to export.
7981 always_export_symbols=yes
7982 if test "$aix_use_runtimelinking" = yes; then
7983 # Warning - without using the other runtime loading flags (-brtl),
7984 # -berok will link without error, but may produce a broken library.
7985 allow_undefined_flag='-berok'
7986 # Determine the default libpath from the value encoded in an empty executable.
7987 cat >conftest.$ac_ext <<_ACEOF
7988/* confdefs.h. */
7989_ACEOF
7990cat confdefs.h >>conftest.$ac_ext
7991cat >>conftest.$ac_ext <<_ACEOF
7992/* end confdefs.h. */
7993
7994int
7995main ()
7996{
7997
7998 ;
7999 return 0;
8000}
8001_ACEOF
8002rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8003if { (ac_try="$ac_link"
8004case "(($ac_try" in
8005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006 *) ac_try_echo=$ac_try;;
8007esac
8008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009 (eval "$ac_link") 2>conftest.er1
d9898ee8 8010 ac_status=$?
8011 grep -v '^ *+' conftest.er1 >conftest.err
8012 rm -f conftest.er1
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8015 (exit $ac_status); } && {
8016 test -z "$ac_c_werror_flag" ||
8017 test ! -s conftest.err
8018 } && test -s conftest$ac_exeext &&
8019 $as_test_x conftest$ac_exeext; then
d9898ee8 8020
8021aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8022}'`
8023# Check for a 64-bit object if we didn't find anything.
8024if 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; }
8025}'`; fi
8026else
8027 echo "$as_me: failed program was:" >&5
8028sed 's/^/| /' conftest.$ac_ext >&5
8029
dd184caf 8030
d9898ee8 8031fi
dd184caf 8032
8033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8034 conftest$ac_exeext conftest.$ac_ext
8035if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8036
8037 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8038 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"
8039 else
8040 if test "$host_cpu" = ia64; then
8041 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8042 allow_undefined_flag="-z nodefs"
8043 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"
8044 else
8045 # Determine the default libpath from the value encoded in an empty executable.
8046 cat >conftest.$ac_ext <<_ACEOF
8047/* confdefs.h. */
8048_ACEOF
8049cat confdefs.h >>conftest.$ac_ext
8050cat >>conftest.$ac_ext <<_ACEOF
8051/* end confdefs.h. */
8052
8053int
8054main ()
8055{
8056
8057 ;
8058 return 0;
8059}
8060_ACEOF
8061rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8062if { (ac_try="$ac_link"
8063case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066esac
8067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_link") 2>conftest.er1
d9898ee8 8069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8074 (exit $ac_status); } && {
8075 test -z "$ac_c_werror_flag" ||
8076 test ! -s conftest.err
8077 } && test -s conftest$ac_exeext &&
8078 $as_test_x conftest$ac_exeext; then
d9898ee8 8079
8080aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8081}'`
8082# Check for a 64-bit object if we didn't find anything.
8083if 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; }
8084}'`; fi
8085else
8086 echo "$as_me: failed program was:" >&5
8087sed 's/^/| /' conftest.$ac_ext >&5
8088
dd184caf 8089
d9898ee8 8090fi
dd184caf 8091
8092rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8093 conftest$ac_exeext conftest.$ac_ext
8094if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8095
8096 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8097 # Warning - without using the other run time loading flags,
8098 # -berok will link without error, but may produce a broken library.
8099 no_undefined_flag=' ${wl}-bernotok'
8100 allow_undefined_flag=' ${wl}-berok'
8101 # Exported symbols can be pulled into shared objects from archives
8102 whole_archive_flag_spec='$convenience'
8103 archive_cmds_need_lc=yes
8104 # This is similar to how AIX traditionally builds its shared libraries.
8105 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'
8106 fi
8107 fi
8108 ;;
8109
8110 amigaos*)
8111 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)'
8112 hardcode_libdir_flag_spec='-L$libdir'
8113 hardcode_minus_L=yes
8114 # see comment about different semantics on the GNU ld section
8115 ld_shlibs=no
8116 ;;
8117
8118 bsdi[45]*)
8119 export_dynamic_flag_spec=-rdynamic
8120 ;;
8121
8122 cygwin* | mingw* | pw32*)
8123 # When not using gcc, we currently assume that we are using
8124 # Microsoft Visual C++.
8125 # hardcode_libdir_flag_spec is actually meaningless, as there is
8126 # no search path for DLLs.
8127 hardcode_libdir_flag_spec=' '
8128 allow_undefined_flag=unsupported
8129 # Tell ltmain to make .lib files, not .a files.
8130 libext=lib
8131 # Tell ltmain to make .dll files, not .so files.
8132 shrext_cmds=".dll"
8133 # FIXME: Setting linknames here is a bad hack.
8134 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8135 # The linker will automatically build a .lib file if we build a DLL.
8136 old_archive_From_new_cmds='true'
8137 # FIXME: Should let the user specify the lib program.
8138 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8139 fix_srcfile_path='`cygpath -w "$srcfile"`'
8140 enable_shared_with_static_runtimes=yes
8141 ;;
8142
8143 darwin* | rhapsody*)
8144 case $host_os in
8145 rhapsody* | darwin1.[012])
8146 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8147 ;;
8148 *) # Darwin 1.3 on
8149 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8150 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8151 else
8152 case ${MACOSX_DEPLOYMENT_TARGET} in
8153 10.[012])
8154 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8155 ;;
8156 10.*)
8157 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8158 ;;
8159 esac
8160 fi
8161 ;;
8162 esac
8163 archive_cmds_need_lc=no
8164 hardcode_direct=no
8165 hardcode_automatic=yes
8166 hardcode_shlibpath_var=unsupported
8167 whole_archive_flag_spec=''
8168 link_all_deplibs=yes
8169 if test "$GCC" = yes ; then
8170 output_verbose_link_cmd='echo'
8171 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8172 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8173 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8174 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}'
8175 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}'
8176 else
8177 case $cc_basename in
8178 xlc*)
8179 output_verbose_link_cmd='echo'
8180 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8181 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8182 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8183 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}'
8184 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}'
8185 ;;
8186 *)
8187 ld_shlibs=no
8188 ;;
8189 esac
8190 fi
8191 ;;
8192
8193 dgux*)
8194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8195 hardcode_libdir_flag_spec='-L$libdir'
8196 hardcode_shlibpath_var=no
8197 ;;
8198
8199 freebsd1*)
8200 ld_shlibs=no
8201 ;;
8202
8203 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8204 # support. Future versions do this automatically, but an explicit c++rt0.o
8205 # does not break anything, and helps significantly (at the cost of a little
8206 # extra space).
8207 freebsd2.2*)
8208 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8209 hardcode_libdir_flag_spec='-R$libdir'
8210 hardcode_direct=yes
8211 hardcode_shlibpath_var=no
8212 ;;
8213
8214 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8215 freebsd2*)
8216 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8217 hardcode_direct=yes
8218 hardcode_minus_L=yes
8219 hardcode_shlibpath_var=no
8220 ;;
8221
8222 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8223 freebsd* | kfreebsd*-gnu | dragonfly*)
8224 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8225 hardcode_libdir_flag_spec='-R$libdir'
8226 hardcode_direct=yes
8227 hardcode_shlibpath_var=no
8228 ;;
8229
8230 hpux9*)
8231 if test "$GCC" = yes; then
8232 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'
8233 else
8234 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'
8235 fi
8236 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8237 hardcode_libdir_separator=:
8238 hardcode_direct=yes
8239
8240 # hardcode_minus_L: Not really in the search PATH,
8241 # but as the default location of the library.
8242 hardcode_minus_L=yes
8243 export_dynamic_flag_spec='${wl}-E'
8244 ;;
8245
8246 hpux10*)
8247 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8248 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8249 else
8250 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8251 fi
8252 if test "$with_gnu_ld" = no; then
8253 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8254 hardcode_libdir_separator=:
8255
8256 hardcode_direct=yes
8257 export_dynamic_flag_spec='${wl}-E'
8258
8259 # hardcode_minus_L: Not really in the search PATH,
8260 # but as the default location of the library.
8261 hardcode_minus_L=yes
8262 fi
8263 ;;
8264
8265 hpux11*)
8266 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8267 case $host_cpu in
8268 hppa*64*)
8269 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8270 ;;
8271 ia64*)
8272 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8273 ;;
8274 *)
8275 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8276 ;;
8277 esac
8278 else
8279 case $host_cpu in
8280 hppa*64*)
8281 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8282 ;;
8283 ia64*)
8284 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8285 ;;
8286 *)
8287 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8288 ;;
8289 esac
8290 fi
8291 if test "$with_gnu_ld" = no; then
8292 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8293 hardcode_libdir_separator=:
8294
8295 case $host_cpu in
8296 hppa*64*|ia64*)
8297 hardcode_libdir_flag_spec_ld='+b $libdir'
8298 hardcode_direct=no
8299 hardcode_shlibpath_var=no
8300 ;;
8301 *)
8302 hardcode_direct=yes
8303 export_dynamic_flag_spec='${wl}-E'
8304
8305 # hardcode_minus_L: Not really in the search PATH,
8306 # but as the default location of the library.
8307 hardcode_minus_L=yes
8308 ;;
8309 esac
8310 fi
8311 ;;
8312
8313 irix5* | irix6* | nonstopux*)
8314 if test "$GCC" = yes; then
8315 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'
8316 else
8317 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'
8318 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8319 fi
8320 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8321 hardcode_libdir_separator=:
8322 link_all_deplibs=yes
8323 ;;
8324
8325 netbsd*)
8326 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8328 else
8329 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8330 fi
8331 hardcode_libdir_flag_spec='-R$libdir'
8332 hardcode_direct=yes
8333 hardcode_shlibpath_var=no
8334 ;;
8335
8336 newsos6)
8337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8338 hardcode_direct=yes
8339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8340 hardcode_libdir_separator=:
8341 hardcode_shlibpath_var=no
8342 ;;
8343
8344 openbsd*)
8345 hardcode_direct=yes
8346 hardcode_shlibpath_var=no
8347 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8348 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8349 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8350 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8351 export_dynamic_flag_spec='${wl}-E'
8352 else
8353 case $host_os in
8354 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8355 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8356 hardcode_libdir_flag_spec='-R$libdir'
8357 ;;
8358 *)
8359 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8360 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8361 ;;
8362 esac
8363 fi
8364 ;;
8365
8366 os2*)
8367 hardcode_libdir_flag_spec='-L$libdir'
8368 hardcode_minus_L=yes
8369 allow_undefined_flag=unsupported
8370 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'
8371 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8372 ;;
8373
8374 osf3*)
8375 if test "$GCC" = yes; then
8376 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8377 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'
8378 else
8379 allow_undefined_flag=' -expect_unresolved \*'
8380 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'
8381 fi
8382 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8383 hardcode_libdir_separator=:
8384 ;;
8385
8386 osf4* | osf5*) # as osf3* with the addition of -msym flag
8387 if test "$GCC" = yes; then
8388 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8389 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'
8390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8391 else
8392 allow_undefined_flag=' -expect_unresolved \*'
8393 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'
8394 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8395 $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'
8396
8397 # Both c and cxx compiler support -rpath directly
8398 hardcode_libdir_flag_spec='-rpath $libdir'
8399 fi
8400 hardcode_libdir_separator=:
8401 ;;
8402
8403 solaris*)
8404 no_undefined_flag=' -z text'
8405 if test "$GCC" = yes; then
8406 wlarc='${wl}'
8407 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8408 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8409 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8410 else
8411 wlarc=''
8412 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8413 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8414 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8415 fi
8416 hardcode_libdir_flag_spec='-R$libdir'
8417 hardcode_shlibpath_var=no
8418 case $host_os in
8419 solaris2.[0-5] | solaris2.[0-5].*) ;;
8420 *)
8421 # The compiler driver will combine linker options so we
8422 # cannot just pass the convience library names through
8423 # without $wl, iff we do not link with $LD.
8424 # Luckily, gcc supports the same syntax we need for Sun Studio.
8425 # Supported since Solaris 2.6 (maybe 2.5.1?)
8426 case $wlarc in
8427 '')
8428 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8429 *)
8430 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' ;;
8431 esac ;;
8432 esac
8433 link_all_deplibs=yes
8434 ;;
8435
8436 sunos4*)
8437 if test "x$host_vendor" = xsequent; then
8438 # Use $CC to link under sequent, because it throws in some extra .o
8439 # files that make .init and .fini sections work.
8440 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8441 else
8442 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8443 fi
8444 hardcode_libdir_flag_spec='-L$libdir'
8445 hardcode_direct=yes
8446 hardcode_minus_L=yes
8447 hardcode_shlibpath_var=no
8448 ;;
8449
8450 sysv4)
8451 case $host_vendor in
8452 sni)
8453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8454 hardcode_direct=yes # is this really true???
8455 ;;
8456 siemens)
8457 ## LD is ld it makes a PLAMLIB
8458 ## CC just makes a GrossModule.
8459 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8460 reload_cmds='$CC -r -o $output$reload_objs'
8461 hardcode_direct=no
8462 ;;
8463 motorola)
8464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8465 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8466 ;;
8467 esac
8468 runpath_var='LD_RUN_PATH'
8469 hardcode_shlibpath_var=no
8470 ;;
8471
8472 sysv4.3*)
8473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8474 hardcode_shlibpath_var=no
8475 export_dynamic_flag_spec='-Bexport'
8476 ;;
8477
8478 sysv4*MP*)
8479 if test -d /usr/nec; then
8480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8481 hardcode_shlibpath_var=no
8482 runpath_var=LD_RUN_PATH
8483 hardcode_runpath_var=yes
8484 ld_shlibs=yes
8485 fi
8486 ;;
8487
8488 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8489 no_undefined_flag='${wl}-z,text'
8490 archive_cmds_need_lc=no
8491 hardcode_shlibpath_var=no
8492 runpath_var='LD_RUN_PATH'
8493
8494 if test "$GCC" = yes; then
8495 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8496 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8497 else
8498 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8499 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8500 fi
8501 ;;
8502
8503 sysv5* | sco3.2v5* | sco5v6*)
8504 # Note: We can NOT use -z defs as we might desire, because we do not
8505 # link with -lc, and that would cause any symbols used from libc to
8506 # always be unresolved, which means just about no library would
8507 # ever link correctly. If we're not using GNU ld we use -z text
8508 # though, which does catch some bad symbols but isn't as heavy-handed
8509 # as -z defs.
8510 no_undefined_flag='${wl}-z,text'
8511 allow_undefined_flag='${wl}-z,nodefs'
8512 archive_cmds_need_lc=no
8513 hardcode_shlibpath_var=no
8514 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8515 hardcode_libdir_separator=':'
8516 link_all_deplibs=yes
8517 export_dynamic_flag_spec='${wl}-Bexport'
8518 runpath_var='LD_RUN_PATH'
8519
8520 if test "$GCC" = yes; then
8521 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8522 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8523 else
8524 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8525 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8526 fi
8527 ;;
8528
8529 uts4*)
8530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8531 hardcode_libdir_flag_spec='-L$libdir'
8532 hardcode_shlibpath_var=no
8533 ;;
8534
8535 *)
8536 ld_shlibs=no
8537 ;;
8538 esac
8539 fi
8540
dd184caf 8541{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8542echo "${ECHO_T}$ld_shlibs" >&6; }
d9898ee8 8543test "$ld_shlibs" = no && can_build_shared=no
8544
8545#
8546# Do we need to explicitly link libc?
8547#
8548case "x$archive_cmds_need_lc" in
8549x|xyes)
8550 # Assume -lc should be added
8551 archive_cmds_need_lc=yes
8552
8553 if test "$enable_shared" = yes && test "$GCC" = yes; then
8554 case $archive_cmds in
8555 *'~'*)
8556 # FIXME: we may have to deal with multi-command sequences.
8557 ;;
8558 '$CC '*)
8559 # Test whether the compiler implicitly links with -lc since on some
8560 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8561 # to ld, don't add -lc before -lgcc.
dd184caf 8562 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8563echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 8564 $rm conftest*
8565 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8566
8567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8568 (eval $ac_compile) 2>&5
8569 ac_status=$?
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } 2>conftest.err; then
8572 soname=conftest
8573 lib=conftest
8574 libobjs=conftest.$ac_objext
8575 deplibs=
8576 wl=$lt_prog_compiler_wl
8577 pic_flag=$lt_prog_compiler_pic
8578 compiler_flags=-v
8579 linker_flags=-v
8580 verstring=
8581 output_objdir=.
8582 libname=conftest
8583 lt_save_allow_undefined_flag=$allow_undefined_flag
8584 allow_undefined_flag=
8585 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8586 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8587 ac_status=$?
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }
8590 then
8591 archive_cmds_need_lc=no
8592 else
8593 archive_cmds_need_lc=yes
8594 fi
8595 allow_undefined_flag=$lt_save_allow_undefined_flag
8596 else
8597 cat conftest.err 1>&5
8598 fi
8599 $rm conftest*
dd184caf 8600 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8601echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d9898ee8 8602 ;;
8603 esac
8604 fi
8605 ;;
8606esac
8607
dd184caf 8608{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8609echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 8610library_names_spec=
8611libname_spec='lib$name'
8612soname_spec=
8613shrext_cmds=".so"
8614postinstall_cmds=
8615postuninstall_cmds=
8616finish_cmds=
8617finish_eval=
8618shlibpath_var=
8619shlibpath_overrides_runpath=unknown
8620version_type=none
8621dynamic_linker="$host_os ld.so"
8622sys_lib_dlsearch_path_spec="/lib /usr/lib"
8623if test "$GCC" = yes; then
8624 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8625 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8626 # if the path contains ";" then we assume it to be the separator
8627 # otherwise default to the standard path separator (i.e. ":") - it is
8628 # assumed that no part of a normal pathname contains ";" but that should
8629 # okay in the real world where ";" in dirpaths is itself problematic.
8630 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8631 else
8632 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8633 fi
8634else
8635 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8636fi
8637need_lib_prefix=unknown
8638hardcode_into_libs=no
8639
8640# when you set need_version to no, make sure it does not cause -set_version
8641# flags to be left without arguments
8642need_version=unknown
8643
8644case $host_os in
8645aix3*)
8646 version_type=linux
8647 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8648 shlibpath_var=LIBPATH
8649
8650 # AIX 3 has no versioning support, so we append a major version to the name.
8651 soname_spec='${libname}${release}${shared_ext}$major'
8652 ;;
8653
8654aix4* | aix5*)
8655 version_type=linux
8656 need_lib_prefix=no
8657 need_version=no
8658 hardcode_into_libs=yes
8659 if test "$host_cpu" = ia64; then
8660 # AIX 5 supports IA64
8661 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8662 shlibpath_var=LD_LIBRARY_PATH
8663 else
8664 # With GCC up to 2.95.x, collect2 would create an import file
8665 # for dependence libraries. The import file would start with
8666 # the line `#! .'. This would cause the generated library to
8667 # depend on `.', always an invalid library. This was fixed in
8668 # development snapshots of GCC prior to 3.0.
8669 case $host_os in
8670 aix4 | aix4.[01] | aix4.[01].*)
8671 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8672 echo ' yes '
8673 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8674 :
8675 else
8676 can_build_shared=no
8677 fi
8678 ;;
8679 esac
8680 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8681 # soname into executable. Probably we can add versioning support to
8682 # collect2, so additional links can be useful in future.
8683 if test "$aix_use_runtimelinking" = yes; then
8684 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8685 # instead of lib<name>.a to let people know that these are not
8686 # typical AIX shared libraries.
8687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8688 else
8689 # We preserve .a as extension for shared libraries through AIX4.2
8690 # and later when we are not doing run time linking.
8691 library_names_spec='${libname}${release}.a $libname.a'
8692 soname_spec='${libname}${release}${shared_ext}$major'
8693 fi
8694 shlibpath_var=LIBPATH
8695 fi
8696 ;;
8697
8698amigaos*)
8699 library_names_spec='$libname.ixlibrary $libname.a'
8700 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8701 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'
8702 ;;
8703
8704beos*)
8705 library_names_spec='${libname}${shared_ext}'
8706 dynamic_linker="$host_os ld.so"
8707 shlibpath_var=LIBRARY_PATH
8708 ;;
8709
8710bsdi[45]*)
8711 version_type=linux
8712 need_version=no
8713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8714 soname_spec='${libname}${release}${shared_ext}$major'
8715 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8716 shlibpath_var=LD_LIBRARY_PATH
8717 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8718 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8719 # the default ld.so.conf also contains /usr/contrib/lib and
8720 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8721 # libtool to hard-code these into programs
8722 ;;
8723
8724cygwin* | mingw* | pw32*)
8725 version_type=windows
8726 shrext_cmds=".dll"
8727 need_version=no
8728 need_lib_prefix=no
8729
8730 case $GCC,$host_os in
8731 yes,cygwin* | yes,mingw* | yes,pw32*)
8732 library_names_spec='$libname.dll.a'
8733 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8734 postinstall_cmds='base_file=`basename \${file}`~
8735 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8736 dldir=$destdir/`dirname \$dlpath`~
8737 test -d \$dldir || mkdir -p \$dldir~
8738 $install_prog $dir/$dlname \$dldir/$dlname~
8739 chmod a+x \$dldir/$dlname'
8740 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8741 dlpath=$dir/\$dldll~
8742 $rm \$dlpath'
8743 shlibpath_overrides_runpath=yes
8744
8745 case $host_os in
8746 cygwin*)
8747 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8748 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8749 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8750 ;;
8751 mingw*)
8752 # MinGW DLLs use traditional 'lib' prefix
8753 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8754 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8755 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8756 # It is most probably a Windows format PATH printed by
8757 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8758 # path with ; separators, and with drive letters. We can handle the
8759 # drive letters (cygwin fileutils understands them), so leave them,
8760 # especially as we might pass files found there to a mingw objdump,
8761 # which wouldn't understand a cygwinified path. Ahh.
8762 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8763 else
8764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8765 fi
8766 ;;
8767 pw32*)
8768 # pw32 DLLs use 'pw' prefix rather than 'lib'
8769 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8770 ;;
8771 esac
8772 ;;
8773
8774 *)
8775 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8776 ;;
8777 esac
8778 dynamic_linker='Win32 ld.exe'
8779 # FIXME: first we should search . and the directory the executable is in
8780 shlibpath_var=PATH
8781 ;;
8782
8783darwin* | rhapsody*)
8784 dynamic_linker="$host_os dyld"
8785 version_type=darwin
8786 need_lib_prefix=no
8787 need_version=no
8788 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8789 soname_spec='${libname}${release}${major}$shared_ext'
8790 shlibpath_overrides_runpath=yes
8791 shlibpath_var=DYLD_LIBRARY_PATH
8792 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8793 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8794 if test "$GCC" = yes; then
8795 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"`
8796 else
8797 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8798 fi
8799 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8800 ;;
8801
8802dgux*)
8803 version_type=linux
8804 need_lib_prefix=no
8805 need_version=no
8806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8807 soname_spec='${libname}${release}${shared_ext}$major'
8808 shlibpath_var=LD_LIBRARY_PATH
8809 ;;
8810
8811freebsd1*)
8812 dynamic_linker=no
8813 ;;
8814
8815kfreebsd*-gnu)
8816 version_type=linux
8817 need_lib_prefix=no
8818 need_version=no
8819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8820 soname_spec='${libname}${release}${shared_ext}$major'
8821 shlibpath_var=LD_LIBRARY_PATH
8822 shlibpath_overrides_runpath=no
8823 hardcode_into_libs=yes
8824 dynamic_linker='GNU ld.so'
8825 ;;
8826
8827freebsd* | dragonfly*)
8828 # DragonFly does not have aout. When/if they implement a new
8829 # versioning mechanism, adjust this.
8830 if test -x /usr/bin/objformat; then
8831 objformat=`/usr/bin/objformat`
8832 else
8833 case $host_os in
8834 freebsd[123]*) objformat=aout ;;
8835 *) objformat=elf ;;
8836 esac
8837 fi
8838 version_type=freebsd-$objformat
8839 case $version_type in
8840 freebsd-elf*)
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8842 need_version=no
8843 need_lib_prefix=no
8844 ;;
8845 freebsd-*)
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8847 need_version=yes
8848 ;;
8849 esac
8850 shlibpath_var=LD_LIBRARY_PATH
8851 case $host_os in
8852 freebsd2*)
8853 shlibpath_overrides_runpath=yes
8854 ;;
8855 freebsd3.[01]* | freebsdelf3.[01]*)
8856 shlibpath_overrides_runpath=yes
8857 hardcode_into_libs=yes
8858 ;;
8859 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8860 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8861 shlibpath_overrides_runpath=no
8862 hardcode_into_libs=yes
8863 ;;
8864 freebsd*) # from 4.6 on
8865 shlibpath_overrides_runpath=yes
8866 hardcode_into_libs=yes
8867 ;;
8868 esac
8869 ;;
8870
8871gnu*)
8872 version_type=linux
8873 need_lib_prefix=no
8874 need_version=no
8875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8876 soname_spec='${libname}${release}${shared_ext}$major'
8877 shlibpath_var=LD_LIBRARY_PATH
8878 hardcode_into_libs=yes
8879 ;;
8880
8881hpux9* | hpux10* | hpux11*)
8882 # Give a soname corresponding to the major version so that dld.sl refuses to
8883 # link against other versions.
8884 version_type=sunos
8885 need_lib_prefix=no
8886 need_version=no
8887 case $host_cpu in
8888 ia64*)
8889 shrext_cmds='.so'
8890 hardcode_into_libs=yes
8891 dynamic_linker="$host_os dld.so"
8892 shlibpath_var=LD_LIBRARY_PATH
8893 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
8897 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8898 else
8899 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8900 fi
8901 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8902 ;;
8903 hppa*64*)
8904 shrext_cmds='.sl'
8905 hardcode_into_libs=yes
8906 dynamic_linker="$host_os dld.sl"
8907 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8908 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8910 soname_spec='${libname}${release}${shared_ext}$major'
8911 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8912 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8913 ;;
8914 *)
8915 shrext_cmds='.sl'
8916 dynamic_linker="$host_os dld.sl"
8917 shlibpath_var=SHLIB_PATH
8918 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920 soname_spec='${libname}${release}${shared_ext}$major'
8921 ;;
8922 esac
8923 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8924 postinstall_cmds='chmod 555 $lib'
8925 ;;
8926
8927interix3*)
8928 version_type=linux
8929 need_lib_prefix=no
8930 need_version=no
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8932 soname_spec='${libname}${release}${shared_ext}$major'
8933 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8934 shlibpath_var=LD_LIBRARY_PATH
8935 shlibpath_overrides_runpath=no
8936 hardcode_into_libs=yes
8937 ;;
8938
8939irix5* | irix6* | nonstopux*)
8940 case $host_os in
8941 nonstopux*) version_type=nonstopux ;;
8942 *)
8943 if test "$lt_cv_prog_gnu_ld" = yes; then
8944 version_type=linux
8945 else
8946 version_type=irix
8947 fi ;;
8948 esac
8949 need_lib_prefix=no
8950 need_version=no
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8953 case $host_os in
8954 irix5* | nonstopux*)
8955 libsuff= shlibsuff=
8956 ;;
8957 *)
8958 case $LD in # libtool.m4 will add one of these switches to LD
8959 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8960 libsuff= shlibsuff= libmagic=32-bit;;
8961 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8962 libsuff=32 shlibsuff=N32 libmagic=N32;;
8963 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8964 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8965 *) libsuff= shlibsuff= libmagic=never-match;;
8966 esac
8967 ;;
8968 esac
8969 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8970 shlibpath_overrides_runpath=no
8971 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8972 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8973 hardcode_into_libs=yes
8974 ;;
8975
8976# No shared lib support for Linux oldld, aout, or coff.
8977linux*oldld* | linux*aout* | linux*coff*)
8978 dynamic_linker=no
8979 ;;
8980
8981# This must be Linux ELF.
8982linux*)
8983 version_type=linux
8984 need_lib_prefix=no
8985 need_version=no
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 shlibpath_overrides_runpath=no
8991 # This implies no fast_install, which is unacceptable.
8992 # Some rework will be needed to allow for fast_install
8993 # before this can be enabled.
8994 hardcode_into_libs=yes
8995
8996 # find out which ABI we are using
8997 libsuff=
8998 case "$host_cpu" in
8999 x86_64*|s390x*|powerpc64*)
dd184caf 9000 echo '#line 9000 "configure"' > conftest.$ac_ext
d9898ee8 9001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9002 (eval $ac_compile) 2>&5
9003 ac_status=$?
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; then
9006 case `/usr/bin/file conftest.$ac_objext` in
9007 *64-bit*)
9008 libsuff=64
9009 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9010 ;;
9011 esac
9012 fi
9013 rm -rf conftest*
9014 ;;
9015 esac
9016
9017 # Append ld.so.conf contents to the search path
9018 if test -f /etc/ld.so.conf; then
dd184caf 9019 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 9020 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9021 fi
9022
9023 # We used to test for /lib/ld.so.1 and disable shared libraries on
9024 # powerpc, because MkLinux only supported shared libraries with the
9025 # GNU dynamic linker. Since this was broken with cross compilers,
9026 # most powerpc-linux boxes support dynamic linking these days and
9027 # people can always --disable-shared, the test was removed, and we
9028 # assume the GNU/Linux dynamic linker is in use.
9029 dynamic_linker='GNU/Linux ld.so'
9030 ;;
9031
9032knetbsd*-gnu)
9033 version_type=linux
9034 need_lib_prefix=no
9035 need_version=no
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 shlibpath_var=LD_LIBRARY_PATH
9039 shlibpath_overrides_runpath=no
9040 hardcode_into_libs=yes
9041 dynamic_linker='GNU ld.so'
9042 ;;
9043
9044netbsd*)
9045 version_type=sunos
9046 need_lib_prefix=no
9047 need_version=no
9048 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9051 dynamic_linker='NetBSD (a.out) ld.so'
9052 else
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9054 soname_spec='${libname}${release}${shared_ext}$major'
9055 dynamic_linker='NetBSD ld.elf_so'
9056 fi
9057 shlibpath_var=LD_LIBRARY_PATH
9058 shlibpath_overrides_runpath=yes
9059 hardcode_into_libs=yes
9060 ;;
9061
9062newsos6)
9063 version_type=linux
9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 shlibpath_overrides_runpath=yes
9067 ;;
9068
9069nto-qnx*)
9070 version_type=linux
9071 need_lib_prefix=no
9072 need_version=no
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 shlibpath_overrides_runpath=yes
9077 ;;
9078
9079openbsd*)
9080 version_type=sunos
9081 sys_lib_dlsearch_path_spec="/usr/lib"
9082 need_lib_prefix=no
9083 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9084 case $host_os in
9085 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9086 *) need_version=no ;;
9087 esac
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9090 shlibpath_var=LD_LIBRARY_PATH
9091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9092 case $host_os in
9093 openbsd2.[89] | openbsd2.[89].*)
9094 shlibpath_overrides_runpath=no
9095 ;;
9096 *)
9097 shlibpath_overrides_runpath=yes
9098 ;;
9099 esac
9100 else
9101 shlibpath_overrides_runpath=yes
9102 fi
9103 ;;
9104
9105os2*)
9106 libname_spec='$name'
9107 shrext_cmds=".dll"
9108 need_lib_prefix=no
9109 library_names_spec='$libname${shared_ext} $libname.a'
9110 dynamic_linker='OS/2 ld.exe'
9111 shlibpath_var=LIBPATH
9112 ;;
9113
9114osf3* | osf4* | osf5*)
9115 version_type=osf
9116 need_lib_prefix=no
9117 need_version=no
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9122 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9123 ;;
9124
9125solaris*)
9126 version_type=linux
9127 need_lib_prefix=no
9128 need_version=no
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130 soname_spec='${libname}${release}${shared_ext}$major'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 shlibpath_overrides_runpath=yes
9133 hardcode_into_libs=yes
9134 # ldd complains unless libraries are executable
9135 postinstall_cmds='chmod +x $lib'
9136 ;;
9137
9138sunos4*)
9139 version_type=sunos
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9141 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 shlibpath_overrides_runpath=yes
9144 if test "$with_gnu_ld" = yes; then
9145 need_lib_prefix=no
9146 fi
9147 need_version=yes
9148 ;;
9149
9150sysv4 | sysv4.3*)
9151 version_type=linux
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 shlibpath_var=LD_LIBRARY_PATH
9155 case $host_vendor in
9156 sni)
9157 shlibpath_overrides_runpath=no
9158 need_lib_prefix=no
9159 export_dynamic_flag_spec='${wl}-Blargedynsym'
9160 runpath_var=LD_RUN_PATH
9161 ;;
9162 siemens)
9163 need_lib_prefix=no
9164 ;;
9165 motorola)
9166 need_lib_prefix=no
9167 need_version=no
9168 shlibpath_overrides_runpath=no
9169 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9170 ;;
9171 esac
9172 ;;
9173
9174sysv4*MP*)
9175 if test -d /usr/nec ;then
9176 version_type=linux
9177 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9178 soname_spec='$libname${shared_ext}.$major'
9179 shlibpath_var=LD_LIBRARY_PATH
9180 fi
9181 ;;
9182
9183sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9184 version_type=freebsd-elf
9185 need_lib_prefix=no
9186 need_version=no
9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9188 soname_spec='${libname}${release}${shared_ext}$major'
9189 shlibpath_var=LD_LIBRARY_PATH
9190 hardcode_into_libs=yes
9191 if test "$with_gnu_ld" = yes; then
9192 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9193 shlibpath_overrides_runpath=no
9194 else
9195 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9196 shlibpath_overrides_runpath=yes
9197 case $host_os in
9198 sco3.2v5*)
9199 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9200 ;;
9201 esac
9202 fi
9203 sys_lib_dlsearch_path_spec='/usr/lib'
9204 ;;
9205
9206uts4*)
9207 version_type=linux
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 shlibpath_var=LD_LIBRARY_PATH
9211 ;;
9212
9213*)
9214 dynamic_linker=no
9215 ;;
9216esac
dd184caf 9217{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9218echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 9219test "$dynamic_linker" = no && can_build_shared=no
9220
9221variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9222if test "$GCC" = yes; then
9223 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9224fi
9225
dd184caf 9226{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9227echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 9228hardcode_action=
9229if test -n "$hardcode_libdir_flag_spec" || \
9230 test -n "$runpath_var" || \
9231 test "X$hardcode_automatic" = "Xyes" ; then
9232
9233 # We can hardcode non-existant directories.
9234 if test "$hardcode_direct" != no &&
9235 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9236 # have to relink, otherwise we might link with an installed library
9237 # when we should be linking with a yet-to-be-installed one
9238 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9239 test "$hardcode_minus_L" != no; then
9240 # Linking always hardcodes the temporary library directory.
9241 hardcode_action=relink
9242 else
9243 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9244 hardcode_action=immediate
9245 fi
9246else
9247 # We cannot hardcode anything, or else we can only hardcode existing
9248 # directories.
9249 hardcode_action=unsupported
9250fi
dd184caf 9251{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9252echo "${ECHO_T}$hardcode_action" >&6; }
d9898ee8 9253
9254if test "$hardcode_action" = relink; then
9255 # Fast installation is not supported
9256 enable_fast_install=no
9257elif test "$shlibpath_overrides_runpath" = yes ||
9258 test "$enable_shared" = no; then
9259 # Fast installation is not necessary
9260 enable_fast_install=needless
9261fi
9262
9263striplib=
9264old_striplib=
dd184caf 9265{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9266echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d9898ee8 9267if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9268 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9269 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
dd184caf 9270 { echo "$as_me:$LINENO: result: yes" >&5
9271echo "${ECHO_T}yes" >&6; }
d9898ee8 9272else
9273# FIXME - insert some real tests, host_os isn't really good enough
9274 case $host_os in
9275 darwin*)
9276 if test -n "$STRIP" ; then
9277 striplib="$STRIP -x"
dd184caf 9278 { echo "$as_me:$LINENO: result: yes" >&5
9279echo "${ECHO_T}yes" >&6; }
d9898ee8 9280 else
dd184caf 9281 { echo "$as_me:$LINENO: result: no" >&5
9282echo "${ECHO_T}no" >&6; }
d9898ee8 9283fi
9284 ;;
9285 *)
dd184caf 9286 { echo "$as_me:$LINENO: result: no" >&5
9287echo "${ECHO_T}no" >&6; }
d9898ee8 9288 ;;
9289 esac
9290fi
9291
9292if test "x$enable_dlopen" != xyes; then
9293 enable_dlopen=unknown
9294 enable_dlopen_self=unknown
9295 enable_dlopen_self_static=unknown
9296else
9297 lt_cv_dlopen=no
9298 lt_cv_dlopen_libs=
9299
9300 case $host_os in
9301 beos*)
9302 lt_cv_dlopen="load_add_on"
9303 lt_cv_dlopen_libs=
9304 lt_cv_dlopen_self=yes
9305 ;;
9306
9307 mingw* | pw32*)
9308 lt_cv_dlopen="LoadLibrary"
9309 lt_cv_dlopen_libs=
9310 ;;
9311
9312 cygwin*)
9313 lt_cv_dlopen="dlopen"
9314 lt_cv_dlopen_libs=
9315 ;;
9316
9317 darwin*)
9318 # if libdl is installed we need to link against it
dd184caf 9319 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9320echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9321if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9323else
9324 ac_check_lib_save_LIBS=$LIBS
9325LIBS="-ldl $LIBS"
9326cat >conftest.$ac_ext <<_ACEOF
9327/* confdefs.h. */
9328_ACEOF
9329cat confdefs.h >>conftest.$ac_ext
9330cat >>conftest.$ac_ext <<_ACEOF
9331/* end confdefs.h. */
9332
dd184caf 9333/* Override any GCC internal prototype to avoid an error.
9334 Use char because int might match the return type of a GCC
9335 builtin and then its argument prototype would still apply. */
d9898ee8 9336#ifdef __cplusplus
9337extern "C"
9338#endif
d9898ee8 9339char dlopen ();
9340int
9341main ()
9342{
dd184caf 9343return dlopen ();
d9898ee8 9344 ;
9345 return 0;
9346}
9347_ACEOF
9348rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9349if { (ac_try="$ac_link"
9350case "(($ac_try" in
9351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9352 *) ac_try_echo=$ac_try;;
9353esac
9354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9355 (eval "$ac_link") 2>conftest.er1
d9898ee8 9356 ac_status=$?
9357 grep -v '^ *+' conftest.er1 >conftest.err
9358 rm -f conftest.er1
9359 cat conftest.err >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9361 (exit $ac_status); } && {
9362 test -z "$ac_c_werror_flag" ||
9363 test ! -s conftest.err
9364 } && test -s conftest$ac_exeext &&
9365 $as_test_x conftest$ac_exeext; then
d9898ee8 9366 ac_cv_lib_dl_dlopen=yes
9367else
9368 echo "$as_me: failed program was:" >&5
9369sed 's/^/| /' conftest.$ac_ext >&5
9370
dd184caf 9371 ac_cv_lib_dl_dlopen=no
d9898ee8 9372fi
dd184caf 9373
9374rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9375 conftest$ac_exeext conftest.$ac_ext
9376LIBS=$ac_check_lib_save_LIBS
9377fi
dd184caf 9378{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9379echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9380if test $ac_cv_lib_dl_dlopen = yes; then
9381 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9382else
9383
9384 lt_cv_dlopen="dyld"
9385 lt_cv_dlopen_libs=
9386 lt_cv_dlopen_self=yes
9387
9388fi
9389
9390 ;;
9391
9392 *)
dd184caf 9393 { echo "$as_me:$LINENO: checking for shl_load" >&5
9394echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9898ee8 9395if test "${ac_cv_func_shl_load+set}" = set; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9397else
9398 cat >conftest.$ac_ext <<_ACEOF
9399/* confdefs.h. */
9400_ACEOF
9401cat confdefs.h >>conftest.$ac_ext
9402cat >>conftest.$ac_ext <<_ACEOF
9403/* end confdefs.h. */
9404/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9406#define shl_load innocuous_shl_load
9407
9408/* System header to define __stub macros and hopefully few prototypes,
9409 which can conflict with char shl_load (); below.
9410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9411 <limits.h> exists even on freestanding compilers. */
9412
9413#ifdef __STDC__
9414# include <limits.h>
9415#else
9416# include <assert.h>
9417#endif
9418
9419#undef shl_load
9420
dd184caf 9421/* Override any GCC internal prototype to avoid an error.
9422 Use char because int might match the return type of a GCC
9423 builtin and then its argument prototype would still apply. */
d9898ee8 9424#ifdef __cplusplus
9425extern "C"
d9898ee8 9426#endif
d9898ee8 9427char shl_load ();
9428/* The GNU C library defines this for functions which it implements
9429 to always fail with ENOSYS. Some functions are actually named
9430 something starting with __ and the normal name is an alias. */
dd184caf 9431#if defined __stub_shl_load || defined __stub___shl_load
d9898ee8 9432choke me
d9898ee8 9433#endif
9434
9435int
9436main ()
9437{
dd184caf 9438return shl_load ();
d9898ee8 9439 ;
9440 return 0;
9441}
9442_ACEOF
9443rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9444if { (ac_try="$ac_link"
9445case "(($ac_try" in
9446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447 *) ac_try_echo=$ac_try;;
9448esac
9449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9450 (eval "$ac_link") 2>conftest.er1
d9898ee8 9451 ac_status=$?
9452 grep -v '^ *+' conftest.er1 >conftest.err
9453 rm -f conftest.er1
9454 cat conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9456 (exit $ac_status); } && {
9457 test -z "$ac_c_werror_flag" ||
9458 test ! -s conftest.err
9459 } && test -s conftest$ac_exeext &&
9460 $as_test_x conftest$ac_exeext; then
d9898ee8 9461 ac_cv_func_shl_load=yes
9462else
9463 echo "$as_me: failed program was:" >&5
9464sed 's/^/| /' conftest.$ac_ext >&5
9465
dd184caf 9466 ac_cv_func_shl_load=no
d9898ee8 9467fi
dd184caf 9468
9469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9470 conftest$ac_exeext conftest.$ac_ext
9471fi
dd184caf 9472{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9473echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9898ee8 9474if test $ac_cv_func_shl_load = yes; then
9475 lt_cv_dlopen="shl_load"
9476else
dd184caf 9477 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9478echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9898ee8 9479if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481else
9482 ac_check_lib_save_LIBS=$LIBS
9483LIBS="-ldld $LIBS"
9484cat >conftest.$ac_ext <<_ACEOF
9485/* confdefs.h. */
9486_ACEOF
9487cat confdefs.h >>conftest.$ac_ext
9488cat >>conftest.$ac_ext <<_ACEOF
9489/* end confdefs.h. */
9490
dd184caf 9491/* Override any GCC internal prototype to avoid an error.
9492 Use char because int might match the return type of a GCC
9493 builtin and then its argument prototype would still apply. */
d9898ee8 9494#ifdef __cplusplus
9495extern "C"
9496#endif
d9898ee8 9497char shl_load ();
9498int
9499main ()
9500{
dd184caf 9501return shl_load ();
d9898ee8 9502 ;
9503 return 0;
9504}
9505_ACEOF
9506rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9507if { (ac_try="$ac_link"
9508case "(($ac_try" in
9509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510 *) ac_try_echo=$ac_try;;
9511esac
9512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9513 (eval "$ac_link") 2>conftest.er1
d9898ee8 9514 ac_status=$?
9515 grep -v '^ *+' conftest.er1 >conftest.err
9516 rm -f conftest.er1
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9519 (exit $ac_status); } && {
9520 test -z "$ac_c_werror_flag" ||
9521 test ! -s conftest.err
9522 } && test -s conftest$ac_exeext &&
9523 $as_test_x conftest$ac_exeext; then
d9898ee8 9524 ac_cv_lib_dld_shl_load=yes
9525else
9526 echo "$as_me: failed program was:" >&5
9527sed 's/^/| /' conftest.$ac_ext >&5
9528
dd184caf 9529 ac_cv_lib_dld_shl_load=no
d9898ee8 9530fi
dd184caf 9531
9532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9533 conftest$ac_exeext conftest.$ac_ext
9534LIBS=$ac_check_lib_save_LIBS
9535fi
dd184caf 9536{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9537echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9898ee8 9538if test $ac_cv_lib_dld_shl_load = yes; then
9539 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9540else
dd184caf 9541 { echo "$as_me:$LINENO: checking for dlopen" >&5
9542echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d9898ee8 9543if test "${ac_cv_func_dlopen+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9545else
9546 cat >conftest.$ac_ext <<_ACEOF
9547/* confdefs.h. */
9548_ACEOF
9549cat confdefs.h >>conftest.$ac_ext
9550cat >>conftest.$ac_ext <<_ACEOF
9551/* end confdefs.h. */
9552/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9554#define dlopen innocuous_dlopen
9555
9556/* System header to define __stub macros and hopefully few prototypes,
9557 which can conflict with char dlopen (); below.
9558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9559 <limits.h> exists even on freestanding compilers. */
9560
9561#ifdef __STDC__
9562# include <limits.h>
9563#else
9564# include <assert.h>
9565#endif
9566
9567#undef dlopen
9568
dd184caf 9569/* Override any GCC internal prototype to avoid an error.
9570 Use char because int might match the return type of a GCC
9571 builtin and then its argument prototype would still apply. */
d9898ee8 9572#ifdef __cplusplus
9573extern "C"
d9898ee8 9574#endif
d9898ee8 9575char dlopen ();
9576/* The GNU C library defines this for functions which it implements
9577 to always fail with ENOSYS. Some functions are actually named
9578 something starting with __ and the normal name is an alias. */
dd184caf 9579#if defined __stub_dlopen || defined __stub___dlopen
d9898ee8 9580choke me
d9898ee8 9581#endif
9582
9583int
9584main ()
9585{
dd184caf 9586return dlopen ();
d9898ee8 9587 ;
9588 return 0;
9589}
9590_ACEOF
9591rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9592if { (ac_try="$ac_link"
9593case "(($ac_try" in
9594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9595 *) ac_try_echo=$ac_try;;
9596esac
9597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9598 (eval "$ac_link") 2>conftest.er1
d9898ee8 9599 ac_status=$?
9600 grep -v '^ *+' conftest.er1 >conftest.err
9601 rm -f conftest.er1
9602 cat conftest.err >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9604 (exit $ac_status); } && {
9605 test -z "$ac_c_werror_flag" ||
9606 test ! -s conftest.err
9607 } && test -s conftest$ac_exeext &&
9608 $as_test_x conftest$ac_exeext; then
d9898ee8 9609 ac_cv_func_dlopen=yes
9610else
9611 echo "$as_me: failed program was:" >&5
9612sed 's/^/| /' conftest.$ac_ext >&5
9613
dd184caf 9614 ac_cv_func_dlopen=no
d9898ee8 9615fi
dd184caf 9616
9617rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9618 conftest$ac_exeext conftest.$ac_ext
9619fi
dd184caf 9620{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9621echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d9898ee8 9622if test $ac_cv_func_dlopen = yes; then
9623 lt_cv_dlopen="dlopen"
9624else
dd184caf 9625 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9626echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9627if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9629else
9630 ac_check_lib_save_LIBS=$LIBS
9631LIBS="-ldl $LIBS"
9632cat >conftest.$ac_ext <<_ACEOF
9633/* confdefs.h. */
9634_ACEOF
9635cat confdefs.h >>conftest.$ac_ext
9636cat >>conftest.$ac_ext <<_ACEOF
9637/* end confdefs.h. */
9638
dd184caf 9639/* Override any GCC internal prototype to avoid an error.
9640 Use char because int might match the return type of a GCC
9641 builtin and then its argument prototype would still apply. */
d9898ee8 9642#ifdef __cplusplus
9643extern "C"
9644#endif
d9898ee8 9645char dlopen ();
9646int
9647main ()
9648{
dd184caf 9649return dlopen ();
d9898ee8 9650 ;
9651 return 0;
9652}
9653_ACEOF
9654rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9655if { (ac_try="$ac_link"
9656case "(($ac_try" in
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9659esac
9660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661 (eval "$ac_link") 2>conftest.er1
d9898ee8 9662 ac_status=$?
9663 grep -v '^ *+' conftest.er1 >conftest.err
9664 rm -f conftest.er1
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9667 (exit $ac_status); } && {
9668 test -z "$ac_c_werror_flag" ||
9669 test ! -s conftest.err
9670 } && test -s conftest$ac_exeext &&
9671 $as_test_x conftest$ac_exeext; then
d9898ee8 9672 ac_cv_lib_dl_dlopen=yes
9673else
9674 echo "$as_me: failed program was:" >&5
9675sed 's/^/| /' conftest.$ac_ext >&5
9676
dd184caf 9677 ac_cv_lib_dl_dlopen=no
d9898ee8 9678fi
dd184caf 9679
9680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9681 conftest$ac_exeext conftest.$ac_ext
9682LIBS=$ac_check_lib_save_LIBS
9683fi
dd184caf 9684{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9685echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9686if test $ac_cv_lib_dl_dlopen = yes; then
9687 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9688else
dd184caf 9689 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9690echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9898ee8 9691if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693else
9694 ac_check_lib_save_LIBS=$LIBS
9695LIBS="-lsvld $LIBS"
9696cat >conftest.$ac_ext <<_ACEOF
9697/* confdefs.h. */
9698_ACEOF
9699cat confdefs.h >>conftest.$ac_ext
9700cat >>conftest.$ac_ext <<_ACEOF
9701/* end confdefs.h. */
9702
dd184caf 9703/* Override any GCC internal prototype to avoid an error.
9704 Use char because int might match the return type of a GCC
9705 builtin and then its argument prototype would still apply. */
d9898ee8 9706#ifdef __cplusplus
9707extern "C"
9708#endif
d9898ee8 9709char dlopen ();
9710int
9711main ()
9712{
dd184caf 9713return dlopen ();
d9898ee8 9714 ;
9715 return 0;
9716}
9717_ACEOF
9718rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9719if { (ac_try="$ac_link"
9720case "(($ac_try" in
9721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722 *) ac_try_echo=$ac_try;;
9723esac
9724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725 (eval "$ac_link") 2>conftest.er1
d9898ee8 9726 ac_status=$?
9727 grep -v '^ *+' conftest.er1 >conftest.err
9728 rm -f conftest.er1
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9731 (exit $ac_status); } && {
9732 test -z "$ac_c_werror_flag" ||
9733 test ! -s conftest.err
9734 } && test -s conftest$ac_exeext &&
9735 $as_test_x conftest$ac_exeext; then
d9898ee8 9736 ac_cv_lib_svld_dlopen=yes
9737else
9738 echo "$as_me: failed program was:" >&5
9739sed 's/^/| /' conftest.$ac_ext >&5
9740
dd184caf 9741 ac_cv_lib_svld_dlopen=no
d9898ee8 9742fi
dd184caf 9743
9744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9745 conftest$ac_exeext conftest.$ac_ext
9746LIBS=$ac_check_lib_save_LIBS
9747fi
dd184caf 9748{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9749echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9898ee8 9750if test $ac_cv_lib_svld_dlopen = yes; then
9751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9752else
dd184caf 9753 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9754echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9898ee8 9755if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9757else
9758 ac_check_lib_save_LIBS=$LIBS
9759LIBS="-ldld $LIBS"
9760cat >conftest.$ac_ext <<_ACEOF
9761/* confdefs.h. */
9762_ACEOF
9763cat confdefs.h >>conftest.$ac_ext
9764cat >>conftest.$ac_ext <<_ACEOF
9765/* end confdefs.h. */
9766
dd184caf 9767/* Override any GCC internal prototype to avoid an error.
9768 Use char because int might match the return type of a GCC
9769 builtin and then its argument prototype would still apply. */
d9898ee8 9770#ifdef __cplusplus
9771extern "C"
9772#endif
d9898ee8 9773char dld_link ();
9774int
9775main ()
9776{
dd184caf 9777return dld_link ();
d9898ee8 9778 ;
9779 return 0;
9780}
9781_ACEOF
9782rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9783if { (ac_try="$ac_link"
9784case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9787esac
9788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_link") 2>conftest.er1
d9898ee8 9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9795 (exit $ac_status); } && {
9796 test -z "$ac_c_werror_flag" ||
9797 test ! -s conftest.err
9798 } && test -s conftest$ac_exeext &&
9799 $as_test_x conftest$ac_exeext; then
d9898ee8 9800 ac_cv_lib_dld_dld_link=yes
9801else
9802 echo "$as_me: failed program was:" >&5
9803sed 's/^/| /' conftest.$ac_ext >&5
9804
dd184caf 9805 ac_cv_lib_dld_dld_link=no
d9898ee8 9806fi
dd184caf 9807
9808rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9809 conftest$ac_exeext conftest.$ac_ext
9810LIBS=$ac_check_lib_save_LIBS
9811fi
dd184caf 9812{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9813echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9898ee8 9814if test $ac_cv_lib_dld_dld_link = yes; then
9815 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9816fi
9817
9818
9819fi
9820
9821
9822fi
9823
9824
9825fi
9826
9827
9828fi
9829
9830
9831fi
9832
9833 ;;
9834 esac
9835
9836 if test "x$lt_cv_dlopen" != xno; then
9837 enable_dlopen=yes
9838 else
9839 enable_dlopen=no
9840 fi
9841
9842 case $lt_cv_dlopen in
9843 dlopen)
9844 save_CPPFLAGS="$CPPFLAGS"
9845 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9846
9847 save_LDFLAGS="$LDFLAGS"
9848 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9849
9850 save_LIBS="$LIBS"
9851 LIBS="$lt_cv_dlopen_libs $LIBS"
9852
dd184caf 9853 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9854echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 9855if test "${lt_cv_dlopen_self+set}" = set; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9857else
9858 if test "$cross_compiling" = yes; then :
9859 lt_cv_dlopen_self=cross
9860else
9861 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9862 lt_status=$lt_dlunknown
9863 cat > conftest.$ac_ext <<EOF
dd184caf 9864#line 9864 "configure"
d9898ee8 9865#include "confdefs.h"
9866
9867#if HAVE_DLFCN_H
9868#include <dlfcn.h>
9869#endif
9870
9871#include <stdio.h>
9872
9873#ifdef RTLD_GLOBAL
9874# define LT_DLGLOBAL RTLD_GLOBAL
9875#else
9876# ifdef DL_GLOBAL
9877# define LT_DLGLOBAL DL_GLOBAL
9878# else
9879# define LT_DLGLOBAL 0
9880# endif
9881#endif
9882
9883/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9884 find out it does not work in some platform. */
9885#ifndef LT_DLLAZY_OR_NOW
9886# ifdef RTLD_LAZY
9887# define LT_DLLAZY_OR_NOW RTLD_LAZY
9888# else
9889# ifdef DL_LAZY
9890# define LT_DLLAZY_OR_NOW DL_LAZY
9891# else
9892# ifdef RTLD_NOW
9893# define LT_DLLAZY_OR_NOW RTLD_NOW
9894# else
9895# ifdef DL_NOW
9896# define LT_DLLAZY_OR_NOW DL_NOW
9897# else
9898# define LT_DLLAZY_OR_NOW 0
9899# endif
9900# endif
9901# endif
9902# endif
9903#endif
9904
9905#ifdef __cplusplus
9906extern "C" void exit (int);
9907#endif
9908
9909void fnord() { int i=42;}
9910int main ()
9911{
9912 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9913 int status = $lt_dlunknown;
9914
9915 if (self)
9916 {
9917 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9918 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9919 /* dlclose (self); */
9920 }
9921 else
9922 puts (dlerror ());
9923
9924 exit (status);
9925}
9926EOF
9927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9928 (eval $ac_link) 2>&5
9929 ac_status=$?
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9932 (./conftest; exit; ) >&5 2>/dev/null
9933 lt_status=$?
9934 case x$lt_status in
9935 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9936 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9937 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9938 esac
9939 else :
9940 # compilation failed
9941 lt_cv_dlopen_self=no
9942 fi
9943fi
9944rm -fr conftest*
9945
9946
9947fi
dd184caf 9948{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9949echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d9898ee8 9950
9951 if test "x$lt_cv_dlopen_self" = xyes; then
9952 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
dd184caf 9953 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9954echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 9955if test "${lt_cv_dlopen_self_static+set}" = set; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9957else
9958 if test "$cross_compiling" = yes; then :
9959 lt_cv_dlopen_self_static=cross
9960else
9961 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9962 lt_status=$lt_dlunknown
9963 cat > conftest.$ac_ext <<EOF
dd184caf 9964#line 9964 "configure"
d9898ee8 9965#include "confdefs.h"
9966
9967#if HAVE_DLFCN_H
9968#include <dlfcn.h>
9969#endif
9970
9971#include <stdio.h>
9972
9973#ifdef RTLD_GLOBAL
9974# define LT_DLGLOBAL RTLD_GLOBAL
9975#else
9976# ifdef DL_GLOBAL
9977# define LT_DLGLOBAL DL_GLOBAL
9978# else
9979# define LT_DLGLOBAL 0
9980# endif
9981#endif
9982
9983/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9984 find out it does not work in some platform. */
9985#ifndef LT_DLLAZY_OR_NOW
9986# ifdef RTLD_LAZY
9987# define LT_DLLAZY_OR_NOW RTLD_LAZY
9988# else
9989# ifdef DL_LAZY
9990# define LT_DLLAZY_OR_NOW DL_LAZY
9991# else
9992# ifdef RTLD_NOW
9993# define LT_DLLAZY_OR_NOW RTLD_NOW
9994# else
9995# ifdef DL_NOW
9996# define LT_DLLAZY_OR_NOW DL_NOW
9997# else
9998# define LT_DLLAZY_OR_NOW 0
9999# endif
10000# endif
10001# endif
10002# endif
10003#endif
10004
10005#ifdef __cplusplus
10006extern "C" void exit (int);
10007#endif
10008
10009void fnord() { int i=42;}
10010int main ()
10011{
10012 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10013 int status = $lt_dlunknown;
10014
10015 if (self)
10016 {
10017 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10018 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10019 /* dlclose (self); */
10020 }
10021 else
10022 puts (dlerror ());
10023
10024 exit (status);
10025}
10026EOF
10027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028 (eval $ac_link) 2>&5
10029 ac_status=$?
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10032 (./conftest; exit; ) >&5 2>/dev/null
10033 lt_status=$?
10034 case x$lt_status in
10035 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10036 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10037 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10038 esac
10039 else :
10040 # compilation failed
10041 lt_cv_dlopen_self_static=no
10042 fi
10043fi
10044rm -fr conftest*
10045
10046
10047fi
dd184caf 10048{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10049echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d9898ee8 10050 fi
10051
10052 CPPFLAGS="$save_CPPFLAGS"
10053 LDFLAGS="$save_LDFLAGS"
10054 LIBS="$save_LIBS"
10055 ;;
10056 esac
10057
10058 case $lt_cv_dlopen_self in
10059 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10060 *) enable_dlopen_self=unknown ;;
10061 esac
10062
10063 case $lt_cv_dlopen_self_static in
10064 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10065 *) enable_dlopen_self_static=unknown ;;
10066 esac
10067fi
10068
10069
10070# Report which library types will actually be built
dd184caf 10071{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10072echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10073{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10074echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 10075
dd184caf 10076{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10077echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 10078test "$can_build_shared" = "no" && enable_shared=no
10079
10080# On AIX, shared libraries and static libraries use the same namespace, and
10081# are all built from PIC.
10082case $host_os in
10083aix3*)
10084 test "$enable_shared" = yes && enable_static=no
10085 if test -n "$RANLIB"; then
10086 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10087 postinstall_cmds='$RANLIB $lib'
10088 fi
10089 ;;
10090
10091aix4* | aix5*)
10092 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10093 test "$enable_shared" = yes && enable_static=no
10094 fi
10095 ;;
10096esac
dd184caf 10097{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10098echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 10099
dd184caf 10100{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10101echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 10102# Make sure either enable_shared or enable_static is yes.
10103test "$enable_shared" = yes || enable_static=yes
dd184caf 10104{ echo "$as_me:$LINENO: result: $enable_static" >&5
10105echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 10106
10107# The else clause should only fire when bootstrapping the
10108# libtool distribution, otherwise you forgot to ship ltmain.sh
10109# with your package, and you will get complaints that there are
10110# no rules to generate ltmain.sh.
10111if test -f "$ltmain"; then
10112 # See if we are running on zsh, and set the options which allow our commands through
10113 # without removal of \ escapes.
10114 if test -n "${ZSH_VERSION+set}" ; then
10115 setopt NO_GLOB_SUBST
10116 fi
10117 # Now quote all the things that may contain metacharacters while being
10118 # careful not to overquote the AC_SUBSTed values. We take copies of the
10119 # variables and quote the copies for generation of the libtool script.
10120 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10121 SED SHELL STRIP \
10122 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10123 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10124 deplibs_check_method reload_flag reload_cmds need_locks \
10125 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10126 lt_cv_sys_global_symbol_to_c_name_address \
10127 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10128 old_postinstall_cmds old_postuninstall_cmds \
10129 compiler \
10130 CC \
10131 LD \
10132 lt_prog_compiler_wl \
10133 lt_prog_compiler_pic \
10134 lt_prog_compiler_static \
10135 lt_prog_compiler_no_builtin_flag \
10136 export_dynamic_flag_spec \
10137 thread_safe_flag_spec \
10138 whole_archive_flag_spec \
10139 enable_shared_with_static_runtimes \
10140 old_archive_cmds \
10141 old_archive_from_new_cmds \
10142 predep_objects \
10143 postdep_objects \
10144 predeps \
10145 postdeps \
10146 compiler_lib_search_path \
10147 archive_cmds \
10148 archive_expsym_cmds \
10149 postinstall_cmds \
10150 postuninstall_cmds \
10151 old_archive_from_expsyms_cmds \
10152 allow_undefined_flag \
10153 no_undefined_flag \
10154 export_symbols_cmds \
10155 hardcode_libdir_flag_spec \
10156 hardcode_libdir_flag_spec_ld \
10157 hardcode_libdir_separator \
10158 hardcode_automatic \
10159 module_cmds \
10160 module_expsym_cmds \
10161 lt_cv_prog_compiler_c_o \
10162 exclude_expsyms \
10163 include_expsyms; do
10164
10165 case $var in
10166 old_archive_cmds | \
10167 old_archive_from_new_cmds | \
10168 archive_cmds | \
10169 archive_expsym_cmds | \
10170 module_cmds | \
10171 module_expsym_cmds | \
10172 old_archive_from_expsyms_cmds | \
10173 export_symbols_cmds | \
10174 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10175 postinstall_cmds | postuninstall_cmds | \
10176 old_postinstall_cmds | old_postuninstall_cmds | \
10177 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10178 # Double-quote double-evaled strings.
10179 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10180 ;;
10181 *)
10182 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10183 ;;
10184 esac
10185 done
10186
10187 case $lt_echo in
10188 *'\$0 --fallback-echo"')
10189 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10190 ;;
10191 esac
10192
10193cfgfile="${ofile}T"
10194 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10195 $rm -f "$cfgfile"
10196 { echo "$as_me:$LINENO: creating $ofile" >&5
10197echo "$as_me: creating $ofile" >&6;}
10198
10199 cat <<__EOF__ >> "$cfgfile"
10200#! $SHELL
10201
10202# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10203# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10204# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10205#
10206# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10207# Free Software Foundation, Inc.
10208#
10209# This file is part of GNU Libtool:
10210# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10211#
10212# This program is free software; you can redistribute it and/or modify
10213# it under the terms of the GNU General Public License as published by
10214# the Free Software Foundation; either version 2 of the License, or
10215# (at your option) any later version.
10216#
10217# This program is distributed in the hope that it will be useful, but
10218# WITHOUT ANY WARRANTY; without even the implied warranty of
10219# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10220# General Public License for more details.
10221#
10222# You should have received a copy of the GNU General Public License
10223# along with this program; if not, write to the Free Software
10224# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10225#
10226# As a special exception to the GNU General Public License, if you
10227# distribute this file as part of a program that contains a
10228# configuration script generated by Autoconf, you may include it under
10229# the same distribution terms that you use for the rest of that program.
10230
10231# A sed program that does not truncate output.
10232SED=$lt_SED
10233
10234# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10235Xsed="$SED -e 1s/^X//"
10236
10237# The HP-UX ksh and POSIX shell print the target directory to stdout
10238# if CDPATH is set.
10239(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10240
10241# The names of the tagged configurations supported by this script.
10242available_tags=
10243
10244# ### BEGIN LIBTOOL CONFIG
10245
10246# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10247
10248# Shell to use when invoking shell scripts.
10249SHELL=$lt_SHELL
10250
10251# Whether or not to build shared libraries.
10252build_libtool_libs=$enable_shared
10253
10254# Whether or not to build static libraries.
10255build_old_libs=$enable_static
10256
10257# Whether or not to add -lc for building shared libraries.
10258build_libtool_need_lc=$archive_cmds_need_lc
10259
10260# Whether or not to disallow shared libs when runtime libs are static
10261allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10262
10263# Whether or not to optimize for fast installation.
10264fast_install=$enable_fast_install
10265
10266# The host system.
10267host_alias=$host_alias
10268host=$host
10269host_os=$host_os
10270
10271# The build system.
10272build_alias=$build_alias
10273build=$build
10274build_os=$build_os
10275
10276# An echo program that does not interpret backslashes.
10277echo=$lt_echo
10278
10279# The archiver.
10280AR=$lt_AR
10281AR_FLAGS=$lt_AR_FLAGS
10282
10283# A C compiler.
10284LTCC=$lt_LTCC
10285
10286# LTCC compiler flags.
10287LTCFLAGS=$lt_LTCFLAGS
10288
10289# A language-specific compiler.
10290CC=$lt_compiler
10291
10292# Is the compiler the GNU C compiler?
10293with_gcc=$GCC
10294
d9898ee8 10295# An ERE matcher.
10296EGREP=$lt_EGREP
10297
10298# The linker used to build libraries.
10299LD=$lt_LD
10300
10301# Whether we need hard or soft links.
10302LN_S=$lt_LN_S
10303
10304# A BSD-compatible nm program.
10305NM=$lt_NM
10306
10307# A symbol stripping program
10308STRIP=$lt_STRIP
10309
10310# Used to examine libraries when file_magic_cmd begins "file"
10311MAGIC_CMD=$MAGIC_CMD
10312
10313# Used on cygwin: DLL creation program.
10314DLLTOOL="$DLLTOOL"
10315
10316# Used on cygwin: object dumper.
10317OBJDUMP="$OBJDUMP"
10318
10319# Used on cygwin: assembler.
10320AS="$AS"
10321
10322# The name of the directory that contains temporary libtool files.
10323objdir=$objdir
10324
10325# How to create reloadable object files.
10326reload_flag=$lt_reload_flag
10327reload_cmds=$lt_reload_cmds
10328
10329# How to pass a linker flag through the compiler.
10330wl=$lt_lt_prog_compiler_wl
10331
10332# Object file suffix (normally "o").
10333objext="$ac_objext"
10334
10335# Old archive suffix (normally "a").
10336libext="$libext"
10337
10338# Shared library suffix (normally ".so").
10339shrext_cmds='$shrext_cmds'
10340
10341# Executable file suffix (normally "").
10342exeext="$exeext"
10343
10344# Additional compiler flags for building library objects.
10345pic_flag=$lt_lt_prog_compiler_pic
10346pic_mode=$pic_mode
10347
10348# What is the maximum length of a command?
10349max_cmd_len=$lt_cv_sys_max_cmd_len
10350
10351# Does compiler simultaneously support -c and -o options?
10352compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10353
10354# Must we lock files when doing compilation?
10355need_locks=$lt_need_locks
10356
10357# Do we need the lib prefix for modules?
10358need_lib_prefix=$need_lib_prefix
10359
10360# Do we need a version for libraries?
10361need_version=$need_version
10362
10363# Whether dlopen is supported.
10364dlopen_support=$enable_dlopen
10365
10366# Whether dlopen of programs is supported.
10367dlopen_self=$enable_dlopen_self
10368
10369# Whether dlopen of statically linked programs is supported.
10370dlopen_self_static=$enable_dlopen_self_static
10371
10372# Compiler flag to prevent dynamic linking.
10373link_static_flag=$lt_lt_prog_compiler_static
10374
10375# Compiler flag to turn off builtin functions.
10376no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10377
10378# Compiler flag to allow reflexive dlopens.
10379export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10380
10381# Compiler flag to generate shared objects directly from archives.
10382whole_archive_flag_spec=$lt_whole_archive_flag_spec
10383
10384# Compiler flag to generate thread-safe objects.
10385thread_safe_flag_spec=$lt_thread_safe_flag_spec
10386
10387# Library versioning type.
10388version_type=$version_type
10389
10390# Format of library name prefix.
10391libname_spec=$lt_libname_spec
10392
10393# List of archive names. First name is the real one, the rest are links.
10394# The last name is the one that the linker finds with -lNAME.
10395library_names_spec=$lt_library_names_spec
10396
10397# The coded name of the library, if different from the real name.
10398soname_spec=$lt_soname_spec
10399
10400# Commands used to build and install an old-style archive.
10401RANLIB=$lt_RANLIB
10402old_archive_cmds=$lt_old_archive_cmds
10403old_postinstall_cmds=$lt_old_postinstall_cmds
10404old_postuninstall_cmds=$lt_old_postuninstall_cmds
10405
10406# Create an old-style archive from a shared archive.
10407old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10408
10409# Create a temporary old-style archive to link instead of a shared archive.
10410old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10411
10412# Commands used to build and install a shared archive.
10413archive_cmds=$lt_archive_cmds
10414archive_expsym_cmds=$lt_archive_expsym_cmds
10415postinstall_cmds=$lt_postinstall_cmds
10416postuninstall_cmds=$lt_postuninstall_cmds
10417
10418# Commands used to build a loadable module (assumed same as above if empty)
10419module_cmds=$lt_module_cmds
10420module_expsym_cmds=$lt_module_expsym_cmds
10421
10422# Commands to strip libraries.
10423old_striplib=$lt_old_striplib
10424striplib=$lt_striplib
10425
10426# Dependencies to place before the objects being linked to create a
10427# shared library.
dd184caf 10428predep_objects=$lt_predep_objects
d9898ee8 10429
10430# Dependencies to place after the objects being linked to create a
10431# shared library.
dd184caf 10432postdep_objects=$lt_postdep_objects
d9898ee8 10433
10434# Dependencies to place before the objects being linked to create a
10435# shared library.
10436predeps=$lt_predeps
10437
10438# Dependencies to place after the objects being linked to create a
10439# shared library.
10440postdeps=$lt_postdeps
10441
10442# The library search path used internally by the compiler when linking
10443# a shared library.
dd184caf 10444compiler_lib_search_path=$lt_compiler_lib_search_path
d9898ee8 10445
10446# Method to check whether dependent libraries are shared objects.
10447deplibs_check_method=$lt_deplibs_check_method
10448
10449# Command to use when deplibs_check_method == file_magic.
10450file_magic_cmd=$lt_file_magic_cmd
10451
10452# Flag that allows shared libraries with undefined symbols to be built.
10453allow_undefined_flag=$lt_allow_undefined_flag
10454
10455# Flag that forces no undefined symbols.
10456no_undefined_flag=$lt_no_undefined_flag
10457
10458# Commands used to finish a libtool library installation in a directory.
10459finish_cmds=$lt_finish_cmds
10460
10461# Same as above, but a single script fragment to be evaled but not shown.
10462finish_eval=$lt_finish_eval
10463
10464# Take the output of nm and produce a listing of raw symbols and C names.
10465global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10466
10467# Transform the output of nm in a proper C declaration
10468global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10469
10470# Transform the output of nm in a C name address pair
10471global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10472
10473# This is the shared library runtime path variable.
10474runpath_var=$runpath_var
10475
10476# This is the shared library path variable.
10477shlibpath_var=$shlibpath_var
10478
10479# Is shlibpath searched before the hard-coded library search path?
10480shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10481
10482# How to hardcode a shared library path into an executable.
10483hardcode_action=$hardcode_action
10484
10485# Whether we should hardcode library paths into libraries.
10486hardcode_into_libs=$hardcode_into_libs
10487
10488# Flag to hardcode \$libdir into a binary during linking.
10489# This must work even if \$libdir does not exist.
10490hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10491
10492# If ld is used when linking, flag to hardcode \$libdir into
10493# a binary during linking. This must work even if \$libdir does
10494# not exist.
10495hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10496
10497# Whether we need a single -rpath flag with a separated argument.
10498hardcode_libdir_separator=$lt_hardcode_libdir_separator
10499
10500# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10501# resulting binary.
10502hardcode_direct=$hardcode_direct
10503
10504# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10505# resulting binary.
10506hardcode_minus_L=$hardcode_minus_L
10507
10508# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10509# the resulting binary.
10510hardcode_shlibpath_var=$hardcode_shlibpath_var
10511
10512# Set to yes if building a shared library automatically hardcodes DIR into the library
10513# and all subsequent libraries and executables linked against it.
10514hardcode_automatic=$hardcode_automatic
10515
10516# Variables whose values should be saved in libtool wrapper scripts and
10517# restored at relink time.
10518variables_saved_for_relink="$variables_saved_for_relink"
10519
10520# Whether libtool must link a program against all its dependency libraries.
10521link_all_deplibs=$link_all_deplibs
10522
10523# Compile-time system search path for libraries
dd184caf 10524sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 10525
10526# Run-time system search path for libraries
10527sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10528
10529# Fix the shell variable \$srcfile for the compiler.
10530fix_srcfile_path="$fix_srcfile_path"
10531
10532# Set to yes if exported symbols are required.
10533always_export_symbols=$always_export_symbols
10534
10535# The commands to list exported symbols.
10536export_symbols_cmds=$lt_export_symbols_cmds
10537
10538# The commands to extract the exported symbol list from a shared archive.
10539extract_expsyms_cmds=$lt_extract_expsyms_cmds
10540
10541# Symbols that should not be listed in the preloaded symbols.
10542exclude_expsyms=$lt_exclude_expsyms
10543
10544# Symbols that must always be exported.
10545include_expsyms=$lt_include_expsyms
10546
10547# ### END LIBTOOL CONFIG
10548
10549__EOF__
10550
10551
10552 case $host_os in
10553 aix3*)
10554 cat <<\EOF >> "$cfgfile"
10555
10556# AIX sometimes has problems with the GCC collect2 program. For some
10557# reason, if we set the COLLECT_NAMES environment variable, the problems
10558# vanish in a puff of smoke.
10559if test "X${COLLECT_NAMES+set}" != Xset; then
10560 COLLECT_NAMES=
10561 export COLLECT_NAMES
10562fi
10563EOF
10564 ;;
10565 esac
10566
10567 # We use sed instead of cat because bash on DJGPP gets confused if
10568 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10569 # text mode, it properly converts lines to CR/LF. This bash problem
10570 # is reportedly fixed, but why not run on old versions too?
10571 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10572
10573 mv -f "$cfgfile" "$ofile" || \
10574 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10575 chmod +x "$ofile"
10576
10577else
10578 # If there is no Makefile yet, we rely on a make rule to execute
10579 # `config.status --recheck' to rerun these tests and create the
10580 # libtool script then.
10581 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10582 if test -f "$ltmain_in"; then
10583 test -f Makefile && make "$ltmain"
10584 fi
10585fi
10586
10587
10588ac_ext=c
10589ac_cpp='$CPP $CPPFLAGS'
10590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10592ac_compiler_gnu=$ac_cv_c_compiler_gnu
10593
10594CC="$lt_save_CC"
10595
10596
dd184caf 10597# Check whether --with-tags was given.
d9898ee8 10598if test "${with_tags+set}" = set; then
dd184caf 10599 withval=$with_tags; tagnames="$withval"
10600fi
10601
d9898ee8 10602
10603if test -f "$ltmain" && test -n "$tagnames"; then
10604 if test ! -f "${ofile}"; then
10605 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10606echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10607 fi
10608
10609 if test -z "$LTCC"; then
10610 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10611 if test -z "$LTCC"; then
10612 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10613echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10614 else
10615 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10616echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10617 fi
10618 fi
10619 if test -z "$LTCFLAGS"; then
10620 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10621 fi
10622
10623 # Extract list of available tagged configurations in $ofile.
10624 # Note that this assumes the entire list is on one line.
10625 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10626
10627 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10628 for tagname in $tagnames; do
10629 IFS="$lt_save_ifs"
10630 # Check whether tagname contains only valid characters
10631 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10632 "") ;;
10633 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10634echo "$as_me: error: invalid tag name: $tagname" >&2;}
10635 { (exit 1); exit 1; }; }
10636 ;;
10637 esac
10638
10639 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10640 then
10641 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10642echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10643 { (exit 1); exit 1; }; }
10644 fi
10645
10646 # Update the list of available tags.
10647 if test -n "$tagname"; then
10648 echo appending configuration tag \"$tagname\" to $ofile
10649
10650 case $tagname in
10651 CXX)
10652 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10653 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10654 (test "X$CXX" != "Xg++"))) ; then
dd184caf 10655 ac_ext=cpp
d9898ee8 10656ac_cpp='$CXXCPP $CPPFLAGS'
10657ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10658ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10659ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10660
10661
10662
10663
10664archive_cmds_need_lc_CXX=no
10665allow_undefined_flag_CXX=
10666always_export_symbols_CXX=no
10667archive_expsym_cmds_CXX=
10668export_dynamic_flag_spec_CXX=
10669hardcode_direct_CXX=no
10670hardcode_libdir_flag_spec_CXX=
10671hardcode_libdir_flag_spec_ld_CXX=
10672hardcode_libdir_separator_CXX=
10673hardcode_minus_L_CXX=no
10674hardcode_shlibpath_var_CXX=unsupported
10675hardcode_automatic_CXX=no
10676module_cmds_CXX=
10677module_expsym_cmds_CXX=
10678link_all_deplibs_CXX=unknown
10679old_archive_cmds_CXX=$old_archive_cmds
10680no_undefined_flag_CXX=
10681whole_archive_flag_spec_CXX=
10682enable_shared_with_static_runtimes_CXX=no
10683
10684# Dependencies to place before and after the object being linked:
10685predep_objects_CXX=
10686postdep_objects_CXX=
10687predeps_CXX=
10688postdeps_CXX=
10689compiler_lib_search_path_CXX=
10690
10691# Source file extension for C++ test sources.
10692ac_ext=cpp
10693
10694# Object file extension for compiled C++ test sources.
10695objext=o
10696objext_CXX=$objext
10697
10698# Code to be used in simple compile tests
10699lt_simple_compile_test_code="int some_variable = 0;\n"
10700
10701# Code to be used in simple link tests
10702lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10703
10704# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10705
10706# If no C compiler was specified, use CC.
10707LTCC=${LTCC-"$CC"}
10708
10709# If no C compiler flags were specified, use CFLAGS.
10710LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10711
10712# Allow CC to be a program name with arguments.
10713compiler=$CC
10714
10715
10716# save warnings/boilerplate of simple test code
10717ac_outfile=conftest.$ac_objext
10718printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10719eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10720_lt_compiler_boilerplate=`cat conftest.err`
10721$rm conftest*
10722
10723ac_outfile=conftest.$ac_objext
10724printf "$lt_simple_link_test_code" >conftest.$ac_ext
10725eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10726_lt_linker_boilerplate=`cat conftest.err`
10727$rm conftest*
10728
10729
10730# Allow CC to be a program name with arguments.
10731lt_save_CC=$CC
10732lt_save_LD=$LD
10733lt_save_GCC=$GCC
10734GCC=$GXX
10735lt_save_with_gnu_ld=$with_gnu_ld
10736lt_save_path_LD=$lt_cv_path_LD
10737if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10738 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10739else
10740 $as_unset lt_cv_prog_gnu_ld
10741fi
10742if test -n "${lt_cv_path_LDCXX+set}"; then
10743 lt_cv_path_LD=$lt_cv_path_LDCXX
10744else
10745 $as_unset lt_cv_path_LD
10746fi
10747test -z "${LDCXX+set}" || LD=$LDCXX
10748CC=${CXX-"c++"}
10749compiler=$CC
10750compiler_CXX=$CC
10751for cc_temp in $compiler""; do
10752 case $cc_temp in
10753 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10754 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10755 \-*) ;;
10756 *) break;;
10757 esac
10758done
10759cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10760
10761
10762# We don't want -fno-exception wen compiling C++ code, so set the
10763# no_builtin_flag separately
10764if test "$GXX" = yes; then
10765 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10766else
10767 lt_prog_compiler_no_builtin_flag_CXX=
10768fi
10769
10770if test "$GXX" = yes; then
10771 # Set up default GNU C++ configuration
10772
10773
dd184caf 10774# Check whether --with-gnu-ld was given.
d9898ee8 10775if test "${with_gnu_ld+set}" = set; then
dd184caf 10776 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 10777else
10778 with_gnu_ld=no
dd184caf 10779fi
10780
d9898ee8 10781ac_prog=ld
10782if test "$GCC" = yes; then
10783 # Check if gcc -print-prog-name=ld gives a path.
dd184caf 10784 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10785echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 10786 case $host in
10787 *-*-mingw*)
10788 # gcc leaves a trailing carriage return which upsets mingw
10789 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10790 *)
10791 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10792 esac
10793 case $ac_prog in
10794 # Accept absolute paths.
10795 [\\/]* | ?:[\\/]*)
10796 re_direlt='/[^/][^/]*/\.\./'
10797 # Canonicalize the pathname of ld
10798 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10799 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10800 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10801 done
10802 test -z "$LD" && LD="$ac_prog"
10803 ;;
10804 "")
10805 # If it fails, then pretend we aren't using GCC.
10806 ac_prog=ld
10807 ;;
10808 *)
10809 # If it is relative, then search for the first ld in PATH.
10810 with_gnu_ld=unknown
10811 ;;
10812 esac
10813elif test "$with_gnu_ld" = yes; then
dd184caf 10814 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10815echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 10816else
dd184caf 10817 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10818echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 10819fi
10820if test "${lt_cv_path_LD+set}" = set; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10822else
10823 if test -z "$LD"; then
10824 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10825 for ac_dir in $PATH; do
10826 IFS="$lt_save_ifs"
10827 test -z "$ac_dir" && ac_dir=.
10828 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10829 lt_cv_path_LD="$ac_dir/$ac_prog"
10830 # Check to see if the program is GNU ld. I'd rather use --version,
10831 # but apparently some variants of GNU ld only accept -v.
10832 # Break only if it was the GNU/non-GNU ld that we prefer.
10833 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10834 *GNU* | *'with BFD'*)
10835 test "$with_gnu_ld" != no && break
10836 ;;
10837 *)
10838 test "$with_gnu_ld" != yes && break
10839 ;;
10840 esac
10841 fi
10842 done
10843 IFS="$lt_save_ifs"
10844else
10845 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10846fi
10847fi
10848
10849LD="$lt_cv_path_LD"
10850if test -n "$LD"; then
dd184caf 10851 { echo "$as_me:$LINENO: result: $LD" >&5
10852echo "${ECHO_T}$LD" >&6; }
d9898ee8 10853else
dd184caf 10854 { echo "$as_me:$LINENO: result: no" >&5
10855echo "${ECHO_T}no" >&6; }
d9898ee8 10856fi
10857test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10858echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10859 { (exit 1); exit 1; }; }
dd184caf 10860{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10861echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 10862if test "${lt_cv_prog_gnu_ld+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10864else
10865 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10866case `$LD -v 2>&1 </dev/null` in
10867*GNU* | *'with BFD'*)
10868 lt_cv_prog_gnu_ld=yes
10869 ;;
10870*)
10871 lt_cv_prog_gnu_ld=no
10872 ;;
10873esac
10874fi
dd184caf 10875{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10876echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 10877with_gnu_ld=$lt_cv_prog_gnu_ld
10878
10879
10880
10881 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10882 # archiving commands below assume that GNU ld is being used.
10883 if test "$with_gnu_ld" = yes; then
10884 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10885 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'
10886
10887 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10888 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10889
10890 # If archive_cmds runs LD, not CC, wlarc should be empty
10891 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10892 # investigate it a little bit more. (MM)
10893 wlarc='${wl}'
10894
10895 # ancient GNU ld didn't support --whole-archive et. al.
10896 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10897 grep 'no-whole-archive' > /dev/null; then
10898 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10899 else
10900 whole_archive_flag_spec_CXX=
10901 fi
10902 else
10903 with_gnu_ld=no
10904 wlarc=
10905
10906 # A generic and very simple default shared library creation
10907 # command for GNU C++ for the case where it uses the native
10908 # linker, instead of GNU ld. If possible, this setting should
10909 # overridden to take advantage of the native linker features on
10910 # the platform it is being used on.
10911 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10912 fi
10913
10914 # Commands to make compiler produce verbose output that lists
10915 # what "hidden" libraries, object files and flags are used when
10916 # linking a shared library.
10917 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10918
10919else
10920 GXX=no
10921 with_gnu_ld=no
10922 wlarc=
10923fi
10924
10925# PORTME: fill in a description of your system's C++ link characteristics
dd184caf 10926{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10927echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 10928ld_shlibs_CXX=yes
10929case $host_os in
10930 aix3*)
10931 # FIXME: insert proper C++ library support
10932 ld_shlibs_CXX=no
10933 ;;
10934 aix4* | aix5*)
10935 if test "$host_cpu" = ia64; then
10936 # On IA64, the linker does run time linking by default, so we don't
10937 # have to do anything special.
10938 aix_use_runtimelinking=no
10939 exp_sym_flag='-Bexport'
10940 no_entry_flag=""
10941 else
10942 aix_use_runtimelinking=no
10943
10944 # Test if we are trying to use run time linking or normal
10945 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10946 # need to do runtime linking.
10947 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10948 for ld_flag in $LDFLAGS; do
10949 case $ld_flag in
10950 *-brtl*)
10951 aix_use_runtimelinking=yes
10952 break
10953 ;;
10954 esac
10955 done
10956 ;;
10957 esac
10958
10959 exp_sym_flag='-bexport'
10960 no_entry_flag='-bnoentry'
10961 fi
10962
10963 # When large executables or shared objects are built, AIX ld can
10964 # have problems creating the table of contents. If linking a library
10965 # or program results in "error TOC overflow" add -mminimal-toc to
10966 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10967 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10968
10969 archive_cmds_CXX=''
10970 hardcode_direct_CXX=yes
10971 hardcode_libdir_separator_CXX=':'
10972 link_all_deplibs_CXX=yes
10973
10974 if test "$GXX" = yes; then
10975 case $host_os in aix4.[012]|aix4.[012].*)
10976 # We only want to do this on AIX 4.2 and lower, the check
10977 # below for broken collect2 doesn't work under 4.3+
10978 collect2name=`${CC} -print-prog-name=collect2`
10979 if test -f "$collect2name" && \
10980 strings "$collect2name" | grep resolve_lib_name >/dev/null
10981 then
10982 # We have reworked collect2
10983 hardcode_direct_CXX=yes
10984 else
10985 # We have old collect2
10986 hardcode_direct_CXX=unsupported
10987 # It fails to find uninstalled libraries when the uninstalled
10988 # path is not listed in the libpath. Setting hardcode_minus_L
10989 # to unsupported forces relinking
10990 hardcode_minus_L_CXX=yes
10991 hardcode_libdir_flag_spec_CXX='-L$libdir'
10992 hardcode_libdir_separator_CXX=
10993 fi
10994 ;;
10995 esac
10996 shared_flag='-shared'
10997 if test "$aix_use_runtimelinking" = yes; then
10998 shared_flag="$shared_flag "'${wl}-G'
10999 fi
11000 else
11001 # not using gcc
11002 if test "$host_cpu" = ia64; then
11003 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11004 # chokes on -Wl,-G. The following line is correct:
11005 shared_flag='-G'
11006 else
11007 if test "$aix_use_runtimelinking" = yes; then
11008 shared_flag='${wl}-G'
11009 else
11010 shared_flag='${wl}-bM:SRE'
11011 fi
11012 fi
11013 fi
11014
11015 # It seems that -bexpall does not export symbols beginning with
11016 # underscore (_), so it is better to generate a list of symbols to export.
11017 always_export_symbols_CXX=yes
11018 if test "$aix_use_runtimelinking" = yes; then
11019 # Warning - without using the other runtime loading flags (-brtl),
11020 # -berok will link without error, but may produce a broken library.
11021 allow_undefined_flag_CXX='-berok'
11022 # Determine the default libpath from the value encoded in an empty executable.
11023 cat >conftest.$ac_ext <<_ACEOF
11024/* confdefs.h. */
11025_ACEOF
11026cat confdefs.h >>conftest.$ac_ext
11027cat >>conftest.$ac_ext <<_ACEOF
11028/* end confdefs.h. */
11029
11030int
11031main ()
11032{
11033
11034 ;
11035 return 0;
11036}
11037_ACEOF
11038rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 11039if { (ac_try="$ac_link"
11040case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11043esac
11044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_link") 2>conftest.er1
d9898ee8 11046 ac_status=$?
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11051 (exit $ac_status); } && {
11052 test -z "$ac_cxx_werror_flag" ||
11053 test ! -s conftest.err
11054 } && test -s conftest$ac_exeext &&
11055 $as_test_x conftest$ac_exeext; then
d9898ee8 11056
11057aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11058}'`
11059# Check for a 64-bit object if we didn't find anything.
11060if 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; }
11061}'`; fi
11062else
11063 echo "$as_me: failed program was:" >&5
11064sed 's/^/| /' conftest.$ac_ext >&5
11065
dd184caf 11066
d9898ee8 11067fi
dd184caf 11068
11069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11070 conftest$ac_exeext conftest.$ac_ext
11071if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11072
11073 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11074
11075 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"
11076 else
11077 if test "$host_cpu" = ia64; then
11078 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11079 allow_undefined_flag_CXX="-z nodefs"
11080 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"
11081 else
11082 # Determine the default libpath from the value encoded in an empty executable.
11083 cat >conftest.$ac_ext <<_ACEOF
11084/* confdefs.h. */
11085_ACEOF
11086cat confdefs.h >>conftest.$ac_ext
11087cat >>conftest.$ac_ext <<_ACEOF
11088/* end confdefs.h. */
11089
11090int
11091main ()
11092{
11093
11094 ;
11095 return 0;
11096}
11097_ACEOF
11098rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 11099if { (ac_try="$ac_link"
11100case "(($ac_try" in
11101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102 *) ac_try_echo=$ac_try;;
11103esac
11104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105 (eval "$ac_link") 2>conftest.er1
d9898ee8 11106 ac_status=$?
11107 grep -v '^ *+' conftest.er1 >conftest.err
11108 rm -f conftest.er1
11109 cat conftest.err >&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11111 (exit $ac_status); } && {
11112 test -z "$ac_cxx_werror_flag" ||
11113 test ! -s conftest.err
11114 } && test -s conftest$ac_exeext &&
11115 $as_test_x conftest$ac_exeext; then
d9898ee8 11116
11117aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11118}'`
11119# Check for a 64-bit object if we didn't find anything.
11120if 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; }
11121}'`; fi
11122else
11123 echo "$as_me: failed program was:" >&5
11124sed 's/^/| /' conftest.$ac_ext >&5
11125
dd184caf 11126
d9898ee8 11127fi
dd184caf 11128
11129rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11130 conftest$ac_exeext conftest.$ac_ext
11131if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11132
11133 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11134 # Warning - without using the other run time loading flags,
11135 # -berok will link without error, but may produce a broken library.
11136 no_undefined_flag_CXX=' ${wl}-bernotok'
11137 allow_undefined_flag_CXX=' ${wl}-berok'
11138 # Exported symbols can be pulled into shared objects from archives
11139 whole_archive_flag_spec_CXX='$convenience'
11140 archive_cmds_need_lc_CXX=yes
11141 # This is similar to how AIX traditionally builds its shared libraries.
11142 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'
11143 fi
11144 fi
11145 ;;
11146
11147 beos*)
11148 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11149 allow_undefined_flag_CXX=unsupported
11150 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11151 # support --undefined. This deserves some investigation. FIXME
11152 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11153 else
11154 ld_shlibs_CXX=no
11155 fi
11156 ;;
11157
11158 chorus*)
11159 case $cc_basename in
11160 *)
11161 # FIXME: insert proper C++ library support
11162 ld_shlibs_CXX=no
11163 ;;
11164 esac
11165 ;;
11166
11167 cygwin* | mingw* | pw32*)
11168 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11169 # as there is no search path for DLLs.
11170 hardcode_libdir_flag_spec_CXX='-L$libdir'
11171 allow_undefined_flag_CXX=unsupported
11172 always_export_symbols_CXX=no
11173 enable_shared_with_static_runtimes_CXX=yes
11174
11175 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11176 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'
11177 # If the export-symbols file already is a .def file (1st line
11178 # is EXPORTS), use it as is; otherwise, prepend...
11179 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11180 cp $export_symbols $output_objdir/$soname.def;
11181 else
11182 echo EXPORTS > $output_objdir/$soname.def;
11183 cat $export_symbols >> $output_objdir/$soname.def;
11184 fi~
11185 $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'
11186 else
11187 ld_shlibs_CXX=no
11188 fi
11189 ;;
11190 darwin* | rhapsody*)
11191 case $host_os in
11192 rhapsody* | darwin1.[012])
11193 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11194 ;;
11195 *) # Darwin 1.3 on
11196 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11197 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11198 else
11199 case ${MACOSX_DEPLOYMENT_TARGET} in
11200 10.[012])
11201 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11202 ;;
11203 10.*)
11204 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11205 ;;
11206 esac
11207 fi
11208 ;;
11209 esac
11210 archive_cmds_need_lc_CXX=no
11211 hardcode_direct_CXX=no
11212 hardcode_automatic_CXX=yes
11213 hardcode_shlibpath_var_CXX=unsupported
11214 whole_archive_flag_spec_CXX=''
11215 link_all_deplibs_CXX=yes
11216
11217 if test "$GXX" = yes ; then
11218 lt_int_apple_cc_single_mod=no
11219 output_verbose_link_cmd='echo'
11220 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11221 lt_int_apple_cc_single_mod=yes
11222 fi
11223 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11224 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11225 else
11226 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'
11227 fi
11228 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11229 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11230 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11231 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}'
11232 else
11233 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}'
11234 fi
11235 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}'
11236 else
11237 case $cc_basename in
11238 xlc*)
11239 output_verbose_link_cmd='echo'
11240 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'
11241 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11242 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11243 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}'
11244 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}'
11245 ;;
11246 *)
11247 ld_shlibs_CXX=no
11248 ;;
11249 esac
11250 fi
11251 ;;
11252
11253 dgux*)
11254 case $cc_basename in
11255 ec++*)
11256 # FIXME: insert proper C++ library support
11257 ld_shlibs_CXX=no
11258 ;;
11259 ghcx*)
11260 # Green Hills C++ Compiler
11261 # FIXME: insert proper C++ library support
11262 ld_shlibs_CXX=no
11263 ;;
11264 *)
11265 # FIXME: insert proper C++ library support
11266 ld_shlibs_CXX=no
11267 ;;
11268 esac
11269 ;;
11270 freebsd[12]*)
11271 # C++ shared libraries reported to be fairly broken before switch to ELF
11272 ld_shlibs_CXX=no
11273 ;;
11274 freebsd-elf*)
11275 archive_cmds_need_lc_CXX=no
11276 ;;
11277 freebsd* | kfreebsd*-gnu | dragonfly*)
11278 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11279 # conventions
11280 ld_shlibs_CXX=yes
11281 ;;
11282 gnu*)
11283 ;;
11284 hpux9*)
11285 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11286 hardcode_libdir_separator_CXX=:
11287 export_dynamic_flag_spec_CXX='${wl}-E'
11288 hardcode_direct_CXX=yes
11289 hardcode_minus_L_CXX=yes # Not in the search PATH,
11290 # but as the default
11291 # location of the library.
11292
11293 case $cc_basename in
11294 CC*)
11295 # FIXME: insert proper C++ library support
11296 ld_shlibs_CXX=no
11297 ;;
11298 aCC*)
11299 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'
11300 # Commands to make compiler produce verbose output that lists
11301 # what "hidden" libraries, object files and flags are used when
11302 # linking a shared library.
11303 #
11304 # There doesn't appear to be a way to prevent this compiler from
11305 # explicitly linking system object files so we need to strip them
11306 # from the output so that they don't get included in the library
11307 # dependencies.
11308 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'
11309 ;;
11310 *)
11311 if test "$GXX" = yes; then
11312 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'
11313 else
11314 # FIXME: insert proper C++ library support
11315 ld_shlibs_CXX=no
11316 fi
11317 ;;
11318 esac
11319 ;;
11320 hpux10*|hpux11*)
11321 if test $with_gnu_ld = no; then
11322 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11323 hardcode_libdir_separator_CXX=:
11324
11325 case $host_cpu in
11326 hppa*64*|ia64*)
11327 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11328 ;;
11329 *)
11330 export_dynamic_flag_spec_CXX='${wl}-E'
11331 ;;
11332 esac
11333 fi
11334 case $host_cpu in
11335 hppa*64*|ia64*)
11336 hardcode_direct_CXX=no
11337 hardcode_shlibpath_var_CXX=no
11338 ;;
11339 *)
11340 hardcode_direct_CXX=yes
11341 hardcode_minus_L_CXX=yes # Not in the search PATH,
11342 # but as the default
11343 # location of the library.
11344 ;;
11345 esac
11346
11347 case $cc_basename in
11348 CC*)
11349 # FIXME: insert proper C++ library support
11350 ld_shlibs_CXX=no
11351 ;;
11352 aCC*)
11353 case $host_cpu in
11354 hppa*64*)
11355 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11356 ;;
11357 ia64*)
11358 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11359 ;;
11360 *)
11361 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11362 ;;
11363 esac
11364 # Commands to make compiler produce verbose output that lists
11365 # what "hidden" libraries, object files and flags are used when
11366 # linking a shared library.
11367 #
11368 # There doesn't appear to be a way to prevent this compiler from
11369 # explicitly linking system object files so we need to strip them
11370 # from the output so that they don't get included in the library
11371 # dependencies.
11372 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'
11373 ;;
11374 *)
11375 if test "$GXX" = yes; then
11376 if test $with_gnu_ld = no; then
11377 case $host_cpu in
11378 hppa*64*)
11379 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11380 ;;
11381 ia64*)
11382 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11383 ;;
11384 *)
11385 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'
11386 ;;
11387 esac
11388 fi
11389 else
11390 # FIXME: insert proper C++ library support
11391 ld_shlibs_CXX=no
11392 fi
11393 ;;
11394 esac
11395 ;;
11396 interix3*)
11397 hardcode_direct_CXX=no
11398 hardcode_shlibpath_var_CXX=no
11399 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11400 export_dynamic_flag_spec_CXX='${wl}-E'
11401 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11402 # Instead, shared libraries are loaded at an image base (0x10000000 by
11403 # default) and relocated if they conflict, which is a slow very memory
11404 # consuming and fragmenting process. To avoid this, we pick a random,
11405 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11406 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11407 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'
11408 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'
11409 ;;
11410 irix5* | irix6*)
11411 case $cc_basename in
11412 CC*)
11413 # SGI C++
11414 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'
11415
11416 # Archives containing C++ object files must be created using
11417 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11418 # necessary to make sure instantiated templates are included
11419 # in the archive.
11420 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11421 ;;
11422 *)
11423 if test "$GXX" = yes; then
11424 if test "$with_gnu_ld" = no; then
11425 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'
11426 else
11427 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'
11428 fi
11429 fi
11430 link_all_deplibs_CXX=yes
11431 ;;
11432 esac
11433 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11434 hardcode_libdir_separator_CXX=:
11435 ;;
11436 linux*)
11437 case $cc_basename in
11438 KCC*)
11439 # Kuck and Associates, Inc. (KAI) C++ Compiler
11440
11441 # KCC will only create a shared library if the output file
11442 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11443 # to its proper name (with version) after linking.
11444 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'
11445 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'
11446 # Commands to make compiler produce verbose output that lists
11447 # what "hidden" libraries, object files and flags are used when
11448 # linking a shared library.
11449 #
11450 # There doesn't appear to be a way to prevent this compiler from
11451 # explicitly linking system object files so we need to strip them
11452 # from the output so that they don't get included in the library
11453 # dependencies.
11454 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'
11455
11456 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11457 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11458
11459 # Archives containing C++ object files must be created using
11460 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11461 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11462 ;;
11463 icpc*)
11464 # Intel C++
11465 with_gnu_ld=yes
11466 # version 8.0 and above of icpc choke on multiply defined symbols
11467 # if we add $predep_objects and $postdep_objects, however 7.1 and
11468 # earlier do not add the objects themselves.
11469 case `$CC -V 2>&1` in
11470 *"Version 7."*)
11471 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11472 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'
11473 ;;
11474 *) # Version 8.0 or newer
11475 tmp_idyn=
11476 case $host_cpu in
11477 ia64*) tmp_idyn=' -i_dynamic';;
11478 esac
11479 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11480 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'
11481 ;;
11482 esac
11483 archive_cmds_need_lc_CXX=no
11484 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11485 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11486 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11487 ;;
11488 pgCC*)
11489 # Portland Group C++ compiler
11490 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11491 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'
11492
11493 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11494 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11495 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'
11496 ;;
11497 cxx*)
11498 # Compaq C++
11499 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11500 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'
11501
11502 runpath_var=LD_RUN_PATH
11503 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11504 hardcode_libdir_separator_CXX=:
11505
11506 # Commands to make compiler produce verbose output that lists
11507 # what "hidden" libraries, object files and flags are used when
11508 # linking a shared library.
11509 #
11510 # There doesn't appear to be a way to prevent this compiler from
11511 # explicitly linking system object files so we need to strip them
11512 # from the output so that they don't get included in the library
11513 # dependencies.
11514 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'
11515 ;;
11516 esac
11517 ;;
11518 lynxos*)
11519 # FIXME: insert proper C++ library support
11520 ld_shlibs_CXX=no
11521 ;;
11522 m88k*)
11523 # FIXME: insert proper C++ library support
11524 ld_shlibs_CXX=no
11525 ;;
11526 mvs*)
11527 case $cc_basename in
11528 cxx*)
11529 # FIXME: insert proper C++ library support
11530 ld_shlibs_CXX=no
11531 ;;
11532 *)
11533 # FIXME: insert proper C++ library support
11534 ld_shlibs_CXX=no
11535 ;;
11536 esac
11537 ;;
11538 netbsd*)
11539 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11540 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11541 wlarc=
11542 hardcode_libdir_flag_spec_CXX='-R$libdir'
11543 hardcode_direct_CXX=yes
11544 hardcode_shlibpath_var_CXX=no
11545 fi
11546 # Workaround some broken pre-1.5 toolchains
11547 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11548 ;;
11549 openbsd2*)
11550 # C++ shared libraries are fairly broken
11551 ld_shlibs_CXX=no
11552 ;;
11553 openbsd*)
11554 hardcode_direct_CXX=yes
11555 hardcode_shlibpath_var_CXX=no
11556 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11557 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11558 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11559 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11560 export_dynamic_flag_spec_CXX='${wl}-E'
11561 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11562 fi
11563 output_verbose_link_cmd='echo'
11564 ;;
11565 osf3*)
11566 case $cc_basename in
11567 KCC*)
11568 # Kuck and Associates, Inc. (KAI) C++ Compiler
11569
11570 # KCC will only create a shared library if the output file
11571 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11572 # to its proper name (with version) after linking.
11573 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'
11574
11575 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11576 hardcode_libdir_separator_CXX=:
11577
11578 # Archives containing C++ object files must be created using
11579 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11580 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11581
11582 ;;
11583 RCC*)
11584 # Rational C++ 2.4.1
11585 # FIXME: insert proper C++ library support
11586 ld_shlibs_CXX=no
11587 ;;
11588 cxx*)
11589 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11590 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'
11591
11592 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11593 hardcode_libdir_separator_CXX=:
11594
11595 # Commands to make compiler produce verbose output that lists
11596 # what "hidden" libraries, object files and flags are used when
11597 # linking a shared library.
11598 #
11599 # There doesn't appear to be a way to prevent this compiler from
11600 # explicitly linking system object files so we need to strip them
11601 # from the output so that they don't get included in the library
11602 # dependencies.
11603 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'
11604 ;;
11605 *)
11606 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11607 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11608 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'
11609
11610 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11611 hardcode_libdir_separator_CXX=:
11612
11613 # Commands to make compiler produce verbose output that lists
11614 # what "hidden" libraries, object files and flags are used when
11615 # linking a shared library.
11616 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11617
11618 else
11619 # FIXME: insert proper C++ library support
11620 ld_shlibs_CXX=no
11621 fi
11622 ;;
11623 esac
11624 ;;
11625 osf4* | osf5*)
11626 case $cc_basename in
11627 KCC*)
11628 # Kuck and Associates, Inc. (KAI) C++ Compiler
11629
11630 # KCC will only create a shared library if the output file
11631 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11632 # to its proper name (with version) after linking.
11633 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'
11634
11635 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11636 hardcode_libdir_separator_CXX=:
11637
11638 # Archives containing C++ object files must be created using
11639 # the KAI C++ compiler.
11640 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11641 ;;
11642 RCC*)
11643 # Rational C++ 2.4.1
11644 # FIXME: insert proper C++ library support
11645 ld_shlibs_CXX=no
11646 ;;
11647 cxx*)
11648 allow_undefined_flag_CXX=' -expect_unresolved \*'
11649 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'
11650 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11651 echo "-hidden">> $lib.exp~
11652 $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~
11653 $rm $lib.exp'
11654
11655 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11656 hardcode_libdir_separator_CXX=:
11657
11658 # Commands to make compiler produce verbose output that lists
11659 # what "hidden" libraries, object files and flags are used when
11660 # linking a shared library.
11661 #
11662 # There doesn't appear to be a way to prevent this compiler from
11663 # explicitly linking system object files so we need to strip them
11664 # from the output so that they don't get included in the library
11665 # dependencies.
11666 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'
11667 ;;
11668 *)
11669 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11670 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11671 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'
11672
11673 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11674 hardcode_libdir_separator_CXX=:
11675
11676 # Commands to make compiler produce verbose output that lists
11677 # what "hidden" libraries, object files and flags are used when
11678 # linking a shared library.
11679 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11680
11681 else
11682 # FIXME: insert proper C++ library support
11683 ld_shlibs_CXX=no
11684 fi
11685 ;;
11686 esac
11687 ;;
11688 psos*)
11689 # FIXME: insert proper C++ library support
11690 ld_shlibs_CXX=no
11691 ;;
11692 sunos4*)
11693 case $cc_basename in
11694 CC*)
11695 # Sun C++ 4.x
11696 # FIXME: insert proper C++ library support
11697 ld_shlibs_CXX=no
11698 ;;
11699 lcc*)
11700 # Lucid
11701 # FIXME: insert proper C++ library support
11702 ld_shlibs_CXX=no
11703 ;;
11704 *)
11705 # FIXME: insert proper C++ library support
11706 ld_shlibs_CXX=no
11707 ;;
11708 esac
11709 ;;
11710 solaris*)
11711 case $cc_basename in
11712 CC*)
11713 # Sun C++ 4.2, 5.x and Centerline C++
11714 archive_cmds_need_lc_CXX=yes
11715 no_undefined_flag_CXX=' -zdefs'
11716 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11717 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11718 $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'
11719
11720 hardcode_libdir_flag_spec_CXX='-R$libdir'
11721 hardcode_shlibpath_var_CXX=no
11722 case $host_os in
11723 solaris2.[0-5] | solaris2.[0-5].*) ;;
11724 *)
11725 # The C++ compiler is used as linker so we must use $wl
11726 # flag to pass the commands to the underlying system
11727 # linker. We must also pass each convience library through
11728 # to the system linker between allextract/defaultextract.
11729 # The C++ compiler will combine linker options so we
11730 # cannot just pass the convience library names through
11731 # without $wl.
11732 # Supported since Solaris 2.6 (maybe 2.5.1?)
11733 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'
11734 ;;
11735 esac
11736 link_all_deplibs_CXX=yes
11737
11738 output_verbose_link_cmd='echo'
11739
11740 # Archives containing C++ object files must be created using
11741 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11742 # necessary to make sure instantiated templates are included
11743 # in the archive.
11744 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11745 ;;
11746 gcx*)
11747 # Green Hills C++ Compiler
11748 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11749
11750 # The C++ compiler must be used to create the archive.
11751 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11752 ;;
11753 *)
11754 # GNU C++ compiler with Solaris linker
11755 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11756 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11757 if $CC --version | grep -v '^2\.7' > /dev/null; then
11758 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11759 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11760 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11761
11762 # Commands to make compiler produce verbose output that lists
11763 # what "hidden" libraries, object files and flags are used when
11764 # linking a shared library.
11765 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11766 else
11767 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11768 # platform.
11769 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11770 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11771 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11772
11773 # Commands to make compiler produce verbose output that lists
11774 # what "hidden" libraries, object files and flags are used when
11775 # linking a shared library.
11776 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11777 fi
11778
11779 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11780 fi
11781 ;;
11782 esac
11783 ;;
11784 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11785 no_undefined_flag_CXX='${wl}-z,text'
11786 archive_cmds_need_lc_CXX=no
11787 hardcode_shlibpath_var_CXX=no
11788 runpath_var='LD_RUN_PATH'
11789
11790 case $cc_basename in
11791 CC*)
11792 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11793 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11794 ;;
11795 *)
11796 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11797 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11798 ;;
11799 esac
11800 ;;
11801 sysv5* | sco3.2v5* | sco5v6*)
11802 # Note: We can NOT use -z defs as we might desire, because we do not
11803 # link with -lc, and that would cause any symbols used from libc to
11804 # always be unresolved, which means just about no library would
11805 # ever link correctly. If we're not using GNU ld we use -z text
11806 # though, which does catch some bad symbols but isn't as heavy-handed
11807 # as -z defs.
11808 # For security reasons, it is highly recommended that you always
11809 # use absolute paths for naming shared libraries, and exclude the
11810 # DT_RUNPATH tag from executables and libraries. But doing so
11811 # requires that you compile everything twice, which is a pain.
11812 # So that behaviour is only enabled if SCOABSPATH is set to a
11813 # non-empty value in the environment. Most likely only useful for
11814 # creating official distributions of packages.
11815 # This is a hack until libtool officially supports absolute path
11816 # names for shared libraries.
11817 no_undefined_flag_CXX='${wl}-z,text'
11818 allow_undefined_flag_CXX='${wl}-z,nodefs'
11819 archive_cmds_need_lc_CXX=no
11820 hardcode_shlibpath_var_CXX=no
11821 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11822 hardcode_libdir_separator_CXX=':'
11823 link_all_deplibs_CXX=yes
11824 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11825 runpath_var='LD_RUN_PATH'
11826
11827 case $cc_basename in
11828 CC*)
11829 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11830 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11831 ;;
11832 *)
11833 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11834 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11835 ;;
11836 esac
11837 ;;
11838 tandem*)
11839 case $cc_basename in
11840 NCC*)
11841 # NonStop-UX NCC 3.20
11842 # FIXME: insert proper C++ library support
11843 ld_shlibs_CXX=no
11844 ;;
11845 *)
11846 # FIXME: insert proper C++ library support
11847 ld_shlibs_CXX=no
11848 ;;
11849 esac
11850 ;;
11851 vxworks*)
11852 # FIXME: insert proper C++ library support
11853 ld_shlibs_CXX=no
11854 ;;
11855 *)
11856 # FIXME: insert proper C++ library support
11857 ld_shlibs_CXX=no
11858 ;;
11859esac
dd184caf 11860{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11861echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 11862test "$ld_shlibs_CXX" = no && can_build_shared=no
11863
11864GCC_CXX="$GXX"
11865LD_CXX="$LD"
11866
11867
11868cat > conftest.$ac_ext <<EOF
11869class Foo
11870{
11871public:
11872 Foo (void) { a = 0; }
11873private:
11874 int a;
11875};
11876EOF
11877
11878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11879 (eval $ac_compile) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; then
11883 # Parse the compiler output and extract the necessary
11884 # objects, libraries and library flags.
11885
11886 # Sentinel used to keep track of whether or not we are before
11887 # the conftest object file.
11888 pre_test_object_deps_done=no
11889
11890 # The `*' in the case matches for architectures that use `case' in
11891 # $output_verbose_cmd can trigger glob expansion during the loop
11892 # eval without this substitution.
11893 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11894
11895 for p in `eval $output_verbose_link_cmd`; do
11896 case $p in
11897
11898 -L* | -R* | -l*)
11899 # Some compilers place space between "-{L,R}" and the path.
11900 # Remove the space.
11901 if test $p = "-L" \
11902 || test $p = "-R"; then
11903 prev=$p
11904 continue
11905 else
11906 prev=
11907 fi
11908
11909 if test "$pre_test_object_deps_done" = no; then
11910 case $p in
11911 -L* | -R*)
11912 # Internal compiler library paths should come after those
11913 # provided the user. The postdeps already come after the
11914 # user supplied libs so there is no need to process them.
11915 if test -z "$compiler_lib_search_path_CXX"; then
11916 compiler_lib_search_path_CXX="${prev}${p}"
11917 else
11918 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11919 fi
11920 ;;
11921 # The "-l" case would never come before the object being
11922 # linked, so don't bother handling this case.
11923 esac
11924 else
11925 if test -z "$postdeps_CXX"; then
11926 postdeps_CXX="${prev}${p}"
11927 else
11928 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11929 fi
11930 fi
11931 ;;
11932
11933 *.$objext)
11934 # This assumes that the test object file only shows up
11935 # once in the compiler output.
11936 if test "$p" = "conftest.$objext"; then
11937 pre_test_object_deps_done=yes
11938 continue
11939 fi
11940
11941 if test "$pre_test_object_deps_done" = no; then
11942 if test -z "$predep_objects_CXX"; then
11943 predep_objects_CXX="$p"
11944 else
11945 predep_objects_CXX="$predep_objects_CXX $p"
11946 fi
11947 else
11948 if test -z "$postdep_objects_CXX"; then
11949 postdep_objects_CXX="$p"
11950 else
11951 postdep_objects_CXX="$postdep_objects_CXX $p"
11952 fi
11953 fi
11954 ;;
11955
11956 *) ;; # Ignore the rest.
11957
11958 esac
11959 done
11960
11961 # Clean up.
11962 rm -f a.out a.exe
11963else
11964 echo "libtool.m4: error: problem compiling CXX test program"
11965fi
11966
11967$rm -f confest.$objext
11968
11969# PORTME: override above test on systems where it is broken
11970case $host_os in
11971interix3*)
11972 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11973 # hack all around it, let's just trust "g++" to DTRT.
11974 predep_objects_CXX=
11975 postdep_objects_CXX=
11976 postdeps_CXX=
11977 ;;
11978
11979solaris*)
11980 case $cc_basename in
11981 CC*)
11982 # Adding this requires a known-good setup of shared libraries for
11983 # Sun compiler versions before 5.6, else PIC objects from an old
11984 # archive will be linked into the output, leading to subtle bugs.
11985 postdeps_CXX='-lCstd -lCrun'
11986 ;;
11987 esac
11988 ;;
11989esac
11990
11991
11992case " $postdeps_CXX " in
11993*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11994esac
11995
11996lt_prog_compiler_wl_CXX=
11997lt_prog_compiler_pic_CXX=
11998lt_prog_compiler_static_CXX=
11999
dd184caf 12000{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12001echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 12002
12003 # C++ specific cases for pic, static, wl, etc.
12004 if test "$GXX" = yes; then
12005 lt_prog_compiler_wl_CXX='-Wl,'
12006 lt_prog_compiler_static_CXX='-static'
12007
12008 case $host_os in
12009 aix*)
12010 # All AIX code is PIC.
12011 if test "$host_cpu" = ia64; then
12012 # AIX 5 now supports IA64 processor
12013 lt_prog_compiler_static_CXX='-Bstatic'
12014 fi
12015 ;;
12016 amigaos*)
12017 # FIXME: we need at least 68020 code to build shared libraries, but
12018 # adding the `-m68020' flag to GCC prevents building anything better,
12019 # like `-m68040'.
12020 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12021 ;;
12022 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12023 # PIC is the default for these OSes.
12024 ;;
12025 mingw* | os2* | pw32*)
12026 # This hack is so that the source file can tell whether it is being
12027 # built for inclusion in a dll (and should export symbols for example).
12028 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12029 ;;
12030 darwin* | rhapsody*)
12031 # PIC is the default on this platform
12032 # Common symbols not allowed in MH_DYLIB files
12033 lt_prog_compiler_pic_CXX='-fno-common'
12034 ;;
12035 *djgpp*)
12036 # DJGPP does not support shared libraries at all
12037 lt_prog_compiler_pic_CXX=
12038 ;;
12039 interix3*)
12040 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12041 # Instead, we relocate shared libraries at runtime.
12042 ;;
12043 sysv4*MP*)
12044 if test -d /usr/nec; then
12045 lt_prog_compiler_pic_CXX=-Kconform_pic
12046 fi
12047 ;;
12048 hpux*)
12049 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12050 # not for PA HP-UX.
12051 case $host_cpu in
12052 hppa*64*|ia64*)
12053 ;;
12054 *)
12055 lt_prog_compiler_pic_CXX='-fPIC'
12056 ;;
12057 esac
12058 ;;
12059 *)
12060 lt_prog_compiler_pic_CXX='-fPIC'
12061 ;;
12062 esac
12063 else
12064 case $host_os in
12065 aix4* | aix5*)
12066 # All AIX code is PIC.
12067 if test "$host_cpu" = ia64; then
12068 # AIX 5 now supports IA64 processor
12069 lt_prog_compiler_static_CXX='-Bstatic'
12070 else
12071 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12072 fi
12073 ;;
12074 chorus*)
12075 case $cc_basename in
12076 cxch68*)
12077 # Green Hills C++ Compiler
12078 # _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"
12079 ;;
12080 esac
12081 ;;
12082 darwin*)
12083 # PIC is the default on this platform
12084 # Common symbols not allowed in MH_DYLIB files
12085 case $cc_basename in
12086 xlc*)
12087 lt_prog_compiler_pic_CXX='-qnocommon'
12088 lt_prog_compiler_wl_CXX='-Wl,'
12089 ;;
12090 esac
12091 ;;
12092 dgux*)
12093 case $cc_basename in
12094 ec++*)
12095 lt_prog_compiler_pic_CXX='-KPIC'
12096 ;;
12097 ghcx*)
12098 # Green Hills C++ Compiler
12099 lt_prog_compiler_pic_CXX='-pic'
12100 ;;
12101 *)
12102 ;;
12103 esac
12104 ;;
12105 freebsd* | kfreebsd*-gnu | dragonfly*)
12106 # FreeBSD uses GNU C++
12107 ;;
12108 hpux9* | hpux10* | hpux11*)
12109 case $cc_basename in
12110 CC*)
12111 lt_prog_compiler_wl_CXX='-Wl,'
12112 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12113 if test "$host_cpu" != ia64; then
12114 lt_prog_compiler_pic_CXX='+Z'
12115 fi
12116 ;;
12117 aCC*)
12118 lt_prog_compiler_wl_CXX='-Wl,'
12119 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12120 case $host_cpu in
12121 hppa*64*|ia64*)
12122 # +Z the default
12123 ;;
12124 *)
12125 lt_prog_compiler_pic_CXX='+Z'
12126 ;;
12127 esac
12128 ;;
12129 *)
12130 ;;
12131 esac
12132 ;;
12133 interix*)
12134 # This is c89, which is MS Visual C++ (no shared libs)
12135 # Anyone wants to do a port?
12136 ;;
12137 irix5* | irix6* | nonstopux*)
12138 case $cc_basename in
12139 CC*)
12140 lt_prog_compiler_wl_CXX='-Wl,'
12141 lt_prog_compiler_static_CXX='-non_shared'
12142 # CC pic flag -KPIC is the default.
12143 ;;
12144 *)
12145 ;;
12146 esac
12147 ;;
12148 linux*)
12149 case $cc_basename in
12150 KCC*)
12151 # KAI C++ Compiler
12152 lt_prog_compiler_wl_CXX='--backend -Wl,'
12153 lt_prog_compiler_pic_CXX='-fPIC'
12154 ;;
12155 icpc* | ecpc*)
12156 # Intel C++
12157 lt_prog_compiler_wl_CXX='-Wl,'
12158 lt_prog_compiler_pic_CXX='-KPIC'
12159 lt_prog_compiler_static_CXX='-static'
12160 ;;
12161 pgCC*)
12162 # Portland Group C++ compiler.
12163 lt_prog_compiler_wl_CXX='-Wl,'
12164 lt_prog_compiler_pic_CXX='-fpic'
12165 lt_prog_compiler_static_CXX='-Bstatic'
12166 ;;
12167 cxx*)
12168 # Compaq C++
12169 # Make sure the PIC flag is empty. It appears that all Alpha
12170 # Linux and Compaq Tru64 Unix objects are PIC.
12171 lt_prog_compiler_pic_CXX=
12172 lt_prog_compiler_static_CXX='-non_shared'
12173 ;;
12174 *)
12175 ;;
12176 esac
12177 ;;
12178 lynxos*)
12179 ;;
12180 m88k*)
12181 ;;
12182 mvs*)
12183 case $cc_basename in
12184 cxx*)
12185 lt_prog_compiler_pic_CXX='-W c,exportall'
12186 ;;
12187 *)
12188 ;;
12189 esac
12190 ;;
12191 netbsd*)
12192 ;;
12193 osf3* | osf4* | osf5*)
12194 case $cc_basename in
12195 KCC*)
12196 lt_prog_compiler_wl_CXX='--backend -Wl,'
12197 ;;
12198 RCC*)
12199 # Rational C++ 2.4.1
12200 lt_prog_compiler_pic_CXX='-pic'
12201 ;;
12202 cxx*)
12203 # Digital/Compaq C++
12204 lt_prog_compiler_wl_CXX='-Wl,'
12205 # Make sure the PIC flag is empty. It appears that all Alpha
12206 # Linux and Compaq Tru64 Unix objects are PIC.
12207 lt_prog_compiler_pic_CXX=
12208 lt_prog_compiler_static_CXX='-non_shared'
12209 ;;
12210 *)
12211 ;;
12212 esac
12213 ;;
12214 psos*)
12215 ;;
12216 solaris*)
12217 case $cc_basename in
12218 CC*)
12219 # Sun C++ 4.2, 5.x and Centerline C++
12220 lt_prog_compiler_pic_CXX='-KPIC'
12221 lt_prog_compiler_static_CXX='-Bstatic'
12222 lt_prog_compiler_wl_CXX='-Qoption ld '
12223 ;;
12224 gcx*)
12225 # Green Hills C++ Compiler
12226 lt_prog_compiler_pic_CXX='-PIC'
12227 ;;
12228 *)
12229 ;;
12230 esac
12231 ;;
12232 sunos4*)
12233 case $cc_basename in
12234 CC*)
12235 # Sun C++ 4.x
12236 lt_prog_compiler_pic_CXX='-pic'
12237 lt_prog_compiler_static_CXX='-Bstatic'
12238 ;;
12239 lcc*)
12240 # Lucid
12241 lt_prog_compiler_pic_CXX='-pic'
12242 ;;
12243 *)
12244 ;;
12245 esac
12246 ;;
12247 tandem*)
12248 case $cc_basename in
12249 NCC*)
12250 # NonStop-UX NCC 3.20
12251 lt_prog_compiler_pic_CXX='-KPIC'
12252 ;;
12253 *)
12254 ;;
12255 esac
12256 ;;
12257 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12258 case $cc_basename in
12259 CC*)
12260 lt_prog_compiler_wl_CXX='-Wl,'
12261 lt_prog_compiler_pic_CXX='-KPIC'
12262 lt_prog_compiler_static_CXX='-Bstatic'
12263 ;;
12264 esac
12265 ;;
12266 vxworks*)
12267 ;;
12268 *)
12269 lt_prog_compiler_can_build_shared_CXX=no
12270 ;;
12271 esac
12272 fi
12273
dd184caf 12274{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12275echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d9898ee8 12276
12277#
12278# Check to make sure the PIC flag actually works.
12279#
12280if test -n "$lt_prog_compiler_pic_CXX"; then
12281
dd184caf 12282{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12283echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d9898ee8 12284if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12286else
12287 lt_prog_compiler_pic_works_CXX=no
12288 ac_outfile=conftest.$ac_objext
12289 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12290 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12291 # Insert the option either (1) after the last *FLAGS variable, or
12292 # (2) before a word containing "conftest.", or (3) at the end.
12293 # Note that $ac_compile itself does not contain backslashes and begins
12294 # with a dollar sign (not a hyphen), so the echo should work correctly.
12295 # The option is referenced via a variable to avoid confusing sed.
12296 lt_compile=`echo "$ac_compile" | $SED \
12297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12299 -e 's:$: $lt_compiler_flag:'`
dd184caf 12300 (eval echo "\"\$as_me:12300: $lt_compile\"" >&5)
d9898ee8 12301 (eval "$lt_compile" 2>conftest.err)
12302 ac_status=$?
12303 cat conftest.err >&5
dd184caf 12304 echo "$as_me:12304: \$? = $ac_status" >&5
d9898ee8 12305 if (exit $ac_status) && test -s "$ac_outfile"; then
12306 # The compiler can only warn and ignore the option if not recognized
12307 # So say no if there are warnings other than the usual output.
12308 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12309 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12310 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12311 lt_prog_compiler_pic_works_CXX=yes
12312 fi
12313 fi
12314 $rm conftest*
12315
12316fi
dd184caf 12317{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12318echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d9898ee8 12319
12320if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12321 case $lt_prog_compiler_pic_CXX in
12322 "" | " "*) ;;
12323 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12324 esac
12325else
12326 lt_prog_compiler_pic_CXX=
12327 lt_prog_compiler_can_build_shared_CXX=no
12328fi
12329
12330fi
12331case $host_os in
12332 # For platforms which do not support PIC, -DPIC is meaningless:
12333 *djgpp*)
12334 lt_prog_compiler_pic_CXX=
12335 ;;
12336 *)
12337 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12338 ;;
12339esac
12340
12341#
12342# Check to make sure the static flag actually works.
12343#
12344wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
dd184caf 12345{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12346echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 12347if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12349else
12350 lt_prog_compiler_static_works_CXX=no
12351 save_LDFLAGS="$LDFLAGS"
12352 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12353 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12354 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12355 # The linker can only warn and ignore the option if not recognized
12356 # So say no if there are warnings
12357 if test -s conftest.err; then
12358 # Append any errors to the config.log.
12359 cat conftest.err 1>&5
12360 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12362 if diff conftest.exp conftest.er2 >/dev/null; then
12363 lt_prog_compiler_static_works_CXX=yes
12364 fi
12365 else
12366 lt_prog_compiler_static_works_CXX=yes
12367 fi
12368 fi
12369 $rm conftest*
12370 LDFLAGS="$save_LDFLAGS"
12371
12372fi
dd184caf 12373{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12374echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
d9898ee8 12375
12376if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12377 :
12378else
12379 lt_prog_compiler_static_CXX=
12380fi
12381
12382
dd184caf 12383{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12384echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 12385if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12387else
12388 lt_cv_prog_compiler_c_o_CXX=no
12389 $rm -r conftest 2>/dev/null
12390 mkdir conftest
12391 cd conftest
12392 mkdir out
12393 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12394
12395 lt_compiler_flag="-o out/conftest2.$ac_objext"
12396 # Insert the option either (1) after the last *FLAGS variable, or
12397 # (2) before a word containing "conftest.", or (3) at the end.
12398 # Note that $ac_compile itself does not contain backslashes and begins
12399 # with a dollar sign (not a hyphen), so the echo should work correctly.
12400 lt_compile=`echo "$ac_compile" | $SED \
12401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12403 -e 's:$: $lt_compiler_flag:'`
dd184caf 12404 (eval echo "\"\$as_me:12404: $lt_compile\"" >&5)
d9898ee8 12405 (eval "$lt_compile" 2>out/conftest.err)
12406 ac_status=$?
12407 cat out/conftest.err >&5
dd184caf 12408 echo "$as_me:12408: \$? = $ac_status" >&5
d9898ee8 12409 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12410 then
12411 # The compiler can only warn and ignore the option if not recognized
12412 # So say no if there are warnings
12413 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12414 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12415 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12416 lt_cv_prog_compiler_c_o_CXX=yes
12417 fi
12418 fi
12419 chmod u+w . 2>&5
12420 $rm conftest*
12421 # SGI C++ compiler will create directory out/ii_files/ for
12422 # template instantiation
12423 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12424 $rm out/* && rmdir out
12425 cd ..
12426 rmdir conftest
12427 $rm conftest*
12428
12429fi
dd184caf 12430{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12431echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 12432
12433
12434hard_links="nottested"
12435if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12436 # do not overwrite the value of need_locks provided by the user
dd184caf 12437 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12438echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 12439 hard_links=yes
12440 $rm conftest*
12441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12442 touch conftest.a
12443 ln conftest.a conftest.b 2>&5 || hard_links=no
12444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 12445 { echo "$as_me:$LINENO: result: $hard_links" >&5
12446echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 12447 if test "$hard_links" = no; then
12448 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12449echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12450 need_locks=warn
12451 fi
12452else
12453 need_locks=no
12454fi
12455
dd184caf 12456{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12457echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 12458
12459 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12460 case $host_os in
12461 aix4* | aix5*)
12462 # If we're using GNU nm, then we don't want the "-C" option.
12463 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12464 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12465 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'
12466 else
12467 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'
12468 fi
12469 ;;
12470 pw32*)
12471 export_symbols_cmds_CXX="$ltdll_cmds"
12472 ;;
12473 cygwin* | mingw*)
12474 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'
12475 ;;
12476 *)
12477 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12478 ;;
12479 esac
12480
dd184caf 12481{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12482echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12483test "$ld_shlibs_CXX" = no && can_build_shared=no
12484
12485#
12486# Do we need to explicitly link libc?
12487#
12488case "x$archive_cmds_need_lc_CXX" in
12489x|xyes)
12490 # Assume -lc should be added
12491 archive_cmds_need_lc_CXX=yes
12492
12493 if test "$enable_shared" = yes && test "$GCC" = yes; then
12494 case $archive_cmds_CXX in
12495 *'~'*)
12496 # FIXME: we may have to deal with multi-command sequences.
12497 ;;
12498 '$CC '*)
12499 # Test whether the compiler implicitly links with -lc since on some
12500 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12501 # to ld, don't add -lc before -lgcc.
dd184caf 12502 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12503echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 12504 $rm conftest*
12505 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12506
12507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12508 (eval $ac_compile) 2>&5
12509 ac_status=$?
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); } 2>conftest.err; then
12512 soname=conftest
12513 lib=conftest
12514 libobjs=conftest.$ac_objext
12515 deplibs=
12516 wl=$lt_prog_compiler_wl_CXX
12517 pic_flag=$lt_prog_compiler_pic_CXX
12518 compiler_flags=-v
12519 linker_flags=-v
12520 verstring=
12521 output_objdir=.
12522 libname=conftest
12523 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12524 allow_undefined_flag_CXX=
12525 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12526 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }
12530 then
12531 archive_cmds_need_lc_CXX=no
12532 else
12533 archive_cmds_need_lc_CXX=yes
12534 fi
12535 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12536 else
12537 cat conftest.err 1>&5
12538 fi
12539 $rm conftest*
dd184caf 12540 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12541echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d9898ee8 12542 ;;
12543 esac
12544 fi
12545 ;;
12546esac
12547
dd184caf 12548{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12549echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 12550library_names_spec=
12551libname_spec='lib$name'
12552soname_spec=
12553shrext_cmds=".so"
12554postinstall_cmds=
12555postuninstall_cmds=
12556finish_cmds=
12557finish_eval=
12558shlibpath_var=
12559shlibpath_overrides_runpath=unknown
12560version_type=none
12561dynamic_linker="$host_os ld.so"
12562sys_lib_dlsearch_path_spec="/lib /usr/lib"
12563if test "$GCC" = yes; then
12564 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12565 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12566 # if the path contains ";" then we assume it to be the separator
12567 # otherwise default to the standard path separator (i.e. ":") - it is
12568 # assumed that no part of a normal pathname contains ";" but that should
12569 # okay in the real world where ";" in dirpaths is itself problematic.
12570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12571 else
12572 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12573 fi
12574else
12575 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12576fi
12577need_lib_prefix=unknown
12578hardcode_into_libs=no
12579
12580# when you set need_version to no, make sure it does not cause -set_version
12581# flags to be left without arguments
12582need_version=unknown
12583
12584case $host_os in
12585aix3*)
12586 version_type=linux
12587 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12588 shlibpath_var=LIBPATH
12589
12590 # AIX 3 has no versioning support, so we append a major version to the name.
12591 soname_spec='${libname}${release}${shared_ext}$major'
12592 ;;
12593
12594aix4* | aix5*)
12595 version_type=linux
12596 need_lib_prefix=no
12597 need_version=no
12598 hardcode_into_libs=yes
12599 if test "$host_cpu" = ia64; then
12600 # AIX 5 supports IA64
12601 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12602 shlibpath_var=LD_LIBRARY_PATH
12603 else
12604 # With GCC up to 2.95.x, collect2 would create an import file
12605 # for dependence libraries. The import file would start with
12606 # the line `#! .'. This would cause the generated library to
12607 # depend on `.', always an invalid library. This was fixed in
12608 # development snapshots of GCC prior to 3.0.
12609 case $host_os in
12610 aix4 | aix4.[01] | aix4.[01].*)
12611 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12612 echo ' yes '
12613 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12614 :
12615 else
12616 can_build_shared=no
12617 fi
12618 ;;
12619 esac
12620 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12621 # soname into executable. Probably we can add versioning support to
12622 # collect2, so additional links can be useful in future.
12623 if test "$aix_use_runtimelinking" = yes; then
12624 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12625 # instead of lib<name>.a to let people know that these are not
12626 # typical AIX shared libraries.
12627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12628 else
12629 # We preserve .a as extension for shared libraries through AIX4.2
12630 # and later when we are not doing run time linking.
12631 library_names_spec='${libname}${release}.a $libname.a'
12632 soname_spec='${libname}${release}${shared_ext}$major'
12633 fi
12634 shlibpath_var=LIBPATH
12635 fi
12636 ;;
12637
12638amigaos*)
12639 library_names_spec='$libname.ixlibrary $libname.a'
12640 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12641 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'
12642 ;;
12643
12644beos*)
12645 library_names_spec='${libname}${shared_ext}'
12646 dynamic_linker="$host_os ld.so"
12647 shlibpath_var=LIBRARY_PATH
12648 ;;
12649
12650bsdi[45]*)
12651 version_type=linux
12652 need_version=no
12653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12654 soname_spec='${libname}${release}${shared_ext}$major'
12655 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12656 shlibpath_var=LD_LIBRARY_PATH
12657 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12658 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12659 # the default ld.so.conf also contains /usr/contrib/lib and
12660 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12661 # libtool to hard-code these into programs
12662 ;;
12663
12664cygwin* | mingw* | pw32*)
12665 version_type=windows
12666 shrext_cmds=".dll"
12667 need_version=no
12668 need_lib_prefix=no
12669
12670 case $GCC,$host_os in
12671 yes,cygwin* | yes,mingw* | yes,pw32*)
12672 library_names_spec='$libname.dll.a'
12673 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12674 postinstall_cmds='base_file=`basename \${file}`~
12675 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12676 dldir=$destdir/`dirname \$dlpath`~
12677 test -d \$dldir || mkdir -p \$dldir~
12678 $install_prog $dir/$dlname \$dldir/$dlname~
12679 chmod a+x \$dldir/$dlname'
12680 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12681 dlpath=$dir/\$dldll~
12682 $rm \$dlpath'
12683 shlibpath_overrides_runpath=yes
12684
12685 case $host_os in
12686 cygwin*)
12687 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12688 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12689 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12690 ;;
12691 mingw*)
12692 # MinGW DLLs use traditional 'lib' prefix
12693 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12694 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12695 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12696 # It is most probably a Windows format PATH printed by
12697 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12698 # path with ; separators, and with drive letters. We can handle the
12699 # drive letters (cygwin fileutils understands them), so leave them,
12700 # especially as we might pass files found there to a mingw objdump,
12701 # which wouldn't understand a cygwinified path. Ahh.
12702 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12703 else
12704 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12705 fi
12706 ;;
12707 pw32*)
12708 # pw32 DLLs use 'pw' prefix rather than 'lib'
12709 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12710 ;;
12711 esac
12712 ;;
12713
12714 *)
12715 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12716 ;;
12717 esac
12718 dynamic_linker='Win32 ld.exe'
12719 # FIXME: first we should search . and the directory the executable is in
12720 shlibpath_var=PATH
12721 ;;
12722
12723darwin* | rhapsody*)
12724 dynamic_linker="$host_os dyld"
12725 version_type=darwin
12726 need_lib_prefix=no
12727 need_version=no
12728 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12729 soname_spec='${libname}${release}${major}$shared_ext'
12730 shlibpath_overrides_runpath=yes
12731 shlibpath_var=DYLD_LIBRARY_PATH
12732 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12733 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12734 if test "$GCC" = yes; then
12735 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"`
12736 else
12737 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12738 fi
12739 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12740 ;;
12741
12742dgux*)
12743 version_type=linux
12744 need_lib_prefix=no
12745 need_version=no
12746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12747 soname_spec='${libname}${release}${shared_ext}$major'
12748 shlibpath_var=LD_LIBRARY_PATH
12749 ;;
12750
12751freebsd1*)
12752 dynamic_linker=no
12753 ;;
12754
12755kfreebsd*-gnu)
12756 version_type=linux
12757 need_lib_prefix=no
12758 need_version=no
12759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12760 soname_spec='${libname}${release}${shared_ext}$major'
12761 shlibpath_var=LD_LIBRARY_PATH
12762 shlibpath_overrides_runpath=no
12763 hardcode_into_libs=yes
12764 dynamic_linker='GNU ld.so'
12765 ;;
12766
12767freebsd* | dragonfly*)
12768 # DragonFly does not have aout. When/if they implement a new
12769 # versioning mechanism, adjust this.
12770 if test -x /usr/bin/objformat; then
12771 objformat=`/usr/bin/objformat`
12772 else
12773 case $host_os in
12774 freebsd[123]*) objformat=aout ;;
12775 *) objformat=elf ;;
12776 esac
12777 fi
12778 version_type=freebsd-$objformat
12779 case $version_type in
12780 freebsd-elf*)
12781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12782 need_version=no
12783 need_lib_prefix=no
12784 ;;
12785 freebsd-*)
12786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12787 need_version=yes
12788 ;;
12789 esac
12790 shlibpath_var=LD_LIBRARY_PATH
12791 case $host_os in
12792 freebsd2*)
12793 shlibpath_overrides_runpath=yes
12794 ;;
12795 freebsd3.[01]* | freebsdelf3.[01]*)
12796 shlibpath_overrides_runpath=yes
12797 hardcode_into_libs=yes
12798 ;;
12799 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12800 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12801 shlibpath_overrides_runpath=no
12802 hardcode_into_libs=yes
12803 ;;
12804 freebsd*) # from 4.6 on
12805 shlibpath_overrides_runpath=yes
12806 hardcode_into_libs=yes
12807 ;;
12808 esac
12809 ;;
12810
12811gnu*)
12812 version_type=linux
12813 need_lib_prefix=no
12814 need_version=no
12815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12816 soname_spec='${libname}${release}${shared_ext}$major'
12817 shlibpath_var=LD_LIBRARY_PATH
12818 hardcode_into_libs=yes
12819 ;;
12820
12821hpux9* | hpux10* | hpux11*)
12822 # Give a soname corresponding to the major version so that dld.sl refuses to
12823 # link against other versions.
12824 version_type=sunos
12825 need_lib_prefix=no
12826 need_version=no
12827 case $host_cpu in
12828 ia64*)
12829 shrext_cmds='.so'
12830 hardcode_into_libs=yes
12831 dynamic_linker="$host_os dld.so"
12832 shlibpath_var=LD_LIBRARY_PATH
12833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
12837 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12838 else
12839 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12840 fi
12841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12842 ;;
12843 hppa*64*)
12844 shrext_cmds='.sl'
12845 hardcode_into_libs=yes
12846 dynamic_linker="$host_os dld.sl"
12847 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12848 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12850 soname_spec='${libname}${release}${shared_ext}$major'
12851 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12853 ;;
12854 *)
12855 shrext_cmds='.sl'
12856 dynamic_linker="$host_os dld.sl"
12857 shlibpath_var=SHLIB_PATH
12858 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12860 soname_spec='${libname}${release}${shared_ext}$major'
12861 ;;
12862 esac
12863 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12864 postinstall_cmds='chmod 555 $lib'
12865 ;;
12866
12867interix3*)
12868 version_type=linux
12869 need_lib_prefix=no
12870 need_version=no
12871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12872 soname_spec='${libname}${release}${shared_ext}$major'
12873 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12874 shlibpath_var=LD_LIBRARY_PATH
12875 shlibpath_overrides_runpath=no
12876 hardcode_into_libs=yes
12877 ;;
12878
12879irix5* | irix6* | nonstopux*)
12880 case $host_os in
12881 nonstopux*) version_type=nonstopux ;;
12882 *)
12883 if test "$lt_cv_prog_gnu_ld" = yes; then
12884 version_type=linux
12885 else
12886 version_type=irix
12887 fi ;;
12888 esac
12889 need_lib_prefix=no
12890 need_version=no
12891 soname_spec='${libname}${release}${shared_ext}$major'
12892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12893 case $host_os in
12894 irix5* | nonstopux*)
12895 libsuff= shlibsuff=
12896 ;;
12897 *)
12898 case $LD in # libtool.m4 will add one of these switches to LD
12899 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12900 libsuff= shlibsuff= libmagic=32-bit;;
12901 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12902 libsuff=32 shlibsuff=N32 libmagic=N32;;
12903 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12904 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12905 *) libsuff= shlibsuff= libmagic=never-match;;
12906 esac
12907 ;;
12908 esac
12909 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12910 shlibpath_overrides_runpath=no
12911 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12912 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12913 hardcode_into_libs=yes
12914 ;;
12915
12916# No shared lib support for Linux oldld, aout, or coff.
12917linux*oldld* | linux*aout* | linux*coff*)
12918 dynamic_linker=no
12919 ;;
12920
12921# This must be Linux ELF.
12922linux*)
12923 version_type=linux
12924 need_lib_prefix=no
12925 need_version=no
12926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12927 soname_spec='${libname}${release}${shared_ext}$major'
12928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12929 shlibpath_var=LD_LIBRARY_PATH
12930 shlibpath_overrides_runpath=no
12931 # This implies no fast_install, which is unacceptable.
12932 # Some rework will be needed to allow for fast_install
12933 # before this can be enabled.
12934 hardcode_into_libs=yes
12935
12936 # find out which ABI we are using
12937 libsuff=
12938 case "$host_cpu" in
12939 x86_64*|s390x*|powerpc64*)
dd184caf 12940 echo '#line 12940 "configure"' > conftest.$ac_ext
d9898ee8 12941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12942 (eval $ac_compile) 2>&5
12943 ac_status=$?
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); }; then
12946 case `/usr/bin/file conftest.$ac_objext` in
12947 *64-bit*)
12948 libsuff=64
12949 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12950 ;;
12951 esac
12952 fi
12953 rm -rf conftest*
12954 ;;
12955 esac
12956
12957 # Append ld.so.conf contents to the search path
12958 if test -f /etc/ld.so.conf; then
dd184caf 12959 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 12960 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12961 fi
12962
12963 # We used to test for /lib/ld.so.1 and disable shared libraries on
12964 # powerpc, because MkLinux only supported shared libraries with the
12965 # GNU dynamic linker. Since this was broken with cross compilers,
12966 # most powerpc-linux boxes support dynamic linking these days and
12967 # people can always --disable-shared, the test was removed, and we
12968 # assume the GNU/Linux dynamic linker is in use.
12969 dynamic_linker='GNU/Linux ld.so'
12970 ;;
12971
12972knetbsd*-gnu)
12973 version_type=linux
12974 need_lib_prefix=no
12975 need_version=no
12976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12977 soname_spec='${libname}${release}${shared_ext}$major'
12978 shlibpath_var=LD_LIBRARY_PATH
12979 shlibpath_overrides_runpath=no
12980 hardcode_into_libs=yes
12981 dynamic_linker='GNU ld.so'
12982 ;;
12983
12984netbsd*)
12985 version_type=sunos
12986 need_lib_prefix=no
12987 need_version=no
12988 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12991 dynamic_linker='NetBSD (a.out) ld.so'
12992 else
12993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12994 soname_spec='${libname}${release}${shared_ext}$major'
12995 dynamic_linker='NetBSD ld.elf_so'
12996 fi
12997 shlibpath_var=LD_LIBRARY_PATH
12998 shlibpath_overrides_runpath=yes
12999 hardcode_into_libs=yes
13000 ;;
13001
13002newsos6)
13003 version_type=linux
13004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13005 shlibpath_var=LD_LIBRARY_PATH
13006 shlibpath_overrides_runpath=yes
13007 ;;
13008
13009nto-qnx*)
13010 version_type=linux
13011 need_lib_prefix=no
13012 need_version=no
13013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13014 soname_spec='${libname}${release}${shared_ext}$major'
13015 shlibpath_var=LD_LIBRARY_PATH
13016 shlibpath_overrides_runpath=yes
13017 ;;
13018
13019openbsd*)
13020 version_type=sunos
13021 sys_lib_dlsearch_path_spec="/usr/lib"
13022 need_lib_prefix=no
13023 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13024 case $host_os in
13025 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13026 *) need_version=no ;;
13027 esac
13028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13030 shlibpath_var=LD_LIBRARY_PATH
13031 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13032 case $host_os in
13033 openbsd2.[89] | openbsd2.[89].*)
13034 shlibpath_overrides_runpath=no
13035 ;;
13036 *)
13037 shlibpath_overrides_runpath=yes
13038 ;;
13039 esac
13040 else
13041 shlibpath_overrides_runpath=yes
13042 fi
13043 ;;
13044
13045os2*)
13046 libname_spec='$name'
13047 shrext_cmds=".dll"
13048 need_lib_prefix=no
13049 library_names_spec='$libname${shared_ext} $libname.a'
13050 dynamic_linker='OS/2 ld.exe'
13051 shlibpath_var=LIBPATH
13052 ;;
13053
13054osf3* | osf4* | osf5*)
13055 version_type=osf
13056 need_lib_prefix=no
13057 need_version=no
13058 soname_spec='${libname}${release}${shared_ext}$major'
13059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13060 shlibpath_var=LD_LIBRARY_PATH
13061 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13062 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13063 ;;
13064
13065solaris*)
13066 version_type=linux
13067 need_lib_prefix=no
13068 need_version=no
13069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13070 soname_spec='${libname}${release}${shared_ext}$major'
13071 shlibpath_var=LD_LIBRARY_PATH
13072 shlibpath_overrides_runpath=yes
13073 hardcode_into_libs=yes
13074 # ldd complains unless libraries are executable
13075 postinstall_cmds='chmod +x $lib'
13076 ;;
13077
13078sunos4*)
13079 version_type=sunos
13080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13081 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13082 shlibpath_var=LD_LIBRARY_PATH
13083 shlibpath_overrides_runpath=yes
13084 if test "$with_gnu_ld" = yes; then
13085 need_lib_prefix=no
13086 fi
13087 need_version=yes
13088 ;;
13089
13090sysv4 | sysv4.3*)
13091 version_type=linux
13092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13093 soname_spec='${libname}${release}${shared_ext}$major'
13094 shlibpath_var=LD_LIBRARY_PATH
13095 case $host_vendor in
13096 sni)
13097 shlibpath_overrides_runpath=no
13098 need_lib_prefix=no
13099 export_dynamic_flag_spec='${wl}-Blargedynsym'
13100 runpath_var=LD_RUN_PATH
13101 ;;
13102 siemens)
13103 need_lib_prefix=no
13104 ;;
13105 motorola)
13106 need_lib_prefix=no
13107 need_version=no
13108 shlibpath_overrides_runpath=no
13109 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13110 ;;
13111 esac
13112 ;;
13113
13114sysv4*MP*)
13115 if test -d /usr/nec ;then
13116 version_type=linux
13117 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13118 soname_spec='$libname${shared_ext}.$major'
13119 shlibpath_var=LD_LIBRARY_PATH
13120 fi
13121 ;;
13122
13123sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13124 version_type=freebsd-elf
13125 need_lib_prefix=no
13126 need_version=no
13127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13128 soname_spec='${libname}${release}${shared_ext}$major'
13129 shlibpath_var=LD_LIBRARY_PATH
13130 hardcode_into_libs=yes
13131 if test "$with_gnu_ld" = yes; then
13132 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13133 shlibpath_overrides_runpath=no
13134 else
13135 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13136 shlibpath_overrides_runpath=yes
13137 case $host_os in
13138 sco3.2v5*)
13139 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13140 ;;
13141 esac
13142 fi
13143 sys_lib_dlsearch_path_spec='/usr/lib'
13144 ;;
13145
13146uts4*)
13147 version_type=linux
13148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13149 soname_spec='${libname}${release}${shared_ext}$major'
13150 shlibpath_var=LD_LIBRARY_PATH
13151 ;;
13152
13153*)
13154 dynamic_linker=no
13155 ;;
13156esac
dd184caf 13157{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13158echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 13159test "$dynamic_linker" = no && can_build_shared=no
13160
13161variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13162if test "$GCC" = yes; then
13163 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13164fi
13165
dd184caf 13166{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13167echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 13168hardcode_action_CXX=
13169if test -n "$hardcode_libdir_flag_spec_CXX" || \
13170 test -n "$runpath_var_CXX" || \
13171 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13172
13173 # We can hardcode non-existant directories.
13174 if test "$hardcode_direct_CXX" != no &&
13175 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13176 # have to relink, otherwise we might link with an installed library
13177 # when we should be linking with a yet-to-be-installed one
13178 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13179 test "$hardcode_minus_L_CXX" != no; then
13180 # Linking always hardcodes the temporary library directory.
13181 hardcode_action_CXX=relink
13182 else
13183 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13184 hardcode_action_CXX=immediate
13185 fi
13186else
13187 # We cannot hardcode anything, or else we can only hardcode existing
13188 # directories.
13189 hardcode_action_CXX=unsupported
13190fi
dd184caf 13191{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13192echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d9898ee8 13193
13194if test "$hardcode_action_CXX" = relink; then
13195 # Fast installation is not supported
13196 enable_fast_install=no
13197elif test "$shlibpath_overrides_runpath" = yes ||
13198 test "$enable_shared" = no; then
13199 # Fast installation is not necessary
13200 enable_fast_install=needless
13201fi
13202
13203
13204# The else clause should only fire when bootstrapping the
13205# libtool distribution, otherwise you forgot to ship ltmain.sh
13206# with your package, and you will get complaints that there are
13207# no rules to generate ltmain.sh.
13208if test -f "$ltmain"; then
13209 # See if we are running on zsh, and set the options which allow our commands through
13210 # without removal of \ escapes.
13211 if test -n "${ZSH_VERSION+set}" ; then
13212 setopt NO_GLOB_SUBST
13213 fi
13214 # Now quote all the things that may contain metacharacters while being
13215 # careful not to overquote the AC_SUBSTed values. We take copies of the
13216 # variables and quote the copies for generation of the libtool script.
13217 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13218 SED SHELL STRIP \
13219 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13220 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13221 deplibs_check_method reload_flag reload_cmds need_locks \
13222 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13223 lt_cv_sys_global_symbol_to_c_name_address \
13224 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13225 old_postinstall_cmds old_postuninstall_cmds \
13226 compiler_CXX \
13227 CC_CXX \
13228 LD_CXX \
13229 lt_prog_compiler_wl_CXX \
13230 lt_prog_compiler_pic_CXX \
13231 lt_prog_compiler_static_CXX \
13232 lt_prog_compiler_no_builtin_flag_CXX \
13233 export_dynamic_flag_spec_CXX \
13234 thread_safe_flag_spec_CXX \
13235 whole_archive_flag_spec_CXX \
13236 enable_shared_with_static_runtimes_CXX \
13237 old_archive_cmds_CXX \
13238 old_archive_from_new_cmds_CXX \
13239 predep_objects_CXX \
13240 postdep_objects_CXX \
13241 predeps_CXX \
13242 postdeps_CXX \
13243 compiler_lib_search_path_CXX \
13244 archive_cmds_CXX \
13245 archive_expsym_cmds_CXX \
13246 postinstall_cmds_CXX \
13247 postuninstall_cmds_CXX \
13248 old_archive_from_expsyms_cmds_CXX \
13249 allow_undefined_flag_CXX \
13250 no_undefined_flag_CXX \
13251 export_symbols_cmds_CXX \
13252 hardcode_libdir_flag_spec_CXX \
13253 hardcode_libdir_flag_spec_ld_CXX \
13254 hardcode_libdir_separator_CXX \
13255 hardcode_automatic_CXX \
13256 module_cmds_CXX \
13257 module_expsym_cmds_CXX \
13258 lt_cv_prog_compiler_c_o_CXX \
13259 exclude_expsyms_CXX \
13260 include_expsyms_CXX; do
13261
13262 case $var in
13263 old_archive_cmds_CXX | \
13264 old_archive_from_new_cmds_CXX | \
13265 archive_cmds_CXX | \
13266 archive_expsym_cmds_CXX | \
13267 module_cmds_CXX | \
13268 module_expsym_cmds_CXX | \
13269 old_archive_from_expsyms_cmds_CXX | \
13270 export_symbols_cmds_CXX | \
13271 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13272 postinstall_cmds | postuninstall_cmds | \
13273 old_postinstall_cmds | old_postuninstall_cmds | \
13274 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13275 # Double-quote double-evaled strings.
13276 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13277 ;;
13278 *)
13279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13280 ;;
13281 esac
13282 done
13283
13284 case $lt_echo in
13285 *'\$0 --fallback-echo"')
13286 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13287 ;;
13288 esac
13289
13290cfgfile="$ofile"
13291
13292 cat <<__EOF__ >> "$cfgfile"
13293# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13294
13295# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13296
13297# Shell to use when invoking shell scripts.
13298SHELL=$lt_SHELL
13299
13300# Whether or not to build shared libraries.
13301build_libtool_libs=$enable_shared
13302
13303# Whether or not to build static libraries.
13304build_old_libs=$enable_static
13305
13306# Whether or not to add -lc for building shared libraries.
13307build_libtool_need_lc=$archive_cmds_need_lc_CXX
13308
13309# Whether or not to disallow shared libs when runtime libs are static
13310allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13311
13312# Whether or not to optimize for fast installation.
13313fast_install=$enable_fast_install
13314
13315# The host system.
13316host_alias=$host_alias
13317host=$host
13318host_os=$host_os
13319
13320# The build system.
13321build_alias=$build_alias
13322build=$build
13323build_os=$build_os
13324
13325# An echo program that does not interpret backslashes.
13326echo=$lt_echo
13327
13328# The archiver.
13329AR=$lt_AR
13330AR_FLAGS=$lt_AR_FLAGS
13331
13332# A C compiler.
13333LTCC=$lt_LTCC
13334
13335# LTCC compiler flags.
13336LTCFLAGS=$lt_LTCFLAGS
13337
13338# A language-specific compiler.
13339CC=$lt_compiler_CXX
13340
13341# Is the compiler the GNU C compiler?
13342with_gcc=$GCC_CXX
13343
d9898ee8 13344# An ERE matcher.
13345EGREP=$lt_EGREP
13346
13347# The linker used to build libraries.
13348LD=$lt_LD_CXX
13349
13350# Whether we need hard or soft links.
13351LN_S=$lt_LN_S
13352
13353# A BSD-compatible nm program.
13354NM=$lt_NM
13355
13356# A symbol stripping program
13357STRIP=$lt_STRIP
13358
13359# Used to examine libraries when file_magic_cmd begins "file"
13360MAGIC_CMD=$MAGIC_CMD
13361
13362# Used on cygwin: DLL creation program.
13363DLLTOOL="$DLLTOOL"
13364
13365# Used on cygwin: object dumper.
13366OBJDUMP="$OBJDUMP"
13367
13368# Used on cygwin: assembler.
13369AS="$AS"
13370
13371# The name of the directory that contains temporary libtool files.
13372objdir=$objdir
13373
13374# How to create reloadable object files.
13375reload_flag=$lt_reload_flag
13376reload_cmds=$lt_reload_cmds
13377
13378# How to pass a linker flag through the compiler.
13379wl=$lt_lt_prog_compiler_wl_CXX
13380
13381# Object file suffix (normally "o").
13382objext="$ac_objext"
13383
13384# Old archive suffix (normally "a").
13385libext="$libext"
13386
13387# Shared library suffix (normally ".so").
13388shrext_cmds='$shrext_cmds'
13389
13390# Executable file suffix (normally "").
13391exeext="$exeext"
13392
13393# Additional compiler flags for building library objects.
13394pic_flag=$lt_lt_prog_compiler_pic_CXX
13395pic_mode=$pic_mode
13396
13397# What is the maximum length of a command?
13398max_cmd_len=$lt_cv_sys_max_cmd_len
13399
13400# Does compiler simultaneously support -c and -o options?
13401compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13402
13403# Must we lock files when doing compilation?
13404need_locks=$lt_need_locks
13405
13406# Do we need the lib prefix for modules?
13407need_lib_prefix=$need_lib_prefix
13408
13409# Do we need a version for libraries?
13410need_version=$need_version
13411
13412# Whether dlopen is supported.
13413dlopen_support=$enable_dlopen
13414
13415# Whether dlopen of programs is supported.
13416dlopen_self=$enable_dlopen_self
13417
13418# Whether dlopen of statically linked programs is supported.
13419dlopen_self_static=$enable_dlopen_self_static
13420
13421# Compiler flag to prevent dynamic linking.
13422link_static_flag=$lt_lt_prog_compiler_static_CXX
13423
13424# Compiler flag to turn off builtin functions.
13425no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13426
13427# Compiler flag to allow reflexive dlopens.
13428export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13429
13430# Compiler flag to generate shared objects directly from archives.
13431whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13432
13433# Compiler flag to generate thread-safe objects.
13434thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13435
13436# Library versioning type.
13437version_type=$version_type
13438
13439# Format of library name prefix.
13440libname_spec=$lt_libname_spec
13441
13442# List of archive names. First name is the real one, the rest are links.
13443# The last name is the one that the linker finds with -lNAME.
13444library_names_spec=$lt_library_names_spec
13445
13446# The coded name of the library, if different from the real name.
13447soname_spec=$lt_soname_spec
13448
13449# Commands used to build and install an old-style archive.
13450RANLIB=$lt_RANLIB
13451old_archive_cmds=$lt_old_archive_cmds_CXX
13452old_postinstall_cmds=$lt_old_postinstall_cmds
13453old_postuninstall_cmds=$lt_old_postuninstall_cmds
13454
13455# Create an old-style archive from a shared archive.
13456old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13457
13458# Create a temporary old-style archive to link instead of a shared archive.
13459old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13460
13461# Commands used to build and install a shared archive.
13462archive_cmds=$lt_archive_cmds_CXX
13463archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13464postinstall_cmds=$lt_postinstall_cmds
13465postuninstall_cmds=$lt_postuninstall_cmds
13466
13467# Commands used to build a loadable module (assumed same as above if empty)
13468module_cmds=$lt_module_cmds_CXX
13469module_expsym_cmds=$lt_module_expsym_cmds_CXX
13470
13471# Commands to strip libraries.
13472old_striplib=$lt_old_striplib
13473striplib=$lt_striplib
13474
13475# Dependencies to place before the objects being linked to create a
13476# shared library.
dd184caf 13477predep_objects=$lt_predep_objects_CXX
d9898ee8 13478
13479# Dependencies to place after the objects being linked to create a
13480# shared library.
dd184caf 13481postdep_objects=$lt_postdep_objects_CXX
d9898ee8 13482
13483# Dependencies to place before the objects being linked to create a
13484# shared library.
13485predeps=$lt_predeps_CXX
13486
13487# Dependencies to place after the objects being linked to create a
13488# shared library.
13489postdeps=$lt_postdeps_CXX
13490
13491# The library search path used internally by the compiler when linking
13492# a shared library.
dd184caf 13493compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d9898ee8 13494
13495# Method to check whether dependent libraries are shared objects.
13496deplibs_check_method=$lt_deplibs_check_method
13497
13498# Command to use when deplibs_check_method == file_magic.
13499file_magic_cmd=$lt_file_magic_cmd
13500
13501# Flag that allows shared libraries with undefined symbols to be built.
13502allow_undefined_flag=$lt_allow_undefined_flag_CXX
13503
13504# Flag that forces no undefined symbols.
13505no_undefined_flag=$lt_no_undefined_flag_CXX
13506
13507# Commands used to finish a libtool library installation in a directory.
13508finish_cmds=$lt_finish_cmds
13509
13510# Same as above, but a single script fragment to be evaled but not shown.
13511finish_eval=$lt_finish_eval
13512
13513# Take the output of nm and produce a listing of raw symbols and C names.
13514global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13515
13516# Transform the output of nm in a proper C declaration
13517global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13518
13519# Transform the output of nm in a C name address pair
13520global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13521
13522# This is the shared library runtime path variable.
13523runpath_var=$runpath_var
13524
13525# This is the shared library path variable.
13526shlibpath_var=$shlibpath_var
13527
13528# Is shlibpath searched before the hard-coded library search path?
13529shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13530
13531# How to hardcode a shared library path into an executable.
13532hardcode_action=$hardcode_action_CXX
13533
13534# Whether we should hardcode library paths into libraries.
13535hardcode_into_libs=$hardcode_into_libs
13536
13537# Flag to hardcode \$libdir into a binary during linking.
13538# This must work even if \$libdir does not exist.
13539hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13540
13541# If ld is used when linking, flag to hardcode \$libdir into
13542# a binary during linking. This must work even if \$libdir does
13543# not exist.
13544hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13545
13546# Whether we need a single -rpath flag with a separated argument.
13547hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13548
13549# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13550# resulting binary.
13551hardcode_direct=$hardcode_direct_CXX
13552
13553# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13554# resulting binary.
13555hardcode_minus_L=$hardcode_minus_L_CXX
13556
13557# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13558# the resulting binary.
13559hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13560
13561# Set to yes if building a shared library automatically hardcodes DIR into the library
13562# and all subsequent libraries and executables linked against it.
13563hardcode_automatic=$hardcode_automatic_CXX
13564
13565# Variables whose values should be saved in libtool wrapper scripts and
13566# restored at relink time.
13567variables_saved_for_relink="$variables_saved_for_relink"
13568
13569# Whether libtool must link a program against all its dependency libraries.
13570link_all_deplibs=$link_all_deplibs_CXX
13571
13572# Compile-time system search path for libraries
dd184caf 13573sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 13574
13575# Run-time system search path for libraries
13576sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13577
13578# Fix the shell variable \$srcfile for the compiler.
13579fix_srcfile_path="$fix_srcfile_path_CXX"
13580
13581# Set to yes if exported symbols are required.
13582always_export_symbols=$always_export_symbols_CXX
13583
13584# The commands to list exported symbols.
13585export_symbols_cmds=$lt_export_symbols_cmds_CXX
13586
13587# The commands to extract the exported symbol list from a shared archive.
13588extract_expsyms_cmds=$lt_extract_expsyms_cmds
13589
13590# Symbols that should not be listed in the preloaded symbols.
13591exclude_expsyms=$lt_exclude_expsyms_CXX
13592
13593# Symbols that must always be exported.
13594include_expsyms=$lt_include_expsyms_CXX
13595
13596# ### END LIBTOOL TAG CONFIG: $tagname
13597
13598__EOF__
13599
13600
13601else
13602 # If there is no Makefile yet, we rely on a make rule to execute
13603 # `config.status --recheck' to rerun these tests and create the
13604 # libtool script then.
13605 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13606 if test -f "$ltmain_in"; then
13607 test -f Makefile && make "$ltmain"
13608 fi
13609fi
13610
13611
13612ac_ext=c
13613ac_cpp='$CPP $CPPFLAGS'
13614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13616ac_compiler_gnu=$ac_cv_c_compiler_gnu
13617
13618CC=$lt_save_CC
13619LDCXX=$LD
13620LD=$lt_save_LD
13621GCC=$lt_save_GCC
13622with_gnu_ldcxx=$with_gnu_ld
13623with_gnu_ld=$lt_save_with_gnu_ld
13624lt_cv_path_LDCXX=$lt_cv_path_LD
13625lt_cv_path_LD=$lt_save_path_LD
13626lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13627lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13628
13629 else
13630 tagname=""
13631 fi
13632 ;;
13633
13634 F77)
13635 if test -n "$F77" && test "X$F77" != "Xno"; then
13636
13637ac_ext=f
13638ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13639ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13640ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13641
13642
13643archive_cmds_need_lc_F77=no
13644allow_undefined_flag_F77=
13645always_export_symbols_F77=no
13646archive_expsym_cmds_F77=
13647export_dynamic_flag_spec_F77=
13648hardcode_direct_F77=no
13649hardcode_libdir_flag_spec_F77=
13650hardcode_libdir_flag_spec_ld_F77=
13651hardcode_libdir_separator_F77=
13652hardcode_minus_L_F77=no
13653hardcode_automatic_F77=no
13654module_cmds_F77=
13655module_expsym_cmds_F77=
13656link_all_deplibs_F77=unknown
13657old_archive_cmds_F77=$old_archive_cmds
13658no_undefined_flag_F77=
13659whole_archive_flag_spec_F77=
13660enable_shared_with_static_runtimes_F77=no
13661
13662# Source file extension for f77 test sources.
13663ac_ext=f
13664
13665# Object file extension for compiled f77 test sources.
13666objext=o
13667objext_F77=$objext
13668
13669# Code to be used in simple compile tests
13670lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13671
13672# Code to be used in simple link tests
13673lt_simple_link_test_code=" program t\n end\n"
13674
13675# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13676
13677# If no C compiler was specified, use CC.
13678LTCC=${LTCC-"$CC"}
13679
13680# If no C compiler flags were specified, use CFLAGS.
13681LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13682
13683# Allow CC to be a program name with arguments.
13684compiler=$CC
13685
13686
13687# save warnings/boilerplate of simple test code
13688ac_outfile=conftest.$ac_objext
13689printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13690eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13691_lt_compiler_boilerplate=`cat conftest.err`
13692$rm conftest*
13693
13694ac_outfile=conftest.$ac_objext
13695printf "$lt_simple_link_test_code" >conftest.$ac_ext
13696eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13697_lt_linker_boilerplate=`cat conftest.err`
13698$rm conftest*
13699
13700
13701# Allow CC to be a program name with arguments.
13702lt_save_CC="$CC"
13703CC=${F77-"f77"}
13704compiler=$CC
13705compiler_F77=$CC
13706for cc_temp in $compiler""; do
13707 case $cc_temp in
13708 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13709 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13710 \-*) ;;
13711 *) break;;
13712 esac
13713done
13714cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13715
13716
dd184caf 13717{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13718echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13719{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13720echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 13721
dd184caf 13722{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13723echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 13724test "$can_build_shared" = "no" && enable_shared=no
13725
13726# On AIX, shared libraries and static libraries use the same namespace, and
13727# are all built from PIC.
13728case $host_os in
13729aix3*)
13730 test "$enable_shared" = yes && enable_static=no
13731 if test -n "$RANLIB"; then
13732 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13733 postinstall_cmds='$RANLIB $lib'
13734 fi
13735 ;;
13736aix4* | aix5*)
13737 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13738 test "$enable_shared" = yes && enable_static=no
13739 fi
13740 ;;
13741esac
dd184caf 13742{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13743echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 13744
dd184caf 13745{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13746echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 13747# Make sure either enable_shared or enable_static is yes.
13748test "$enable_shared" = yes || enable_static=yes
dd184caf 13749{ echo "$as_me:$LINENO: result: $enable_static" >&5
13750echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 13751
13752GCC_F77="$G77"
13753LD_F77="$LD"
13754
13755lt_prog_compiler_wl_F77=
13756lt_prog_compiler_pic_F77=
13757lt_prog_compiler_static_F77=
13758
dd184caf 13759{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13760echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 13761
13762 if test "$GCC" = yes; then
13763 lt_prog_compiler_wl_F77='-Wl,'
13764 lt_prog_compiler_static_F77='-static'
13765
13766 case $host_os in
13767 aix*)
13768 # All AIX code is PIC.
13769 if test "$host_cpu" = ia64; then
13770 # AIX 5 now supports IA64 processor
13771 lt_prog_compiler_static_F77='-Bstatic'
13772 fi
13773 ;;
13774
13775 amigaos*)
13776 # FIXME: we need at least 68020 code to build shared libraries, but
13777 # adding the `-m68020' flag to GCC prevents building anything better,
13778 # like `-m68040'.
13779 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13780 ;;
13781
13782 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13783 # PIC is the default for these OSes.
13784 ;;
13785
13786 mingw* | pw32* | os2*)
13787 # This hack is so that the source file can tell whether it is being
13788 # built for inclusion in a dll (and should export symbols for example).
13789 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13790 ;;
13791
13792 darwin* | rhapsody*)
13793 # PIC is the default on this platform
13794 # Common symbols not allowed in MH_DYLIB files
13795 lt_prog_compiler_pic_F77='-fno-common'
13796 ;;
13797
13798 interix3*)
13799 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13800 # Instead, we relocate shared libraries at runtime.
13801 ;;
13802
13803 msdosdjgpp*)
13804 # Just because we use GCC doesn't mean we suddenly get shared libraries
13805 # on systems that don't support them.
13806 lt_prog_compiler_can_build_shared_F77=no
13807 enable_shared=no
13808 ;;
13809
13810 sysv4*MP*)
13811 if test -d /usr/nec; then
13812 lt_prog_compiler_pic_F77=-Kconform_pic
13813 fi
13814 ;;
13815
13816 hpux*)
13817 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13818 # not for PA HP-UX.
13819 case $host_cpu in
13820 hppa*64*|ia64*)
13821 # +Z the default
13822 ;;
13823 *)
13824 lt_prog_compiler_pic_F77='-fPIC'
13825 ;;
13826 esac
13827 ;;
13828
13829 *)
13830 lt_prog_compiler_pic_F77='-fPIC'
13831 ;;
13832 esac
13833 else
13834 # PORTME Check for flag to pass linker flags through the system compiler.
13835 case $host_os in
13836 aix*)
13837 lt_prog_compiler_wl_F77='-Wl,'
13838 if test "$host_cpu" = ia64; then
13839 # AIX 5 now supports IA64 processor
13840 lt_prog_compiler_static_F77='-Bstatic'
13841 else
13842 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13843 fi
13844 ;;
13845 darwin*)
13846 # PIC is the default on this platform
13847 # Common symbols not allowed in MH_DYLIB files
13848 case $cc_basename in
13849 xlc*)
13850 lt_prog_compiler_pic_F77='-qnocommon'
13851 lt_prog_compiler_wl_F77='-Wl,'
13852 ;;
13853 esac
13854 ;;
13855
13856 mingw* | pw32* | os2*)
13857 # This hack is so that the source file can tell whether it is being
13858 # built for inclusion in a dll (and should export symbols for example).
13859 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13860 ;;
13861
13862 hpux9* | hpux10* | hpux11*)
13863 lt_prog_compiler_wl_F77='-Wl,'
13864 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13865 # not for PA HP-UX.
13866 case $host_cpu in
13867 hppa*64*|ia64*)
13868 # +Z the default
13869 ;;
13870 *)
13871 lt_prog_compiler_pic_F77='+Z'
13872 ;;
13873 esac
13874 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13875 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13876 ;;
13877
13878 irix5* | irix6* | nonstopux*)
13879 lt_prog_compiler_wl_F77='-Wl,'
13880 # PIC (with -KPIC) is the default.
13881 lt_prog_compiler_static_F77='-non_shared'
13882 ;;
13883
13884 newsos6)
13885 lt_prog_compiler_pic_F77='-KPIC'
13886 lt_prog_compiler_static_F77='-Bstatic'
13887 ;;
13888
13889 linux*)
13890 case $cc_basename in
13891 icc* | ecc*)
13892 lt_prog_compiler_wl_F77='-Wl,'
13893 lt_prog_compiler_pic_F77='-KPIC'
13894 lt_prog_compiler_static_F77='-static'
13895 ;;
13896 pgcc* | pgf77* | pgf90* | pgf95*)
13897 # Portland Group compilers (*not* the Pentium gcc compiler,
13898 # which looks to be a dead project)
13899 lt_prog_compiler_wl_F77='-Wl,'
13900 lt_prog_compiler_pic_F77='-fpic'
13901 lt_prog_compiler_static_F77='-Bstatic'
13902 ;;
13903 ccc*)
13904 lt_prog_compiler_wl_F77='-Wl,'
13905 # All Alpha code is PIC.
13906 lt_prog_compiler_static_F77='-non_shared'
13907 ;;
13908 esac
13909 ;;
13910
13911 osf3* | osf4* | osf5*)
13912 lt_prog_compiler_wl_F77='-Wl,'
13913 # All OSF/1 code is PIC.
13914 lt_prog_compiler_static_F77='-non_shared'
13915 ;;
13916
13917 solaris*)
13918 lt_prog_compiler_pic_F77='-KPIC'
13919 lt_prog_compiler_static_F77='-Bstatic'
13920 case $cc_basename in
13921 f77* | f90* | f95*)
13922 lt_prog_compiler_wl_F77='-Qoption ld ';;
13923 *)
13924 lt_prog_compiler_wl_F77='-Wl,';;
13925 esac
13926 ;;
13927
13928 sunos4*)
13929 lt_prog_compiler_wl_F77='-Qoption ld '
13930 lt_prog_compiler_pic_F77='-PIC'
13931 lt_prog_compiler_static_F77='-Bstatic'
13932 ;;
13933
13934 sysv4 | sysv4.2uw2* | sysv4.3*)
13935 lt_prog_compiler_wl_F77='-Wl,'
13936 lt_prog_compiler_pic_F77='-KPIC'
13937 lt_prog_compiler_static_F77='-Bstatic'
13938 ;;
13939
13940 sysv4*MP*)
13941 if test -d /usr/nec ;then
13942 lt_prog_compiler_pic_F77='-Kconform_pic'
13943 lt_prog_compiler_static_F77='-Bstatic'
13944 fi
13945 ;;
13946
13947 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13948 lt_prog_compiler_wl_F77='-Wl,'
13949 lt_prog_compiler_pic_F77='-KPIC'
13950 lt_prog_compiler_static_F77='-Bstatic'
13951 ;;
13952
13953 unicos*)
13954 lt_prog_compiler_wl_F77='-Wl,'
13955 lt_prog_compiler_can_build_shared_F77=no
13956 ;;
13957
13958 uts4*)
13959 lt_prog_compiler_pic_F77='-pic'
13960 lt_prog_compiler_static_F77='-Bstatic'
13961 ;;
13962
13963 *)
13964 lt_prog_compiler_can_build_shared_F77=no
13965 ;;
13966 esac
13967 fi
13968
dd184caf 13969{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13970echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d9898ee8 13971
13972#
13973# Check to make sure the PIC flag actually works.
13974#
13975if test -n "$lt_prog_compiler_pic_F77"; then
13976
dd184caf 13977{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13978echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
d9898ee8 13979if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13981else
13982 lt_prog_compiler_pic_works_F77=no
13983 ac_outfile=conftest.$ac_objext
13984 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13985 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13986 # Insert the option either (1) after the last *FLAGS variable, or
13987 # (2) before a word containing "conftest.", or (3) at the end.
13988 # Note that $ac_compile itself does not contain backslashes and begins
13989 # with a dollar sign (not a hyphen), so the echo should work correctly.
13990 # The option is referenced via a variable to avoid confusing sed.
13991 lt_compile=`echo "$ac_compile" | $SED \
13992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13994 -e 's:$: $lt_compiler_flag:'`
dd184caf 13995 (eval echo "\"\$as_me:13995: $lt_compile\"" >&5)
d9898ee8 13996 (eval "$lt_compile" 2>conftest.err)
13997 ac_status=$?
13998 cat conftest.err >&5
dd184caf 13999 echo "$as_me:13999: \$? = $ac_status" >&5
d9898ee8 14000 if (exit $ac_status) && test -s "$ac_outfile"; then
14001 # The compiler can only warn and ignore the option if not recognized
14002 # So say no if there are warnings other than the usual output.
14003 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14005 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14006 lt_prog_compiler_pic_works_F77=yes
14007 fi
14008 fi
14009 $rm conftest*
14010
14011fi
dd184caf 14012{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14013echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d9898ee8 14014
14015if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14016 case $lt_prog_compiler_pic_F77 in
14017 "" | " "*) ;;
14018 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14019 esac
14020else
14021 lt_prog_compiler_pic_F77=
14022 lt_prog_compiler_can_build_shared_F77=no
14023fi
14024
14025fi
14026case $host_os in
14027 # For platforms which do not support PIC, -DPIC is meaningless:
14028 *djgpp*)
14029 lt_prog_compiler_pic_F77=
14030 ;;
14031 *)
14032 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14033 ;;
14034esac
14035
14036#
14037# Check to make sure the static flag actually works.
14038#
14039wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
dd184caf 14040{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14041echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 14042if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14044else
14045 lt_prog_compiler_static_works_F77=no
14046 save_LDFLAGS="$LDFLAGS"
14047 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14048 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14049 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14050 # The linker can only warn and ignore the option if not recognized
14051 # So say no if there are warnings
14052 if test -s conftest.err; then
14053 # Append any errors to the config.log.
14054 cat conftest.err 1>&5
14055 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14057 if diff conftest.exp conftest.er2 >/dev/null; then
14058 lt_prog_compiler_static_works_F77=yes
14059 fi
14060 else
14061 lt_prog_compiler_static_works_F77=yes
14062 fi
14063 fi
14064 $rm conftest*
14065 LDFLAGS="$save_LDFLAGS"
14066
14067fi
dd184caf 14068{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14069echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
d9898ee8 14070
14071if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14072 :
14073else
14074 lt_prog_compiler_static_F77=
14075fi
14076
14077
dd184caf 14078{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14079echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 14080if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14081 echo $ECHO_N "(cached) $ECHO_C" >&6
14082else
14083 lt_cv_prog_compiler_c_o_F77=no
14084 $rm -r conftest 2>/dev/null
14085 mkdir conftest
14086 cd conftest
14087 mkdir out
14088 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14089
14090 lt_compiler_flag="-o out/conftest2.$ac_objext"
14091 # Insert the option either (1) after the last *FLAGS variable, or
14092 # (2) before a word containing "conftest.", or (3) at the end.
14093 # Note that $ac_compile itself does not contain backslashes and begins
14094 # with a dollar sign (not a hyphen), so the echo should work correctly.
14095 lt_compile=`echo "$ac_compile" | $SED \
14096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14098 -e 's:$: $lt_compiler_flag:'`
dd184caf 14099 (eval echo "\"\$as_me:14099: $lt_compile\"" >&5)
d9898ee8 14100 (eval "$lt_compile" 2>out/conftest.err)
14101 ac_status=$?
14102 cat out/conftest.err >&5
dd184caf 14103 echo "$as_me:14103: \$? = $ac_status" >&5
d9898ee8 14104 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14105 then
14106 # The compiler can only warn and ignore the option if not recognized
14107 # So say no if there are warnings
14108 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14109 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14110 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14111 lt_cv_prog_compiler_c_o_F77=yes
14112 fi
14113 fi
14114 chmod u+w . 2>&5
14115 $rm conftest*
14116 # SGI C++ compiler will create directory out/ii_files/ for
14117 # template instantiation
14118 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14119 $rm out/* && rmdir out
14120 cd ..
14121 rmdir conftest
14122 $rm conftest*
14123
14124fi
dd184caf 14125{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14126echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d9898ee8 14127
14128
14129hard_links="nottested"
14130if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14131 # do not overwrite the value of need_locks provided by the user
dd184caf 14132 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14133echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 14134 hard_links=yes
14135 $rm conftest*
14136 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14137 touch conftest.a
14138 ln conftest.a conftest.b 2>&5 || hard_links=no
14139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 14140 { echo "$as_me:$LINENO: result: $hard_links" >&5
14141echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 14142 if test "$hard_links" = no; then
14143 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14144echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14145 need_locks=warn
14146 fi
14147else
14148 need_locks=no
14149fi
14150
dd184caf 14151{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14152echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 14153
14154 runpath_var=
14155 allow_undefined_flag_F77=
14156 enable_shared_with_static_runtimes_F77=no
14157 archive_cmds_F77=
14158 archive_expsym_cmds_F77=
14159 old_archive_From_new_cmds_F77=
14160 old_archive_from_expsyms_cmds_F77=
14161 export_dynamic_flag_spec_F77=
14162 whole_archive_flag_spec_F77=
14163 thread_safe_flag_spec_F77=
14164 hardcode_libdir_flag_spec_F77=
14165 hardcode_libdir_flag_spec_ld_F77=
14166 hardcode_libdir_separator_F77=
14167 hardcode_direct_F77=no
14168 hardcode_minus_L_F77=no
14169 hardcode_shlibpath_var_F77=unsupported
14170 link_all_deplibs_F77=unknown
14171 hardcode_automatic_F77=no
14172 module_cmds_F77=
14173 module_expsym_cmds_F77=
14174 always_export_symbols_F77=no
14175 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14176 # include_expsyms should be a list of space-separated symbols to be *always*
14177 # included in the symbol list
14178 include_expsyms_F77=
14179 # exclude_expsyms can be an extended regexp of symbols to exclude
14180 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14181 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14182 # as well as any symbol that contains `d'.
14183 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14184 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14185 # platforms (ab)use it in PIC code, but their linkers get confused if
14186 # the symbol is explicitly referenced. Since portable code cannot
14187 # rely on this symbol name, it's probably fine to never include it in
14188 # preloaded symbol tables.
14189 extract_expsyms_cmds=
14190 # Just being paranoid about ensuring that cc_basename is set.
14191 for cc_temp in $compiler""; do
14192 case $cc_temp in
14193 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14194 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14195 \-*) ;;
14196 *) break;;
14197 esac
14198done
14199cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14200
14201 case $host_os in
14202 cygwin* | mingw* | pw32*)
14203 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14204 # When not using gcc, we currently assume that we are using
14205 # Microsoft Visual C++.
14206 if test "$GCC" != yes; then
14207 with_gnu_ld=no
14208 fi
14209 ;;
14210 interix*)
14211 # we just hope/assume this is gcc and not c89 (= MSVC++)
14212 with_gnu_ld=yes
14213 ;;
14214 openbsd*)
14215 with_gnu_ld=no
14216 ;;
14217 esac
14218
14219 ld_shlibs_F77=yes
14220 if test "$with_gnu_ld" = yes; then
14221 # If archive_cmds runs LD, not CC, wlarc should be empty
14222 wlarc='${wl}'
14223
14224 # Set some defaults for GNU ld with shared library support. These
14225 # are reset later if shared libraries are not supported. Putting them
14226 # here allows them to be overridden if necessary.
14227 runpath_var=LD_RUN_PATH
14228 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14229 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14230 # ancient GNU ld didn't support --whole-archive et. al.
14231 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14232 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14233 else
14234 whole_archive_flag_spec_F77=
14235 fi
14236 supports_anon_versioning=no
14237 case `$LD -v 2>/dev/null` in
14238 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14239 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14240 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14241 *\ 2.11.*) ;; # other 2.11 versions
14242 *) supports_anon_versioning=yes ;;
14243 esac
14244
14245 # See if GNU ld supports shared libraries.
14246 case $host_os in
14247 aix3* | aix4* | aix5*)
14248 # On AIX/PPC, the GNU linker is very broken
14249 if test "$host_cpu" != ia64; then
14250 ld_shlibs_F77=no
14251 cat <<EOF 1>&2
14252
14253*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14254*** to be unable to reliably create shared libraries on AIX.
14255*** Therefore, libtool is disabling shared libraries support. If you
14256*** really care for shared libraries, you may want to modify your PATH
14257*** so that a non-GNU linker is found, and then restart.
14258
14259EOF
14260 fi
14261 ;;
14262
14263 amigaos*)
14264 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)'
14265 hardcode_libdir_flag_spec_F77='-L$libdir'
14266 hardcode_minus_L_F77=yes
14267
14268 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14269 # that the semantics of dynamic libraries on AmigaOS, at least up
14270 # to version 4, is to share data among multiple programs linked
14271 # with the same dynamic library. Since this doesn't match the
14272 # behavior of shared libraries on other platforms, we can't use
14273 # them.
14274 ld_shlibs_F77=no
14275 ;;
14276
14277 beos*)
14278 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14279 allow_undefined_flag_F77=unsupported
14280 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14281 # support --undefined. This deserves some investigation. FIXME
14282 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14283 else
14284 ld_shlibs_F77=no
14285 fi
14286 ;;
14287
14288 cygwin* | mingw* | pw32*)
14289 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14290 # as there is no search path for DLLs.
14291 hardcode_libdir_flag_spec_F77='-L$libdir'
14292 allow_undefined_flag_F77=unsupported
14293 always_export_symbols_F77=no
14294 enable_shared_with_static_runtimes_F77=yes
14295 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14296
14297 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14298 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14299 # If the export-symbols file already is a .def file (1st line
14300 # is EXPORTS), use it as is; otherwise, prepend...
14301 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14302 cp $export_symbols $output_objdir/$soname.def;
14303 else
14304 echo EXPORTS > $output_objdir/$soname.def;
14305 cat $export_symbols >> $output_objdir/$soname.def;
14306 fi~
14307 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14308 else
14309 ld_shlibs_F77=no
14310 fi
14311 ;;
14312
14313 interix3*)
14314 hardcode_direct_F77=no
14315 hardcode_shlibpath_var_F77=no
14316 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14317 export_dynamic_flag_spec_F77='${wl}-E'
14318 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14319 # Instead, shared libraries are loaded at an image base (0x10000000 by
14320 # default) and relocated if they conflict, which is a slow very memory
14321 # consuming and fragmenting process. To avoid this, we pick a random,
14322 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14323 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14324 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'
14325 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'
14326 ;;
14327
14328 linux*)
14329 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14330 tmp_addflag=
14331 case $cc_basename,$host_cpu in
14332 pgcc*) # Portland Group C compiler
14333 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'
14334 tmp_addflag=' $pic_flag'
14335 ;;
14336 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14337 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'
14338 tmp_addflag=' $pic_flag -Mnomain' ;;
14339 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14340 tmp_addflag=' -i_dynamic' ;;
14341 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14342 tmp_addflag=' -i_dynamic -nofor_main' ;;
14343 ifc* | ifort*) # Intel Fortran compiler
14344 tmp_addflag=' -nofor_main' ;;
14345 esac
14346 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14347
14348 if test $supports_anon_versioning = yes; then
14349 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14350 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14351 $echo "local: *; };" >> $output_objdir/$libname.ver~
14352 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14353 fi
14354 else
14355 ld_shlibs_F77=no
14356 fi
14357 ;;
14358
14359 netbsd*)
14360 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14361 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14362 wlarc=
14363 else
14364 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14365 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14366 fi
14367 ;;
14368
14369 solaris*)
14370 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14371 ld_shlibs_F77=no
14372 cat <<EOF 1>&2
14373
14374*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14375*** create shared libraries on Solaris systems. Therefore, libtool
14376*** is disabling shared libraries support. We urge you to upgrade GNU
14377*** binutils to release 2.9.1 or newer. Another option is to modify
14378*** your PATH or compiler configuration so that the native linker is
14379*** used, and then restart.
14380
14381EOF
14382 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14383 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14384 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14385 else
14386 ld_shlibs_F77=no
14387 fi
14388 ;;
14389
14390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14391 case `$LD -v 2>&1` in
14392 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14393 ld_shlibs_F77=no
14394 cat <<_LT_EOF 1>&2
14395
14396*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14397*** reliably create shared libraries on SCO systems. Therefore, libtool
14398*** is disabling shared libraries support. We urge you to upgrade GNU
14399*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14400*** your PATH or compiler configuration so that the native linker is
14401*** used, and then restart.
14402
14403_LT_EOF
14404 ;;
14405 *)
14406 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14407 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14408 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14409 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14410 else
14411 ld_shlibs_F77=no
14412 fi
14413 ;;
14414 esac
14415 ;;
14416
14417 sunos4*)
14418 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14419 wlarc=
14420 hardcode_direct_F77=yes
14421 hardcode_shlibpath_var_F77=no
14422 ;;
14423
14424 *)
14425 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14426 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14427 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14428 else
14429 ld_shlibs_F77=no
14430 fi
14431 ;;
14432 esac
14433
14434 if test "$ld_shlibs_F77" = no; then
14435 runpath_var=
14436 hardcode_libdir_flag_spec_F77=
14437 export_dynamic_flag_spec_F77=
14438 whole_archive_flag_spec_F77=
14439 fi
14440 else
14441 # PORTME fill in a description of your system's linker (not GNU ld)
14442 case $host_os in
14443 aix3*)
14444 allow_undefined_flag_F77=unsupported
14445 always_export_symbols_F77=yes
14446 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'
14447 # Note: this linker hardcodes the directories in LIBPATH if there
14448 # are no directories specified by -L.
14449 hardcode_minus_L_F77=yes
14450 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14451 # Neither direct hardcoding nor static linking is supported with a
14452 # broken collect2.
14453 hardcode_direct_F77=unsupported
14454 fi
14455 ;;
14456
14457 aix4* | aix5*)
14458 if test "$host_cpu" = ia64; then
14459 # On IA64, the linker does run time linking by default, so we don't
14460 # have to do anything special.
14461 aix_use_runtimelinking=no
14462 exp_sym_flag='-Bexport'
14463 no_entry_flag=""
14464 else
14465 # If we're using GNU nm, then we don't want the "-C" option.
14466 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14467 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14468 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'
14469 else
14470 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'
14471 fi
14472 aix_use_runtimelinking=no
14473
14474 # Test if we are trying to use run time linking or normal
14475 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14476 # need to do runtime linking.
14477 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14478 for ld_flag in $LDFLAGS; do
14479 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14480 aix_use_runtimelinking=yes
14481 break
14482 fi
14483 done
14484 ;;
14485 esac
14486
14487 exp_sym_flag='-bexport'
14488 no_entry_flag='-bnoentry'
14489 fi
14490
14491 # When large executables or shared objects are built, AIX ld can
14492 # have problems creating the table of contents. If linking a library
14493 # or program results in "error TOC overflow" add -mminimal-toc to
14494 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14495 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14496
14497 archive_cmds_F77=''
14498 hardcode_direct_F77=yes
14499 hardcode_libdir_separator_F77=':'
14500 link_all_deplibs_F77=yes
14501
14502 if test "$GCC" = yes; then
14503 case $host_os in aix4.[012]|aix4.[012].*)
14504 # We only want to do this on AIX 4.2 and lower, the check
14505 # below for broken collect2 doesn't work under 4.3+
14506 collect2name=`${CC} -print-prog-name=collect2`
14507 if test -f "$collect2name" && \
14508 strings "$collect2name" | grep resolve_lib_name >/dev/null
14509 then
14510 # We have reworked collect2
14511 hardcode_direct_F77=yes
14512 else
14513 # We have old collect2
14514 hardcode_direct_F77=unsupported
14515 # It fails to find uninstalled libraries when the uninstalled
14516 # path is not listed in the libpath. Setting hardcode_minus_L
14517 # to unsupported forces relinking
14518 hardcode_minus_L_F77=yes
14519 hardcode_libdir_flag_spec_F77='-L$libdir'
14520 hardcode_libdir_separator_F77=
14521 fi
14522 ;;
14523 esac
14524 shared_flag='-shared'
14525 if test "$aix_use_runtimelinking" = yes; then
14526 shared_flag="$shared_flag "'${wl}-G'
14527 fi
14528 else
14529 # not using gcc
14530 if test "$host_cpu" = ia64; then
14531 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14532 # chokes on -Wl,-G. The following line is correct:
14533 shared_flag='-G'
14534 else
14535 if test "$aix_use_runtimelinking" = yes; then
14536 shared_flag='${wl}-G'
14537 else
14538 shared_flag='${wl}-bM:SRE'
14539 fi
14540 fi
14541 fi
14542
14543 # It seems that -bexpall does not export symbols beginning with
14544 # underscore (_), so it is better to generate a list of symbols to export.
14545 always_export_symbols_F77=yes
14546 if test "$aix_use_runtimelinking" = yes; then
14547 # Warning - without using the other runtime loading flags (-brtl),
14548 # -berok will link without error, but may produce a broken library.
14549 allow_undefined_flag_F77='-berok'
14550 # Determine the default libpath from the value encoded in an empty executable.
14551 cat >conftest.$ac_ext <<_ACEOF
14552 program main
14553
14554 end
14555_ACEOF
14556rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14557if { (ac_try="$ac_link"
14558case "(($ac_try" in
14559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14560 *) ac_try_echo=$ac_try;;
14561esac
14562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14563 (eval "$ac_link") 2>conftest.er1
d9898ee8 14564 ac_status=$?
14565 grep -v '^ *+' conftest.er1 >conftest.err
14566 rm -f conftest.er1
14567 cat conftest.err >&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14569 (exit $ac_status); } && {
14570 test -z "$ac_f77_werror_flag" ||
14571 test ! -s conftest.err
14572 } && test -s conftest$ac_exeext &&
14573 $as_test_x conftest$ac_exeext; then
d9898ee8 14574
14575aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14576}'`
14577# Check for a 64-bit object if we didn't find anything.
14578if 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; }
14579}'`; fi
14580else
14581 echo "$as_me: failed program was:" >&5
14582sed 's/^/| /' conftest.$ac_ext >&5
14583
dd184caf 14584
d9898ee8 14585fi
dd184caf 14586
14587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14588 conftest$ac_exeext conftest.$ac_ext
14589if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14590
14591 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14592 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"
14593 else
14594 if test "$host_cpu" = ia64; then
14595 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14596 allow_undefined_flag_F77="-z nodefs"
14597 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"
14598 else
14599 # Determine the default libpath from the value encoded in an empty executable.
14600 cat >conftest.$ac_ext <<_ACEOF
14601 program main
14602
14603 end
14604_ACEOF
14605rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14606if { (ac_try="$ac_link"
14607case "(($ac_try" in
14608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609 *) ac_try_echo=$ac_try;;
14610esac
14611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612 (eval "$ac_link") 2>conftest.er1
d9898ee8 14613 ac_status=$?
14614 grep -v '^ *+' conftest.er1 >conftest.err
14615 rm -f conftest.er1
14616 cat conftest.err >&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14618 (exit $ac_status); } && {
14619 test -z "$ac_f77_werror_flag" ||
14620 test ! -s conftest.err
14621 } && test -s conftest$ac_exeext &&
14622 $as_test_x conftest$ac_exeext; then
d9898ee8 14623
14624aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14625}'`
14626# Check for a 64-bit object if we didn't find anything.
14627if 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; }
14628}'`; fi
14629else
14630 echo "$as_me: failed program was:" >&5
14631sed 's/^/| /' conftest.$ac_ext >&5
14632
dd184caf 14633
d9898ee8 14634fi
dd184caf 14635
14636rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14637 conftest$ac_exeext conftest.$ac_ext
14638if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14639
14640 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14641 # Warning - without using the other run time loading flags,
14642 # -berok will link without error, but may produce a broken library.
14643 no_undefined_flag_F77=' ${wl}-bernotok'
14644 allow_undefined_flag_F77=' ${wl}-berok'
14645 # Exported symbols can be pulled into shared objects from archives
14646 whole_archive_flag_spec_F77='$convenience'
14647 archive_cmds_need_lc_F77=yes
14648 # This is similar to how AIX traditionally builds its shared libraries.
14649 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'
14650 fi
14651 fi
14652 ;;
14653
14654 amigaos*)
14655 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)'
14656 hardcode_libdir_flag_spec_F77='-L$libdir'
14657 hardcode_minus_L_F77=yes
14658 # see comment about different semantics on the GNU ld section
14659 ld_shlibs_F77=no
14660 ;;
14661
14662 bsdi[45]*)
14663 export_dynamic_flag_spec_F77=-rdynamic
14664 ;;
14665
14666 cygwin* | mingw* | pw32*)
14667 # When not using gcc, we currently assume that we are using
14668 # Microsoft Visual C++.
14669 # hardcode_libdir_flag_spec is actually meaningless, as there is
14670 # no search path for DLLs.
14671 hardcode_libdir_flag_spec_F77=' '
14672 allow_undefined_flag_F77=unsupported
14673 # Tell ltmain to make .lib files, not .a files.
14674 libext=lib
14675 # Tell ltmain to make .dll files, not .so files.
14676 shrext_cmds=".dll"
14677 # FIXME: Setting linknames here is a bad hack.
14678 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14679 # The linker will automatically build a .lib file if we build a DLL.
14680 old_archive_From_new_cmds_F77='true'
14681 # FIXME: Should let the user specify the lib program.
14682 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14683 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14684 enable_shared_with_static_runtimes_F77=yes
14685 ;;
14686
14687 darwin* | rhapsody*)
14688 case $host_os in
14689 rhapsody* | darwin1.[012])
14690 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14691 ;;
14692 *) # Darwin 1.3 on
14693 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14694 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14695 else
14696 case ${MACOSX_DEPLOYMENT_TARGET} in
14697 10.[012])
14698 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14699 ;;
14700 10.*)
14701 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14702 ;;
14703 esac
14704 fi
14705 ;;
14706 esac
14707 archive_cmds_need_lc_F77=no
14708 hardcode_direct_F77=no
14709 hardcode_automatic_F77=yes
14710 hardcode_shlibpath_var_F77=unsupported
14711 whole_archive_flag_spec_F77=''
14712 link_all_deplibs_F77=yes
14713 if test "$GCC" = yes ; then
14714 output_verbose_link_cmd='echo'
14715 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14716 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14717 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14718 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}'
14719 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}'
14720 else
14721 case $cc_basename in
14722 xlc*)
14723 output_verbose_link_cmd='echo'
14724 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14725 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14726 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14727 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}'
14728 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}'
14729 ;;
14730 *)
14731 ld_shlibs_F77=no
14732 ;;
14733 esac
14734 fi
14735 ;;
14736
14737 dgux*)
14738 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14739 hardcode_libdir_flag_spec_F77='-L$libdir'
14740 hardcode_shlibpath_var_F77=no
14741 ;;
14742
14743 freebsd1*)
14744 ld_shlibs_F77=no
14745 ;;
14746
14747 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14748 # support. Future versions do this automatically, but an explicit c++rt0.o
14749 # does not break anything, and helps significantly (at the cost of a little
14750 # extra space).
14751 freebsd2.2*)
14752 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14753 hardcode_libdir_flag_spec_F77='-R$libdir'
14754 hardcode_direct_F77=yes
14755 hardcode_shlibpath_var_F77=no
14756 ;;
14757
14758 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14759 freebsd2*)
14760 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14761 hardcode_direct_F77=yes
14762 hardcode_minus_L_F77=yes
14763 hardcode_shlibpath_var_F77=no
14764 ;;
14765
14766 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14767 freebsd* | kfreebsd*-gnu | dragonfly*)
14768 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14769 hardcode_libdir_flag_spec_F77='-R$libdir'
14770 hardcode_direct_F77=yes
14771 hardcode_shlibpath_var_F77=no
14772 ;;
14773
14774 hpux9*)
14775 if test "$GCC" = yes; then
14776 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'
14777 else
14778 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'
14779 fi
14780 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14781 hardcode_libdir_separator_F77=:
14782 hardcode_direct_F77=yes
14783
14784 # hardcode_minus_L: Not really in the search PATH,
14785 # but as the default location of the library.
14786 hardcode_minus_L_F77=yes
14787 export_dynamic_flag_spec_F77='${wl}-E'
14788 ;;
14789
14790 hpux10*)
14791 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14792 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14793 else
14794 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14795 fi
14796 if test "$with_gnu_ld" = no; then
14797 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14798 hardcode_libdir_separator_F77=:
14799
14800 hardcode_direct_F77=yes
14801 export_dynamic_flag_spec_F77='${wl}-E'
14802
14803 # hardcode_minus_L: Not really in the search PATH,
14804 # but as the default location of the library.
14805 hardcode_minus_L_F77=yes
14806 fi
14807 ;;
14808
14809 hpux11*)
14810 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14811 case $host_cpu in
14812 hppa*64*)
14813 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14814 ;;
14815 ia64*)
14816 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14817 ;;
14818 *)
14819 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14820 ;;
14821 esac
14822 else
14823 case $host_cpu in
14824 hppa*64*)
14825 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14826 ;;
14827 ia64*)
14828 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14829 ;;
14830 *)
14831 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14832 ;;
14833 esac
14834 fi
14835 if test "$with_gnu_ld" = no; then
14836 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14837 hardcode_libdir_separator_F77=:
14838
14839 case $host_cpu in
14840 hppa*64*|ia64*)
14841 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14842 hardcode_direct_F77=no
14843 hardcode_shlibpath_var_F77=no
14844 ;;
14845 *)
14846 hardcode_direct_F77=yes
14847 export_dynamic_flag_spec_F77='${wl}-E'
14848
14849 # hardcode_minus_L: Not really in the search PATH,
14850 # but as the default location of the library.
14851 hardcode_minus_L_F77=yes
14852 ;;
14853 esac
14854 fi
14855 ;;
14856
14857 irix5* | irix6* | nonstopux*)
14858 if test "$GCC" = yes; then
14859 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'
14860 else
14861 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'
14862 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14863 fi
14864 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14865 hardcode_libdir_separator_F77=:
14866 link_all_deplibs_F77=yes
14867 ;;
14868
14869 netbsd*)
14870 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14871 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14872 else
14873 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14874 fi
14875 hardcode_libdir_flag_spec_F77='-R$libdir'
14876 hardcode_direct_F77=yes
14877 hardcode_shlibpath_var_F77=no
14878 ;;
14879
14880 newsos6)
14881 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14882 hardcode_direct_F77=yes
14883 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14884 hardcode_libdir_separator_F77=:
14885 hardcode_shlibpath_var_F77=no
14886 ;;
14887
14888 openbsd*)
14889 hardcode_direct_F77=yes
14890 hardcode_shlibpath_var_F77=no
14891 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14892 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14893 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14894 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14895 export_dynamic_flag_spec_F77='${wl}-E'
14896 else
14897 case $host_os in
14898 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14899 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14900 hardcode_libdir_flag_spec_F77='-R$libdir'
14901 ;;
14902 *)
14903 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14904 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14905 ;;
14906 esac
14907 fi
14908 ;;
14909
14910 os2*)
14911 hardcode_libdir_flag_spec_F77='-L$libdir'
14912 hardcode_minus_L_F77=yes
14913 allow_undefined_flag_F77=unsupported
14914 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'
14915 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14916 ;;
14917
14918 osf3*)
14919 if test "$GCC" = yes; then
14920 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14921 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'
14922 else
14923 allow_undefined_flag_F77=' -expect_unresolved \*'
14924 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'
14925 fi
14926 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14927 hardcode_libdir_separator_F77=:
14928 ;;
14929
14930 osf4* | osf5*) # as osf3* with the addition of -msym flag
14931 if test "$GCC" = yes; then
14932 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14933 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'
14934 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14935 else
14936 allow_undefined_flag_F77=' -expect_unresolved \*'
14937 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'
14938 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~
14939 $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'
14940
14941 # Both c and cxx compiler support -rpath directly
14942 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14943 fi
14944 hardcode_libdir_separator_F77=:
14945 ;;
14946
14947 solaris*)
14948 no_undefined_flag_F77=' -z text'
14949 if test "$GCC" = yes; then
14950 wlarc='${wl}'
14951 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14952 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14953 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14954 else
14955 wlarc=''
14956 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14957 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14958 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14959 fi
14960 hardcode_libdir_flag_spec_F77='-R$libdir'
14961 hardcode_shlibpath_var_F77=no
14962 case $host_os in
14963 solaris2.[0-5] | solaris2.[0-5].*) ;;
14964 *)
14965 # The compiler driver will combine linker options so we
14966 # cannot just pass the convience library names through
14967 # without $wl, iff we do not link with $LD.
14968 # Luckily, gcc supports the same syntax we need for Sun Studio.
14969 # Supported since Solaris 2.6 (maybe 2.5.1?)
14970 case $wlarc in
14971 '')
14972 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14973 *)
14974 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' ;;
14975 esac ;;
14976 esac
14977 link_all_deplibs_F77=yes
14978 ;;
14979
14980 sunos4*)
14981 if test "x$host_vendor" = xsequent; then
14982 # Use $CC to link under sequent, because it throws in some extra .o
14983 # files that make .init and .fini sections work.
14984 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14985 else
14986 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14987 fi
14988 hardcode_libdir_flag_spec_F77='-L$libdir'
14989 hardcode_direct_F77=yes
14990 hardcode_minus_L_F77=yes
14991 hardcode_shlibpath_var_F77=no
14992 ;;
14993
14994 sysv4)
14995 case $host_vendor in
14996 sni)
14997 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14998 hardcode_direct_F77=yes # is this really true???
14999 ;;
15000 siemens)
15001 ## LD is ld it makes a PLAMLIB
15002 ## CC just makes a GrossModule.
15003 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15004 reload_cmds_F77='$CC -r -o $output$reload_objs'
15005 hardcode_direct_F77=no
15006 ;;
15007 motorola)
15008 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15009 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15010 ;;
15011 esac
15012 runpath_var='LD_RUN_PATH'
15013 hardcode_shlibpath_var_F77=no
15014 ;;
15015
15016 sysv4.3*)
15017 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15018 hardcode_shlibpath_var_F77=no
15019 export_dynamic_flag_spec_F77='-Bexport'
15020 ;;
15021
15022 sysv4*MP*)
15023 if test -d /usr/nec; then
15024 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15025 hardcode_shlibpath_var_F77=no
15026 runpath_var=LD_RUN_PATH
15027 hardcode_runpath_var=yes
15028 ld_shlibs_F77=yes
15029 fi
15030 ;;
15031
15032 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15033 no_undefined_flag_F77='${wl}-z,text'
15034 archive_cmds_need_lc_F77=no
15035 hardcode_shlibpath_var_F77=no
15036 runpath_var='LD_RUN_PATH'
15037
15038 if test "$GCC" = yes; then
15039 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15040 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15041 else
15042 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15043 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15044 fi
15045 ;;
15046
15047 sysv5* | sco3.2v5* | sco5v6*)
15048 # Note: We can NOT use -z defs as we might desire, because we do not
15049 # link with -lc, and that would cause any symbols used from libc to
15050 # always be unresolved, which means just about no library would
15051 # ever link correctly. If we're not using GNU ld we use -z text
15052 # though, which does catch some bad symbols but isn't as heavy-handed
15053 # as -z defs.
15054 no_undefined_flag_F77='${wl}-z,text'
15055 allow_undefined_flag_F77='${wl}-z,nodefs'
15056 archive_cmds_need_lc_F77=no
15057 hardcode_shlibpath_var_F77=no
15058 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15059 hardcode_libdir_separator_F77=':'
15060 link_all_deplibs_F77=yes
15061 export_dynamic_flag_spec_F77='${wl}-Bexport'
15062 runpath_var='LD_RUN_PATH'
15063
15064 if test "$GCC" = yes; then
15065 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15066 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15067 else
15068 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15069 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15070 fi
15071 ;;
15072
15073 uts4*)
15074 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15075 hardcode_libdir_flag_spec_F77='-L$libdir'
15076 hardcode_shlibpath_var_F77=no
15077 ;;
15078
15079 *)
15080 ld_shlibs_F77=no
15081 ;;
15082 esac
15083 fi
15084
dd184caf 15085{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15086echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d9898ee8 15087test "$ld_shlibs_F77" = no && can_build_shared=no
15088
15089#
15090# Do we need to explicitly link libc?
15091#
15092case "x$archive_cmds_need_lc_F77" in
15093x|xyes)
15094 # Assume -lc should be added
15095 archive_cmds_need_lc_F77=yes
15096
15097 if test "$enable_shared" = yes && test "$GCC" = yes; then
15098 case $archive_cmds_F77 in
15099 *'~'*)
15100 # FIXME: we may have to deal with multi-command sequences.
15101 ;;
15102 '$CC '*)
15103 # Test whether the compiler implicitly links with -lc since on some
15104 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15105 # to ld, don't add -lc before -lgcc.
dd184caf 15106 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15107echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 15108 $rm conftest*
15109 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15110
15111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15112 (eval $ac_compile) 2>&5
15113 ac_status=$?
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); } 2>conftest.err; then
15116 soname=conftest
15117 lib=conftest
15118 libobjs=conftest.$ac_objext
15119 deplibs=
15120 wl=$lt_prog_compiler_wl_F77
15121 pic_flag=$lt_prog_compiler_pic_F77
15122 compiler_flags=-v
15123 linker_flags=-v
15124 verstring=
15125 output_objdir=.
15126 libname=conftest
15127 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15128 allow_undefined_flag_F77=
15129 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15130 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15131 ac_status=$?
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }
15134 then
15135 archive_cmds_need_lc_F77=no
15136 else
15137 archive_cmds_need_lc_F77=yes
15138 fi
15139 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15140 else
15141 cat conftest.err 1>&5
15142 fi
15143 $rm conftest*
dd184caf 15144 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15145echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d9898ee8 15146 ;;
15147 esac
15148 fi
15149 ;;
15150esac
15151
dd184caf 15152{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15153echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 15154library_names_spec=
15155libname_spec='lib$name'
15156soname_spec=
15157shrext_cmds=".so"
15158postinstall_cmds=
15159postuninstall_cmds=
15160finish_cmds=
15161finish_eval=
15162shlibpath_var=
15163shlibpath_overrides_runpath=unknown
15164version_type=none
15165dynamic_linker="$host_os ld.so"
15166sys_lib_dlsearch_path_spec="/lib /usr/lib"
15167if test "$GCC" = yes; then
15168 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15169 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15170 # if the path contains ";" then we assume it to be the separator
15171 # otherwise default to the standard path separator (i.e. ":") - it is
15172 # assumed that no part of a normal pathname contains ";" but that should
15173 # okay in the real world where ";" in dirpaths is itself problematic.
15174 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15175 else
15176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15177 fi
15178else
15179 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15180fi
15181need_lib_prefix=unknown
15182hardcode_into_libs=no
15183
15184# when you set need_version to no, make sure it does not cause -set_version
15185# flags to be left without arguments
15186need_version=unknown
15187
15188case $host_os in
15189aix3*)
15190 version_type=linux
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15192 shlibpath_var=LIBPATH
15193
15194 # AIX 3 has no versioning support, so we append a major version to the name.
15195 soname_spec='${libname}${release}${shared_ext}$major'
15196 ;;
15197
15198aix4* | aix5*)
15199 version_type=linux
15200 need_lib_prefix=no
15201 need_version=no
15202 hardcode_into_libs=yes
15203 if test "$host_cpu" = ia64; then
15204 # AIX 5 supports IA64
15205 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15206 shlibpath_var=LD_LIBRARY_PATH
15207 else
15208 # With GCC up to 2.95.x, collect2 would create an import file
15209 # for dependence libraries. The import file would start with
15210 # the line `#! .'. This would cause the generated library to
15211 # depend on `.', always an invalid library. This was fixed in
15212 # development snapshots of GCC prior to 3.0.
15213 case $host_os in
15214 aix4 | aix4.[01] | aix4.[01].*)
15215 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15216 echo ' yes '
15217 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15218 :
15219 else
15220 can_build_shared=no
15221 fi
15222 ;;
15223 esac
15224 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15225 # soname into executable. Probably we can add versioning support to
15226 # collect2, so additional links can be useful in future.
15227 if test "$aix_use_runtimelinking" = yes; then
15228 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15229 # instead of lib<name>.a to let people know that these are not
15230 # typical AIX shared libraries.
15231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15232 else
15233 # We preserve .a as extension for shared libraries through AIX4.2
15234 # and later when we are not doing run time linking.
15235 library_names_spec='${libname}${release}.a $libname.a'
15236 soname_spec='${libname}${release}${shared_ext}$major'
15237 fi
15238 shlibpath_var=LIBPATH
15239 fi
15240 ;;
15241
15242amigaos*)
15243 library_names_spec='$libname.ixlibrary $libname.a'
15244 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15245 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'
15246 ;;
15247
15248beos*)
15249 library_names_spec='${libname}${shared_ext}'
15250 dynamic_linker="$host_os ld.so"
15251 shlibpath_var=LIBRARY_PATH
15252 ;;
15253
15254bsdi[45]*)
15255 version_type=linux
15256 need_version=no
15257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15258 soname_spec='${libname}${release}${shared_ext}$major'
15259 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15260 shlibpath_var=LD_LIBRARY_PATH
15261 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15262 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15263 # the default ld.so.conf also contains /usr/contrib/lib and
15264 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15265 # libtool to hard-code these into programs
15266 ;;
15267
15268cygwin* | mingw* | pw32*)
15269 version_type=windows
15270 shrext_cmds=".dll"
15271 need_version=no
15272 need_lib_prefix=no
15273
15274 case $GCC,$host_os in
15275 yes,cygwin* | yes,mingw* | yes,pw32*)
15276 library_names_spec='$libname.dll.a'
15277 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15278 postinstall_cmds='base_file=`basename \${file}`~
15279 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15280 dldir=$destdir/`dirname \$dlpath`~
15281 test -d \$dldir || mkdir -p \$dldir~
15282 $install_prog $dir/$dlname \$dldir/$dlname~
15283 chmod a+x \$dldir/$dlname'
15284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15285 dlpath=$dir/\$dldll~
15286 $rm \$dlpath'
15287 shlibpath_overrides_runpath=yes
15288
15289 case $host_os in
15290 cygwin*)
15291 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15292 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15293 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15294 ;;
15295 mingw*)
15296 # MinGW DLLs use traditional 'lib' prefix
15297 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15298 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15299 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15300 # It is most probably a Windows format PATH printed by
15301 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15302 # path with ; separators, and with drive letters. We can handle the
15303 # drive letters (cygwin fileutils understands them), so leave them,
15304 # especially as we might pass files found there to a mingw objdump,
15305 # which wouldn't understand a cygwinified path. Ahh.
15306 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15307 else
15308 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15309 fi
15310 ;;
15311 pw32*)
15312 # pw32 DLLs use 'pw' prefix rather than 'lib'
15313 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15314 ;;
15315 esac
15316 ;;
15317
15318 *)
15319 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15320 ;;
15321 esac
15322 dynamic_linker='Win32 ld.exe'
15323 # FIXME: first we should search . and the directory the executable is in
15324 shlibpath_var=PATH
15325 ;;
15326
15327darwin* | rhapsody*)
15328 dynamic_linker="$host_os dyld"
15329 version_type=darwin
15330 need_lib_prefix=no
15331 need_version=no
15332 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15333 soname_spec='${libname}${release}${major}$shared_ext'
15334 shlibpath_overrides_runpath=yes
15335 shlibpath_var=DYLD_LIBRARY_PATH
15336 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15337 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15338 if test "$GCC" = yes; then
15339 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"`
15340 else
15341 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15342 fi
15343 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15344 ;;
15345
15346dgux*)
15347 version_type=linux
15348 need_lib_prefix=no
15349 need_version=no
15350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15351 soname_spec='${libname}${release}${shared_ext}$major'
15352 shlibpath_var=LD_LIBRARY_PATH
15353 ;;
15354
15355freebsd1*)
15356 dynamic_linker=no
15357 ;;
15358
15359kfreebsd*-gnu)
15360 version_type=linux
15361 need_lib_prefix=no
15362 need_version=no
15363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15364 soname_spec='${libname}${release}${shared_ext}$major'
15365 shlibpath_var=LD_LIBRARY_PATH
15366 shlibpath_overrides_runpath=no
15367 hardcode_into_libs=yes
15368 dynamic_linker='GNU ld.so'
15369 ;;
15370
15371freebsd* | dragonfly*)
15372 # DragonFly does not have aout. When/if they implement a new
15373 # versioning mechanism, adjust this.
15374 if test -x /usr/bin/objformat; then
15375 objformat=`/usr/bin/objformat`
15376 else
15377 case $host_os in
15378 freebsd[123]*) objformat=aout ;;
15379 *) objformat=elf ;;
15380 esac
15381 fi
15382 version_type=freebsd-$objformat
15383 case $version_type in
15384 freebsd-elf*)
15385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15386 need_version=no
15387 need_lib_prefix=no
15388 ;;
15389 freebsd-*)
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15391 need_version=yes
15392 ;;
15393 esac
15394 shlibpath_var=LD_LIBRARY_PATH
15395 case $host_os in
15396 freebsd2*)
15397 shlibpath_overrides_runpath=yes
15398 ;;
15399 freebsd3.[01]* | freebsdelf3.[01]*)
15400 shlibpath_overrides_runpath=yes
15401 hardcode_into_libs=yes
15402 ;;
15403 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15404 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15405 shlibpath_overrides_runpath=no
15406 hardcode_into_libs=yes
15407 ;;
15408 freebsd*) # from 4.6 on
15409 shlibpath_overrides_runpath=yes
15410 hardcode_into_libs=yes
15411 ;;
15412 esac
15413 ;;
15414
15415gnu*)
15416 version_type=linux
15417 need_lib_prefix=no
15418 need_version=no
15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15420 soname_spec='${libname}${release}${shared_ext}$major'
15421 shlibpath_var=LD_LIBRARY_PATH
15422 hardcode_into_libs=yes
15423 ;;
15424
15425hpux9* | hpux10* | hpux11*)
15426 # Give a soname corresponding to the major version so that dld.sl refuses to
15427 # link against other versions.
15428 version_type=sunos
15429 need_lib_prefix=no
15430 need_version=no
15431 case $host_cpu in
15432 ia64*)
15433 shrext_cmds='.so'
15434 hardcode_into_libs=yes
15435 dynamic_linker="$host_os dld.so"
15436 shlibpath_var=LD_LIBRARY_PATH
15437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
15441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15442 else
15443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15444 fi
15445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15446 ;;
15447 hppa*64*)
15448 shrext_cmds='.sl'
15449 hardcode_into_libs=yes
15450 dynamic_linker="$host_os dld.sl"
15451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454 soname_spec='${libname}${release}${shared_ext}$major'
15455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15457 ;;
15458 *)
15459 shrext_cmds='.sl'
15460 dynamic_linker="$host_os dld.sl"
15461 shlibpath_var=SHLIB_PATH
15462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464 soname_spec='${libname}${release}${shared_ext}$major'
15465 ;;
15466 esac
15467 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15468 postinstall_cmds='chmod 555 $lib'
15469 ;;
15470
15471interix3*)
15472 version_type=linux
15473 need_lib_prefix=no
15474 need_version=no
15475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15476 soname_spec='${libname}${release}${shared_ext}$major'
15477 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15478 shlibpath_var=LD_LIBRARY_PATH
15479 shlibpath_overrides_runpath=no
15480 hardcode_into_libs=yes
15481 ;;
15482
15483irix5* | irix6* | nonstopux*)
15484 case $host_os in
15485 nonstopux*) version_type=nonstopux ;;
15486 *)
15487 if test "$lt_cv_prog_gnu_ld" = yes; then
15488 version_type=linux
15489 else
15490 version_type=irix
15491 fi ;;
15492 esac
15493 need_lib_prefix=no
15494 need_version=no
15495 soname_spec='${libname}${release}${shared_ext}$major'
15496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15497 case $host_os in
15498 irix5* | nonstopux*)
15499 libsuff= shlibsuff=
15500 ;;
15501 *)
15502 case $LD in # libtool.m4 will add one of these switches to LD
15503 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15504 libsuff= shlibsuff= libmagic=32-bit;;
15505 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15506 libsuff=32 shlibsuff=N32 libmagic=N32;;
15507 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15508 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15509 *) libsuff= shlibsuff= libmagic=never-match;;
15510 esac
15511 ;;
15512 esac
15513 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15514 shlibpath_overrides_runpath=no
15515 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15516 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15517 hardcode_into_libs=yes
15518 ;;
15519
15520# No shared lib support for Linux oldld, aout, or coff.
15521linux*oldld* | linux*aout* | linux*coff*)
15522 dynamic_linker=no
15523 ;;
15524
15525# This must be Linux ELF.
15526linux*)
15527 version_type=linux
15528 need_lib_prefix=no
15529 need_version=no
15530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15531 soname_spec='${libname}${release}${shared_ext}$major'
15532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15533 shlibpath_var=LD_LIBRARY_PATH
15534 shlibpath_overrides_runpath=no
15535 # This implies no fast_install, which is unacceptable.
15536 # Some rework will be needed to allow for fast_install
15537 # before this can be enabled.
15538 hardcode_into_libs=yes
15539
15540 # find out which ABI we are using
15541 libsuff=
15542 case "$host_cpu" in
15543 x86_64*|s390x*|powerpc64*)
dd184caf 15544 echo '#line 15544 "configure"' > conftest.$ac_ext
d9898ee8 15545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15546 (eval $ac_compile) 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; then
15550 case `/usr/bin/file conftest.$ac_objext` in
15551 *64-bit*)
15552 libsuff=64
15553 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15554 ;;
15555 esac
15556 fi
15557 rm -rf conftest*
15558 ;;
15559 esac
15560
15561 # Append ld.so.conf contents to the search path
15562 if test -f /etc/ld.so.conf; then
dd184caf 15563 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 15564 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15565 fi
15566
15567 # We used to test for /lib/ld.so.1 and disable shared libraries on
15568 # powerpc, because MkLinux only supported shared libraries with the
15569 # GNU dynamic linker. Since this was broken with cross compilers,
15570 # most powerpc-linux boxes support dynamic linking these days and
15571 # people can always --disable-shared, the test was removed, and we
15572 # assume the GNU/Linux dynamic linker is in use.
15573 dynamic_linker='GNU/Linux ld.so'
15574 ;;
15575
15576knetbsd*-gnu)
15577 version_type=linux
15578 need_lib_prefix=no
15579 need_version=no
15580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15581 soname_spec='${libname}${release}${shared_ext}$major'
15582 shlibpath_var=LD_LIBRARY_PATH
15583 shlibpath_overrides_runpath=no
15584 hardcode_into_libs=yes
15585 dynamic_linker='GNU ld.so'
15586 ;;
15587
15588netbsd*)
15589 version_type=sunos
15590 need_lib_prefix=no
15591 need_version=no
15592 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15595 dynamic_linker='NetBSD (a.out) ld.so'
15596 else
15597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15598 soname_spec='${libname}${release}${shared_ext}$major'
15599 dynamic_linker='NetBSD ld.elf_so'
15600 fi
15601 shlibpath_var=LD_LIBRARY_PATH
15602 shlibpath_overrides_runpath=yes
15603 hardcode_into_libs=yes
15604 ;;
15605
15606newsos6)
15607 version_type=linux
15608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15609 shlibpath_var=LD_LIBRARY_PATH
15610 shlibpath_overrides_runpath=yes
15611 ;;
15612
15613nto-qnx*)
15614 version_type=linux
15615 need_lib_prefix=no
15616 need_version=no
15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618 soname_spec='${libname}${release}${shared_ext}$major'
15619 shlibpath_var=LD_LIBRARY_PATH
15620 shlibpath_overrides_runpath=yes
15621 ;;
15622
15623openbsd*)
15624 version_type=sunos
15625 sys_lib_dlsearch_path_spec="/usr/lib"
15626 need_lib_prefix=no
15627 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15628 case $host_os in
15629 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15630 *) need_version=no ;;
15631 esac
15632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15634 shlibpath_var=LD_LIBRARY_PATH
15635 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15636 case $host_os in
15637 openbsd2.[89] | openbsd2.[89].*)
15638 shlibpath_overrides_runpath=no
15639 ;;
15640 *)
15641 shlibpath_overrides_runpath=yes
15642 ;;
15643 esac
15644 else
15645 shlibpath_overrides_runpath=yes
15646 fi
15647 ;;
15648
15649os2*)
15650 libname_spec='$name'
15651 shrext_cmds=".dll"
15652 need_lib_prefix=no
15653 library_names_spec='$libname${shared_ext} $libname.a'
15654 dynamic_linker='OS/2 ld.exe'
15655 shlibpath_var=LIBPATH
15656 ;;
15657
15658osf3* | osf4* | osf5*)
15659 version_type=osf
15660 need_lib_prefix=no
15661 need_version=no
15662 soname_spec='${libname}${release}${shared_ext}$major'
15663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15664 shlibpath_var=LD_LIBRARY_PATH
15665 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15666 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15667 ;;
15668
15669solaris*)
15670 version_type=linux
15671 need_lib_prefix=no
15672 need_version=no
15673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15674 soname_spec='${libname}${release}${shared_ext}$major'
15675 shlibpath_var=LD_LIBRARY_PATH
15676 shlibpath_overrides_runpath=yes
15677 hardcode_into_libs=yes
15678 # ldd complains unless libraries are executable
15679 postinstall_cmds='chmod +x $lib'
15680 ;;
15681
15682sunos4*)
15683 version_type=sunos
15684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15685 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15686 shlibpath_var=LD_LIBRARY_PATH
15687 shlibpath_overrides_runpath=yes
15688 if test "$with_gnu_ld" = yes; then
15689 need_lib_prefix=no
15690 fi
15691 need_version=yes
15692 ;;
15693
15694sysv4 | sysv4.3*)
15695 version_type=linux
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697 soname_spec='${libname}${release}${shared_ext}$major'
15698 shlibpath_var=LD_LIBRARY_PATH
15699 case $host_vendor in
15700 sni)
15701 shlibpath_overrides_runpath=no
15702 need_lib_prefix=no
15703 export_dynamic_flag_spec='${wl}-Blargedynsym'
15704 runpath_var=LD_RUN_PATH
15705 ;;
15706 siemens)
15707 need_lib_prefix=no
15708 ;;
15709 motorola)
15710 need_lib_prefix=no
15711 need_version=no
15712 shlibpath_overrides_runpath=no
15713 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15714 ;;
15715 esac
15716 ;;
15717
15718sysv4*MP*)
15719 if test -d /usr/nec ;then
15720 version_type=linux
15721 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15722 soname_spec='$libname${shared_ext}.$major'
15723 shlibpath_var=LD_LIBRARY_PATH
15724 fi
15725 ;;
15726
15727sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15728 version_type=freebsd-elf
15729 need_lib_prefix=no
15730 need_version=no
15731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15732 soname_spec='${libname}${release}${shared_ext}$major'
15733 shlibpath_var=LD_LIBRARY_PATH
15734 hardcode_into_libs=yes
15735 if test "$with_gnu_ld" = yes; then
15736 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15737 shlibpath_overrides_runpath=no
15738 else
15739 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15740 shlibpath_overrides_runpath=yes
15741 case $host_os in
15742 sco3.2v5*)
15743 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15744 ;;
15745 esac
15746 fi
15747 sys_lib_dlsearch_path_spec='/usr/lib'
15748 ;;
15749
15750uts4*)
15751 version_type=linux
15752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15753 soname_spec='${libname}${release}${shared_ext}$major'
15754 shlibpath_var=LD_LIBRARY_PATH
15755 ;;
15756
15757*)
15758 dynamic_linker=no
15759 ;;
15760esac
dd184caf 15761{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15762echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 15763test "$dynamic_linker" = no && can_build_shared=no
15764
15765variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15766if test "$GCC" = yes; then
15767 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15768fi
15769
dd184caf 15770{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15771echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 15772hardcode_action_F77=
15773if test -n "$hardcode_libdir_flag_spec_F77" || \
15774 test -n "$runpath_var_F77" || \
15775 test "X$hardcode_automatic_F77" = "Xyes" ; then
15776
15777 # We can hardcode non-existant directories.
15778 if test "$hardcode_direct_F77" != no &&
15779 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15780 # have to relink, otherwise we might link with an installed library
15781 # when we should be linking with a yet-to-be-installed one
15782 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15783 test "$hardcode_minus_L_F77" != no; then
15784 # Linking always hardcodes the temporary library directory.
15785 hardcode_action_F77=relink
15786 else
15787 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15788 hardcode_action_F77=immediate
15789 fi
15790else
15791 # We cannot hardcode anything, or else we can only hardcode existing
15792 # directories.
15793 hardcode_action_F77=unsupported
15794fi
dd184caf 15795{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15796echo "${ECHO_T}$hardcode_action_F77" >&6; }
d9898ee8 15797
15798if test "$hardcode_action_F77" = relink; then
15799 # Fast installation is not supported
15800 enable_fast_install=no
15801elif test "$shlibpath_overrides_runpath" = yes ||
15802 test "$enable_shared" = no; then
15803 # Fast installation is not necessary
15804 enable_fast_install=needless
15805fi
15806
15807
15808# The else clause should only fire when bootstrapping the
15809# libtool distribution, otherwise you forgot to ship ltmain.sh
15810# with your package, and you will get complaints that there are
15811# no rules to generate ltmain.sh.
15812if test -f "$ltmain"; then
15813 # See if we are running on zsh, and set the options which allow our commands through
15814 # without removal of \ escapes.
15815 if test -n "${ZSH_VERSION+set}" ; then
15816 setopt NO_GLOB_SUBST
15817 fi
15818 # Now quote all the things that may contain metacharacters while being
15819 # careful not to overquote the AC_SUBSTed values. We take copies of the
15820 # variables and quote the copies for generation of the libtool script.
15821 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15822 SED SHELL STRIP \
15823 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15824 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15825 deplibs_check_method reload_flag reload_cmds need_locks \
15826 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15827 lt_cv_sys_global_symbol_to_c_name_address \
15828 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15829 old_postinstall_cmds old_postuninstall_cmds \
15830 compiler_F77 \
15831 CC_F77 \
15832 LD_F77 \
15833 lt_prog_compiler_wl_F77 \
15834 lt_prog_compiler_pic_F77 \
15835 lt_prog_compiler_static_F77 \
15836 lt_prog_compiler_no_builtin_flag_F77 \
15837 export_dynamic_flag_spec_F77 \
15838 thread_safe_flag_spec_F77 \
15839 whole_archive_flag_spec_F77 \
15840 enable_shared_with_static_runtimes_F77 \
15841 old_archive_cmds_F77 \
15842 old_archive_from_new_cmds_F77 \
15843 predep_objects_F77 \
15844 postdep_objects_F77 \
15845 predeps_F77 \
15846 postdeps_F77 \
15847 compiler_lib_search_path_F77 \
15848 archive_cmds_F77 \
15849 archive_expsym_cmds_F77 \
15850 postinstall_cmds_F77 \
15851 postuninstall_cmds_F77 \
15852 old_archive_from_expsyms_cmds_F77 \
15853 allow_undefined_flag_F77 \
15854 no_undefined_flag_F77 \
15855 export_symbols_cmds_F77 \
15856 hardcode_libdir_flag_spec_F77 \
15857 hardcode_libdir_flag_spec_ld_F77 \
15858 hardcode_libdir_separator_F77 \
15859 hardcode_automatic_F77 \
15860 module_cmds_F77 \
15861 module_expsym_cmds_F77 \
15862 lt_cv_prog_compiler_c_o_F77 \
15863 exclude_expsyms_F77 \
15864 include_expsyms_F77; do
15865
15866 case $var in
15867 old_archive_cmds_F77 | \
15868 old_archive_from_new_cmds_F77 | \
15869 archive_cmds_F77 | \
15870 archive_expsym_cmds_F77 | \
15871 module_cmds_F77 | \
15872 module_expsym_cmds_F77 | \
15873 old_archive_from_expsyms_cmds_F77 | \
15874 export_symbols_cmds_F77 | \
15875 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15876 postinstall_cmds | postuninstall_cmds | \
15877 old_postinstall_cmds | old_postuninstall_cmds | \
15878 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15879 # Double-quote double-evaled strings.
15880 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15881 ;;
15882 *)
15883 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15884 ;;
15885 esac
15886 done
15887
15888 case $lt_echo in
15889 *'\$0 --fallback-echo"')
15890 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15891 ;;
15892 esac
15893
15894cfgfile="$ofile"
15895
15896 cat <<__EOF__ >> "$cfgfile"
15897# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15898
15899# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15900
15901# Shell to use when invoking shell scripts.
15902SHELL=$lt_SHELL
15903
15904# Whether or not to build shared libraries.
15905build_libtool_libs=$enable_shared
15906
15907# Whether or not to build static libraries.
15908build_old_libs=$enable_static
15909
15910# Whether or not to add -lc for building shared libraries.
15911build_libtool_need_lc=$archive_cmds_need_lc_F77
15912
15913# Whether or not to disallow shared libs when runtime libs are static
15914allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15915
15916# Whether or not to optimize for fast installation.
15917fast_install=$enable_fast_install
15918
15919# The host system.
15920host_alias=$host_alias
15921host=$host
15922host_os=$host_os
15923
15924# The build system.
15925build_alias=$build_alias
15926build=$build
15927build_os=$build_os
15928
15929# An echo program that does not interpret backslashes.
15930echo=$lt_echo
15931
15932# The archiver.
15933AR=$lt_AR
15934AR_FLAGS=$lt_AR_FLAGS
15935
15936# A C compiler.
15937LTCC=$lt_LTCC
15938
15939# LTCC compiler flags.
15940LTCFLAGS=$lt_LTCFLAGS
15941
15942# A language-specific compiler.
15943CC=$lt_compiler_F77
15944
15945# Is the compiler the GNU C compiler?
15946with_gcc=$GCC_F77
15947
d9898ee8 15948# An ERE matcher.
15949EGREP=$lt_EGREP
15950
15951# The linker used to build libraries.
15952LD=$lt_LD_F77
15953
15954# Whether we need hard or soft links.
15955LN_S=$lt_LN_S
15956
15957# A BSD-compatible nm program.
15958NM=$lt_NM
15959
15960# A symbol stripping program
15961STRIP=$lt_STRIP
15962
15963# Used to examine libraries when file_magic_cmd begins "file"
15964MAGIC_CMD=$MAGIC_CMD
15965
15966# Used on cygwin: DLL creation program.
15967DLLTOOL="$DLLTOOL"
15968
15969# Used on cygwin: object dumper.
15970OBJDUMP="$OBJDUMP"
15971
15972# Used on cygwin: assembler.
15973AS="$AS"
15974
15975# The name of the directory that contains temporary libtool files.
15976objdir=$objdir
15977
15978# How to create reloadable object files.
15979reload_flag=$lt_reload_flag
15980reload_cmds=$lt_reload_cmds
15981
15982# How to pass a linker flag through the compiler.
15983wl=$lt_lt_prog_compiler_wl_F77
15984
15985# Object file suffix (normally "o").
15986objext="$ac_objext"
15987
15988# Old archive suffix (normally "a").
15989libext="$libext"
15990
15991# Shared library suffix (normally ".so").
15992shrext_cmds='$shrext_cmds'
15993
15994# Executable file suffix (normally "").
15995exeext="$exeext"
15996
15997# Additional compiler flags for building library objects.
15998pic_flag=$lt_lt_prog_compiler_pic_F77
15999pic_mode=$pic_mode
16000
16001# What is the maximum length of a command?
16002max_cmd_len=$lt_cv_sys_max_cmd_len
16003
16004# Does compiler simultaneously support -c and -o options?
16005compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16006
16007# Must we lock files when doing compilation?
16008need_locks=$lt_need_locks
16009
16010# Do we need the lib prefix for modules?
16011need_lib_prefix=$need_lib_prefix
16012
16013# Do we need a version for libraries?
16014need_version=$need_version
16015
16016# Whether dlopen is supported.
16017dlopen_support=$enable_dlopen
16018
16019# Whether dlopen of programs is supported.
16020dlopen_self=$enable_dlopen_self
16021
16022# Whether dlopen of statically linked programs is supported.
16023dlopen_self_static=$enable_dlopen_self_static
16024
16025# Compiler flag to prevent dynamic linking.
16026link_static_flag=$lt_lt_prog_compiler_static_F77
16027
16028# Compiler flag to turn off builtin functions.
16029no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16030
16031# Compiler flag to allow reflexive dlopens.
16032export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16033
16034# Compiler flag to generate shared objects directly from archives.
16035whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16036
16037# Compiler flag to generate thread-safe objects.
16038thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16039
16040# Library versioning type.
16041version_type=$version_type
16042
16043# Format of library name prefix.
16044libname_spec=$lt_libname_spec
16045
16046# List of archive names. First name is the real one, the rest are links.
16047# The last name is the one that the linker finds with -lNAME.
16048library_names_spec=$lt_library_names_spec
16049
16050# The coded name of the library, if different from the real name.
16051soname_spec=$lt_soname_spec
16052
16053# Commands used to build and install an old-style archive.
16054RANLIB=$lt_RANLIB
16055old_archive_cmds=$lt_old_archive_cmds_F77
16056old_postinstall_cmds=$lt_old_postinstall_cmds
16057old_postuninstall_cmds=$lt_old_postuninstall_cmds
16058
16059# Create an old-style archive from a shared archive.
16060old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16061
16062# Create a temporary old-style archive to link instead of a shared archive.
16063old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16064
16065# Commands used to build and install a shared archive.
16066archive_cmds=$lt_archive_cmds_F77
16067archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16068postinstall_cmds=$lt_postinstall_cmds
16069postuninstall_cmds=$lt_postuninstall_cmds
16070
16071# Commands used to build a loadable module (assumed same as above if empty)
16072module_cmds=$lt_module_cmds_F77
16073module_expsym_cmds=$lt_module_expsym_cmds_F77
16074
16075# Commands to strip libraries.
16076old_striplib=$lt_old_striplib
16077striplib=$lt_striplib
16078
16079# Dependencies to place before the objects being linked to create a
16080# shared library.
dd184caf 16081predep_objects=$lt_predep_objects_F77
d9898ee8 16082
16083# Dependencies to place after the objects being linked to create a
16084# shared library.
dd184caf 16085postdep_objects=$lt_postdep_objects_F77
d9898ee8 16086
16087# Dependencies to place before the objects being linked to create a
16088# shared library.
16089predeps=$lt_predeps_F77
16090
16091# Dependencies to place after the objects being linked to create a
16092# shared library.
16093postdeps=$lt_postdeps_F77
16094
16095# The library search path used internally by the compiler when linking
16096# a shared library.
dd184caf 16097compiler_lib_search_path=$lt_compiler_lib_search_path_F77
d9898ee8 16098
16099# Method to check whether dependent libraries are shared objects.
16100deplibs_check_method=$lt_deplibs_check_method
16101
16102# Command to use when deplibs_check_method == file_magic.
16103file_magic_cmd=$lt_file_magic_cmd
16104
16105# Flag that allows shared libraries with undefined symbols to be built.
16106allow_undefined_flag=$lt_allow_undefined_flag_F77
16107
16108# Flag that forces no undefined symbols.
16109no_undefined_flag=$lt_no_undefined_flag_F77
16110
16111# Commands used to finish a libtool library installation in a directory.
16112finish_cmds=$lt_finish_cmds
16113
16114# Same as above, but a single script fragment to be evaled but not shown.
16115finish_eval=$lt_finish_eval
16116
16117# Take the output of nm and produce a listing of raw symbols and C names.
16118global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16119
16120# Transform the output of nm in a proper C declaration
16121global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16122
16123# Transform the output of nm in a C name address pair
16124global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16125
16126# This is the shared library runtime path variable.
16127runpath_var=$runpath_var
16128
16129# This is the shared library path variable.
16130shlibpath_var=$shlibpath_var
16131
16132# Is shlibpath searched before the hard-coded library search path?
16133shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16134
16135# How to hardcode a shared library path into an executable.
16136hardcode_action=$hardcode_action_F77
16137
16138# Whether we should hardcode library paths into libraries.
16139hardcode_into_libs=$hardcode_into_libs
16140
16141# Flag to hardcode \$libdir into a binary during linking.
16142# This must work even if \$libdir does not exist.
16143hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16144
16145# If ld is used when linking, flag to hardcode \$libdir into
16146# a binary during linking. This must work even if \$libdir does
16147# not exist.
16148hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16149
16150# Whether we need a single -rpath flag with a separated argument.
16151hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16152
16153# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16154# resulting binary.
16155hardcode_direct=$hardcode_direct_F77
16156
16157# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16158# resulting binary.
16159hardcode_minus_L=$hardcode_minus_L_F77
16160
16161# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16162# the resulting binary.
16163hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16164
16165# Set to yes if building a shared library automatically hardcodes DIR into the library
16166# and all subsequent libraries and executables linked against it.
16167hardcode_automatic=$hardcode_automatic_F77
16168
16169# Variables whose values should be saved in libtool wrapper scripts and
16170# restored at relink time.
16171variables_saved_for_relink="$variables_saved_for_relink"
16172
16173# Whether libtool must link a program against all its dependency libraries.
16174link_all_deplibs=$link_all_deplibs_F77
16175
16176# Compile-time system search path for libraries
dd184caf 16177sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 16178
16179# Run-time system search path for libraries
16180sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16181
16182# Fix the shell variable \$srcfile for the compiler.
16183fix_srcfile_path="$fix_srcfile_path_F77"
16184
16185# Set to yes if exported symbols are required.
16186always_export_symbols=$always_export_symbols_F77
16187
16188# The commands to list exported symbols.
16189export_symbols_cmds=$lt_export_symbols_cmds_F77
16190
16191# The commands to extract the exported symbol list from a shared archive.
16192extract_expsyms_cmds=$lt_extract_expsyms_cmds
16193
16194# Symbols that should not be listed in the preloaded symbols.
16195exclude_expsyms=$lt_exclude_expsyms_F77
16196
16197# Symbols that must always be exported.
16198include_expsyms=$lt_include_expsyms_F77
16199
16200# ### END LIBTOOL TAG CONFIG: $tagname
16201
16202__EOF__
16203
16204
16205else
16206 # If there is no Makefile yet, we rely on a make rule to execute
16207 # `config.status --recheck' to rerun these tests and create the
16208 # libtool script then.
16209 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16210 if test -f "$ltmain_in"; then
16211 test -f Makefile && make "$ltmain"
16212 fi
16213fi
16214
16215
16216ac_ext=c
16217ac_cpp='$CPP $CPPFLAGS'
16218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16220ac_compiler_gnu=$ac_cv_c_compiler_gnu
16221
16222CC="$lt_save_CC"
16223
16224 else
16225 tagname=""
16226 fi
16227 ;;
16228
16229 GCJ)
16230 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16231
16232
d9898ee8 16233# Source file extension for Java test sources.
16234ac_ext=java
16235
16236# Object file extension for compiled Java test sources.
16237objext=o
16238objext_GCJ=$objext
16239
16240# Code to be used in simple compile tests
16241lt_simple_compile_test_code="class foo {}\n"
16242
16243# Code to be used in simple link tests
16244lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16245
16246# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16247
16248# If no C compiler was specified, use CC.
16249LTCC=${LTCC-"$CC"}
16250
16251# If no C compiler flags were specified, use CFLAGS.
16252LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16253
16254# Allow CC to be a program name with arguments.
16255compiler=$CC
16256
16257
16258# save warnings/boilerplate of simple test code
16259ac_outfile=conftest.$ac_objext
16260printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16261eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16262_lt_compiler_boilerplate=`cat conftest.err`
16263$rm conftest*
16264
16265ac_outfile=conftest.$ac_objext
16266printf "$lt_simple_link_test_code" >conftest.$ac_ext
16267eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16268_lt_linker_boilerplate=`cat conftest.err`
16269$rm conftest*
16270
16271
16272# Allow CC to be a program name with arguments.
16273lt_save_CC="$CC"
16274CC=${GCJ-"gcj"}
16275compiler=$CC
16276compiler_GCJ=$CC
16277for cc_temp in $compiler""; do
16278 case $cc_temp in
16279 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16280 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16281 \-*) ;;
16282 *) break;;
16283 esac
16284done
16285cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16286
16287
16288# GCJ did not exist at the time GCC didn't implicitly link libc in.
16289archive_cmds_need_lc_GCJ=no
16290
16291old_archive_cmds_GCJ=$old_archive_cmds
16292
16293
16294lt_prog_compiler_no_builtin_flag_GCJ=
16295
16296if test "$GCC" = yes; then
16297 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16298
16299
dd184caf 16300{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16301echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 16302if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16303 echo $ECHO_N "(cached) $ECHO_C" >&6
16304else
16305 lt_cv_prog_compiler_rtti_exceptions=no
16306 ac_outfile=conftest.$ac_objext
16307 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16308 lt_compiler_flag="-fno-rtti -fno-exceptions"
16309 # Insert the option either (1) after the last *FLAGS variable, or
16310 # (2) before a word containing "conftest.", or (3) at the end.
16311 # Note that $ac_compile itself does not contain backslashes and begins
16312 # with a dollar sign (not a hyphen), so the echo should work correctly.
16313 # The option is referenced via a variable to avoid confusing sed.
16314 lt_compile=`echo "$ac_compile" | $SED \
16315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16317 -e 's:$: $lt_compiler_flag:'`
dd184caf 16318 (eval echo "\"\$as_me:16318: $lt_compile\"" >&5)
d9898ee8 16319 (eval "$lt_compile" 2>conftest.err)
16320 ac_status=$?
16321 cat conftest.err >&5
dd184caf 16322 echo "$as_me:16322: \$? = $ac_status" >&5
d9898ee8 16323 if (exit $ac_status) && test -s "$ac_outfile"; then
16324 # The compiler can only warn and ignore the option if not recognized
16325 # So say no if there are warnings other than the usual output.
16326 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16328 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16329 lt_cv_prog_compiler_rtti_exceptions=yes
16330 fi
16331 fi
16332 $rm conftest*
16333
16334fi
dd184caf 16335{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16336echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 16337
16338if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16339 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16340else
16341 :
16342fi
16343
16344fi
16345
16346lt_prog_compiler_wl_GCJ=
16347lt_prog_compiler_pic_GCJ=
16348lt_prog_compiler_static_GCJ=
16349
dd184caf 16350{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16351echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 16352
16353 if test "$GCC" = yes; then
16354 lt_prog_compiler_wl_GCJ='-Wl,'
16355 lt_prog_compiler_static_GCJ='-static'
16356
16357 case $host_os in
16358 aix*)
16359 # All AIX code is PIC.
16360 if test "$host_cpu" = ia64; then
16361 # AIX 5 now supports IA64 processor
16362 lt_prog_compiler_static_GCJ='-Bstatic'
16363 fi
16364 ;;
16365
16366 amigaos*)
16367 # FIXME: we need at least 68020 code to build shared libraries, but
16368 # adding the `-m68020' flag to GCC prevents building anything better,
16369 # like `-m68040'.
16370 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16371 ;;
16372
16373 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16374 # PIC is the default for these OSes.
16375 ;;
16376
16377 mingw* | pw32* | os2*)
16378 # This hack is so that the source file can tell whether it is being
16379 # built for inclusion in a dll (and should export symbols for example).
16380 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16381 ;;
16382
16383 darwin* | rhapsody*)
16384 # PIC is the default on this platform
16385 # Common symbols not allowed in MH_DYLIB files
16386 lt_prog_compiler_pic_GCJ='-fno-common'
16387 ;;
16388
16389 interix3*)
16390 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16391 # Instead, we relocate shared libraries at runtime.
16392 ;;
16393
16394 msdosdjgpp*)
16395 # Just because we use GCC doesn't mean we suddenly get shared libraries
16396 # on systems that don't support them.
16397 lt_prog_compiler_can_build_shared_GCJ=no
16398 enable_shared=no
16399 ;;
16400
16401 sysv4*MP*)
16402 if test -d /usr/nec; then
16403 lt_prog_compiler_pic_GCJ=-Kconform_pic
16404 fi
16405 ;;
16406
16407 hpux*)
16408 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16409 # not for PA HP-UX.
16410 case $host_cpu in
16411 hppa*64*|ia64*)
16412 # +Z the default
16413 ;;
16414 *)
16415 lt_prog_compiler_pic_GCJ='-fPIC'
16416 ;;
16417 esac
16418 ;;
16419
16420 *)
16421 lt_prog_compiler_pic_GCJ='-fPIC'
16422 ;;
16423 esac
16424 else
16425 # PORTME Check for flag to pass linker flags through the system compiler.
16426 case $host_os in
16427 aix*)
16428 lt_prog_compiler_wl_GCJ='-Wl,'
16429 if test "$host_cpu" = ia64; then
16430 # AIX 5 now supports IA64 processor
16431 lt_prog_compiler_static_GCJ='-Bstatic'
16432 else
16433 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16434 fi
16435 ;;
16436 darwin*)
16437 # PIC is the default on this platform
16438 # Common symbols not allowed in MH_DYLIB files
16439 case $cc_basename in
16440 xlc*)
16441 lt_prog_compiler_pic_GCJ='-qnocommon'
16442 lt_prog_compiler_wl_GCJ='-Wl,'
16443 ;;
16444 esac
16445 ;;
16446
16447 mingw* | pw32* | os2*)
16448 # This hack is so that the source file can tell whether it is being
16449 # built for inclusion in a dll (and should export symbols for example).
16450 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16451 ;;
16452
16453 hpux9* | hpux10* | hpux11*)
16454 lt_prog_compiler_wl_GCJ='-Wl,'
16455 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16456 # not for PA HP-UX.
16457 case $host_cpu in
16458 hppa*64*|ia64*)
16459 # +Z the default
16460 ;;
16461 *)
16462 lt_prog_compiler_pic_GCJ='+Z'
16463 ;;
16464 esac
16465 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16466 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16467 ;;
16468
16469 irix5* | irix6* | nonstopux*)
16470 lt_prog_compiler_wl_GCJ='-Wl,'
16471 # PIC (with -KPIC) is the default.
16472 lt_prog_compiler_static_GCJ='-non_shared'
16473 ;;
16474
16475 newsos6)
16476 lt_prog_compiler_pic_GCJ='-KPIC'
16477 lt_prog_compiler_static_GCJ='-Bstatic'
16478 ;;
16479
16480 linux*)
16481 case $cc_basename in
16482 icc* | ecc*)
16483 lt_prog_compiler_wl_GCJ='-Wl,'
16484 lt_prog_compiler_pic_GCJ='-KPIC'
16485 lt_prog_compiler_static_GCJ='-static'
16486 ;;
16487 pgcc* | pgf77* | pgf90* | pgf95*)
16488 # Portland Group compilers (*not* the Pentium gcc compiler,
16489 # which looks to be a dead project)
16490 lt_prog_compiler_wl_GCJ='-Wl,'
16491 lt_prog_compiler_pic_GCJ='-fpic'
16492 lt_prog_compiler_static_GCJ='-Bstatic'
16493 ;;
16494 ccc*)
16495 lt_prog_compiler_wl_GCJ='-Wl,'
16496 # All Alpha code is PIC.
16497 lt_prog_compiler_static_GCJ='-non_shared'
16498 ;;
16499 esac
16500 ;;
16501
16502 osf3* | osf4* | osf5*)
16503 lt_prog_compiler_wl_GCJ='-Wl,'
16504 # All OSF/1 code is PIC.
16505 lt_prog_compiler_static_GCJ='-non_shared'
16506 ;;
16507
16508 solaris*)
16509 lt_prog_compiler_pic_GCJ='-KPIC'
16510 lt_prog_compiler_static_GCJ='-Bstatic'
16511 case $cc_basename in
16512 f77* | f90* | f95*)
16513 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16514 *)
16515 lt_prog_compiler_wl_GCJ='-Wl,';;
16516 esac
16517 ;;
16518
16519 sunos4*)
16520 lt_prog_compiler_wl_GCJ='-Qoption ld '
16521 lt_prog_compiler_pic_GCJ='-PIC'
16522 lt_prog_compiler_static_GCJ='-Bstatic'
16523 ;;
16524
16525 sysv4 | sysv4.2uw2* | sysv4.3*)
16526 lt_prog_compiler_wl_GCJ='-Wl,'
16527 lt_prog_compiler_pic_GCJ='-KPIC'
16528 lt_prog_compiler_static_GCJ='-Bstatic'
16529 ;;
16530
16531 sysv4*MP*)
16532 if test -d /usr/nec ;then
16533 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16534 lt_prog_compiler_static_GCJ='-Bstatic'
16535 fi
16536 ;;
16537
16538 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16539 lt_prog_compiler_wl_GCJ='-Wl,'
16540 lt_prog_compiler_pic_GCJ='-KPIC'
16541 lt_prog_compiler_static_GCJ='-Bstatic'
16542 ;;
16543
16544 unicos*)
16545 lt_prog_compiler_wl_GCJ='-Wl,'
16546 lt_prog_compiler_can_build_shared_GCJ=no
16547 ;;
16548
16549 uts4*)
16550 lt_prog_compiler_pic_GCJ='-pic'
16551 lt_prog_compiler_static_GCJ='-Bstatic'
16552 ;;
16553
16554 *)
16555 lt_prog_compiler_can_build_shared_GCJ=no
16556 ;;
16557 esac
16558 fi
16559
dd184caf 16560{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16561echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d9898ee8 16562
16563#
16564# Check to make sure the PIC flag actually works.
16565#
16566if test -n "$lt_prog_compiler_pic_GCJ"; then
16567
dd184caf 16568{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16569echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d9898ee8 16570if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16571 echo $ECHO_N "(cached) $ECHO_C" >&6
16572else
16573 lt_prog_compiler_pic_works_GCJ=no
16574 ac_outfile=conftest.$ac_objext
16575 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16576 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16577 # Insert the option either (1) after the last *FLAGS variable, or
16578 # (2) before a word containing "conftest.", or (3) at the end.
16579 # Note that $ac_compile itself does not contain backslashes and begins
16580 # with a dollar sign (not a hyphen), so the echo should work correctly.
16581 # The option is referenced via a variable to avoid confusing sed.
16582 lt_compile=`echo "$ac_compile" | $SED \
16583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16585 -e 's:$: $lt_compiler_flag:'`
dd184caf 16586 (eval echo "\"\$as_me:16586: $lt_compile\"" >&5)
d9898ee8 16587 (eval "$lt_compile" 2>conftest.err)
16588 ac_status=$?
16589 cat conftest.err >&5
dd184caf 16590 echo "$as_me:16590: \$? = $ac_status" >&5
d9898ee8 16591 if (exit $ac_status) && test -s "$ac_outfile"; then
16592 # The compiler can only warn and ignore the option if not recognized
16593 # So say no if there are warnings other than the usual output.
16594 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16595 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16596 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16597 lt_prog_compiler_pic_works_GCJ=yes
16598 fi
16599 fi
16600 $rm conftest*
16601
16602fi
dd184caf 16603{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16604echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d9898ee8 16605
16606if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16607 case $lt_prog_compiler_pic_GCJ in
16608 "" | " "*) ;;
16609 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16610 esac
16611else
16612 lt_prog_compiler_pic_GCJ=
16613 lt_prog_compiler_can_build_shared_GCJ=no
16614fi
16615
16616fi
16617case $host_os in
16618 # For platforms which do not support PIC, -DPIC is meaningless:
16619 *djgpp*)
16620 lt_prog_compiler_pic_GCJ=
16621 ;;
16622 *)
16623 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16624 ;;
16625esac
16626
16627#
16628# Check to make sure the static flag actually works.
16629#
16630wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
dd184caf 16631{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16632echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 16633if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16634 echo $ECHO_N "(cached) $ECHO_C" >&6
16635else
16636 lt_prog_compiler_static_works_GCJ=no
16637 save_LDFLAGS="$LDFLAGS"
16638 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16639 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16640 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16641 # The linker can only warn and ignore the option if not recognized
16642 # So say no if there are warnings
16643 if test -s conftest.err; then
16644 # Append any errors to the config.log.
16645 cat conftest.err 1>&5
16646 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16647 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16648 if diff conftest.exp conftest.er2 >/dev/null; then
16649 lt_prog_compiler_static_works_GCJ=yes
16650 fi
16651 else
16652 lt_prog_compiler_static_works_GCJ=yes
16653 fi
16654 fi
16655 $rm conftest*
16656 LDFLAGS="$save_LDFLAGS"
16657
16658fi
dd184caf 16659{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16660echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
d9898ee8 16661
16662if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16663 :
16664else
16665 lt_prog_compiler_static_GCJ=
16666fi
16667
16668
dd184caf 16669{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16670echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 16671if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16672 echo $ECHO_N "(cached) $ECHO_C" >&6
16673else
16674 lt_cv_prog_compiler_c_o_GCJ=no
16675 $rm -r conftest 2>/dev/null
16676 mkdir conftest
16677 cd conftest
16678 mkdir out
16679 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16680
16681 lt_compiler_flag="-o out/conftest2.$ac_objext"
16682 # Insert the option either (1) after the last *FLAGS variable, or
16683 # (2) before a word containing "conftest.", or (3) at the end.
16684 # Note that $ac_compile itself does not contain backslashes and begins
16685 # with a dollar sign (not a hyphen), so the echo should work correctly.
16686 lt_compile=`echo "$ac_compile" | $SED \
16687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16689 -e 's:$: $lt_compiler_flag:'`
dd184caf 16690 (eval echo "\"\$as_me:16690: $lt_compile\"" >&5)
d9898ee8 16691 (eval "$lt_compile" 2>out/conftest.err)
16692 ac_status=$?
16693 cat out/conftest.err >&5
dd184caf 16694 echo "$as_me:16694: \$? = $ac_status" >&5
d9898ee8 16695 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16696 then
16697 # The compiler can only warn and ignore the option if not recognized
16698 # So say no if there are warnings
16699 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16700 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16701 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16702 lt_cv_prog_compiler_c_o_GCJ=yes
16703 fi
16704 fi
16705 chmod u+w . 2>&5
16706 $rm conftest*
16707 # SGI C++ compiler will create directory out/ii_files/ for
16708 # template instantiation
16709 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16710 $rm out/* && rmdir out
16711 cd ..
16712 rmdir conftest
16713 $rm conftest*
16714
16715fi
dd184caf 16716{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16717echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d9898ee8 16718
16719
16720hard_links="nottested"
16721if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16722 # do not overwrite the value of need_locks provided by the user
dd184caf 16723 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16724echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 16725 hard_links=yes
16726 $rm conftest*
16727 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16728 touch conftest.a
16729 ln conftest.a conftest.b 2>&5 || hard_links=no
16730 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 16731 { echo "$as_me:$LINENO: result: $hard_links" >&5
16732echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 16733 if test "$hard_links" = no; then
16734 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16735echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16736 need_locks=warn
16737 fi
16738else
16739 need_locks=no
16740fi
16741
dd184caf 16742{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16743echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 16744
16745 runpath_var=
16746 allow_undefined_flag_GCJ=
16747 enable_shared_with_static_runtimes_GCJ=no
16748 archive_cmds_GCJ=
16749 archive_expsym_cmds_GCJ=
16750 old_archive_From_new_cmds_GCJ=
16751 old_archive_from_expsyms_cmds_GCJ=
16752 export_dynamic_flag_spec_GCJ=
16753 whole_archive_flag_spec_GCJ=
16754 thread_safe_flag_spec_GCJ=
16755 hardcode_libdir_flag_spec_GCJ=
16756 hardcode_libdir_flag_spec_ld_GCJ=
16757 hardcode_libdir_separator_GCJ=
16758 hardcode_direct_GCJ=no
16759 hardcode_minus_L_GCJ=no
16760 hardcode_shlibpath_var_GCJ=unsupported
16761 link_all_deplibs_GCJ=unknown
16762 hardcode_automatic_GCJ=no
16763 module_cmds_GCJ=
16764 module_expsym_cmds_GCJ=
16765 always_export_symbols_GCJ=no
16766 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16767 # include_expsyms should be a list of space-separated symbols to be *always*
16768 # included in the symbol list
16769 include_expsyms_GCJ=
16770 # exclude_expsyms can be an extended regexp of symbols to exclude
16771 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16772 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16773 # as well as any symbol that contains `d'.
16774 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16775 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16776 # platforms (ab)use it in PIC code, but their linkers get confused if
16777 # the symbol is explicitly referenced. Since portable code cannot
16778 # rely on this symbol name, it's probably fine to never include it in
16779 # preloaded symbol tables.
16780 extract_expsyms_cmds=
16781 # Just being paranoid about ensuring that cc_basename is set.
16782 for cc_temp in $compiler""; do
16783 case $cc_temp in
16784 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16785 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16786 \-*) ;;
16787 *) break;;
16788 esac
16789done
16790cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16791
16792 case $host_os in
16793 cygwin* | mingw* | pw32*)
16794 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16795 # When not using gcc, we currently assume that we are using
16796 # Microsoft Visual C++.
16797 if test "$GCC" != yes; then
16798 with_gnu_ld=no
16799 fi
16800 ;;
16801 interix*)
16802 # we just hope/assume this is gcc and not c89 (= MSVC++)
16803 with_gnu_ld=yes
16804 ;;
16805 openbsd*)
16806 with_gnu_ld=no
16807 ;;
16808 esac
16809
16810 ld_shlibs_GCJ=yes
16811 if test "$with_gnu_ld" = yes; then
16812 # If archive_cmds runs LD, not CC, wlarc should be empty
16813 wlarc='${wl}'
16814
16815 # Set some defaults for GNU ld with shared library support. These
16816 # are reset later if shared libraries are not supported. Putting them
16817 # here allows them to be overridden if necessary.
16818 runpath_var=LD_RUN_PATH
16819 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16820 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16821 # ancient GNU ld didn't support --whole-archive et. al.
16822 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16823 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16824 else
16825 whole_archive_flag_spec_GCJ=
16826 fi
16827 supports_anon_versioning=no
16828 case `$LD -v 2>/dev/null` in
16829 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16830 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16831 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16832 *\ 2.11.*) ;; # other 2.11 versions
16833 *) supports_anon_versioning=yes ;;
16834 esac
16835
16836 # See if GNU ld supports shared libraries.
16837 case $host_os in
16838 aix3* | aix4* | aix5*)
16839 # On AIX/PPC, the GNU linker is very broken
16840 if test "$host_cpu" != ia64; then
16841 ld_shlibs_GCJ=no
16842 cat <<EOF 1>&2
16843
16844*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16845*** to be unable to reliably create shared libraries on AIX.
16846*** Therefore, libtool is disabling shared libraries support. If you
16847*** really care for shared libraries, you may want to modify your PATH
16848*** so that a non-GNU linker is found, and then restart.
16849
16850EOF
16851 fi
16852 ;;
16853
16854 amigaos*)
16855 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)'
16856 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16857 hardcode_minus_L_GCJ=yes
16858
16859 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16860 # that the semantics of dynamic libraries on AmigaOS, at least up
16861 # to version 4, is to share data among multiple programs linked
16862 # with the same dynamic library. Since this doesn't match the
16863 # behavior of shared libraries on other platforms, we can't use
16864 # them.
16865 ld_shlibs_GCJ=no
16866 ;;
16867
16868 beos*)
16869 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16870 allow_undefined_flag_GCJ=unsupported
16871 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16872 # support --undefined. This deserves some investigation. FIXME
16873 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16874 else
16875 ld_shlibs_GCJ=no
16876 fi
16877 ;;
16878
16879 cygwin* | mingw* | pw32*)
16880 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16881 # as there is no search path for DLLs.
16882 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16883 allow_undefined_flag_GCJ=unsupported
16884 always_export_symbols_GCJ=no
16885 enable_shared_with_static_runtimes_GCJ=yes
16886 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16887
16888 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16889 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16890 # If the export-symbols file already is a .def file (1st line
16891 # is EXPORTS), use it as is; otherwise, prepend...
16892 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16893 cp $export_symbols $output_objdir/$soname.def;
16894 else
16895 echo EXPORTS > $output_objdir/$soname.def;
16896 cat $export_symbols >> $output_objdir/$soname.def;
16897 fi~
16898 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16899 else
16900 ld_shlibs_GCJ=no
16901 fi
16902 ;;
16903
16904 interix3*)
16905 hardcode_direct_GCJ=no
16906 hardcode_shlibpath_var_GCJ=no
16907 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16908 export_dynamic_flag_spec_GCJ='${wl}-E'
16909 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16910 # Instead, shared libraries are loaded at an image base (0x10000000 by
16911 # default) and relocated if they conflict, which is a slow very memory
16912 # consuming and fragmenting process. To avoid this, we pick a random,
16913 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16914 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16915 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'
16916 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'
16917 ;;
16918
16919 linux*)
16920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16921 tmp_addflag=
16922 case $cc_basename,$host_cpu in
16923 pgcc*) # Portland Group C compiler
16924 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'
16925 tmp_addflag=' $pic_flag'
16926 ;;
16927 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16928 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'
16929 tmp_addflag=' $pic_flag -Mnomain' ;;
16930 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16931 tmp_addflag=' -i_dynamic' ;;
16932 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16933 tmp_addflag=' -i_dynamic -nofor_main' ;;
16934 ifc* | ifort*) # Intel Fortran compiler
16935 tmp_addflag=' -nofor_main' ;;
16936 esac
16937 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16938
16939 if test $supports_anon_versioning = yes; then
16940 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16941 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16942 $echo "local: *; };" >> $output_objdir/$libname.ver~
16943 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16944 fi
16945 else
16946 ld_shlibs_GCJ=no
16947 fi
16948 ;;
16949
16950 netbsd*)
16951 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16952 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16953 wlarc=
16954 else
16955 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16956 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16957 fi
16958 ;;
16959
16960 solaris*)
16961 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16962 ld_shlibs_GCJ=no
16963 cat <<EOF 1>&2
16964
16965*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16966*** create shared libraries on Solaris systems. Therefore, libtool
16967*** is disabling shared libraries support. We urge you to upgrade GNU
16968*** binutils to release 2.9.1 or newer. Another option is to modify
16969*** your PATH or compiler configuration so that the native linker is
16970*** used, and then restart.
16971
16972EOF
16973 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16974 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16975 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16976 else
16977 ld_shlibs_GCJ=no
16978 fi
16979 ;;
16980
16981 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16982 case `$LD -v 2>&1` in
16983 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16984 ld_shlibs_GCJ=no
16985 cat <<_LT_EOF 1>&2
16986
16987*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16988*** reliably create shared libraries on SCO systems. Therefore, libtool
16989*** is disabling shared libraries support. We urge you to upgrade GNU
16990*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16991*** your PATH or compiler configuration so that the native linker is
16992*** used, and then restart.
16993
16994_LT_EOF
16995 ;;
16996 *)
16997 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16998 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16999 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17000 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17001 else
17002 ld_shlibs_GCJ=no
17003 fi
17004 ;;
17005 esac
17006 ;;
17007
17008 sunos4*)
17009 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17010 wlarc=
17011 hardcode_direct_GCJ=yes
17012 hardcode_shlibpath_var_GCJ=no
17013 ;;
17014
17015 *)
17016 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17017 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17018 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17019 else
17020 ld_shlibs_GCJ=no
17021 fi
17022 ;;
17023 esac
17024
17025 if test "$ld_shlibs_GCJ" = no; then
17026 runpath_var=
17027 hardcode_libdir_flag_spec_GCJ=
17028 export_dynamic_flag_spec_GCJ=
17029 whole_archive_flag_spec_GCJ=
17030 fi
17031 else
17032 # PORTME fill in a description of your system's linker (not GNU ld)
17033 case $host_os in
17034 aix3*)
17035 allow_undefined_flag_GCJ=unsupported
17036 always_export_symbols_GCJ=yes
17037 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'
17038 # Note: this linker hardcodes the directories in LIBPATH if there
17039 # are no directories specified by -L.
17040 hardcode_minus_L_GCJ=yes
17041 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17042 # Neither direct hardcoding nor static linking is supported with a
17043 # broken collect2.
17044 hardcode_direct_GCJ=unsupported
17045 fi
17046 ;;
17047
17048 aix4* | aix5*)
17049 if test "$host_cpu" = ia64; then
17050 # On IA64, the linker does run time linking by default, so we don't
17051 # have to do anything special.
17052 aix_use_runtimelinking=no
17053 exp_sym_flag='-Bexport'
17054 no_entry_flag=""
17055 else
17056 # If we're using GNU nm, then we don't want the "-C" option.
17057 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17058 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17059 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'
17060 else
17061 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'
17062 fi
17063 aix_use_runtimelinking=no
17064
17065 # Test if we are trying to use run time linking or normal
17066 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17067 # need to do runtime linking.
17068 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17069 for ld_flag in $LDFLAGS; do
17070 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17071 aix_use_runtimelinking=yes
17072 break
17073 fi
17074 done
17075 ;;
17076 esac
17077
17078 exp_sym_flag='-bexport'
17079 no_entry_flag='-bnoentry'
17080 fi
17081
17082 # When large executables or shared objects are built, AIX ld can
17083 # have problems creating the table of contents. If linking a library
17084 # or program results in "error TOC overflow" add -mminimal-toc to
17085 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17086 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17087
17088 archive_cmds_GCJ=''
17089 hardcode_direct_GCJ=yes
17090 hardcode_libdir_separator_GCJ=':'
17091 link_all_deplibs_GCJ=yes
17092
17093 if test "$GCC" = yes; then
17094 case $host_os in aix4.[012]|aix4.[012].*)
17095 # We only want to do this on AIX 4.2 and lower, the check
17096 # below for broken collect2 doesn't work under 4.3+
17097 collect2name=`${CC} -print-prog-name=collect2`
17098 if test -f "$collect2name" && \
17099 strings "$collect2name" | grep resolve_lib_name >/dev/null
17100 then
17101 # We have reworked collect2
17102 hardcode_direct_GCJ=yes
17103 else
17104 # We have old collect2
17105 hardcode_direct_GCJ=unsupported
17106 # It fails to find uninstalled libraries when the uninstalled
17107 # path is not listed in the libpath. Setting hardcode_minus_L
17108 # to unsupported forces relinking
17109 hardcode_minus_L_GCJ=yes
17110 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17111 hardcode_libdir_separator_GCJ=
17112 fi
17113 ;;
17114 esac
17115 shared_flag='-shared'
17116 if test "$aix_use_runtimelinking" = yes; then
17117 shared_flag="$shared_flag "'${wl}-G'
17118 fi
17119 else
17120 # not using gcc
17121 if test "$host_cpu" = ia64; then
17122 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17123 # chokes on -Wl,-G. The following line is correct:
17124 shared_flag='-G'
17125 else
17126 if test "$aix_use_runtimelinking" = yes; then
17127 shared_flag='${wl}-G'
17128 else
17129 shared_flag='${wl}-bM:SRE'
17130 fi
17131 fi
17132 fi
17133
17134 # It seems that -bexpall does not export symbols beginning with
17135 # underscore (_), so it is better to generate a list of symbols to export.
17136 always_export_symbols_GCJ=yes
17137 if test "$aix_use_runtimelinking" = yes; then
17138 # Warning - without using the other runtime loading flags (-brtl),
17139 # -berok will link without error, but may produce a broken library.
17140 allow_undefined_flag_GCJ='-berok'
17141 # Determine the default libpath from the value encoded in an empty executable.
17142 cat >conftest.$ac_ext <<_ACEOF
17143/* confdefs.h. */
17144_ACEOF
17145cat confdefs.h >>conftest.$ac_ext
17146cat >>conftest.$ac_ext <<_ACEOF
17147/* end confdefs.h. */
17148
17149int
17150main ()
17151{
17152
17153 ;
17154 return 0;
17155}
17156_ACEOF
17157rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17158if { (ac_try="$ac_link"
17159case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17162esac
17163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_link") 2>conftest.er1
d9898ee8 17165 ac_status=$?
17166 grep -v '^ *+' conftest.er1 >conftest.err
17167 rm -f conftest.er1
17168 cat conftest.err >&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17170 (exit $ac_status); } && {
17171 test -z "$ac_c_werror_flag" ||
17172 test ! -s conftest.err
17173 } && test -s conftest$ac_exeext &&
17174 $as_test_x conftest$ac_exeext; then
d9898ee8 17175
17176aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17177}'`
17178# Check for a 64-bit object if we didn't find anything.
17179if 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; }
17180}'`; fi
17181else
17182 echo "$as_me: failed program was:" >&5
17183sed 's/^/| /' conftest.$ac_ext >&5
17184
dd184caf 17185
d9898ee8 17186fi
dd184caf 17187
17188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17189 conftest$ac_exeext conftest.$ac_ext
17190if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17191
17192 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17193 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"
17194 else
17195 if test "$host_cpu" = ia64; then
17196 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17197 allow_undefined_flag_GCJ="-z nodefs"
17198 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"
17199 else
17200 # Determine the default libpath from the value encoded in an empty executable.
17201 cat >conftest.$ac_ext <<_ACEOF
17202/* confdefs.h. */
17203_ACEOF
17204cat confdefs.h >>conftest.$ac_ext
17205cat >>conftest.$ac_ext <<_ACEOF
17206/* end confdefs.h. */
17207
17208int
17209main ()
17210{
17211
17212 ;
17213 return 0;
17214}
17215_ACEOF
17216rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17217if { (ac_try="$ac_link"
17218case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17221esac
17222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 (eval "$ac_link") 2>conftest.er1
d9898ee8 17224 ac_status=$?
17225 grep -v '^ *+' conftest.er1 >conftest.err
17226 rm -f conftest.er1
17227 cat conftest.err >&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17229 (exit $ac_status); } && {
17230 test -z "$ac_c_werror_flag" ||
17231 test ! -s conftest.err
17232 } && test -s conftest$ac_exeext &&
17233 $as_test_x conftest$ac_exeext; then
d9898ee8 17234
17235aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17236}'`
17237# Check for a 64-bit object if we didn't find anything.
17238if 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; }
17239}'`; fi
17240else
17241 echo "$as_me: failed program was:" >&5
17242sed 's/^/| /' conftest.$ac_ext >&5
17243
dd184caf 17244
d9898ee8 17245fi
dd184caf 17246
17247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17248 conftest$ac_exeext conftest.$ac_ext
17249if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17250
17251 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17252 # Warning - without using the other run time loading flags,
17253 # -berok will link without error, but may produce a broken library.
17254 no_undefined_flag_GCJ=' ${wl}-bernotok'
17255 allow_undefined_flag_GCJ=' ${wl}-berok'
17256 # Exported symbols can be pulled into shared objects from archives
17257 whole_archive_flag_spec_GCJ='$convenience'
17258 archive_cmds_need_lc_GCJ=yes
17259 # This is similar to how AIX traditionally builds its shared libraries.
17260 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'
17261 fi
17262 fi
17263 ;;
17264
17265 amigaos*)
17266 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)'
17267 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17268 hardcode_minus_L_GCJ=yes
17269 # see comment about different semantics on the GNU ld section
17270 ld_shlibs_GCJ=no
17271 ;;
17272
17273 bsdi[45]*)
17274 export_dynamic_flag_spec_GCJ=-rdynamic
17275 ;;
17276
17277 cygwin* | mingw* | pw32*)
17278 # When not using gcc, we currently assume that we are using
17279 # Microsoft Visual C++.
17280 # hardcode_libdir_flag_spec is actually meaningless, as there is
17281 # no search path for DLLs.
17282 hardcode_libdir_flag_spec_GCJ=' '
17283 allow_undefined_flag_GCJ=unsupported
17284 # Tell ltmain to make .lib files, not .a files.
17285 libext=lib
17286 # Tell ltmain to make .dll files, not .so files.
17287 shrext_cmds=".dll"
17288 # FIXME: Setting linknames here is a bad hack.
17289 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17290 # The linker will automatically build a .lib file if we build a DLL.
17291 old_archive_From_new_cmds_GCJ='true'
17292 # FIXME: Should let the user specify the lib program.
17293 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17294 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17295 enable_shared_with_static_runtimes_GCJ=yes
17296 ;;
17297
17298 darwin* | rhapsody*)
17299 case $host_os in
17300 rhapsody* | darwin1.[012])
17301 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17302 ;;
17303 *) # Darwin 1.3 on
17304 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17305 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17306 else
17307 case ${MACOSX_DEPLOYMENT_TARGET} in
17308 10.[012])
17309 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17310 ;;
17311 10.*)
17312 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17313 ;;
17314 esac
17315 fi
17316 ;;
17317 esac
17318 archive_cmds_need_lc_GCJ=no
17319 hardcode_direct_GCJ=no
17320 hardcode_automatic_GCJ=yes
17321 hardcode_shlibpath_var_GCJ=unsupported
17322 whole_archive_flag_spec_GCJ=''
17323 link_all_deplibs_GCJ=yes
17324 if test "$GCC" = yes ; then
17325 output_verbose_link_cmd='echo'
17326 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17327 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17328 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17329 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}'
17330 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}'
17331 else
17332 case $cc_basename in
17333 xlc*)
17334 output_verbose_link_cmd='echo'
17335 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17336 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17337 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17338 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}'
17339 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}'
17340 ;;
17341 *)
17342 ld_shlibs_GCJ=no
17343 ;;
17344 esac
17345 fi
17346 ;;
17347
17348 dgux*)
17349 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17350 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17351 hardcode_shlibpath_var_GCJ=no
17352 ;;
17353
17354 freebsd1*)
17355 ld_shlibs_GCJ=no
17356 ;;
17357
17358 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17359 # support. Future versions do this automatically, but an explicit c++rt0.o
17360 # does not break anything, and helps significantly (at the cost of a little
17361 # extra space).
17362 freebsd2.2*)
17363 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17364 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17365 hardcode_direct_GCJ=yes
17366 hardcode_shlibpath_var_GCJ=no
17367 ;;
17368
17369 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17370 freebsd2*)
17371 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17372 hardcode_direct_GCJ=yes
17373 hardcode_minus_L_GCJ=yes
17374 hardcode_shlibpath_var_GCJ=no
17375 ;;
17376
17377 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17378 freebsd* | kfreebsd*-gnu | dragonfly*)
17379 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17380 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17381 hardcode_direct_GCJ=yes
17382 hardcode_shlibpath_var_GCJ=no
17383 ;;
17384
17385 hpux9*)
17386 if test "$GCC" = yes; then
17387 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'
17388 else
17389 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'
17390 fi
17391 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17392 hardcode_libdir_separator_GCJ=:
17393 hardcode_direct_GCJ=yes
17394
17395 # hardcode_minus_L: Not really in the search PATH,
17396 # but as the default location of the library.
17397 hardcode_minus_L_GCJ=yes
17398 export_dynamic_flag_spec_GCJ='${wl}-E'
17399 ;;
17400
17401 hpux10*)
17402 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17403 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17404 else
17405 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17406 fi
17407 if test "$with_gnu_ld" = no; then
17408 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17409 hardcode_libdir_separator_GCJ=:
17410
17411 hardcode_direct_GCJ=yes
17412 export_dynamic_flag_spec_GCJ='${wl}-E'
17413
17414 # hardcode_minus_L: Not really in the search PATH,
17415 # but as the default location of the library.
17416 hardcode_minus_L_GCJ=yes
17417 fi
17418 ;;
17419
17420 hpux11*)
17421 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17422 case $host_cpu in
17423 hppa*64*)
17424 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17425 ;;
17426 ia64*)
17427 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17428 ;;
17429 *)
17430 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17431 ;;
17432 esac
17433 else
17434 case $host_cpu in
17435 hppa*64*)
17436 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17437 ;;
17438 ia64*)
17439 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17440 ;;
17441 *)
17442 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17443 ;;
17444 esac
17445 fi
17446 if test "$with_gnu_ld" = no; then
17447 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17448 hardcode_libdir_separator_GCJ=:
17449
17450 case $host_cpu in
17451 hppa*64*|ia64*)
17452 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17453 hardcode_direct_GCJ=no
17454 hardcode_shlibpath_var_GCJ=no
17455 ;;
17456 *)
17457 hardcode_direct_GCJ=yes
17458 export_dynamic_flag_spec_GCJ='${wl}-E'
17459
17460 # hardcode_minus_L: Not really in the search PATH,
17461 # but as the default location of the library.
17462 hardcode_minus_L_GCJ=yes
17463 ;;
17464 esac
17465 fi
17466 ;;
17467
17468 irix5* | irix6* | nonstopux*)
17469 if test "$GCC" = yes; then
17470 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'
17471 else
17472 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'
17473 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17474 fi
17475 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17476 hardcode_libdir_separator_GCJ=:
17477 link_all_deplibs_GCJ=yes
17478 ;;
17479
17480 netbsd*)
17481 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17482 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17483 else
17484 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17485 fi
17486 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17487 hardcode_direct_GCJ=yes
17488 hardcode_shlibpath_var_GCJ=no
17489 ;;
17490
17491 newsos6)
17492 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17493 hardcode_direct_GCJ=yes
17494 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17495 hardcode_libdir_separator_GCJ=:
17496 hardcode_shlibpath_var_GCJ=no
17497 ;;
17498
17499 openbsd*)
17500 hardcode_direct_GCJ=yes
17501 hardcode_shlibpath_var_GCJ=no
17502 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17503 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17504 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17505 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17506 export_dynamic_flag_spec_GCJ='${wl}-E'
17507 else
17508 case $host_os in
17509 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17510 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17511 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17512 ;;
17513 *)
17514 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17515 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17516 ;;
17517 esac
17518 fi
17519 ;;
17520
17521 os2*)
17522 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17523 hardcode_minus_L_GCJ=yes
17524 allow_undefined_flag_GCJ=unsupported
17525 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'
17526 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17527 ;;
17528
17529 osf3*)
17530 if test "$GCC" = yes; then
17531 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17532 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'
17533 else
17534 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17535 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'
17536 fi
17537 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17538 hardcode_libdir_separator_GCJ=:
17539 ;;
17540
17541 osf4* | osf5*) # as osf3* with the addition of -msym flag
17542 if test "$GCC" = yes; then
17543 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17544 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'
17545 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17546 else
17547 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17548 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'
17549 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~
17550 $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'
17551
17552 # Both c and cxx compiler support -rpath directly
17553 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17554 fi
17555 hardcode_libdir_separator_GCJ=:
17556 ;;
17557
17558 solaris*)
17559 no_undefined_flag_GCJ=' -z text'
17560 if test "$GCC" = yes; then
17561 wlarc='${wl}'
17562 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17563 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17564 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17565 else
17566 wlarc=''
17567 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17568 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17569 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17570 fi
17571 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17572 hardcode_shlibpath_var_GCJ=no
17573 case $host_os in
17574 solaris2.[0-5] | solaris2.[0-5].*) ;;
17575 *)
17576 # The compiler driver will combine linker options so we
17577 # cannot just pass the convience library names through
17578 # without $wl, iff we do not link with $LD.
17579 # Luckily, gcc supports the same syntax we need for Sun Studio.
17580 # Supported since Solaris 2.6 (maybe 2.5.1?)
17581 case $wlarc in
17582 '')
17583 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17584 *)
17585 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' ;;
17586 esac ;;
17587 esac
17588 link_all_deplibs_GCJ=yes
17589 ;;
17590
17591 sunos4*)
17592 if test "x$host_vendor" = xsequent; then
17593 # Use $CC to link under sequent, because it throws in some extra .o
17594 # files that make .init and .fini sections work.
17595 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17596 else
17597 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17598 fi
17599 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17600 hardcode_direct_GCJ=yes
17601 hardcode_minus_L_GCJ=yes
17602 hardcode_shlibpath_var_GCJ=no
17603 ;;
17604
17605 sysv4)
17606 case $host_vendor in
17607 sni)
17608 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17609 hardcode_direct_GCJ=yes # is this really true???
17610 ;;
17611 siemens)
17612 ## LD is ld it makes a PLAMLIB
17613 ## CC just makes a GrossModule.
17614 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17615 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17616 hardcode_direct_GCJ=no
17617 ;;
17618 motorola)
17619 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17620 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17621 ;;
17622 esac
17623 runpath_var='LD_RUN_PATH'
17624 hardcode_shlibpath_var_GCJ=no
17625 ;;
17626
17627 sysv4.3*)
17628 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17629 hardcode_shlibpath_var_GCJ=no
17630 export_dynamic_flag_spec_GCJ='-Bexport'
17631 ;;
17632
17633 sysv4*MP*)
17634 if test -d /usr/nec; then
17635 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17636 hardcode_shlibpath_var_GCJ=no
17637 runpath_var=LD_RUN_PATH
17638 hardcode_runpath_var=yes
17639 ld_shlibs_GCJ=yes
17640 fi
17641 ;;
17642
17643 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17644 no_undefined_flag_GCJ='${wl}-z,text'
17645 archive_cmds_need_lc_GCJ=no
17646 hardcode_shlibpath_var_GCJ=no
17647 runpath_var='LD_RUN_PATH'
17648
17649 if test "$GCC" = yes; then
17650 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17651 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17652 else
17653 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17654 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17655 fi
17656 ;;
17657
17658 sysv5* | sco3.2v5* | sco5v6*)
17659 # Note: We can NOT use -z defs as we might desire, because we do not
17660 # link with -lc, and that would cause any symbols used from libc to
17661 # always be unresolved, which means just about no library would
17662 # ever link correctly. If we're not using GNU ld we use -z text
17663 # though, which does catch some bad symbols but isn't as heavy-handed
17664 # as -z defs.
17665 no_undefined_flag_GCJ='${wl}-z,text'
17666 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17667 archive_cmds_need_lc_GCJ=no
17668 hardcode_shlibpath_var_GCJ=no
17669 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17670 hardcode_libdir_separator_GCJ=':'
17671 link_all_deplibs_GCJ=yes
17672 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17673 runpath_var='LD_RUN_PATH'
17674
17675 if test "$GCC" = yes; then
17676 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17677 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17678 else
17679 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17680 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17681 fi
17682 ;;
17683
17684 uts4*)
17685 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17686 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17687 hardcode_shlibpath_var_GCJ=no
17688 ;;
17689
17690 *)
17691 ld_shlibs_GCJ=no
17692 ;;
17693 esac
17694 fi
17695
dd184caf 17696{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17697echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d9898ee8 17698test "$ld_shlibs_GCJ" = no && can_build_shared=no
17699
17700#
17701# Do we need to explicitly link libc?
17702#
17703case "x$archive_cmds_need_lc_GCJ" in
17704x|xyes)
17705 # Assume -lc should be added
17706 archive_cmds_need_lc_GCJ=yes
17707
17708 if test "$enable_shared" = yes && test "$GCC" = yes; then
17709 case $archive_cmds_GCJ in
17710 *'~'*)
17711 # FIXME: we may have to deal with multi-command sequences.
17712 ;;
17713 '$CC '*)
17714 # Test whether the compiler implicitly links with -lc since on some
17715 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17716 # to ld, don't add -lc before -lgcc.
dd184caf 17717 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17718echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 17719 $rm conftest*
17720 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17721
17722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17723 (eval $ac_compile) 2>&5
17724 ac_status=$?
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } 2>conftest.err; then
17727 soname=conftest
17728 lib=conftest
17729 libobjs=conftest.$ac_objext
17730 deplibs=
17731 wl=$lt_prog_compiler_wl_GCJ
17732 pic_flag=$lt_prog_compiler_pic_GCJ
17733 compiler_flags=-v
17734 linker_flags=-v
17735 verstring=
17736 output_objdir=.
17737 libname=conftest
17738 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17739 allow_undefined_flag_GCJ=
17740 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17741 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17742 ac_status=$?
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }
17745 then
17746 archive_cmds_need_lc_GCJ=no
17747 else
17748 archive_cmds_need_lc_GCJ=yes
17749 fi
17750 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17751 else
17752 cat conftest.err 1>&5
17753 fi
17754 $rm conftest*
dd184caf 17755 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17756echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d9898ee8 17757 ;;
17758 esac
17759 fi
17760 ;;
17761esac
17762
dd184caf 17763{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17764echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 17765library_names_spec=
17766libname_spec='lib$name'
17767soname_spec=
17768shrext_cmds=".so"
17769postinstall_cmds=
17770postuninstall_cmds=
17771finish_cmds=
17772finish_eval=
17773shlibpath_var=
17774shlibpath_overrides_runpath=unknown
17775version_type=none
17776dynamic_linker="$host_os ld.so"
17777sys_lib_dlsearch_path_spec="/lib /usr/lib"
17778if test "$GCC" = yes; then
17779 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17780 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17781 # if the path contains ";" then we assume it to be the separator
17782 # otherwise default to the standard path separator (i.e. ":") - it is
17783 # assumed that no part of a normal pathname contains ";" but that should
17784 # okay in the real world where ";" in dirpaths is itself problematic.
17785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17786 else
17787 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17788 fi
17789else
17790 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17791fi
17792need_lib_prefix=unknown
17793hardcode_into_libs=no
17794
17795# when you set need_version to no, make sure it does not cause -set_version
17796# flags to be left without arguments
17797need_version=unknown
17798
17799case $host_os in
17800aix3*)
17801 version_type=linux
17802 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17803 shlibpath_var=LIBPATH
17804
17805 # AIX 3 has no versioning support, so we append a major version to the name.
17806 soname_spec='${libname}${release}${shared_ext}$major'
17807 ;;
17808
17809aix4* | aix5*)
17810 version_type=linux
17811 need_lib_prefix=no
17812 need_version=no
17813 hardcode_into_libs=yes
17814 if test "$host_cpu" = ia64; then
17815 # AIX 5 supports IA64
17816 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17817 shlibpath_var=LD_LIBRARY_PATH
17818 else
17819 # With GCC up to 2.95.x, collect2 would create an import file
17820 # for dependence libraries. The import file would start with
17821 # the line `#! .'. This would cause the generated library to
17822 # depend on `.', always an invalid library. This was fixed in
17823 # development snapshots of GCC prior to 3.0.
17824 case $host_os in
17825 aix4 | aix4.[01] | aix4.[01].*)
17826 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17827 echo ' yes '
17828 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17829 :
17830 else
17831 can_build_shared=no
17832 fi
17833 ;;
17834 esac
17835 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17836 # soname into executable. Probably we can add versioning support to
17837 # collect2, so additional links can be useful in future.
17838 if test "$aix_use_runtimelinking" = yes; then
17839 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17840 # instead of lib<name>.a to let people know that these are not
17841 # typical AIX shared libraries.
17842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17843 else
17844 # We preserve .a as extension for shared libraries through AIX4.2
17845 # and later when we are not doing run time linking.
17846 library_names_spec='${libname}${release}.a $libname.a'
17847 soname_spec='${libname}${release}${shared_ext}$major'
17848 fi
17849 shlibpath_var=LIBPATH
17850 fi
17851 ;;
17852
17853amigaos*)
17854 library_names_spec='$libname.ixlibrary $libname.a'
17855 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17856 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'
17857 ;;
17858
17859beos*)
17860 library_names_spec='${libname}${shared_ext}'
17861 dynamic_linker="$host_os ld.so"
17862 shlibpath_var=LIBRARY_PATH
17863 ;;
17864
17865bsdi[45]*)
17866 version_type=linux
17867 need_version=no
17868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17869 soname_spec='${libname}${release}${shared_ext}$major'
17870 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17871 shlibpath_var=LD_LIBRARY_PATH
17872 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17873 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17874 # the default ld.so.conf also contains /usr/contrib/lib and
17875 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17876 # libtool to hard-code these into programs
17877 ;;
17878
17879cygwin* | mingw* | pw32*)
17880 version_type=windows
17881 shrext_cmds=".dll"
17882 need_version=no
17883 need_lib_prefix=no
17884
17885 case $GCC,$host_os in
17886 yes,cygwin* | yes,mingw* | yes,pw32*)
17887 library_names_spec='$libname.dll.a'
17888 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17889 postinstall_cmds='base_file=`basename \${file}`~
17890 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17891 dldir=$destdir/`dirname \$dlpath`~
17892 test -d \$dldir || mkdir -p \$dldir~
17893 $install_prog $dir/$dlname \$dldir/$dlname~
17894 chmod a+x \$dldir/$dlname'
17895 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17896 dlpath=$dir/\$dldll~
17897 $rm \$dlpath'
17898 shlibpath_overrides_runpath=yes
17899
17900 case $host_os in
17901 cygwin*)
17902 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17903 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17904 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17905 ;;
17906 mingw*)
17907 # MinGW DLLs use traditional 'lib' prefix
17908 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17909 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17910 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17911 # It is most probably a Windows format PATH printed by
17912 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17913 # path with ; separators, and with drive letters. We can handle the
17914 # drive letters (cygwin fileutils understands them), so leave them,
17915 # especially as we might pass files found there to a mingw objdump,
17916 # which wouldn't understand a cygwinified path. Ahh.
17917 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17918 else
17919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17920 fi
17921 ;;
17922 pw32*)
17923 # pw32 DLLs use 'pw' prefix rather than 'lib'
17924 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17925 ;;
17926 esac
17927 ;;
17928
17929 *)
17930 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17931 ;;
17932 esac
17933 dynamic_linker='Win32 ld.exe'
17934 # FIXME: first we should search . and the directory the executable is in
17935 shlibpath_var=PATH
17936 ;;
17937
17938darwin* | rhapsody*)
17939 dynamic_linker="$host_os dyld"
17940 version_type=darwin
17941 need_lib_prefix=no
17942 need_version=no
17943 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17944 soname_spec='${libname}${release}${major}$shared_ext'
17945 shlibpath_overrides_runpath=yes
17946 shlibpath_var=DYLD_LIBRARY_PATH
17947 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17948 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17949 if test "$GCC" = yes; then
17950 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"`
17951 else
17952 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17953 fi
17954 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17955 ;;
17956
17957dgux*)
17958 version_type=linux
17959 need_lib_prefix=no
17960 need_version=no
17961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17962 soname_spec='${libname}${release}${shared_ext}$major'
17963 shlibpath_var=LD_LIBRARY_PATH
17964 ;;
17965
17966freebsd1*)
17967 dynamic_linker=no
17968 ;;
17969
17970kfreebsd*-gnu)
17971 version_type=linux
17972 need_lib_prefix=no
17973 need_version=no
17974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17975 soname_spec='${libname}${release}${shared_ext}$major'
17976 shlibpath_var=LD_LIBRARY_PATH
17977 shlibpath_overrides_runpath=no
17978 hardcode_into_libs=yes
17979 dynamic_linker='GNU ld.so'
17980 ;;
17981
17982freebsd* | dragonfly*)
17983 # DragonFly does not have aout. When/if they implement a new
17984 # versioning mechanism, adjust this.
17985 if test -x /usr/bin/objformat; then
17986 objformat=`/usr/bin/objformat`
17987 else
17988 case $host_os in
17989 freebsd[123]*) objformat=aout ;;
17990 *) objformat=elf ;;
17991 esac
17992 fi
17993 version_type=freebsd-$objformat
17994 case $version_type in
17995 freebsd-elf*)
17996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17997 need_version=no
17998 need_lib_prefix=no
17999 ;;
18000 freebsd-*)
18001 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18002 need_version=yes
18003 ;;
18004 esac
18005 shlibpath_var=LD_LIBRARY_PATH
18006 case $host_os in
18007 freebsd2*)
18008 shlibpath_overrides_runpath=yes
18009 ;;
18010 freebsd3.[01]* | freebsdelf3.[01]*)
18011 shlibpath_overrides_runpath=yes
18012 hardcode_into_libs=yes
18013 ;;
18014 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18015 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18016 shlibpath_overrides_runpath=no
18017 hardcode_into_libs=yes
18018 ;;
18019 freebsd*) # from 4.6 on
18020 shlibpath_overrides_runpath=yes
18021 hardcode_into_libs=yes
18022 ;;
18023 esac
18024 ;;
18025
18026gnu*)
18027 version_type=linux
18028 need_lib_prefix=no
18029 need_version=no
18030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18031 soname_spec='${libname}${release}${shared_ext}$major'
18032 shlibpath_var=LD_LIBRARY_PATH
18033 hardcode_into_libs=yes
18034 ;;
18035
18036hpux9* | hpux10* | hpux11*)
18037 # Give a soname corresponding to the major version so that dld.sl refuses to
18038 # link against other versions.
18039 version_type=sunos
18040 need_lib_prefix=no
18041 need_version=no
18042 case $host_cpu in
18043 ia64*)
18044 shrext_cmds='.so'
18045 hardcode_into_libs=yes
18046 dynamic_linker="$host_os dld.so"
18047 shlibpath_var=LD_LIBRARY_PATH
18048 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
18052 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18053 else
18054 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18055 fi
18056 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18057 ;;
18058 hppa*64*)
18059 shrext_cmds='.sl'
18060 hardcode_into_libs=yes
18061 dynamic_linker="$host_os dld.sl"
18062 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18063 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18065 soname_spec='${libname}${release}${shared_ext}$major'
18066 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18067 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18068 ;;
18069 *)
18070 shrext_cmds='.sl'
18071 dynamic_linker="$host_os dld.sl"
18072 shlibpath_var=SHLIB_PATH
18073 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18075 soname_spec='${libname}${release}${shared_ext}$major'
18076 ;;
18077 esac
18078 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18079 postinstall_cmds='chmod 555 $lib'
18080 ;;
18081
18082interix3*)
18083 version_type=linux
18084 need_lib_prefix=no
18085 need_version=no
18086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18087 soname_spec='${libname}${release}${shared_ext}$major'
18088 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18089 shlibpath_var=LD_LIBRARY_PATH
18090 shlibpath_overrides_runpath=no
18091 hardcode_into_libs=yes
18092 ;;
18093
18094irix5* | irix6* | nonstopux*)
18095 case $host_os in
18096 nonstopux*) version_type=nonstopux ;;
18097 *)
18098 if test "$lt_cv_prog_gnu_ld" = yes; then
18099 version_type=linux
18100 else
18101 version_type=irix
18102 fi ;;
18103 esac
18104 need_lib_prefix=no
18105 need_version=no
18106 soname_spec='${libname}${release}${shared_ext}$major'
18107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18108 case $host_os in
18109 irix5* | nonstopux*)
18110 libsuff= shlibsuff=
18111 ;;
18112 *)
18113 case $LD in # libtool.m4 will add one of these switches to LD
18114 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18115 libsuff= shlibsuff= libmagic=32-bit;;
18116 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18117 libsuff=32 shlibsuff=N32 libmagic=N32;;
18118 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18119 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18120 *) libsuff= shlibsuff= libmagic=never-match;;
18121 esac
18122 ;;
18123 esac
18124 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18125 shlibpath_overrides_runpath=no
18126 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18127 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18128 hardcode_into_libs=yes
18129 ;;
18130
18131# No shared lib support for Linux oldld, aout, or coff.
18132linux*oldld* | linux*aout* | linux*coff*)
18133 dynamic_linker=no
18134 ;;
18135
18136# This must be Linux ELF.
18137linux*)
18138 version_type=linux
18139 need_lib_prefix=no
18140 need_version=no
18141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18142 soname_spec='${libname}${release}${shared_ext}$major'
18143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18144 shlibpath_var=LD_LIBRARY_PATH
18145 shlibpath_overrides_runpath=no
18146 # This implies no fast_install, which is unacceptable.
18147 # Some rework will be needed to allow for fast_install
18148 # before this can be enabled.
18149 hardcode_into_libs=yes
18150
18151 # find out which ABI we are using
18152 libsuff=
18153 case "$host_cpu" in
18154 x86_64*|s390x*|powerpc64*)
dd184caf 18155 echo '#line 18155 "configure"' > conftest.$ac_ext
d9898ee8 18156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18157 (eval $ac_compile) 2>&5
18158 ac_status=$?
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; then
18161 case `/usr/bin/file conftest.$ac_objext` in
18162 *64-bit*)
18163 libsuff=64
18164 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18165 ;;
18166 esac
18167 fi
18168 rm -rf conftest*
18169 ;;
18170 esac
18171
18172 # Append ld.so.conf contents to the search path
18173 if test -f /etc/ld.so.conf; then
dd184caf 18174 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 18175 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18176 fi
18177
18178 # We used to test for /lib/ld.so.1 and disable shared libraries on
18179 # powerpc, because MkLinux only supported shared libraries with the
18180 # GNU dynamic linker. Since this was broken with cross compilers,
18181 # most powerpc-linux boxes support dynamic linking these days and
18182 # people can always --disable-shared, the test was removed, and we
18183 # assume the GNU/Linux dynamic linker is in use.
18184 dynamic_linker='GNU/Linux ld.so'
18185 ;;
18186
18187knetbsd*-gnu)
18188 version_type=linux
18189 need_lib_prefix=no
18190 need_version=no
18191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18192 soname_spec='${libname}${release}${shared_ext}$major'
18193 shlibpath_var=LD_LIBRARY_PATH
18194 shlibpath_overrides_runpath=no
18195 hardcode_into_libs=yes
18196 dynamic_linker='GNU ld.so'
18197 ;;
18198
18199netbsd*)
18200 version_type=sunos
18201 need_lib_prefix=no
18202 need_version=no
18203 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18206 dynamic_linker='NetBSD (a.out) ld.so'
18207 else
18208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18209 soname_spec='${libname}${release}${shared_ext}$major'
18210 dynamic_linker='NetBSD ld.elf_so'
18211 fi
18212 shlibpath_var=LD_LIBRARY_PATH
18213 shlibpath_overrides_runpath=yes
18214 hardcode_into_libs=yes
18215 ;;
18216
18217newsos6)
18218 version_type=linux
18219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18220 shlibpath_var=LD_LIBRARY_PATH
18221 shlibpath_overrides_runpath=yes
18222 ;;
18223
18224nto-qnx*)
18225 version_type=linux
18226 need_lib_prefix=no
18227 need_version=no
18228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18229 soname_spec='${libname}${release}${shared_ext}$major'
18230 shlibpath_var=LD_LIBRARY_PATH
18231 shlibpath_overrides_runpath=yes
18232 ;;
18233
18234openbsd*)
18235 version_type=sunos
18236 sys_lib_dlsearch_path_spec="/usr/lib"
18237 need_lib_prefix=no
18238 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18239 case $host_os in
18240 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18241 *) need_version=no ;;
18242 esac
18243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18245 shlibpath_var=LD_LIBRARY_PATH
18246 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18247 case $host_os in
18248 openbsd2.[89] | openbsd2.[89].*)
18249 shlibpath_overrides_runpath=no
18250 ;;
18251 *)
18252 shlibpath_overrides_runpath=yes
18253 ;;
18254 esac
18255 else
18256 shlibpath_overrides_runpath=yes
18257 fi
18258 ;;
18259
18260os2*)
18261 libname_spec='$name'
18262 shrext_cmds=".dll"
18263 need_lib_prefix=no
18264 library_names_spec='$libname${shared_ext} $libname.a'
18265 dynamic_linker='OS/2 ld.exe'
18266 shlibpath_var=LIBPATH
18267 ;;
18268
18269osf3* | osf4* | osf5*)
18270 version_type=osf
18271 need_lib_prefix=no
18272 need_version=no
18273 soname_spec='${libname}${release}${shared_ext}$major'
18274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18275 shlibpath_var=LD_LIBRARY_PATH
18276 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18277 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18278 ;;
18279
18280solaris*)
18281 version_type=linux
18282 need_lib_prefix=no
18283 need_version=no
18284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18285 soname_spec='${libname}${release}${shared_ext}$major'
18286 shlibpath_var=LD_LIBRARY_PATH
18287 shlibpath_overrides_runpath=yes
18288 hardcode_into_libs=yes
18289 # ldd complains unless libraries are executable
18290 postinstall_cmds='chmod +x $lib'
18291 ;;
18292
18293sunos4*)
18294 version_type=sunos
18295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18296 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18297 shlibpath_var=LD_LIBRARY_PATH
18298 shlibpath_overrides_runpath=yes
18299 if test "$with_gnu_ld" = yes; then
18300 need_lib_prefix=no
18301 fi
18302 need_version=yes
18303 ;;
18304
18305sysv4 | sysv4.3*)
18306 version_type=linux
18307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18308 soname_spec='${libname}${release}${shared_ext}$major'
18309 shlibpath_var=LD_LIBRARY_PATH
18310 case $host_vendor in
18311 sni)
18312 shlibpath_overrides_runpath=no
18313 need_lib_prefix=no
18314 export_dynamic_flag_spec='${wl}-Blargedynsym'
18315 runpath_var=LD_RUN_PATH
18316 ;;
18317 siemens)
18318 need_lib_prefix=no
18319 ;;
18320 motorola)
18321 need_lib_prefix=no
18322 need_version=no
18323 shlibpath_overrides_runpath=no
18324 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18325 ;;
18326 esac
18327 ;;
18328
18329sysv4*MP*)
18330 if test -d /usr/nec ;then
18331 version_type=linux
18332 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18333 soname_spec='$libname${shared_ext}.$major'
18334 shlibpath_var=LD_LIBRARY_PATH
18335 fi
18336 ;;
18337
18338sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18339 version_type=freebsd-elf
18340 need_lib_prefix=no
18341 need_version=no
18342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18343 soname_spec='${libname}${release}${shared_ext}$major'
18344 shlibpath_var=LD_LIBRARY_PATH
18345 hardcode_into_libs=yes
18346 if test "$with_gnu_ld" = yes; then
18347 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18348 shlibpath_overrides_runpath=no
18349 else
18350 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18351 shlibpath_overrides_runpath=yes
18352 case $host_os in
18353 sco3.2v5*)
18354 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18355 ;;
18356 esac
18357 fi
18358 sys_lib_dlsearch_path_spec='/usr/lib'
18359 ;;
18360
18361uts4*)
18362 version_type=linux
18363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18364 soname_spec='${libname}${release}${shared_ext}$major'
18365 shlibpath_var=LD_LIBRARY_PATH
18366 ;;
18367
18368*)
18369 dynamic_linker=no
18370 ;;
18371esac
dd184caf 18372{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18373echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 18374test "$dynamic_linker" = no && can_build_shared=no
18375
18376variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18377if test "$GCC" = yes; then
18378 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18379fi
18380
dd184caf 18381{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18382echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 18383hardcode_action_GCJ=
18384if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18385 test -n "$runpath_var_GCJ" || \
18386 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18387
18388 # We can hardcode non-existant directories.
18389 if test "$hardcode_direct_GCJ" != no &&
18390 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18391 # have to relink, otherwise we might link with an installed library
18392 # when we should be linking with a yet-to-be-installed one
18393 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18394 test "$hardcode_minus_L_GCJ" != no; then
18395 # Linking always hardcodes the temporary library directory.
18396 hardcode_action_GCJ=relink
18397 else
18398 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18399 hardcode_action_GCJ=immediate
18400 fi
18401else
18402 # We cannot hardcode anything, or else we can only hardcode existing
18403 # directories.
18404 hardcode_action_GCJ=unsupported
18405fi
dd184caf 18406{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18407echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d9898ee8 18408
18409if test "$hardcode_action_GCJ" = relink; then
18410 # Fast installation is not supported
18411 enable_fast_install=no
18412elif test "$shlibpath_overrides_runpath" = yes ||
18413 test "$enable_shared" = no; then
18414 # Fast installation is not necessary
18415 enable_fast_install=needless
18416fi
18417
18418
18419# The else clause should only fire when bootstrapping the
18420# libtool distribution, otherwise you forgot to ship ltmain.sh
18421# with your package, and you will get complaints that there are
18422# no rules to generate ltmain.sh.
18423if test -f "$ltmain"; then
18424 # See if we are running on zsh, and set the options which allow our commands through
18425 # without removal of \ escapes.
18426 if test -n "${ZSH_VERSION+set}" ; then
18427 setopt NO_GLOB_SUBST
18428 fi
18429 # Now quote all the things that may contain metacharacters while being
18430 # careful not to overquote the AC_SUBSTed values. We take copies of the
18431 # variables and quote the copies for generation of the libtool script.
18432 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18433 SED SHELL STRIP \
18434 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18435 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18436 deplibs_check_method reload_flag reload_cmds need_locks \
18437 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18438 lt_cv_sys_global_symbol_to_c_name_address \
18439 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18440 old_postinstall_cmds old_postuninstall_cmds \
18441 compiler_GCJ \
18442 CC_GCJ \
18443 LD_GCJ \
18444 lt_prog_compiler_wl_GCJ \
18445 lt_prog_compiler_pic_GCJ \
18446 lt_prog_compiler_static_GCJ \
18447 lt_prog_compiler_no_builtin_flag_GCJ \
18448 export_dynamic_flag_spec_GCJ \
18449 thread_safe_flag_spec_GCJ \
18450 whole_archive_flag_spec_GCJ \
18451 enable_shared_with_static_runtimes_GCJ \
18452 old_archive_cmds_GCJ \
18453 old_archive_from_new_cmds_GCJ \
18454 predep_objects_GCJ \
18455 postdep_objects_GCJ \
18456 predeps_GCJ \
18457 postdeps_GCJ \
18458 compiler_lib_search_path_GCJ \
18459 archive_cmds_GCJ \
18460 archive_expsym_cmds_GCJ \
18461 postinstall_cmds_GCJ \
18462 postuninstall_cmds_GCJ \
18463 old_archive_from_expsyms_cmds_GCJ \
18464 allow_undefined_flag_GCJ \
18465 no_undefined_flag_GCJ \
18466 export_symbols_cmds_GCJ \
18467 hardcode_libdir_flag_spec_GCJ \
18468 hardcode_libdir_flag_spec_ld_GCJ \
18469 hardcode_libdir_separator_GCJ \
18470 hardcode_automatic_GCJ \
18471 module_cmds_GCJ \
18472 module_expsym_cmds_GCJ \
18473 lt_cv_prog_compiler_c_o_GCJ \
18474 exclude_expsyms_GCJ \
18475 include_expsyms_GCJ; do
18476
18477 case $var in
18478 old_archive_cmds_GCJ | \
18479 old_archive_from_new_cmds_GCJ | \
18480 archive_cmds_GCJ | \
18481 archive_expsym_cmds_GCJ | \
18482 module_cmds_GCJ | \
18483 module_expsym_cmds_GCJ | \
18484 old_archive_from_expsyms_cmds_GCJ | \
18485 export_symbols_cmds_GCJ | \
18486 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18487 postinstall_cmds | postuninstall_cmds | \
18488 old_postinstall_cmds | old_postuninstall_cmds | \
18489 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18490 # Double-quote double-evaled strings.
18491 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18492 ;;
18493 *)
18494 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18495 ;;
18496 esac
18497 done
18498
18499 case $lt_echo in
18500 *'\$0 --fallback-echo"')
18501 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18502 ;;
18503 esac
18504
18505cfgfile="$ofile"
18506
18507 cat <<__EOF__ >> "$cfgfile"
18508# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18509
18510# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18511
18512# Shell to use when invoking shell scripts.
18513SHELL=$lt_SHELL
18514
18515# Whether or not to build shared libraries.
18516build_libtool_libs=$enable_shared
18517
18518# Whether or not to build static libraries.
18519build_old_libs=$enable_static
18520
18521# Whether or not to add -lc for building shared libraries.
18522build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18523
18524# Whether or not to disallow shared libs when runtime libs are static
18525allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18526
18527# Whether or not to optimize for fast installation.
18528fast_install=$enable_fast_install
18529
18530# The host system.
18531host_alias=$host_alias
18532host=$host
18533host_os=$host_os
18534
18535# The build system.
18536build_alias=$build_alias
18537build=$build
18538build_os=$build_os
18539
18540# An echo program that does not interpret backslashes.
18541echo=$lt_echo
18542
18543# The archiver.
18544AR=$lt_AR
18545AR_FLAGS=$lt_AR_FLAGS
18546
18547# A C compiler.
18548LTCC=$lt_LTCC
18549
18550# LTCC compiler flags.
18551LTCFLAGS=$lt_LTCFLAGS
18552
18553# A language-specific compiler.
18554CC=$lt_compiler_GCJ
18555
18556# Is the compiler the GNU C compiler?
18557with_gcc=$GCC_GCJ
18558
d9898ee8 18559# An ERE matcher.
18560EGREP=$lt_EGREP
18561
18562# The linker used to build libraries.
18563LD=$lt_LD_GCJ
18564
18565# Whether we need hard or soft links.
18566LN_S=$lt_LN_S
18567
18568# A BSD-compatible nm program.
18569NM=$lt_NM
18570
18571# A symbol stripping program
18572STRIP=$lt_STRIP
18573
18574# Used to examine libraries when file_magic_cmd begins "file"
18575MAGIC_CMD=$MAGIC_CMD
18576
18577# Used on cygwin: DLL creation program.
18578DLLTOOL="$DLLTOOL"
18579
18580# Used on cygwin: object dumper.
18581OBJDUMP="$OBJDUMP"
18582
18583# Used on cygwin: assembler.
18584AS="$AS"
18585
18586# The name of the directory that contains temporary libtool files.
18587objdir=$objdir
18588
18589# How to create reloadable object files.
18590reload_flag=$lt_reload_flag
18591reload_cmds=$lt_reload_cmds
18592
18593# How to pass a linker flag through the compiler.
18594wl=$lt_lt_prog_compiler_wl_GCJ
18595
18596# Object file suffix (normally "o").
18597objext="$ac_objext"
18598
18599# Old archive suffix (normally "a").
18600libext="$libext"
18601
18602# Shared library suffix (normally ".so").
18603shrext_cmds='$shrext_cmds'
18604
18605# Executable file suffix (normally "").
18606exeext="$exeext"
18607
18608# Additional compiler flags for building library objects.
18609pic_flag=$lt_lt_prog_compiler_pic_GCJ
18610pic_mode=$pic_mode
18611
18612# What is the maximum length of a command?
18613max_cmd_len=$lt_cv_sys_max_cmd_len
18614
18615# Does compiler simultaneously support -c and -o options?
18616compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18617
18618# Must we lock files when doing compilation?
18619need_locks=$lt_need_locks
18620
18621# Do we need the lib prefix for modules?
18622need_lib_prefix=$need_lib_prefix
18623
18624# Do we need a version for libraries?
18625need_version=$need_version
18626
18627# Whether dlopen is supported.
18628dlopen_support=$enable_dlopen
18629
18630# Whether dlopen of programs is supported.
18631dlopen_self=$enable_dlopen_self
18632
18633# Whether dlopen of statically linked programs is supported.
18634dlopen_self_static=$enable_dlopen_self_static
18635
18636# Compiler flag to prevent dynamic linking.
18637link_static_flag=$lt_lt_prog_compiler_static_GCJ
18638
18639# Compiler flag to turn off builtin functions.
18640no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18641
18642# Compiler flag to allow reflexive dlopens.
18643export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18644
18645# Compiler flag to generate shared objects directly from archives.
18646whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18647
18648# Compiler flag to generate thread-safe objects.
18649thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18650
18651# Library versioning type.
18652version_type=$version_type
18653
18654# Format of library name prefix.
18655libname_spec=$lt_libname_spec
18656
18657# List of archive names. First name is the real one, the rest are links.
18658# The last name is the one that the linker finds with -lNAME.
18659library_names_spec=$lt_library_names_spec
18660
18661# The coded name of the library, if different from the real name.
18662soname_spec=$lt_soname_spec
18663
18664# Commands used to build and install an old-style archive.
18665RANLIB=$lt_RANLIB
18666old_archive_cmds=$lt_old_archive_cmds_GCJ
18667old_postinstall_cmds=$lt_old_postinstall_cmds
18668old_postuninstall_cmds=$lt_old_postuninstall_cmds
18669
18670# Create an old-style archive from a shared archive.
18671old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18672
18673# Create a temporary old-style archive to link instead of a shared archive.
18674old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18675
18676# Commands used to build and install a shared archive.
18677archive_cmds=$lt_archive_cmds_GCJ
18678archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18679postinstall_cmds=$lt_postinstall_cmds
18680postuninstall_cmds=$lt_postuninstall_cmds
18681
18682# Commands used to build a loadable module (assumed same as above if empty)
18683module_cmds=$lt_module_cmds_GCJ
18684module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18685
18686# Commands to strip libraries.
18687old_striplib=$lt_old_striplib
18688striplib=$lt_striplib
18689
18690# Dependencies to place before the objects being linked to create a
18691# shared library.
dd184caf 18692predep_objects=$lt_predep_objects_GCJ
d9898ee8 18693
18694# Dependencies to place after the objects being linked to create a
18695# shared library.
dd184caf 18696postdep_objects=$lt_postdep_objects_GCJ
d9898ee8 18697
18698# Dependencies to place before the objects being linked to create a
18699# shared library.
18700predeps=$lt_predeps_GCJ
18701
18702# Dependencies to place after the objects being linked to create a
18703# shared library.
18704postdeps=$lt_postdeps_GCJ
18705
18706# The library search path used internally by the compiler when linking
18707# a shared library.
dd184caf 18708compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
d9898ee8 18709
18710# Method to check whether dependent libraries are shared objects.
18711deplibs_check_method=$lt_deplibs_check_method
18712
18713# Command to use when deplibs_check_method == file_magic.
18714file_magic_cmd=$lt_file_magic_cmd
18715
18716# Flag that allows shared libraries with undefined symbols to be built.
18717allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18718
18719# Flag that forces no undefined symbols.
18720no_undefined_flag=$lt_no_undefined_flag_GCJ
18721
18722# Commands used to finish a libtool library installation in a directory.
18723finish_cmds=$lt_finish_cmds
18724
18725# Same as above, but a single script fragment to be evaled but not shown.
18726finish_eval=$lt_finish_eval
18727
18728# Take the output of nm and produce a listing of raw symbols and C names.
18729global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18730
18731# Transform the output of nm in a proper C declaration
18732global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18733
18734# Transform the output of nm in a C name address pair
18735global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18736
18737# This is the shared library runtime path variable.
18738runpath_var=$runpath_var
18739
18740# This is the shared library path variable.
18741shlibpath_var=$shlibpath_var
18742
18743# Is shlibpath searched before the hard-coded library search path?
18744shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18745
18746# How to hardcode a shared library path into an executable.
18747hardcode_action=$hardcode_action_GCJ
18748
18749# Whether we should hardcode library paths into libraries.
18750hardcode_into_libs=$hardcode_into_libs
18751
18752# Flag to hardcode \$libdir into a binary during linking.
18753# This must work even if \$libdir does not exist.
18754hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18755
18756# If ld is used when linking, flag to hardcode \$libdir into
18757# a binary during linking. This must work even if \$libdir does
18758# not exist.
18759hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18760
18761# Whether we need a single -rpath flag with a separated argument.
18762hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18763
18764# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18765# resulting binary.
18766hardcode_direct=$hardcode_direct_GCJ
18767
18768# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18769# resulting binary.
18770hardcode_minus_L=$hardcode_minus_L_GCJ
18771
18772# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18773# the resulting binary.
18774hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18775
18776# Set to yes if building a shared library automatically hardcodes DIR into the library
18777# and all subsequent libraries and executables linked against it.
18778hardcode_automatic=$hardcode_automatic_GCJ
18779
18780# Variables whose values should be saved in libtool wrapper scripts and
18781# restored at relink time.
18782variables_saved_for_relink="$variables_saved_for_relink"
18783
18784# Whether libtool must link a program against all its dependency libraries.
18785link_all_deplibs=$link_all_deplibs_GCJ
18786
18787# Compile-time system search path for libraries
dd184caf 18788sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 18789
18790# Run-time system search path for libraries
18791sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18792
18793# Fix the shell variable \$srcfile for the compiler.
18794fix_srcfile_path="$fix_srcfile_path_GCJ"
18795
18796# Set to yes if exported symbols are required.
18797always_export_symbols=$always_export_symbols_GCJ
18798
18799# The commands to list exported symbols.
18800export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18801
18802# The commands to extract the exported symbol list from a shared archive.
18803extract_expsyms_cmds=$lt_extract_expsyms_cmds
18804
18805# Symbols that should not be listed in the preloaded symbols.
18806exclude_expsyms=$lt_exclude_expsyms_GCJ
18807
18808# Symbols that must always be exported.
18809include_expsyms=$lt_include_expsyms_GCJ
18810
18811# ### END LIBTOOL TAG CONFIG: $tagname
18812
18813__EOF__
18814
18815
18816else
18817 # If there is no Makefile yet, we rely on a make rule to execute
18818 # `config.status --recheck' to rerun these tests and create the
18819 # libtool script then.
18820 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18821 if test -f "$ltmain_in"; then
18822 test -f Makefile && make "$ltmain"
18823 fi
18824fi
18825
18826
18827ac_ext=c
18828ac_cpp='$CPP $CPPFLAGS'
18829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18831ac_compiler_gnu=$ac_cv_c_compiler_gnu
18832
18833CC="$lt_save_CC"
18834
18835 else
18836 tagname=""
18837 fi
18838 ;;
18839
18840 RC)
18841
18842
d9898ee8 18843# Source file extension for RC test sources.
18844ac_ext=rc
18845
18846# Object file extension for compiled RC test sources.
18847objext=o
18848objext_RC=$objext
18849
18850# Code to be used in simple compile tests
18851lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18852
18853# Code to be used in simple link tests
18854lt_simple_link_test_code="$lt_simple_compile_test_code"
18855
18856# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18857
18858# If no C compiler was specified, use CC.
18859LTCC=${LTCC-"$CC"}
18860
18861# If no C compiler flags were specified, use CFLAGS.
18862LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18863
18864# Allow CC to be a program name with arguments.
18865compiler=$CC
18866
18867
18868# save warnings/boilerplate of simple test code
18869ac_outfile=conftest.$ac_objext
18870printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18871eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18872_lt_compiler_boilerplate=`cat conftest.err`
18873$rm conftest*
18874
18875ac_outfile=conftest.$ac_objext
18876printf "$lt_simple_link_test_code" >conftest.$ac_ext
18877eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18878_lt_linker_boilerplate=`cat conftest.err`
18879$rm conftest*
18880
18881
18882# Allow CC to be a program name with arguments.
18883lt_save_CC="$CC"
18884CC=${RC-"windres"}
18885compiler=$CC
18886compiler_RC=$CC
18887for cc_temp in $compiler""; do
18888 case $cc_temp in
18889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18891 \-*) ;;
18892 *) break;;
18893 esac
18894done
18895cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18896
18897lt_cv_prog_compiler_c_o_RC=yes
18898
18899# The else clause should only fire when bootstrapping the
18900# libtool distribution, otherwise you forgot to ship ltmain.sh
18901# with your package, and you will get complaints that there are
18902# no rules to generate ltmain.sh.
18903if test -f "$ltmain"; then
18904 # See if we are running on zsh, and set the options which allow our commands through
18905 # without removal of \ escapes.
18906 if test -n "${ZSH_VERSION+set}" ; then
18907 setopt NO_GLOB_SUBST
18908 fi
18909 # Now quote all the things that may contain metacharacters while being
18910 # careful not to overquote the AC_SUBSTed values. We take copies of the
18911 # variables and quote the copies for generation of the libtool script.
18912 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18913 SED SHELL STRIP \
18914 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18915 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18916 deplibs_check_method reload_flag reload_cmds need_locks \
18917 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18918 lt_cv_sys_global_symbol_to_c_name_address \
18919 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18920 old_postinstall_cmds old_postuninstall_cmds \
18921 compiler_RC \
18922 CC_RC \
18923 LD_RC \
18924 lt_prog_compiler_wl_RC \
18925 lt_prog_compiler_pic_RC \
18926 lt_prog_compiler_static_RC \
18927 lt_prog_compiler_no_builtin_flag_RC \
18928 export_dynamic_flag_spec_RC \
18929 thread_safe_flag_spec_RC \
18930 whole_archive_flag_spec_RC \
18931 enable_shared_with_static_runtimes_RC \
18932 old_archive_cmds_RC \
18933 old_archive_from_new_cmds_RC \
18934 predep_objects_RC \
18935 postdep_objects_RC \
18936 predeps_RC \
18937 postdeps_RC \
18938 compiler_lib_search_path_RC \
18939 archive_cmds_RC \
18940 archive_expsym_cmds_RC \
18941 postinstall_cmds_RC \
18942 postuninstall_cmds_RC \
18943 old_archive_from_expsyms_cmds_RC \
18944 allow_undefined_flag_RC \
18945 no_undefined_flag_RC \
18946 export_symbols_cmds_RC \
18947 hardcode_libdir_flag_spec_RC \
18948 hardcode_libdir_flag_spec_ld_RC \
18949 hardcode_libdir_separator_RC \
18950 hardcode_automatic_RC \
18951 module_cmds_RC \
18952 module_expsym_cmds_RC \
18953 lt_cv_prog_compiler_c_o_RC \
18954 exclude_expsyms_RC \
18955 include_expsyms_RC; do
18956
18957 case $var in
18958 old_archive_cmds_RC | \
18959 old_archive_from_new_cmds_RC | \
18960 archive_cmds_RC | \
18961 archive_expsym_cmds_RC | \
18962 module_cmds_RC | \
18963 module_expsym_cmds_RC | \
18964 old_archive_from_expsyms_cmds_RC | \
18965 export_symbols_cmds_RC | \
18966 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18967 postinstall_cmds | postuninstall_cmds | \
18968 old_postinstall_cmds | old_postuninstall_cmds | \
18969 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18970 # Double-quote double-evaled strings.
18971 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18972 ;;
18973 *)
18974 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18975 ;;
18976 esac
18977 done
18978
18979 case $lt_echo in
18980 *'\$0 --fallback-echo"')
18981 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18982 ;;
18983 esac
18984
18985cfgfile="$ofile"
18986
18987 cat <<__EOF__ >> "$cfgfile"
18988# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18989
18990# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18991
18992# Shell to use when invoking shell scripts.
18993SHELL=$lt_SHELL
18994
18995# Whether or not to build shared libraries.
18996build_libtool_libs=$enable_shared
18997
18998# Whether or not to build static libraries.
18999build_old_libs=$enable_static
19000
19001# Whether or not to add -lc for building shared libraries.
19002build_libtool_need_lc=$archive_cmds_need_lc_RC
19003
19004# Whether or not to disallow shared libs when runtime libs are static
19005allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19006
19007# Whether or not to optimize for fast installation.
19008fast_install=$enable_fast_install
19009
19010# The host system.
19011host_alias=$host_alias
19012host=$host
19013host_os=$host_os
19014
19015# The build system.
19016build_alias=$build_alias
19017build=$build
19018build_os=$build_os
19019
19020# An echo program that does not interpret backslashes.
19021echo=$lt_echo
19022
19023# The archiver.
19024AR=$lt_AR
19025AR_FLAGS=$lt_AR_FLAGS
19026
19027# A C compiler.
19028LTCC=$lt_LTCC
19029
19030# LTCC compiler flags.
19031LTCFLAGS=$lt_LTCFLAGS
19032
19033# A language-specific compiler.
19034CC=$lt_compiler_RC
19035
19036# Is the compiler the GNU C compiler?
19037with_gcc=$GCC_RC
19038
d9898ee8 19039# An ERE matcher.
19040EGREP=$lt_EGREP
19041
19042# The linker used to build libraries.
19043LD=$lt_LD_RC
19044
19045# Whether we need hard or soft links.
19046LN_S=$lt_LN_S
19047
19048# A BSD-compatible nm program.
19049NM=$lt_NM
19050
19051# A symbol stripping program
19052STRIP=$lt_STRIP
19053
19054# Used to examine libraries when file_magic_cmd begins "file"
19055MAGIC_CMD=$MAGIC_CMD
19056
19057# Used on cygwin: DLL creation program.
19058DLLTOOL="$DLLTOOL"
19059
19060# Used on cygwin: object dumper.
19061OBJDUMP="$OBJDUMP"
19062
19063# Used on cygwin: assembler.
19064AS="$AS"
19065
19066# The name of the directory that contains temporary libtool files.
19067objdir=$objdir
19068
19069# How to create reloadable object files.
19070reload_flag=$lt_reload_flag
19071reload_cmds=$lt_reload_cmds
19072
19073# How to pass a linker flag through the compiler.
19074wl=$lt_lt_prog_compiler_wl_RC
19075
19076# Object file suffix (normally "o").
19077objext="$ac_objext"
19078
19079# Old archive suffix (normally "a").
19080libext="$libext"
19081
19082# Shared library suffix (normally ".so").
19083shrext_cmds='$shrext_cmds'
19084
19085# Executable file suffix (normally "").
19086exeext="$exeext"
19087
19088# Additional compiler flags for building library objects.
19089pic_flag=$lt_lt_prog_compiler_pic_RC
19090pic_mode=$pic_mode
19091
19092# What is the maximum length of a command?
19093max_cmd_len=$lt_cv_sys_max_cmd_len
19094
19095# Does compiler simultaneously support -c and -o options?
19096compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19097
19098# Must we lock files when doing compilation?
19099need_locks=$lt_need_locks
19100
19101# Do we need the lib prefix for modules?
19102need_lib_prefix=$need_lib_prefix
19103
19104# Do we need a version for libraries?
19105need_version=$need_version
19106
19107# Whether dlopen is supported.
19108dlopen_support=$enable_dlopen
19109
19110# Whether dlopen of programs is supported.
19111dlopen_self=$enable_dlopen_self
19112
19113# Whether dlopen of statically linked programs is supported.
19114dlopen_self_static=$enable_dlopen_self_static
19115
19116# Compiler flag to prevent dynamic linking.
19117link_static_flag=$lt_lt_prog_compiler_static_RC
19118
19119# Compiler flag to turn off builtin functions.
19120no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19121
19122# Compiler flag to allow reflexive dlopens.
19123export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19124
19125# Compiler flag to generate shared objects directly from archives.
19126whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19127
19128# Compiler flag to generate thread-safe objects.
19129thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19130
19131# Library versioning type.
19132version_type=$version_type
19133
19134# Format of library name prefix.
19135libname_spec=$lt_libname_spec
19136
19137# List of archive names. First name is the real one, the rest are links.
19138# The last name is the one that the linker finds with -lNAME.
19139library_names_spec=$lt_library_names_spec
19140
19141# The coded name of the library, if different from the real name.
19142soname_spec=$lt_soname_spec
19143
19144# Commands used to build and install an old-style archive.
19145RANLIB=$lt_RANLIB
19146old_archive_cmds=$lt_old_archive_cmds_RC
19147old_postinstall_cmds=$lt_old_postinstall_cmds
19148old_postuninstall_cmds=$lt_old_postuninstall_cmds
19149
19150# Create an old-style archive from a shared archive.
19151old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19152
19153# Create a temporary old-style archive to link instead of a shared archive.
19154old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19155
19156# Commands used to build and install a shared archive.
19157archive_cmds=$lt_archive_cmds_RC
19158archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19159postinstall_cmds=$lt_postinstall_cmds
19160postuninstall_cmds=$lt_postuninstall_cmds
19161
19162# Commands used to build a loadable module (assumed same as above if empty)
19163module_cmds=$lt_module_cmds_RC
19164module_expsym_cmds=$lt_module_expsym_cmds_RC
19165
19166# Commands to strip libraries.
19167old_striplib=$lt_old_striplib
19168striplib=$lt_striplib
19169
19170# Dependencies to place before the objects being linked to create a
19171# shared library.
dd184caf 19172predep_objects=$lt_predep_objects_RC
d9898ee8 19173
19174# Dependencies to place after the objects being linked to create a
19175# shared library.
dd184caf 19176postdep_objects=$lt_postdep_objects_RC
d9898ee8 19177
19178# Dependencies to place before the objects being linked to create a
19179# shared library.
19180predeps=$lt_predeps_RC
19181
19182# Dependencies to place after the objects being linked to create a
19183# shared library.
19184postdeps=$lt_postdeps_RC
19185
19186# The library search path used internally by the compiler when linking
19187# a shared library.
dd184caf 19188compiler_lib_search_path=$lt_compiler_lib_search_path_RC
d9898ee8 19189
19190# Method to check whether dependent libraries are shared objects.
19191deplibs_check_method=$lt_deplibs_check_method
19192
19193# Command to use when deplibs_check_method == file_magic.
19194file_magic_cmd=$lt_file_magic_cmd
19195
19196# Flag that allows shared libraries with undefined symbols to be built.
19197allow_undefined_flag=$lt_allow_undefined_flag_RC
19198
19199# Flag that forces no undefined symbols.
19200no_undefined_flag=$lt_no_undefined_flag_RC
19201
19202# Commands used to finish a libtool library installation in a directory.
19203finish_cmds=$lt_finish_cmds
19204
19205# Same as above, but a single script fragment to be evaled but not shown.
19206finish_eval=$lt_finish_eval
19207
19208# Take the output of nm and produce a listing of raw symbols and C names.
19209global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19210
19211# Transform the output of nm in a proper C declaration
19212global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19213
19214# Transform the output of nm in a C name address pair
19215global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19216
19217# This is the shared library runtime path variable.
19218runpath_var=$runpath_var
19219
19220# This is the shared library path variable.
19221shlibpath_var=$shlibpath_var
19222
19223# Is shlibpath searched before the hard-coded library search path?
19224shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19225
19226# How to hardcode a shared library path into an executable.
19227hardcode_action=$hardcode_action_RC
19228
19229# Whether we should hardcode library paths into libraries.
19230hardcode_into_libs=$hardcode_into_libs
19231
19232# Flag to hardcode \$libdir into a binary during linking.
19233# This must work even if \$libdir does not exist.
19234hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19235
19236# If ld is used when linking, flag to hardcode \$libdir into
19237# a binary during linking. This must work even if \$libdir does
19238# not exist.
19239hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19240
19241# Whether we need a single -rpath flag with a separated argument.
19242hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19243
19244# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19245# resulting binary.
19246hardcode_direct=$hardcode_direct_RC
19247
19248# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19249# resulting binary.
19250hardcode_minus_L=$hardcode_minus_L_RC
19251
19252# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19253# the resulting binary.
19254hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19255
19256# Set to yes if building a shared library automatically hardcodes DIR into the library
19257# and all subsequent libraries and executables linked against it.
19258hardcode_automatic=$hardcode_automatic_RC
19259
19260# Variables whose values should be saved in libtool wrapper scripts and
19261# restored at relink time.
19262variables_saved_for_relink="$variables_saved_for_relink"
19263
19264# Whether libtool must link a program against all its dependency libraries.
19265link_all_deplibs=$link_all_deplibs_RC
19266
19267# Compile-time system search path for libraries
dd184caf 19268sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19269
19270# Run-time system search path for libraries
19271sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19272
19273# Fix the shell variable \$srcfile for the compiler.
19274fix_srcfile_path="$fix_srcfile_path_RC"
19275
19276# Set to yes if exported symbols are required.
19277always_export_symbols=$always_export_symbols_RC
19278
19279# The commands to list exported symbols.
19280export_symbols_cmds=$lt_export_symbols_cmds_RC
19281
19282# The commands to extract the exported symbol list from a shared archive.
19283extract_expsyms_cmds=$lt_extract_expsyms_cmds
19284
19285# Symbols that should not be listed in the preloaded symbols.
19286exclude_expsyms=$lt_exclude_expsyms_RC
19287
19288# Symbols that must always be exported.
19289include_expsyms=$lt_include_expsyms_RC
19290
19291# ### END LIBTOOL TAG CONFIG: $tagname
19292
19293__EOF__
19294
19295
19296else
19297 # If there is no Makefile yet, we rely on a make rule to execute
19298 # `config.status --recheck' to rerun these tests and create the
19299 # libtool script then.
19300 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19301 if test -f "$ltmain_in"; then
19302 test -f Makefile && make "$ltmain"
19303 fi
19304fi
19305
19306
19307ac_ext=c
19308ac_cpp='$CPP $CPPFLAGS'
19309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19311ac_compiler_gnu=$ac_cv_c_compiler_gnu
19312
19313CC="$lt_save_CC"
19314
19315 ;;
19316
19317 *)
19318 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19319echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19320 { (exit 1); exit 1; }; }
19321 ;;
19322 esac
19323
19324 # Append the new tag name to the list of available tags.
19325 if test -n "$tagname" ; then
19326 available_tags="$available_tags $tagname"
19327 fi
19328 fi
19329 done
19330 IFS="$lt_save_ifs"
19331
19332 # Now substitute the updated list of available tags.
19333 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19334 mv "${ofile}T" "$ofile"
19335 chmod +x "$ofile"
19336 else
19337 rm -f "${ofile}T"
19338 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19339echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19340 { (exit 1); exit 1; }; }
19341 fi
19342fi
19343
19344
19345
19346# This can be used to rebuild libtool when needed
19347LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19348
19349# Always use our own libtool.
19350LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19351
19352# Prevent multiple expansion
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382for ac_header in errno.h fcntl.h sys/fcntl.h sys/ioctl.h sys/file.h unistd.h sysexits.h
19383do
19384as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 19385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19388if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19390fi
dd184caf 19391ac_res=`eval echo '${'$as_ac_Header'}'`
19392 { echo "$as_me:$LINENO: result: $ac_res" >&5
19393echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19394else
19395 # Is the header compilable?
dd184caf 19396{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19397echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 19398cat >conftest.$ac_ext <<_ACEOF
19399/* confdefs.h. */
19400_ACEOF
19401cat confdefs.h >>conftest.$ac_ext
19402cat >>conftest.$ac_ext <<_ACEOF
19403/* end confdefs.h. */
19404$ac_includes_default
19405#include <$ac_header>
19406_ACEOF
19407rm -f conftest.$ac_objext
dd184caf 19408if { (ac_try="$ac_compile"
19409case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19412esac
19413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19415 ac_status=$?
19416 grep -v '^ *+' conftest.er1 >conftest.err
19417 rm -f conftest.er1
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19420 (exit $ac_status); } && {
19421 test -z "$ac_c_werror_flag" ||
19422 test ! -s conftest.err
19423 } && test -s conftest.$ac_objext; then
d9898ee8 19424 ac_header_compiler=yes
19425else
19426 echo "$as_me: failed program was:" >&5
19427sed 's/^/| /' conftest.$ac_ext >&5
19428
dd184caf 19429 ac_header_compiler=no
d9898ee8 19430fi
dd184caf 19431
19432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19433{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19434echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 19435
19436# Is the header present?
dd184caf 19437{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19438echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 19439cat >conftest.$ac_ext <<_ACEOF
19440/* confdefs.h. */
19441_ACEOF
19442cat confdefs.h >>conftest.$ac_ext
19443cat >>conftest.$ac_ext <<_ACEOF
19444/* end confdefs.h. */
19445#include <$ac_header>
19446_ACEOF
dd184caf 19447if { (ac_try="$ac_cpp conftest.$ac_ext"
19448case "(($ac_try" in
19449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450 *) ac_try_echo=$ac_try;;
19451esac
19452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 19454 ac_status=$?
19455 grep -v '^ *+' conftest.er1 >conftest.err
19456 rm -f conftest.er1
19457 cat conftest.err >&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19459 (exit $ac_status); } >/dev/null && {
19460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19461 test ! -s conftest.err
19462 }; then
d9898ee8 19463 ac_header_preproc=yes
19464else
19465 echo "$as_me: failed program was:" >&5
19466sed 's/^/| /' conftest.$ac_ext >&5
19467
19468 ac_header_preproc=no
19469fi
dd184caf 19470
d9898ee8 19471rm -f conftest.err conftest.$ac_ext
dd184caf 19472{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19473echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 19474
19475# So? What about this header?
19476case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19477 yes:no: )
19478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19479echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19481echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19482 ac_header_preproc=yes
19483 ;;
19484 no:yes:* )
19485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19486echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19488echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19490echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19492echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19494echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19496echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dd184caf 19497 ( cat <<\_ASBOX
d9898ee8 19498## -------------------------------------------------- ##
19499## Report this to courier-users@lists.sourceforge.net ##
19500## -------------------------------------------------- ##
19501_ASBOX
dd184caf 19502 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 19503 ;;
19504esac
dd184caf 19505{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19509else
19510 eval "$as_ac_Header=\$ac_header_preproc"
19511fi
dd184caf 19512ac_res=`eval echo '${'$as_ac_Header'}'`
19513 { echo "$as_me:$LINENO: result: $ac_res" >&5
19514echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19515
19516fi
19517if test `eval echo '${'$as_ac_Header'}'` = yes; then
19518 cat >>confdefs.h <<_ACEOF
19519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19520_ACEOF
19521
19522fi
19523
19524done
19525
dd184caf 19526{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19527echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 19528if test "${ac_cv_header_stdc+set}" = set; then
19529 echo $ECHO_N "(cached) $ECHO_C" >&6
19530else
19531 cat >conftest.$ac_ext <<_ACEOF
19532/* confdefs.h. */
19533_ACEOF
19534cat confdefs.h >>conftest.$ac_ext
19535cat >>conftest.$ac_ext <<_ACEOF
19536/* end confdefs.h. */
19537#include <stdlib.h>
19538#include <stdarg.h>
19539#include <string.h>
19540#include <float.h>
19541
19542int
19543main ()
19544{
19545
19546 ;
19547 return 0;
19548}
19549_ACEOF
19550rm -f conftest.$ac_objext
dd184caf 19551if { (ac_try="$ac_compile"
19552case "(($ac_try" in
19553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554 *) ac_try_echo=$ac_try;;
19555esac
19556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19558 ac_status=$?
19559 grep -v '^ *+' conftest.er1 >conftest.err
19560 rm -f conftest.er1
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19563 (exit $ac_status); } && {
19564 test -z "$ac_c_werror_flag" ||
19565 test ! -s conftest.err
19566 } && test -s conftest.$ac_objext; then
d9898ee8 19567 ac_cv_header_stdc=yes
19568else
19569 echo "$as_me: failed program was:" >&5
19570sed 's/^/| /' conftest.$ac_ext >&5
19571
dd184caf 19572 ac_cv_header_stdc=no
d9898ee8 19573fi
dd184caf 19574
19575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19576
19577if test $ac_cv_header_stdc = yes; then
19578 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19579 cat >conftest.$ac_ext <<_ACEOF
19580/* confdefs.h. */
19581_ACEOF
19582cat confdefs.h >>conftest.$ac_ext
19583cat >>conftest.$ac_ext <<_ACEOF
19584/* end confdefs.h. */
19585#include <string.h>
19586
19587_ACEOF
19588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19589 $EGREP "memchr" >/dev/null 2>&1; then
19590 :
19591else
19592 ac_cv_header_stdc=no
19593fi
19594rm -f conftest*
19595
19596fi
19597
19598if test $ac_cv_header_stdc = yes; then
19599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19600 cat >conftest.$ac_ext <<_ACEOF
19601/* confdefs.h. */
19602_ACEOF
19603cat confdefs.h >>conftest.$ac_ext
19604cat >>conftest.$ac_ext <<_ACEOF
19605/* end confdefs.h. */
19606#include <stdlib.h>
19607
19608_ACEOF
19609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19610 $EGREP "free" >/dev/null 2>&1; then
19611 :
19612else
19613 ac_cv_header_stdc=no
19614fi
19615rm -f conftest*
19616
19617fi
19618
19619if test $ac_cv_header_stdc = yes; then
19620 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19621 if test "$cross_compiling" = yes; then
19622 :
19623else
19624 cat >conftest.$ac_ext <<_ACEOF
19625/* confdefs.h. */
19626_ACEOF
19627cat confdefs.h >>conftest.$ac_ext
19628cat >>conftest.$ac_ext <<_ACEOF
19629/* end confdefs.h. */
19630#include <ctype.h>
dd184caf 19631#include <stdlib.h>
d9898ee8 19632#if ((' ' & 0x0FF) == 0x020)
19633# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19634# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19635#else
19636# define ISLOWER(c) \
19637 (('a' <= (c) && (c) <= 'i') \
19638 || ('j' <= (c) && (c) <= 'r') \
19639 || ('s' <= (c) && (c) <= 'z'))
19640# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19641#endif
19642
19643#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19644int
19645main ()
19646{
19647 int i;
19648 for (i = 0; i < 256; i++)
19649 if (XOR (islower (i), ISLOWER (i))
19650 || toupper (i) != TOUPPER (i))
dd184caf 19651 return 2;
19652 return 0;
d9898ee8 19653}
19654_ACEOF
19655rm -f conftest$ac_exeext
dd184caf 19656if { (ac_try="$ac_link"
19657case "(($ac_try" in
19658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659 *) ac_try_echo=$ac_try;;
19660esac
19661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19662 (eval "$ac_link") 2>&5
d9898ee8 19663 ac_status=$?
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 19666 { (case "(($ac_try" in
19667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19668 *) ac_try_echo=$ac_try;;
19669esac
19670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19671 (eval "$ac_try") 2>&5
d9898ee8 19672 ac_status=$?
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; }; then
19675 :
19676else
19677 echo "$as_me: program exited with status $ac_status" >&5
19678echo "$as_me: failed program was:" >&5
19679sed 's/^/| /' conftest.$ac_ext >&5
19680
19681( exit $ac_status )
19682ac_cv_header_stdc=no
19683fi
dd184caf 19684rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 19685fi
dd184caf 19686
19687
d9898ee8 19688fi
19689fi
dd184caf 19690{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19691echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 19692if test $ac_cv_header_stdc = yes; then
19693
19694cat >>confdefs.h <<\_ACEOF
19695#define STDC_HEADERS 1
19696_ACEOF
19697
19698fi
19699
dd184caf 19700{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19701echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
d9898ee8 19702if test "${ac_cv_header_sys_wait_h+set}" = set; then
19703 echo $ECHO_N "(cached) $ECHO_C" >&6
19704else
19705 cat >conftest.$ac_ext <<_ACEOF
19706/* confdefs.h. */
19707_ACEOF
19708cat confdefs.h >>conftest.$ac_ext
19709cat >>conftest.$ac_ext <<_ACEOF
19710/* end confdefs.h. */
19711#include <sys/types.h>
19712#include <sys/wait.h>
19713#ifndef WEXITSTATUS
dd184caf 19714# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
d9898ee8 19715#endif
19716#ifndef WIFEXITED
19717# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19718#endif
19719
19720int
19721main ()
19722{
19723 int s;
19724 wait (&s);
19725 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19726 ;
19727 return 0;
19728}
19729_ACEOF
19730rm -f conftest.$ac_objext
dd184caf 19731if { (ac_try="$ac_compile"
19732case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19735esac
19736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19738 ac_status=$?
19739 grep -v '^ *+' conftest.er1 >conftest.err
19740 rm -f conftest.er1
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19743 (exit $ac_status); } && {
19744 test -z "$ac_c_werror_flag" ||
19745 test ! -s conftest.err
19746 } && test -s conftest.$ac_objext; then
d9898ee8 19747 ac_cv_header_sys_wait_h=yes
19748else
19749 echo "$as_me: failed program was:" >&5
19750sed 's/^/| /' conftest.$ac_ext >&5
19751
dd184caf 19752 ac_cv_header_sys_wait_h=no
d9898ee8 19753fi
dd184caf 19754
19755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19756fi
dd184caf 19757{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19758echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
d9898ee8 19759if test $ac_cv_header_sys_wait_h = yes; then
19760
19761cat >>confdefs.h <<\_ACEOF
19762#define HAVE_SYS_WAIT_H 1
19763_ACEOF
19764
19765fi
19766
19767
19768
dd184caf 19769{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19770echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
d9898ee8 19771if test "${ac_cv_c_const+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19773else
19774 cat >conftest.$ac_ext <<_ACEOF
19775/* confdefs.h. */
19776_ACEOF
19777cat confdefs.h >>conftest.$ac_ext
19778cat >>conftest.$ac_ext <<_ACEOF
19779/* end confdefs.h. */
19780
19781int
19782main ()
19783{
19784/* FIXME: Include the comments suggested by Paul. */
19785#ifndef __cplusplus
19786 /* Ultrix mips cc rejects this. */
19787 typedef int charset[2];
dd184caf 19788 const charset cs;
d9898ee8 19789 /* SunOS 4.1.1 cc rejects this. */
dd184caf 19790 char const *const *pcpcc;
19791 char **ppc;
d9898ee8 19792 /* NEC SVR4.0.2 mips cc rejects this. */
19793 struct point {int x, y;};
19794 static struct point const zero = {0,0};
19795 /* AIX XL C 1.02.0.0 rejects this.
19796 It does not let you subtract one const X* pointer from another in
19797 an arm of an if-expression whose if-part is not a constant
19798 expression */
19799 const char *g = "string";
dd184caf 19800 pcpcc = &g + (g ? g-g : 0);
d9898ee8 19801 /* HPUX 7.0 cc rejects these. */
dd184caf 19802 ++pcpcc;
19803 ppc = (char**) pcpcc;
19804 pcpcc = (char const *const *) ppc;
d9898ee8 19805 { /* SCO 3.2v4 cc rejects this. */
19806 char *t;
19807 char const *s = 0 ? (char *) 0 : (char const *) 0;
19808
19809 *t++ = 0;
dd184caf 19810 if (s) return 0;
d9898ee8 19811 }
19812 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19813 int x[] = {25, 17};
19814 const int *foo = &x[0];
19815 ++foo;
19816 }
19817 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19818 typedef const int *iptr;
19819 iptr p = 0;
19820 ++p;
19821 }
19822 { /* AIX XL C 1.02.0.0 rejects this saying
19823 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19824 struct s { int j; const int *ap[3]; };
19825 struct s *b; b->j = 5;
19826 }
19827 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19828 const int foo = 10;
dd184caf 19829 if (!foo) return 0;
d9898ee8 19830 }
dd184caf 19831 return !cs[0] && !zero.x;
d9898ee8 19832#endif
19833
19834 ;
19835 return 0;
19836}
19837_ACEOF
19838rm -f conftest.$ac_objext
dd184caf 19839if { (ac_try="$ac_compile"
19840case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19843esac
19844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19846 ac_status=$?
19847 grep -v '^ *+' conftest.er1 >conftest.err
19848 rm -f conftest.er1
19849 cat conftest.err >&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19851 (exit $ac_status); } && {
19852 test -z "$ac_c_werror_flag" ||
19853 test ! -s conftest.err
19854 } && test -s conftest.$ac_objext; then
d9898ee8 19855 ac_cv_c_const=yes
19856else
19857 echo "$as_me: failed program was:" >&5
19858sed 's/^/| /' conftest.$ac_ext >&5
19859
dd184caf 19860 ac_cv_c_const=no
d9898ee8 19861fi
dd184caf 19862
19863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19864fi
dd184caf 19865{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19866echo "${ECHO_T}$ac_cv_c_const" >&6; }
d9898ee8 19867if test $ac_cv_c_const = no; then
19868
19869cat >>confdefs.h <<\_ACEOF
19870#define const
19871_ACEOF
19872
19873fi
19874
dd184caf 19875{ echo "$as_me:$LINENO: checking for off_t" >&5
19876echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
d9898ee8 19877if test "${ac_cv_type_off_t+set}" = set; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
19879else
19880 cat >conftest.$ac_ext <<_ACEOF
19881/* confdefs.h. */
19882_ACEOF
19883cat confdefs.h >>conftest.$ac_ext
19884cat >>conftest.$ac_ext <<_ACEOF
19885/* end confdefs.h. */
19886$ac_includes_default
dd184caf 19887typedef off_t ac__type_new_;
d9898ee8 19888int
19889main ()
19890{
dd184caf 19891if ((ac__type_new_ *) 0)
d9898ee8 19892 return 0;
dd184caf 19893if (sizeof (ac__type_new_))
d9898ee8 19894 return 0;
19895 ;
19896 return 0;
19897}
19898_ACEOF
19899rm -f conftest.$ac_objext
dd184caf 19900if { (ac_try="$ac_compile"
19901case "(($ac_try" in
19902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19903 *) ac_try_echo=$ac_try;;
19904esac
19905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19907 ac_status=$?
19908 grep -v '^ *+' conftest.er1 >conftest.err
19909 rm -f conftest.er1
19910 cat conftest.err >&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19912 (exit $ac_status); } && {
19913 test -z "$ac_c_werror_flag" ||
19914 test ! -s conftest.err
19915 } && test -s conftest.$ac_objext; then
d9898ee8 19916 ac_cv_type_off_t=yes
19917else
19918 echo "$as_me: failed program was:" >&5
19919sed 's/^/| /' conftest.$ac_ext >&5
19920
dd184caf 19921 ac_cv_type_off_t=no
d9898ee8 19922fi
dd184caf 19923
19924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19925fi
dd184caf 19926{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19927echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
d9898ee8 19928if test $ac_cv_type_off_t = yes; then
19929 :
19930else
19931
19932cat >>confdefs.h <<_ACEOF
dd184caf 19933#define off_t long int
d9898ee8 19934_ACEOF
19935
19936fi
19937
dd184caf 19938{ echo "$as_me:$LINENO: checking for pid_t" >&5
19939echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
d9898ee8 19940if test "${ac_cv_type_pid_t+set}" = set; then
19941 echo $ECHO_N "(cached) $ECHO_C" >&6
19942else
19943 cat >conftest.$ac_ext <<_ACEOF
19944/* confdefs.h. */
19945_ACEOF
19946cat confdefs.h >>conftest.$ac_ext
19947cat >>conftest.$ac_ext <<_ACEOF
19948/* end confdefs.h. */
19949$ac_includes_default
dd184caf 19950typedef pid_t ac__type_new_;
d9898ee8 19951int
19952main ()
19953{
dd184caf 19954if ((ac__type_new_ *) 0)
d9898ee8 19955 return 0;
dd184caf 19956if (sizeof (ac__type_new_))
d9898ee8 19957 return 0;
19958 ;
19959 return 0;
19960}
19961_ACEOF
19962rm -f conftest.$ac_objext
dd184caf 19963if { (ac_try="$ac_compile"
19964case "(($ac_try" in
19965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19966 *) ac_try_echo=$ac_try;;
19967esac
19968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19970 ac_status=$?
19971 grep -v '^ *+' conftest.er1 >conftest.err
19972 rm -f conftest.er1
19973 cat conftest.err >&5
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19975 (exit $ac_status); } && {
19976 test -z "$ac_c_werror_flag" ||
19977 test ! -s conftest.err
19978 } && test -s conftest.$ac_objext; then
d9898ee8 19979 ac_cv_type_pid_t=yes
19980else
19981 echo "$as_me: failed program was:" >&5
19982sed 's/^/| /' conftest.$ac_ext >&5
19983
dd184caf 19984 ac_cv_type_pid_t=no
d9898ee8 19985fi
dd184caf 19986
19987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19988fi
dd184caf 19989{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19990echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
d9898ee8 19991if test $ac_cv_type_pid_t = yes; then
19992 :
19993else
19994
19995cat >>confdefs.h <<_ACEOF
19996#define pid_t int
19997_ACEOF
19998
19999fi
20000
dd184caf 20001{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20002echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
d9898ee8 20003if test "${ac_cv_type_signal+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20005else
20006 cat >conftest.$ac_ext <<_ACEOF
20007/* confdefs.h. */
20008_ACEOF
20009cat confdefs.h >>conftest.$ac_ext
20010cat >>conftest.$ac_ext <<_ACEOF
20011/* end confdefs.h. */
20012#include <sys/types.h>
20013#include <signal.h>
d9898ee8 20014
20015int
20016main ()
20017{
dd184caf 20018return *(signal (0, 0)) (0) == 1;
d9898ee8 20019 ;
20020 return 0;
20021}
20022_ACEOF
20023rm -f conftest.$ac_objext
dd184caf 20024if { (ac_try="$ac_compile"
20025case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20028esac
20029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20031 ac_status=$?
20032 grep -v '^ *+' conftest.er1 >conftest.err
20033 rm -f conftest.er1
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20036 (exit $ac_status); } && {
20037 test -z "$ac_c_werror_flag" ||
20038 test ! -s conftest.err
20039 } && test -s conftest.$ac_objext; then
20040 ac_cv_type_signal=int
d9898ee8 20041else
20042 echo "$as_me: failed program was:" >&5
20043sed 's/^/| /' conftest.$ac_ext >&5
20044
dd184caf 20045 ac_cv_type_signal=void
d9898ee8 20046fi
dd184caf 20047
20048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20049fi
dd184caf 20050{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20051echo "${ECHO_T}$ac_cv_type_signal" >&6; }
d9898ee8 20052
20053cat >>confdefs.h <<_ACEOF
20054#define RETSIGTYPE $ac_cv_type_signal
20055_ACEOF
20056
20057
20058
dd184caf 20059{ echo "$as_me:$LINENO: checking for off64_t" >&5
20060echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; }
d9898ee8 20061if test "${liblock_cv_hasoff64t+set}" = set; then
20062 echo $ECHO_N "(cached) $ECHO_C" >&6
20063else
20064 liblock_cv_hasoff64t="no"
20065cat >conftest.$ac_ext <<_ACEOF
20066/* confdefs.h. */
20067_ACEOF
20068cat confdefs.h >>conftest.$ac_ext
20069cat >>conftest.$ac_ext <<_ACEOF
20070/* end confdefs.h. */
20071
20072#include <sys/types.h>
20073
20074int
20075main ()
20076{
20077
20078off64_t n;
20079
20080 n=0;
20081
20082 ;
20083 return 0;
20084}
20085_ACEOF
20086rm -f conftest.$ac_objext
dd184caf 20087if { (ac_try="$ac_compile"
20088case "(($ac_try" in
20089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090 *) ac_try_echo=$ac_try;;
20091esac
20092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20094 ac_status=$?
20095 grep -v '^ *+' conftest.er1 >conftest.err
20096 rm -f conftest.er1
20097 cat conftest.err >&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20099 (exit $ac_status); } && {
20100 test -z "$ac_c_werror_flag" ||
20101 test ! -s conftest.err
20102 } && test -s conftest.$ac_objext; then
d9898ee8 20103 liblock_cv_hasoff64t="yes"
20104else
20105 echo "$as_me: failed program was:" >&5
20106sed 's/^/| /' conftest.$ac_ext >&5
20107
dd184caf 20108
d9898ee8 20109fi
dd184caf 20110
20111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20112
20113
20114fi
dd184caf 20115{ echo "$as_me:$LINENO: result: $liblock_cv_hasoff64t" >&5
20116echo "${ECHO_T}$liblock_cv_hasoff64t" >&6; }
d9898ee8 20117
20118if test "$liblock_cv_hasoff64t" = "yes"
20119then
20120 LL_OFFSET_TYPE=off64_t
20121else
20122 LL_OFFSET_TYPE=off_t
20123fi
20124
20125cat >>confdefs.h <<_ACEOF
20126#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20127_ACEOF
20128
20129
dd184caf 20130{ echo "$as_me:$LINENO: checking for flock_t" >&5
20131echo $ECHO_N "checking for flock_t... $ECHO_C" >&6; }
d9898ee8 20132if test "${liblock_cv_hasflock_t+set}" = set; then
20133 echo $ECHO_N "(cached) $ECHO_C" >&6
20134else
20135 liblock_cv_hasflock_t="no"
20136cat >conftest.$ac_ext <<_ACEOF
20137/* confdefs.h. */
20138_ACEOF
20139cat confdefs.h >>conftest.$ac_ext
20140cat >>conftest.$ac_ext <<_ACEOF
20141/* end confdefs.h. */
20142
20143#if HAVE_CONFIG_H
20144#include "config.h"
20145#endif
20146#include <sys/types.h>
20147#if HAVE_FCNTL_H
20148#include <fcntl.h>
20149#endif
20150#if HAVE_SYS_FCNTL_H
20151#include <sys/fcntl.h>
20152#endif
20153
20154int
20155main ()
20156{
20157
20158flock_t t;
20159
20160 ;
20161 return 0;
20162}
20163_ACEOF
20164rm -f conftest.$ac_objext
dd184caf 20165if { (ac_try="$ac_compile"
20166case "(($ac_try" in
20167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168 *) ac_try_echo=$ac_try;;
20169esac
20170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20172 ac_status=$?
20173 grep -v '^ *+' conftest.er1 >conftest.err
20174 rm -f conftest.er1
20175 cat conftest.err >&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20177 (exit $ac_status); } && {
20178 test -z "$ac_c_werror_flag" ||
20179 test ! -s conftest.err
20180 } && test -s conftest.$ac_objext; then
d9898ee8 20181 liblock_cv_hasflock_t="yes"
20182else
20183 echo "$as_me: failed program was:" >&5
20184sed 's/^/| /' conftest.$ac_ext >&5
20185
dd184caf 20186
d9898ee8 20187fi
dd184caf 20188
20189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20190fi
dd184caf 20191{ echo "$as_me:$LINENO: result: $liblock_cv_hasflock_t" >&5
20192echo "${ECHO_T}$liblock_cv_hasflock_t" >&6; }
d9898ee8 20193
20194if test "$liblock_cv_hasflock_t" = "yes"
20195then
20196
20197cat >>confdefs.h <<_ACEOF
20198#define HAS_FLOCK_T 1
20199_ACEOF
20200
20201fi
20202
20203
20204
dd184caf 20205
20206for ac_func in setpgrp sysconf
d9898ee8 20207do
20208as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
dd184caf 20209{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20210echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20211if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 20212 echo $ECHO_N "(cached) $ECHO_C" >&6
20213else
20214 cat >conftest.$ac_ext <<_ACEOF
20215/* confdefs.h. */
20216_ACEOF
20217cat confdefs.h >>conftest.$ac_ext
20218cat >>conftest.$ac_ext <<_ACEOF
20219/* end confdefs.h. */
20220/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20222#define $ac_func innocuous_$ac_func
20223
20224/* System header to define __stub macros and hopefully few prototypes,
20225 which can conflict with char $ac_func (); below.
20226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20227 <limits.h> exists even on freestanding compilers. */
20228
20229#ifdef __STDC__
20230# include <limits.h>
20231#else
20232# include <assert.h>
20233#endif
20234
20235#undef $ac_func
20236
dd184caf 20237/* Override any GCC internal prototype to avoid an error.
20238 Use char because int might match the return type of a GCC
20239 builtin and then its argument prototype would still apply. */
d9898ee8 20240#ifdef __cplusplus
20241extern "C"
d9898ee8 20242#endif
d9898ee8 20243char $ac_func ();
20244/* The GNU C library defines this for functions which it implements
20245 to always fail with ENOSYS. Some functions are actually named
20246 something starting with __ and the normal name is an alias. */
dd184caf 20247#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 20248choke me
d9898ee8 20249#endif
20250
20251int
20252main ()
20253{
dd184caf 20254return $ac_func ();
d9898ee8 20255 ;
20256 return 0;
20257}
20258_ACEOF
20259rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 20260if { (ac_try="$ac_link"
20261case "(($ac_try" in
20262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263 *) ac_try_echo=$ac_try;;
20264esac
20265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266 (eval "$ac_link") 2>conftest.er1
d9898ee8 20267 ac_status=$?
20268 grep -v '^ *+' conftest.er1 >conftest.err
20269 rm -f conftest.er1
20270 cat conftest.err >&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20272 (exit $ac_status); } && {
20273 test -z "$ac_c_werror_flag" ||
20274 test ! -s conftest.err
20275 } && test -s conftest$ac_exeext &&
20276 $as_test_x conftest$ac_exeext; then
d9898ee8 20277 eval "$as_ac_var=yes"
20278else
20279 echo "$as_me: failed program was:" >&5
20280sed 's/^/| /' conftest.$ac_ext >&5
20281
dd184caf 20282 eval "$as_ac_var=no"
d9898ee8 20283fi
dd184caf 20284
20285rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20286 conftest$ac_exeext conftest.$ac_ext
20287fi
dd184caf 20288ac_res=`eval echo '${'$as_ac_var'}'`
20289 { echo "$as_me:$LINENO: result: $ac_res" >&5
20290echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 20291if test `eval echo '${'$as_ac_var'}'` = yes; then
20292 cat >>confdefs.h <<_ACEOF
20293#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20294_ACEOF
20295
20296fi
20297done
20298
dd184caf 20299{ echo "$as_me:$LINENO: checking for setpgrp" >&5
20300echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6; }
d9898ee8 20301if test "${ac_cv_func_setpgrp+set}" = set; then
20302 echo $ECHO_N "(cached) $ECHO_C" >&6
20303else
20304 cat >conftest.$ac_ext <<_ACEOF
20305/* confdefs.h. */
20306_ACEOF
20307cat confdefs.h >>conftest.$ac_ext
20308cat >>conftest.$ac_ext <<_ACEOF
20309/* end confdefs.h. */
20310/* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
20311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20312#define setpgrp innocuous_setpgrp
20313
20314/* System header to define __stub macros and hopefully few prototypes,
20315 which can conflict with char setpgrp (); below.
20316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20317 <limits.h> exists even on freestanding compilers. */
20318
20319#ifdef __STDC__
20320# include <limits.h>
20321#else
20322# include <assert.h>
20323#endif
20324
20325#undef setpgrp
20326
dd184caf 20327/* Override any GCC internal prototype to avoid an error.
20328 Use char because int might match the return type of a GCC
20329 builtin and then its argument prototype would still apply. */
d9898ee8 20330#ifdef __cplusplus
20331extern "C"
d9898ee8 20332#endif
d9898ee8 20333char setpgrp ();
20334/* The GNU C library defines this for functions which it implements
20335 to always fail with ENOSYS. Some functions are actually named
20336 something starting with __ and the normal name is an alias. */
dd184caf 20337#if defined __stub_setpgrp || defined __stub___setpgrp
d9898ee8 20338choke me
d9898ee8 20339#endif
20340
20341int
20342main ()
20343{
dd184caf 20344return setpgrp ();
d9898ee8 20345 ;
20346 return 0;
20347}
20348_ACEOF
20349rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 20350if { (ac_try="$ac_link"
20351case "(($ac_try" in
20352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353 *) ac_try_echo=$ac_try;;
20354esac
20355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356 (eval "$ac_link") 2>conftest.er1
d9898ee8 20357 ac_status=$?
20358 grep -v '^ *+' conftest.er1 >conftest.err
20359 rm -f conftest.er1
20360 cat conftest.err >&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20362 (exit $ac_status); } && {
20363 test -z "$ac_c_werror_flag" ||
20364 test ! -s conftest.err
20365 } && test -s conftest$ac_exeext &&
20366 $as_test_x conftest$ac_exeext; then
d9898ee8 20367 ac_cv_func_setpgrp=yes
20368else
20369 echo "$as_me: failed program was:" >&5
20370sed 's/^/| /' conftest.$ac_ext >&5
20371
dd184caf 20372 ac_cv_func_setpgrp=no
d9898ee8 20373fi
dd184caf 20374
20375rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20376 conftest$ac_exeext conftest.$ac_ext
20377fi
dd184caf 20378{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
20379echo "${ECHO_T}$ac_cv_func_setpgrp" >&6; }
d9898ee8 20380if test $ac_cv_func_setpgrp = yes; then
20381
dd184caf 20382 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20383echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
d9898ee8 20384if test "${ac_cv_func_setpgrp_void+set}" = set; then
20385 echo $ECHO_N "(cached) $ECHO_C" >&6
20386else
20387 if test "$cross_compiling" = yes; then
20388 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20389echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20390 { (exit 1); exit 1; }; }
20391else
20392 cat >conftest.$ac_ext <<_ACEOF
20393/* confdefs.h. */
20394_ACEOF
20395cat confdefs.h >>conftest.$ac_ext
20396cat >>conftest.$ac_ext <<_ACEOF
20397/* end confdefs.h. */
dd184caf 20398$ac_includes_default
d9898ee8 20399int
20400main ()
20401{
20402/* If this system has a BSD-style setpgrp which takes arguments,
20403 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20404 exit successfully. */
dd184caf 20405 return setpgrp (1,1) != -1;
d9898ee8 20406 ;
20407 return 0;
20408}
20409_ACEOF
20410rm -f conftest$ac_exeext
dd184caf 20411if { (ac_try="$ac_link"
20412case "(($ac_try" in
20413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20414 *) ac_try_echo=$ac_try;;
20415esac
20416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20417 (eval "$ac_link") 2>&5
d9898ee8 20418 ac_status=$?
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 20421 { (case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20424esac
20425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_try") 2>&5
d9898ee8 20427 ac_status=$?
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; }; then
20430 ac_cv_func_setpgrp_void=no
20431else
20432 echo "$as_me: program exited with status $ac_status" >&5
20433echo "$as_me: failed program was:" >&5
20434sed 's/^/| /' conftest.$ac_ext >&5
20435
20436( exit $ac_status )
20437ac_cv_func_setpgrp_void=yes
20438fi
dd184caf 20439rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20440fi
dd184caf 20441
20442
d9898ee8 20443fi
dd184caf 20444{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20445echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
d9898ee8 20446if test $ac_cv_func_setpgrp_void = yes; then
20447
20448cat >>confdefs.h <<\_ACEOF
20449#define SETPGRP_VOID 1
20450_ACEOF
20451
20452fi
20453
20454
20455
20456fi
20457
20458
dd184caf 20459{ echo "$as_me:$LINENO: checking for fcntl" >&5
20460echo $ECHO_N "checking for fcntl... $ECHO_C" >&6; }
d9898ee8 20461if test "${liblock_cv_hasfcntl+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20463else
20464 liblock_cv_hasfcntl="no"
20465cat >conftest.$ac_ext <<_ACEOF
20466/* confdefs.h. */
20467_ACEOF
20468cat confdefs.h >>conftest.$ac_ext
20469cat >>conftest.$ac_ext <<_ACEOF
20470/* end confdefs.h. */
20471
20472#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20473#include "${srcdir}/lockfcntl.c"
20474
20475int
20476main ()
20477{
20478
20479int n;
20480
20481 ;
20482 return 0;
20483}
20484_ACEOF
20485rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 20486if { (ac_try="$ac_link"
20487case "(($ac_try" in
20488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20489 *) ac_try_echo=$ac_try;;
20490esac
20491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20492 (eval "$ac_link") 2>conftest.er1
d9898ee8 20493 ac_status=$?
20494 grep -v '^ *+' conftest.er1 >conftest.err
20495 rm -f conftest.er1
20496 cat conftest.err >&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20498 (exit $ac_status); } && {
20499 test -z "$ac_c_werror_flag" ||
20500 test ! -s conftest.err
20501 } && test -s conftest$ac_exeext &&
20502 $as_test_x conftest$ac_exeext; then
d9898ee8 20503 liblock_cv_hasfcntl="yes"
20504else
20505 echo "$as_me: failed program was:" >&5
20506sed 's/^/| /' conftest.$ac_ext >&5
20507
dd184caf 20508
d9898ee8 20509fi
dd184caf 20510
20511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20512 conftest$ac_exeext conftest.$ac_ext
20513fi
dd184caf 20514{ echo "$as_me:$LINENO: result: $liblock_cv_hasfcntl" >&5
20515echo "${ECHO_T}$liblock_cv_hasfcntl" >&6; }
d9898ee8 20516if test "$liblock_cv_hasfcntl" = "yes"
20517then
20518
20519cat >>confdefs.h <<_ACEOF
20520#define HAS_FCNTL 1
20521_ACEOF
20522
20523fi
20524
dd184caf 20525{ echo "$as_me:$LINENO: checking for flock" >&5
20526echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
d9898ee8 20527if test "${liblock_cv_hasflock+set}" = set; then
20528 echo $ECHO_N "(cached) $ECHO_C" >&6
20529else
20530 liblock_cv_hasflock="no"
20531cat >conftest.$ac_ext <<_ACEOF
20532/* confdefs.h. */
20533_ACEOF
20534cat confdefs.h >>conftest.$ac_ext
20535cat >>conftest.$ac_ext <<_ACEOF
20536/* end confdefs.h. */
20537
20538#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20539#include "${srcdir}/lockflock.c"
20540
20541int
20542main ()
20543{
20544
20545int n;
20546
20547 ;
20548 return 0;
20549}
20550_ACEOF
20551rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 20552if { (ac_try="$ac_link"
20553case "(($ac_try" in
20554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555 *) ac_try_echo=$ac_try;;
20556esac
20557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20558 (eval "$ac_link") 2>conftest.er1
d9898ee8 20559 ac_status=$?
20560 grep -v '^ *+' conftest.er1 >conftest.err
20561 rm -f conftest.er1
20562 cat conftest.err >&5
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20564 (exit $ac_status); } && {
20565 test -z "$ac_c_werror_flag" ||
20566 test ! -s conftest.err
20567 } && test -s conftest$ac_exeext &&
20568 $as_test_x conftest$ac_exeext; then
d9898ee8 20569 liblock_cv_hasflock="yes"
20570else
20571 echo "$as_me: failed program was:" >&5
20572sed 's/^/| /' conftest.$ac_ext >&5
20573
dd184caf 20574
d9898ee8 20575fi
dd184caf 20576
20577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20578 conftest$ac_exeext conftest.$ac_ext
20579fi
dd184caf 20580{ echo "$as_me:$LINENO: result: $liblock_cv_hasflock" >&5
20581echo "${ECHO_T}$liblock_cv_hasflock" >&6; }
d9898ee8 20582if test "$liblock_cv_hasflock" = "yes"
20583then
20584
20585cat >>confdefs.h <<_ACEOF
20586#define HAS_FLOCK 1
20587_ACEOF
20588
20589fi
20590
dd184caf 20591{ echo "$as_me:$LINENO: checking for lockf" >&5
20592echo $ECHO_N "checking for lockf... $ECHO_C" >&6; }
d9898ee8 20593if test "${liblock_cv_haslockf+set}" = set; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20595else
20596 liblock_cv_haslockf="no"
20597cat >conftest.$ac_ext <<_ACEOF
20598/* confdefs.h. */
20599_ACEOF
20600cat confdefs.h >>conftest.$ac_ext
20601cat >>conftest.$ac_ext <<_ACEOF
20602/* end confdefs.h. */
20603
20604#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20605#include "${srcdir}/locklockf.c"
20606
20607int
20608main ()
20609{
20610
20611int n;
20612
20613 ;
20614 return 0;
20615}
20616_ACEOF
20617rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 20618if { (ac_try="$ac_link"
20619case "(($ac_try" in
20620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621 *) ac_try_echo=$ac_try;;
20622esac
20623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624 (eval "$ac_link") 2>conftest.er1
d9898ee8 20625 ac_status=$?
20626 grep -v '^ *+' conftest.er1 >conftest.err
20627 rm -f conftest.er1
20628 cat conftest.err >&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20630 (exit $ac_status); } && {
20631 test -z "$ac_c_werror_flag" ||
20632 test ! -s conftest.err
20633 } && test -s conftest$ac_exeext &&
20634 $as_test_x conftest$ac_exeext; then
d9898ee8 20635 liblock_cv_haslockf="yes"
20636else
20637 echo "$as_me: failed program was:" >&5
20638sed 's/^/| /' conftest.$ac_ext >&5
20639
dd184caf 20640
d9898ee8 20641fi
dd184caf 20642
20643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20644 conftest$ac_exeext conftest.$ac_ext
20645fi
dd184caf 20646{ echo "$as_me:$LINENO: result: $liblock_cv_haslockf" >&5
20647echo "${ECHO_T}$liblock_cv_haslockf" >&6; }
d9898ee8 20648if test "$liblock_cv_haslockf" = "yes"
20649then
20650
20651cat >>confdefs.h <<_ACEOF
20652#define HAS_LOCKF 1
20653_ACEOF
20654
20655fi
20656
dd184caf 20657{ echo "$as_me:$LINENO: checking for locking method" >&5
20658echo $ECHO_N "checking for locking method... $ECHO_C" >&6; }
d9898ee8 20659
dd184caf 20660# Check whether --with-locking-method was given.
d9898ee8 20661if test "${with_locking_method+set}" = set; then
dd184caf 20662 withval=$with_locking_method; lockmethod="$withval"
d9898ee8 20663else
20664 lockmethod=""
dd184caf 20665fi
20666
d9898ee8 20667
20668case x$lockmethod in
20669xfcntl)
20670 if test "$cross_compiling" = yes; then
20671 :
20672
20673else
20674 cat >conftest.$ac_ext <<_ACEOF
20675/* confdefs.h. */
20676_ACEOF
20677cat confdefs.h >>conftest.$ac_ext
20678cat >>conftest.$ac_ext <<_ACEOF
20679/* end confdefs.h. */
20680
20681#define USE_FCNTL 1
20682#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20683#include "${srcdir}/locktest.c"
20684
20685_ACEOF
20686rm -f conftest$ac_exeext
dd184caf 20687if { (ac_try="$ac_link"
20688case "(($ac_try" in
20689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690 *) ac_try_echo=$ac_try;;
20691esac
20692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20693 (eval "$ac_link") 2>&5
d9898ee8 20694 ac_status=$?
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 20697 { (case "(($ac_try" in
20698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699 *) ac_try_echo=$ac_try;;
20700esac
20701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702 (eval "$ac_try") 2>&5
d9898ee8 20703 ac_status=$?
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; }; then
20706 :
20707else
20708 echo "$as_me: program exited with status $ac_status" >&5
20709echo "$as_me: failed program was:" >&5
20710sed 's/^/| /' conftest.$ac_ext >&5
20711
20712( exit $ac_status )
20713{ { echo "$as_me:$LINENO: error: fcntl test failed." >&5
20714echo "$as_me: error: fcntl test failed." >&2;}
20715 { (exit 1); exit 1; }; }
20716fi
dd184caf 20717rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20718fi
dd184caf 20719
20720
d9898ee8 20721 ;;
20722x)
20723 if test "$cross_compiling" = yes; then
20724 { { echo "$as_me:$LINENO: error: --with-locking-method option required" >&5
20725echo "$as_me: error: --with-locking-method option required" >&2;}
20726 { (exit 1); exit 1; }; }
20727else
20728 cat >conftest.$ac_ext <<_ACEOF
20729/* confdefs.h. */
20730_ACEOF
20731cat confdefs.h >>conftest.$ac_ext
20732cat >>conftest.$ac_ext <<_ACEOF
20733/* end confdefs.h. */
20734
20735#define USE_FCNTL 1
20736#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20737#include "${srcdir}/locktest.c"
20738
20739_ACEOF
20740rm -f conftest$ac_exeext
dd184caf 20741if { (ac_try="$ac_link"
20742case "(($ac_try" in
20743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744 *) ac_try_echo=$ac_try;;
20745esac
20746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747 (eval "$ac_link") 2>&5
d9898ee8 20748 ac_status=$?
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 20751 { (case "(($ac_try" in
20752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20753 *) ac_try_echo=$ac_try;;
20754esac
20755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20756 (eval "$ac_try") 2>&5
d9898ee8 20757 ac_status=$?
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; }; then
20760 lockmethod=fcntl
20761else
20762 echo "$as_me: program exited with status $ac_status" >&5
20763echo "$as_me: failed program was:" >&5
20764sed 's/^/| /' conftest.$ac_ext >&5
20765
20766fi
dd184caf 20767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20768fi
dd184caf 20769
20770
d9898ee8 20771 ;;
20772esac
20773
20774case x$lockmethod in
20775xlockf)
20776 if test "$cross_compiling" = yes; then
20777 :
20778
20779else
20780 cat >conftest.$ac_ext <<_ACEOF
20781/* confdefs.h. */
20782_ACEOF
20783cat confdefs.h >>conftest.$ac_ext
20784cat >>conftest.$ac_ext <<_ACEOF
20785/* end confdefs.h. */
20786
20787#define USE_LOCKF 1
20788#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20789#include "${srcdir}/locktest.c"
20790
20791_ACEOF
20792rm -f conftest$ac_exeext
dd184caf 20793if { (ac_try="$ac_link"
20794case "(($ac_try" in
20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796 *) ac_try_echo=$ac_try;;
20797esac
20798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799 (eval "$ac_link") 2>&5
d9898ee8 20800 ac_status=$?
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 20803 { (case "(($ac_try" in
20804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805 *) ac_try_echo=$ac_try;;
20806esac
20807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808 (eval "$ac_try") 2>&5
d9898ee8 20809 ac_status=$?
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); }; }; then
20812 :
20813else
20814 echo "$as_me: program exited with status $ac_status" >&5
20815echo "$as_me: failed program was:" >&5
20816sed 's/^/| /' conftest.$ac_ext >&5
20817
20818( exit $ac_status )
20819{ { echo "$as_me:$LINENO: error: lockf test failed." >&5
20820echo "$as_me: error: lockf test failed." >&2;}
20821 { (exit 1); exit 1; }; }
20822fi
dd184caf 20823rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20824fi
dd184caf 20825
20826
d9898ee8 20827 ;;
20828x)
20829 if test "$cross_compiling" = yes; then
20830 { { echo "$as_me:$LINENO: error: --with-locking-method option required" >&5
20831echo "$as_me: error: --with-locking-method option required" >&2;}
20832 { (exit 1); exit 1; }; }
20833else
20834 cat >conftest.$ac_ext <<_ACEOF
20835/* confdefs.h. */
20836_ACEOF
20837cat confdefs.h >>conftest.$ac_ext
20838cat >>conftest.$ac_ext <<_ACEOF
20839/* end confdefs.h. */
20840
20841#define USE_LOCKF 1
20842#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20843#include "${srcdir}/locktest.c"
20844
20845_ACEOF
20846rm -f conftest$ac_exeext
dd184caf 20847if { (ac_try="$ac_link"
20848case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20851esac
20852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_link") 2>&5
d9898ee8 20854 ac_status=$?
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 20857 { (case "(($ac_try" in
20858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20859 *) ac_try_echo=$ac_try;;
20860esac
20861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20862 (eval "$ac_try") 2>&5
d9898ee8 20863 ac_status=$?
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); }; }; then
20866 lockmethod=lockf
20867else
20868 echo "$as_me: program exited with status $ac_status" >&5
20869echo "$as_me: failed program was:" >&5
20870sed 's/^/| /' conftest.$ac_ext >&5
20871
20872fi
dd184caf 20873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20874fi
dd184caf 20875
20876
d9898ee8 20877 ;;
20878esac
20879
20880
20881case x$lockmethod in
20882xflock)
20883 if test "$cross_compiling" = yes; then
20884 :
20885
20886else
20887 cat >conftest.$ac_ext <<_ACEOF
20888/* confdefs.h. */
20889_ACEOF
20890cat confdefs.h >>conftest.$ac_ext
20891cat >>conftest.$ac_ext <<_ACEOF
20892/* end confdefs.h. */
20893
20894#define USE_FLOCK 1
20895#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20896#include "${srcdir}/locktest.c"
20897
20898_ACEOF
20899rm -f conftest$ac_exeext
dd184caf 20900if { (ac_try="$ac_link"
20901case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20904esac
20905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_link") 2>&5
d9898ee8 20907 ac_status=$?
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 20910 { (case "(($ac_try" in
20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20913esac
20914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915 (eval "$ac_try") 2>&5
d9898ee8 20916 ac_status=$?
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; }; then
20919 :
20920else
20921 echo "$as_me: program exited with status $ac_status" >&5
20922echo "$as_me: failed program was:" >&5
20923sed 's/^/| /' conftest.$ac_ext >&5
20924
20925( exit $ac_status )
20926{ { echo "$as_me:$LINENO: error: flock test failed." >&5
20927echo "$as_me: error: flock test failed." >&2;}
20928 { (exit 1); exit 1; }; }
20929fi
dd184caf 20930rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20931fi
dd184caf 20932
20933
d9898ee8 20934 ;;
20935x)
20936 if test "$cross_compiling" = yes; then
20937 { { echo "$as_me:$LINENO: error: --with-locking-method option required" >&5
20938echo "$as_me: error: --with-locking-method option required" >&2;}
20939 { (exit 1); exit 1; }; }
20940else
20941 cat >conftest.$ac_ext <<_ACEOF
20942/* confdefs.h. */
20943_ACEOF
20944cat confdefs.h >>conftest.$ac_ext
20945cat >>conftest.$ac_ext <<_ACEOF
20946/* end confdefs.h. */
20947
20948#define USE_FLOCK 1
20949#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20950#include "${srcdir}/locktest.c"
20951
20952_ACEOF
20953rm -f conftest$ac_exeext
dd184caf 20954if { (ac_try="$ac_link"
20955case "(($ac_try" in
20956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957 *) ac_try_echo=$ac_try;;
20958esac
20959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20960 (eval "$ac_link") 2>&5
d9898ee8 20961 ac_status=$?
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 20964 { (case "(($ac_try" in
20965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966 *) ac_try_echo=$ac_try;;
20967esac
20968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969 (eval "$ac_try") 2>&5
d9898ee8 20970 ac_status=$?
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); }; }; then
20973 lockmethod=flock
20974else
20975 echo "$as_me: program exited with status $ac_status" >&5
20976echo "$as_me: failed program was:" >&5
20977sed 's/^/| /' conftest.$ac_ext >&5
20978
20979fi
dd184caf 20980rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20981fi
dd184caf 20982
20983
d9898ee8 20984 ;;
20985esac
20986
20987case x$lockmethod in
20988xlockf)
20989 ;;
20990xflock)
20991 ;;
20992xfcntl)
20993 ;;
20994*)
20995 { { echo "$as_me:$LINENO: error: must specify --with-locking-method option" >&5
20996echo "$as_me: error: must specify --with-locking-method option" >&2;}
20997 { (exit 1); exit 1; }; }
20998 ;;
20999esac
21000
dd184caf 21001{ echo "$as_me:$LINENO: result: $lockmethod" >&5
21002echo "${ECHO_T}$lockmethod" >&6; }
d9898ee8 21003
dd184caf 21004 if test "$lockmethod" = "fcntl"; then
d9898ee8 21005 USE_FCNTL_TRUE=
21006 USE_FCNTL_FALSE='#'
21007else
21008 USE_FCNTL_TRUE='#'
21009 USE_FCNTL_FALSE=
21010fi
21011
dd184caf 21012 if test "$lockmethod" = "flock"; then
d9898ee8 21013 USE_FLOCK_TRUE=
21014 USE_FLOCK_FALSE='#'
21015else
21016 USE_FLOCK_TRUE='#'
21017 USE_FLOCK_FALSE=
21018fi
21019
dd184caf 21020 if test "$lockmethod" = "lockf"; then
d9898ee8 21021 USE_LOCKF_TRUE=
21022 USE_LOCKF_FALSE='#'
21023else
21024 USE_LOCKF_TRUE='#'
21025 USE_LOCKF_FALSE=
21026fi
21027
21028
dd184caf 21029 if test -d ${srcdir}/../docbook; then
d9898ee8 21030 HAVE_SGML_TRUE=
21031 HAVE_SGML_FALSE='#'
21032else
21033 HAVE_SGML_TRUE='#'
21034 HAVE_SGML_FALSE=
21035fi
21036
21037
21038
21039cat >>confdefs.h <<_ACEOF
21040#define liblock_config_h 1
21041_ACEOF
21042
21043
dd184caf 21044ac_config_files="$ac_config_files Makefile"
21045
d9898ee8 21046cat >confcache <<\_ACEOF
21047# This file is a shell script that caches the results of configure
21048# tests run on this system so they can be shared between configure
21049# scripts and configure runs, see configure's option --config-cache.
21050# It is not useful on other systems. If it contains results you don't
21051# want to keep, you may remove or edit it.
21052#
21053# config.status only pays attention to the cache file if you give it
21054# the --recheck option to rerun configure.
21055#
21056# `ac_cv_env_foo' variables (set or unset) will be overridden when
21057# loading this file, other *unset* `ac_cv_foo' will be assigned the
21058# following values.
21059
21060_ACEOF
21061
21062# The following way of writing the cache mishandles newlines in values,
21063# but we know of no workaround that is simple, portable, and efficient.
dd184caf 21064# So, we kill variables containing newlines.
d9898ee8 21065# Ultrix sh set writes to stderr and can't be redirected directly,
21066# and sets the high bit in the cache file unless we assign to the vars.
dd184caf 21067(
21068 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21069 eval ac_val=\$$ac_var
21070 case $ac_val in #(
21071 *${as_nl}*)
21072 case $ac_var in #(
21073 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21074echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21075 esac
21076 case $ac_var in #(
21077 _ | IFS | as_nl) ;; #(
21078 *) $as_unset $ac_var ;;
21079 esac ;;
21080 esac
21081 done
21082
d9898ee8 21083 (set) 2>&1 |
dd184caf 21084 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21085 *${as_nl}ac_space=\ *)
d9898ee8 21086 # `set' does not quote correctly, so add quotes (double-quote
21087 # substitution turns \\\\ into \\, and sed turns \\ into \).
21088 sed -n \
21089 "s/'/'\\\\''/g;
21090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
dd184caf 21091 ;; #(
d9898ee8 21092 *)
21093 # `set' quotes correctly as required by POSIX, so do not add quotes.
dd184caf 21094 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 21095 ;;
dd184caf 21096 esac |
21097 sort
21098) |
d9898ee8 21099 sed '
dd184caf 21100 /^ac_cv_env_/b end
d9898ee8 21101 t clear
dd184caf 21102 :clear
d9898ee8 21103 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21104 t end
dd184caf 21105 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21106 :end' >>confcache
21107if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21108 if test -w "$cache_file"; then
21109 test "x$cache_file" != "x/dev/null" &&
21110 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21111echo "$as_me: updating cache $cache_file" >&6;}
d9898ee8 21112 cat confcache >$cache_file
21113 else
dd184caf 21114 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21115echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d9898ee8 21116 fi
21117fi
21118rm -f confcache
21119
21120test "x$prefix" = xNONE && prefix=$ac_default_prefix
21121# Let make expand exec_prefix.
21122test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21123
d9898ee8 21124DEFS=-DHAVE_CONFIG_H
21125
21126ac_libobjs=
21127ac_ltlibobjs=
21128for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21129 # 1. Remove the extension, and $U if already installed.
dd184caf 21130 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21131 ac_i=`echo "$ac_i" | sed "$ac_script"`
21132 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21133 # will be set to the directory where LIBOBJS objects are built.
21134 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21135 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 21136done
21137LIBOBJS=$ac_libobjs
21138
21139LTLIBOBJS=$ac_ltlibobjs
21140
21141
21142if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21143 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21144Usually this means the macro was only invoked conditionally." >&5
21145echo "$as_me: error: conditional \"AMDEP\" was never defined.
21146Usually this means the macro was only invoked conditionally." >&2;}
21147 { (exit 1); exit 1; }; }
21148fi
21149if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21150 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21151Usually this means the macro was only invoked conditionally." >&5
21152echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21153Usually this means the macro was only invoked conditionally." >&2;}
21154 { (exit 1); exit 1; }; }
21155fi
21156if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21157 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21158Usually this means the macro was only invoked conditionally." >&5
21159echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21160Usually this means the macro was only invoked conditionally." >&2;}
21161 { (exit 1); exit 1; }; }
21162fi
21163if test -z "${USE_FCNTL_TRUE}" && test -z "${USE_FCNTL_FALSE}"; then
21164 { { echo "$as_me:$LINENO: error: conditional \"USE_FCNTL\" was never defined.
21165Usually this means the macro was only invoked conditionally." >&5
21166echo "$as_me: error: conditional \"USE_FCNTL\" was never defined.
21167Usually this means the macro was only invoked conditionally." >&2;}
21168 { (exit 1); exit 1; }; }
21169fi
21170if test -z "${USE_FLOCK_TRUE}" && test -z "${USE_FLOCK_FALSE}"; then
21171 { { echo "$as_me:$LINENO: error: conditional \"USE_FLOCK\" was never defined.
21172Usually this means the macro was only invoked conditionally." >&5
21173echo "$as_me: error: conditional \"USE_FLOCK\" was never defined.
21174Usually this means the macro was only invoked conditionally." >&2;}
21175 { (exit 1); exit 1; }; }
21176fi
21177if test -z "${USE_LOCKF_TRUE}" && test -z "${USE_LOCKF_FALSE}"; then
21178 { { echo "$as_me:$LINENO: error: conditional \"USE_LOCKF\" was never defined.
21179Usually this means the macro was only invoked conditionally." >&5
21180echo "$as_me: error: conditional \"USE_LOCKF\" was never defined.
21181Usually this means the macro was only invoked conditionally." >&2;}
21182 { (exit 1); exit 1; }; }
21183fi
21184if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
21185 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
21186Usually this means the macro was only invoked conditionally." >&5
21187echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
21188Usually this means the macro was only invoked conditionally." >&2;}
21189 { (exit 1); exit 1; }; }
21190fi
21191
21192: ${CONFIG_STATUS=./config.status}
21193ac_clean_files_save=$ac_clean_files
21194ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21195{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21196echo "$as_me: creating $CONFIG_STATUS" >&6;}
21197cat >$CONFIG_STATUS <<_ACEOF
21198#! $SHELL
21199# Generated by $as_me.
21200# Run this file to recreate the current configuration.
21201# Compiler output produced by configure, useful for debugging
21202# configure, is in config.log if it exists.
21203
21204debug=false
21205ac_cs_recheck=false
21206ac_cs_silent=false
21207SHELL=\${CONFIG_SHELL-$SHELL}
21208_ACEOF
21209
21210cat >>$CONFIG_STATUS <<\_ACEOF
21211## --------------------- ##
21212## M4sh Initialization. ##
21213## --------------------- ##
21214
dd184caf 21215# Be more Bourne compatible
21216DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 21217if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21218 emulate sh
21219 NULLCMD=:
21220 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21221 # is contrary to our usage. Disable this feature.
21222 alias -g '${1+"$@"}'='"$@"'
dd184caf 21223 setopt NO_GLOB_SUBST
21224else
21225 case `(set -o) 2>/dev/null` in
21226 *posix*) set -o posix ;;
21227esac
21228
21229fi
21230
21231
21232
21233
21234# PATH needs CR
21235# Avoid depending upon Character Ranges.
21236as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21237as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21238as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21239as_cr_digits='0123456789'
21240as_cr_alnum=$as_cr_Letters$as_cr_digits
21241
21242# The user is always right.
21243if test "${PATH_SEPARATOR+set}" != set; then
21244 echo "#! /bin/sh" >conf$$.sh
21245 echo "exit 0" >>conf$$.sh
21246 chmod +x conf$$.sh
21247 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21248 PATH_SEPARATOR=';'
21249 else
21250 PATH_SEPARATOR=:
21251 fi
21252 rm -f conf$$.sh
d9898ee8 21253fi
d9898ee8 21254
21255# Support unset when possible.
21256if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21257 as_unset=unset
21258else
21259 as_unset=false
21260fi
21261
21262
dd184caf 21263# IFS
21264# We need space, tab and new line, in precisely that order. Quoting is
21265# there to prevent editors from complaining about space-tab.
21266# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21267# splitting by setting IFS to empty value.)
21268as_nl='
21269'
21270IFS=" "" $as_nl"
21271
21272# Find who we are. Look in the path if we contain no directory separator.
21273case $0 in
21274 *[\\/]* ) as_myself=$0 ;;
21275 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21276for as_dir in $PATH
21277do
21278 IFS=$as_save_IFS
21279 test -z "$as_dir" && as_dir=.
21280 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21281done
21282IFS=$as_save_IFS
21283
21284 ;;
21285esac
21286# We did not find ourselves, most probably we were run as `sh COMMAND'
21287# in which case we are not to be found in the path.
21288if test "x$as_myself" = x; then
21289 as_myself=$0
21290fi
21291if test ! -f "$as_myself"; then
21292 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21293 { (exit 1); exit 1; }
21294fi
21295
d9898ee8 21296# Work around bugs in pre-3.0 UWIN ksh.
dd184caf 21297for as_var in ENV MAIL MAILPATH
21298do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21299done
d9898ee8 21300PS1='$ '
21301PS2='> '
21302PS4='+ '
21303
21304# NLS nuisances.
21305for as_var in \
21306 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21307 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21308 LC_TELEPHONE LC_TIME
21309do
21310 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21311 eval $as_var=C; export $as_var
21312 else
dd184caf 21313 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 21314 fi
21315done
21316
21317# Required to use basename.
dd184caf 21318if expr a : '\(a\)' >/dev/null 2>&1 &&
21319 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 21320 as_expr=expr
21321else
21322 as_expr=false
21323fi
21324
dd184caf 21325if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 21326 as_basename=basename
21327else
21328 as_basename=false
21329fi
21330
21331
21332# Name of the executable.
dd184caf 21333as_me=`$as_basename -- "$0" ||
d9898ee8 21334$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21335 X"$0" : 'X\(//\)$' \| \
dd184caf 21336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21337echo X/"$0" |
dd184caf 21338 sed '/^.*\/\([^/][^/]*\)\/*$/{
21339 s//\1/
21340 q
21341 }
21342 /^X\/\(\/\/\)$/{
21343 s//\1/
21344 q
21345 }
21346 /^X\/\(\/\).*/{
21347 s//\1/
21348 q
21349 }
21350 s/.*/./; q'`
d9898ee8 21351
dd184caf 21352# CDPATH.
21353$as_unset CDPATH
d9898ee8 21354
21355
d9898ee8 21356
d9898ee8 21357 as_lineno_1=$LINENO
21358 as_lineno_2=$LINENO
d9898ee8 21359 test "x$as_lineno_1" != "x$as_lineno_2" &&
dd184caf 21360 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 21361
21362 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21363 # uniformly replaced by the line number. The first 'sed' inserts a
dd184caf 21364 # line-number line after each line using $LINENO; the second 'sed'
21365 # does the real work. The second script uses 'N' to pair each
21366 # line-number line with the line containing $LINENO, and appends
21367 # trailing '-' during substitution so that $LINENO is not a special
21368 # case at line end.
d9898ee8 21369 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dd184caf 21370 # scripts with optimization help from Paolo Bonzini. Blame Lee
21371 # E. McMahon (1931-1989) for sed's syntax. :-)
21372 sed -n '
21373 p
21374 /[$]LINENO/=
21375 ' <$as_myself |
d9898ee8 21376 sed '
dd184caf 21377 s/[$]LINENO.*/&-/
21378 t lineno
21379 b
21380 :lineno
d9898ee8 21381 N
dd184caf 21382 :loop
21383 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 21384 t loop
dd184caf 21385 s/-\n.*//
d9898ee8 21386 ' >$as_me.lineno &&
dd184caf 21387 chmod +x "$as_me.lineno" ||
21388 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 21389 { (exit 1); exit 1; }; }
21390
21391 # Don't try to exec as it changes $[0], causing all sort of problems
21392 # (the dirname of $[0] is not the place where we might find the
dd184caf 21393 # original and so on. Autoconf is especially sensitive to this).
21394 . "./$as_me.lineno"
d9898ee8 21395 # Exit status is that of the last command.
21396 exit
21397}
21398
21399
dd184caf 21400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21401 as_dirname=dirname
21402else
21403 as_dirname=false
21404fi
21405
21406ECHO_C= ECHO_N= ECHO_T=
21407case `echo -n x` in
21408-n*)
21409 case `echo 'x\c'` in
21410 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21411 *) ECHO_C='\c';;
21412 esac;;
21413*)
21414 ECHO_N='-n';;
d9898ee8 21415esac
21416
dd184caf 21417if expr a : '\(a\)' >/dev/null 2>&1 &&
21418 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 21419 as_expr=expr
21420else
21421 as_expr=false
21422fi
21423
21424rm -f conf$$ conf$$.exe conf$$.file
dd184caf 21425if test -d conf$$.dir; then
21426 rm -f conf$$.dir/conf$$.file
21427else
21428 rm -f conf$$.dir
21429 mkdir conf$$.dir
21430fi
d9898ee8 21431echo >conf$$.file
21432if ln -s conf$$.file conf$$ 2>/dev/null; then
dd184caf 21433 as_ln_s='ln -s'
21434 # ... but there are two gotchas:
21435 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21436 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21437 # In both cases, we have to default to `cp -p'.
21438 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 21439 as_ln_s='cp -p'
d9898ee8 21440elif ln conf$$.file conf$$ 2>/dev/null; then
21441 as_ln_s=ln
21442else
21443 as_ln_s='cp -p'
21444fi
dd184caf 21445rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21446rmdir conf$$.dir 2>/dev/null
d9898ee8 21447
21448if mkdir -p . 2>/dev/null; then
21449 as_mkdir_p=:
21450else
21451 test -d ./-p && rmdir ./-p
21452 as_mkdir_p=false
21453fi
21454
dd184caf 21455if test -x / >/dev/null 2>&1; then
21456 as_test_x='test -x'
21457else
21458 if ls -dL / >/dev/null 2>&1; then
21459 as_ls_L_option=L
21460 else
21461 as_ls_L_option=
21462 fi
21463 as_test_x='
21464 eval sh -c '\''
21465 if test -d "$1"; then
21466 test -d "$1/.";
21467 else
21468 case $1 in
21469 -*)set "./$1";;
21470 esac;
21471 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21472 ???[sx]*):;;*)false;;esac;fi
21473 '\'' sh
21474 '
21475fi
21476as_executable_p=$as_test_x
d9898ee8 21477
21478# Sed expression to map a string onto a valid CPP name.
21479as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21480
21481# Sed expression to map a string onto a valid variable name.
21482as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21483
21484
d9898ee8 21485exec 6>&1
21486
dd184caf 21487# Save the log message, to keep $[0] and so on meaningful, and to
d9898ee8 21488# report actual input values of CONFIG_FILES etc. instead of their
dd184caf 21489# values after options handling.
21490ac_log="
d9898ee8 21491This file was extended by liblock $as_me 0.60, which was
dd184caf 21492generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 21493
21494 CONFIG_FILES = $CONFIG_FILES
21495 CONFIG_HEADERS = $CONFIG_HEADERS
21496 CONFIG_LINKS = $CONFIG_LINKS
21497 CONFIG_COMMANDS = $CONFIG_COMMANDS
21498 $ $0 $@
21499
dd184caf 21500on `(hostname || uname -n) 2>/dev/null | sed 1q`
21501"
21502
d9898ee8 21503_ACEOF
21504
dd184caf 21505cat >>$CONFIG_STATUS <<_ACEOF
d9898ee8 21506# Files that config.status was made for.
dd184caf 21507config_files="$ac_config_files"
21508config_headers="$ac_config_headers"
21509config_commands="$ac_config_commands"
d9898ee8 21510
dd184caf 21511_ACEOF
d9898ee8 21512
21513cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 21514ac_cs_usage="\
21515\`$as_me' instantiates files from templates according to the
21516current configuration.
21517
21518Usage: $0 [OPTIONS] [FILE]...
21519
21520 -h, --help print this help, then exit
dd184caf 21521 -V, --version print version number and configuration settings, then exit
d9898ee8 21522 -q, --quiet do not print progress messages
21523 -d, --debug don't remove temporary files
21524 --recheck update $as_me by reconfiguring in the same conditions
21525 --file=FILE[:TEMPLATE]
21526 instantiate the configuration file FILE
21527 --header=FILE[:TEMPLATE]
21528 instantiate the configuration header FILE
21529
21530Configuration files:
21531$config_files
21532
21533Configuration headers:
21534$config_headers
21535
21536Configuration commands:
21537$config_commands
21538
21539Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 21540
dd184caf 21541_ACEOF
d9898ee8 21542cat >>$CONFIG_STATUS <<_ACEOF
21543ac_cs_version="\\
21544liblock config.status 0.60
dd184caf 21545configured by $0, generated by GNU Autoconf 2.61,
21546 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 21547
dd184caf 21548Copyright (C) 2006 Free Software Foundation, Inc.
d9898ee8 21549This config.status script is free software; the Free Software Foundation
21550gives unlimited permission to copy, distribute and modify it."
dd184caf 21551
21552ac_pwd='$ac_pwd'
21553srcdir='$srcdir'
21554INSTALL='$INSTALL'
21555MKDIR_P='$MKDIR_P'
d9898ee8 21556_ACEOF
21557
21558cat >>$CONFIG_STATUS <<\_ACEOF
21559# If no file are specified by the user, then we need to provide default
21560# value. By we need to know if files were specified by the user.
21561ac_need_defaults=:
21562while test $# != 0
21563do
21564 case $1 in
21565 --*=*)
dd184caf 21566 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21567 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d9898ee8 21568 ac_shift=:
21569 ;;
dd184caf 21570 *)
d9898ee8 21571 ac_option=$1
21572 ac_optarg=$2
21573 ac_shift=shift
21574 ;;
d9898ee8 21575 esac
21576
21577 case $ac_option in
21578 # Handling of the options.
d9898ee8 21579 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21580 ac_cs_recheck=: ;;
dd184caf 21581 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21582 echo "$ac_cs_version"; exit ;;
21583 --debug | --debu | --deb | --de | --d | -d )
d9898ee8 21584 debug=: ;;
21585 --file | --fil | --fi | --f )
21586 $ac_shift
21587 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21588 ac_need_defaults=false;;
21589 --header | --heade | --head | --hea )
21590 $ac_shift
21591 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21592 ac_need_defaults=false;;
dd184caf 21593 --he | --h)
21594 # Conflict between --help and --header
21595 { echo "$as_me: error: ambiguous option: $1
21596Try \`$0 --help' for more information." >&2
21597 { (exit 1); exit 1; }; };;
21598 --help | --hel | -h )
21599 echo "$ac_cs_usage"; exit ;;
d9898ee8 21600 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21601 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21602 ac_cs_silent=: ;;
21603
21604 # This is an error.
dd184caf 21605 -*) { echo "$as_me: error: unrecognized option: $1
21606Try \`$0 --help' for more information." >&2
d9898ee8 21607 { (exit 1); exit 1; }; } ;;
21608
dd184caf 21609 *) ac_config_targets="$ac_config_targets $1"
21610 ac_need_defaults=false ;;
d9898ee8 21611
21612 esac
21613 shift
21614done
21615
21616ac_configure_extra_args=
21617
21618if $ac_cs_silent; then
21619 exec 6>/dev/null
21620 ac_configure_extra_args="$ac_configure_extra_args --silent"
21621fi
21622
21623_ACEOF
21624cat >>$CONFIG_STATUS <<_ACEOF
21625if \$ac_cs_recheck; then
dd184caf 21626 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21627 CONFIG_SHELL=$SHELL
21628 export CONFIG_SHELL
21629 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9898ee8 21630fi
21631
21632_ACEOF
dd184caf 21633cat >>$CONFIG_STATUS <<\_ACEOF
21634exec 5>>config.log
21635{
21636 echo
21637 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21638## Running $as_me. ##
21639_ASBOX
21640 echo "$ac_log"
21641} >&5
d9898ee8 21642
dd184caf 21643_ACEOF
d9898ee8 21644cat >>$CONFIG_STATUS <<_ACEOF
21645#
dd184caf 21646# INIT-COMMANDS
d9898ee8 21647#
d9898ee8 21648AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21649
21650_ACEOF
21651
d9898ee8 21652cat >>$CONFIG_STATUS <<\_ACEOF
dd184caf 21653
21654# Handling of arguments.
d9898ee8 21655for ac_config_target in $ac_config_targets
21656do
dd184caf 21657 case $ac_config_target in
21658 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21659 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21660 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21661
d9898ee8 21662 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21663echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21664 { (exit 1); exit 1; }; };;
21665 esac
21666done
21667
dd184caf 21668
d9898ee8 21669# If the user did not use the arguments to specify the items to instantiate,
21670# then the envvar interface is used. Set only those that are not.
21671# We use the long form for the default assignment because of an extremely
21672# bizarre bug on SunOS 4.1.3.
21673if $ac_need_defaults; then
21674 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21675 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21676 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21677fi
21678
21679# Have a temporary directory for convenience. Make it in the build tree
dd184caf 21680# simply because there is no reason against having it here, and in addition,
d9898ee8 21681# creating and moving files from /tmp can sometimes cause problems.
dd184caf 21682# Hook for its removal unless debugging.
21683# Note that there is a small window in which the directory will not be cleaned:
21684# after its creation but before its name has been assigned to `$tmp'.
d9898ee8 21685$debug ||
21686{
dd184caf 21687 tmp=
21688 trap 'exit_status=$?
21689 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21690' 0
d9898ee8 21691 trap '{ (exit 1); exit 1; }' 1 2 13 15
21692}
d9898ee8 21693# Create a (secure) tmp directory for tmp files.
21694
21695{
dd184caf 21696 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d9898ee8 21697 test -n "$tmp" && test -d "$tmp"
21698} ||
21699{
dd184caf 21700 tmp=./conf$$-$RANDOM
21701 (umask 077 && mkdir "$tmp")
d9898ee8 21702} ||
21703{
21704 echo "$me: cannot create a temporary directory in ." >&2
21705 { (exit 1); exit 1; }
21706}
21707
d9898ee8 21708#
dd184caf 21709# Set up the sed scripts for CONFIG_FILES section.
d9898ee8 21710#
21711
21712# No need to generate the scripts if there are no CONFIG_FILES.
21713# This happens for instance when ./config.status config.h
dd184caf 21714if test -n "$CONFIG_FILES"; then
d9898ee8 21715
21716_ACEOF
21717
dd184caf 21718
21719
21720ac_delim='%!_!# '
21721for ac_last_try in false false false false false :; do
21722 cat >conf$$subs.sed <<_ACEOF
21723SHELL!$SHELL$ac_delim
21724PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21725PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21726PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21727PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21728PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21729PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21730exec_prefix!$exec_prefix$ac_delim
21731prefix!$prefix$ac_delim
21732program_transform_name!$program_transform_name$ac_delim
21733bindir!$bindir$ac_delim
21734sbindir!$sbindir$ac_delim
21735libexecdir!$libexecdir$ac_delim
21736datarootdir!$datarootdir$ac_delim
21737datadir!$datadir$ac_delim
21738sysconfdir!$sysconfdir$ac_delim
21739sharedstatedir!$sharedstatedir$ac_delim
21740localstatedir!$localstatedir$ac_delim
21741includedir!$includedir$ac_delim
21742oldincludedir!$oldincludedir$ac_delim
21743docdir!$docdir$ac_delim
21744infodir!$infodir$ac_delim
21745htmldir!$htmldir$ac_delim
21746dvidir!$dvidir$ac_delim
21747pdfdir!$pdfdir$ac_delim
21748psdir!$psdir$ac_delim
21749libdir!$libdir$ac_delim
21750localedir!$localedir$ac_delim
21751mandir!$mandir$ac_delim
21752DEFS!$DEFS$ac_delim
21753ECHO_C!$ECHO_C$ac_delim
21754ECHO_N!$ECHO_N$ac_delim
21755ECHO_T!$ECHO_T$ac_delim
21756LIBS!$LIBS$ac_delim
21757build_alias!$build_alias$ac_delim
21758host_alias!$host_alias$ac_delim
21759target_alias!$target_alias$ac_delim
21760INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21761INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21762INSTALL_DATA!$INSTALL_DATA$ac_delim
21763am__isrc!$am__isrc$ac_delim
21764CYGPATH_W!$CYGPATH_W$ac_delim
21765PACKAGE!$PACKAGE$ac_delim
21766VERSION!$VERSION$ac_delim
21767ACLOCAL!$ACLOCAL$ac_delim
21768AUTOCONF!$AUTOCONF$ac_delim
21769AUTOMAKE!$AUTOMAKE$ac_delim
21770AUTOHEADER!$AUTOHEADER$ac_delim
21771MAKEINFO!$MAKEINFO$ac_delim
21772install_sh!$install_sh$ac_delim
21773STRIP!$STRIP$ac_delim
21774INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21775mkdir_p!$mkdir_p$ac_delim
21776AWK!$AWK$ac_delim
21777SET_MAKE!$SET_MAKE$ac_delim
21778am__leading_dot!$am__leading_dot$ac_delim
21779AMTAR!$AMTAR$ac_delim
21780am__tar!$am__tar$ac_delim
21781am__untar!$am__untar$ac_delim
21782CC!$CC$ac_delim
21783CFLAGS!$CFLAGS$ac_delim
21784LDFLAGS!$LDFLAGS$ac_delim
21785CPPFLAGS!$CPPFLAGS$ac_delim
21786ac_ct_CC!$ac_ct_CC$ac_delim
21787EXEEXT!$EXEEXT$ac_delim
21788OBJEXT!$OBJEXT$ac_delim
21789DEPDIR!$DEPDIR$ac_delim
21790am__include!$am__include$ac_delim
21791am__quote!$am__quote$ac_delim
21792AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21793AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21794AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21795CCDEPMODE!$CCDEPMODE$ac_delim
21796am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21797am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21798LN_S!$LN_S$ac_delim
21799build!$build$ac_delim
21800build_cpu!$build_cpu$ac_delim
21801build_vendor!$build_vendor$ac_delim
21802build_os!$build_os$ac_delim
21803host!$host$ac_delim
21804host_cpu!$host_cpu$ac_delim
21805host_vendor!$host_vendor$ac_delim
21806host_os!$host_os$ac_delim
21807SED!$SED$ac_delim
21808GREP!$GREP$ac_delim
21809EGREP!$EGREP$ac_delim
21810ECHO!$ECHO$ac_delim
21811AR!$AR$ac_delim
21812RANLIB!$RANLIB$ac_delim
21813CPP!$CPP$ac_delim
21814CXX!$CXX$ac_delim
21815CXXFLAGS!$CXXFLAGS$ac_delim
21816ac_ct_CXX!$ac_ct_CXX$ac_delim
21817CXXDEPMODE!$CXXDEPMODE$ac_delim
21818am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21819am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21820_ACEOF
21821
21822 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21823 break
21824 elif $ac_last_try; then
21825 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21826echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21827 { (exit 1); exit 1; }; }
21828 else
21829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d9898ee8 21830 fi
dd184caf 21831done
21832
21833ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21834if test -n "$ac_eof"; then
21835 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21836 ac_eof=`expr $ac_eof + 1`
21837fi
21838
21839cat >>$CONFIG_STATUS <<_ACEOF
21840cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21841/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21842_ACEOF
21843sed '
21844s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21845s/^/s,@/; s/!/@,|#_!!_#|/
21846:n
21847t n
21848s/'"$ac_delim"'$/,g/; t
21849s/$/\\/; p
21850N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21851' >>$CONFIG_STATUS <conf$$subs.sed
21852rm -f conf$$subs.sed
21853cat >>$CONFIG_STATUS <<_ACEOF
21854CEOF$ac_eof
21855_ACEOF
21856
21857
21858ac_delim='%!_!# '
21859for ac_last_try in false false false false false :; do
21860 cat >conf$$subs.sed <<_ACEOF
21861CXXCPP!$CXXCPP$ac_delim
21862F77!$F77$ac_delim
21863FFLAGS!$FFLAGS$ac_delim
21864ac_ct_F77!$ac_ct_F77$ac_delim
21865LIBTOOL!$LIBTOOL$ac_delim
21866USE_FCNTL_TRUE!$USE_FCNTL_TRUE$ac_delim
21867USE_FCNTL_FALSE!$USE_FCNTL_FALSE$ac_delim
21868USE_FLOCK_TRUE!$USE_FLOCK_TRUE$ac_delim
21869USE_FLOCK_FALSE!$USE_FLOCK_FALSE$ac_delim
21870USE_LOCKF_TRUE!$USE_LOCKF_TRUE$ac_delim
21871USE_LOCKF_FALSE!$USE_LOCKF_FALSE$ac_delim
21872HAVE_SGML_TRUE!$HAVE_SGML_TRUE$ac_delim
21873HAVE_SGML_FALSE!$HAVE_SGML_FALSE$ac_delim
21874LIBOBJS!$LIBOBJS$ac_delim
21875LTLIBOBJS!$LTLIBOBJS$ac_delim
21876_ACEOF
21877
21878 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
21879 break
21880 elif $ac_last_try; then
21881 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21882echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21883 { (exit 1); exit 1; }; }
21884 else
21885 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21886 fi
21887done
21888
21889ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21890if test -n "$ac_eof"; then
21891 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21892 ac_eof=`expr $ac_eof + 1`
21893fi
d9898ee8 21894
dd184caf 21895cat >>$CONFIG_STATUS <<_ACEOF
21896cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21897/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21898_ACEOF
21899sed '
21900s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21901s/^/s,@/; s/!/@,|#_!!_#|/
21902:n
21903t n
21904s/'"$ac_delim"'$/,g/; t
21905s/$/\\/; p
21906N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21907' >>$CONFIG_STATUS <conf$$subs.sed
21908rm -f conf$$subs.sed
21909cat >>$CONFIG_STATUS <<_ACEOF
21910:end
21911s/|#_!!_#|//g
21912CEOF$ac_eof
d9898ee8 21913_ACEOF
dd184caf 21914
21915
21916# VPATH may cause trouble with some makes, so we remove $(srcdir),
21917# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21918# trailing colons and then remove the whole line if VPATH becomes empty
21919# (actually we leave an empty line to preserve line numbers).
21920if test "x$srcdir" = x.; then
21921 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21922s/:*\$(srcdir):*/:/
21923s/:*\${srcdir}:*/:/
21924s/:*@srcdir@:*/:/
21925s/^\([^=]*=[ ]*\):*/\1/
21926s/:*$//
21927s/^[^=]*=[ ]*$//
21928}'
21929fi
21930
d9898ee8 21931cat >>$CONFIG_STATUS <<\_ACEOF
dd184caf 21932fi # test -n "$CONFIG_FILES"
21933
21934
21935for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21936do
21937 case $ac_tag in
21938 :[FHLC]) ac_mode=$ac_tag; continue;;
21939 esac
21940 case $ac_mode$ac_tag in
21941 :[FHL]*:*);;
21942 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21943echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21944 { (exit 1); exit 1; }; };;
21945 :[FH]-) ac_tag=-:-;;
21946 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21947 esac
21948 ac_save_IFS=$IFS
21949 IFS=:
21950 set x $ac_tag
21951 IFS=$ac_save_IFS
21952 shift
21953 ac_file=$1
21954 shift
21955
21956 case $ac_mode in
21957 :L) ac_source=$1;;
21958 :[FH])
21959 ac_file_inputs=
21960 for ac_f
21961 do
21962 case $ac_f in
21963 -) ac_f="$tmp/stdin";;
21964 *) # Look for the file first in the build tree, then in the source tree
21965 # (if the path is not absolute). The absolute path cannot be DOS-style,
21966 # because $ac_f cannot contain `:'.
21967 test -f "$ac_f" ||
21968 case $ac_f in
21969 [\\/$]*) false;;
21970 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21971 esac ||
21972 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21973echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21974 { (exit 1); exit 1; }; };;
21975 esac
21976 ac_file_inputs="$ac_file_inputs $ac_f"
21977 done
21978
21979 # Let's still pretend it is `configure' which instantiates (i.e., don't
21980 # use $as_me), people would be surprised to read:
21981 # /* config.h. Generated by config.status. */
21982 configure_input="Generated from "`IFS=:
21983 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21984 if test x"$ac_file" != x-; then
21985 configure_input="$ac_file. $configure_input"
21986 { echo "$as_me:$LINENO: creating $ac_file" >&5
21987echo "$as_me: creating $ac_file" >&6;}
21988 fi
21989
21990 case $ac_tag in
21991 *:-:* | *:-) cat >"$tmp/stdin";;
21992 esac
21993 ;;
d9898ee8 21994 esac
21995
dd184caf 21996 ac_dir=`$as_dirname -- "$ac_file" ||
d9898ee8 21997$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21998 X"$ac_file" : 'X\(//\)[^/]' \| \
21999 X"$ac_file" : 'X\(//\)$' \| \
dd184caf 22000 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22001echo X"$ac_file" |
dd184caf 22002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22003 s//\1/
22004 q
22005 }
22006 /^X\(\/\/\)[^/].*/{
22007 s//\1/
22008 q
22009 }
22010 /^X\(\/\/\)$/{
22011 s//\1/
22012 q
22013 }
22014 /^X\(\/\).*/{
22015 s//\1/
22016 q
22017 }
22018 s/.*/./; q'`
22019 { as_dir="$ac_dir"
22020 case $as_dir in #(
22021 -*) as_dir=./$as_dir;;
22022 esac
22023 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 22024 as_dirs=
dd184caf 22025 while :; do
22026 case $as_dir in #(
22027 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22028 *) as_qdir=$as_dir;;
22029 esac
22030 as_dirs="'$as_qdir' $as_dirs"
22031 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 22032$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22033 X"$as_dir" : 'X\(//\)[^/]' \| \
22034 X"$as_dir" : 'X\(//\)$' \| \
dd184caf 22035 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22036echo X"$as_dir" |
dd184caf 22037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22038 s//\1/
22039 q
22040 }
22041 /^X\(\/\/\)[^/].*/{
22042 s//\1/
22043 q
22044 }
22045 /^X\(\/\/\)$/{
22046 s//\1/
22047 q
22048 }
22049 /^X\(\/\).*/{
22050 s//\1/
22051 q
22052 }
22053 s/.*/./; q'`
22054 test -d "$as_dir" && break
d9898ee8 22055 done
dd184caf 22056 test -z "$as_dirs" || eval "mkdir $as_dirs"
22057 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22058echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 22059 { (exit 1); exit 1; }; }; }
d9898ee8 22060 ac_builddir=.
22061
dd184caf 22062case "$ac_dir" in
22063.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22064*)
d9898ee8 22065 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
dd184caf 22066 # A ".." for each directory in $ac_dir_suffix.
22067 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22068 case $ac_top_builddir_sub in
22069 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22070 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22071 esac ;;
22072esac
22073ac_abs_top_builddir=$ac_pwd
22074ac_abs_builddir=$ac_pwd$ac_dir_suffix
22075# for backward compatibility:
22076ac_top_builddir=$ac_top_build_prefix
d9898ee8 22077
22078case $srcdir in
dd184caf 22079 .) # We are building in place.
d9898ee8 22080 ac_srcdir=.
dd184caf 22081 ac_top_srcdir=$ac_top_builddir_sub
22082 ac_abs_top_srcdir=$ac_pwd ;;
22083 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 22084 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 22085 ac_top_srcdir=$srcdir
22086 ac_abs_top_srcdir=$srcdir ;;
22087 *) # Relative name.
22088 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22089 ac_top_srcdir=$ac_top_build_prefix$srcdir
22090 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 22091esac
dd184caf 22092ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 22093
d9898ee8 22094
dd184caf 22095 case $ac_mode in
22096 :F)
22097 #
22098 # CONFIG_FILE
22099 #
d9898ee8 22100
22101 case $INSTALL in
22102 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
dd184caf 22103 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22104 esac
22105 ac_MKDIR_P=$MKDIR_P
22106 case $MKDIR_P in
22107 [\\/$]* | ?:[\\/]* ) ;;
22108 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d9898ee8 22109 esac
dd184caf 22110_ACEOF
d9898ee8 22111
dd184caf 22112cat >>$CONFIG_STATUS <<\_ACEOF
22113# If the template does not know about datarootdir, expand it.
22114# FIXME: This hack should be removed a few years after 2.60.
22115ac_datarootdir_hack=; ac_datarootdir_seen=
22116
22117case `sed -n '/datarootdir/ {
22118 p
22119 q
22120}
22121/@datadir@/p
22122/@docdir@/p
22123/@infodir@/p
22124/@localedir@/p
22125/@mandir@/p
22126' $ac_file_inputs` in
22127*datarootdir*) ac_datarootdir_seen=yes;;
22128*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22129 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22130echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 22131_ACEOF
dd184caf 22132cat >>$CONFIG_STATUS <<_ACEOF
22133 ac_datarootdir_hack='
22134 s&@datadir@&$datadir&g
22135 s&@docdir@&$docdir&g
22136 s&@infodir@&$infodir&g
22137 s&@localedir@&$localedir&g
22138 s&@mandir@&$mandir&g
22139 s&\\\${datarootdir}&$datarootdir&g' ;;
22140esac
22141_ACEOF
22142
22143# Neutralize VPATH when `$srcdir' = `.'.
22144# Shell code in configure.ac might set extrasub.
22145# FIXME: do we really want to maintain this feature?
d9898ee8 22146cat >>$CONFIG_STATUS <<_ACEOF
22147 sed "$ac_vpsub
22148$extrasub
22149_ACEOF
22150cat >>$CONFIG_STATUS <<\_ACEOF
22151:t
22152/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
dd184caf 22153s&@configure_input@&$configure_input&;t t
22154s&@top_builddir@&$ac_top_builddir_sub&;t t
22155s&@srcdir@&$ac_srcdir&;t t
22156s&@abs_srcdir@&$ac_abs_srcdir&;t t
22157s&@top_srcdir@&$ac_top_srcdir&;t t
22158s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22159s&@builddir@&$ac_builddir&;t t
22160s&@abs_builddir@&$ac_abs_builddir&;t t
22161s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22162s&@INSTALL@&$ac_INSTALL&;t t
22163s&@MKDIR_P@&$ac_MKDIR_P&;t t
22164$ac_datarootdir_hack
22165" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22166
22167test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22168 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22169 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22170 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22171which seems to be undefined. Please make sure it is defined." >&5
22172echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22173which seems to be undefined. Please make sure it is defined." >&2;}
22174
22175 rm -f "$tmp/stdin"
d9898ee8 22176 case $ac_file in
dd184caf 22177 -) cat "$tmp/out"; rm -f "$tmp/out";;
22178 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
d9898ee8 22179 esac
dd184caf 22180 ;;
22181 :H)
22182 #
22183 # CONFIG_HEADER
22184 #
d9898ee8 22185_ACEOF
22186
dd184caf 22187# Transform confdefs.h into a sed script `conftest.defines', that
22188# substitutes the proper values into config.h.in to produce config.h.
22189rm -f conftest.defines conftest.tail
22190# First, append a space to every undef/define line, to ease matching.
22191echo 's/$/ /' >conftest.defines
22192# Then, protect against being on the right side of a sed subst, or in
22193# an unquoted here document, in config.status. If some macros were
22194# called several times there might be several #defines for the same
22195# symbol, which is useless. But do not sort them, since the last
22196# AC_DEFINE must be honored.
22197ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22198# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22199# NAME is the cpp macro being defined, VALUE is the value it is being given.
22200# PARAMS is the parameter list in the macro definition--in most cases, it's
22201# just an empty string.
22202ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22203ac_dB='\\)[ (].*,\\1define\\2'
22204ac_dC=' '
22205ac_dD=' ,'
22206
22207uniq confdefs.h |
22208 sed -n '
22209 t rset
22210 :rset
22211 s/^[ ]*#[ ]*define[ ][ ]*//
22212 t ok
22213 d
22214 :ok
22215 s/[\\&,]/\\&/g
22216 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22217 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22218 ' >>conftest.defines
22219
22220# Remove the space that was appended to ease matching.
22221# Then replace #undef with comments. This is necessary, for
d9898ee8 22222# example, in the case of _POSIX_SOURCE, which is predefined and required
22223# on some systems where configure will not decide to define it.
dd184caf 22224# (The regexp can be short, since the line contains either #define or #undef.)
22225echo 's/ $//
22226s,^[ #]*u.*,/* & */,' >>conftest.defines
22227
22228# Break up conftest.defines:
22229ac_max_sed_lines=50
22230
22231# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22232# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22233# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22234# et cetera.
22235ac_in='$ac_file_inputs'
22236ac_out='"$tmp/out1"'
22237ac_nxt='"$tmp/out2"'
22238
22239while :
d9898ee8 22240do
dd184caf 22241 # Write a here document:
22242 cat >>$CONFIG_STATUS <<_ACEOF
22243 # First, check the format of the line:
22244 cat >"\$tmp/defines.sed" <<\\CEOF
22245/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22246/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22247b
22248:def
22249_ACEOF
22250 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
d9898ee8 22251 echo 'CEOF
dd184caf 22252 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22253 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22254 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22255 grep . conftest.tail >/dev/null || break
d9898ee8 22256 rm -f conftest.defines
22257 mv conftest.tail conftest.defines
22258done
dd184caf 22259rm -f conftest.defines conftest.tail
d9898ee8 22260
dd184caf 22261echo "ac_result=$ac_in" >>$CONFIG_STATUS
d9898ee8 22262cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 22263 if test x"$ac_file" != x-; then
dd184caf 22264 echo "/* $configure_input */" >"$tmp/config.h"
22265 cat "$ac_result" >>"$tmp/config.h"
22266 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
d9898ee8 22267 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22268echo "$as_me: $ac_file is unchanged" >&6;}
22269 else
d9898ee8 22270 rm -f $ac_file
dd184caf 22271 mv "$tmp/config.h" $ac_file
d9898ee8 22272 fi
22273 else
dd184caf 22274 echo "/* $configure_input */"
22275 cat "$ac_result"
d9898ee8 22276 fi
dd184caf 22277 rm -f "$tmp/out12"
d9898ee8 22278# Compute $ac_file's index in $config_headers.
22279_am_stamp_count=1
22280for _am_header in $config_headers :; do
22281 case $_am_header in
22282 $ac_file | $ac_file:* )
22283 break ;;
22284 * )
22285 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22286 esac
22287done
dd184caf 22288echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
d9898ee8 22289$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22290 X$ac_file : 'X\(//\)[^/]' \| \
22291 X$ac_file : 'X\(//\)$' \| \
dd184caf 22292 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22293echo X$ac_file |
dd184caf 22294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22295 s//\1/
22296 q
22297 }
22298 /^X\(\/\/\)[^/].*/{
22299 s//\1/
22300 q
22301 }
22302 /^X\(\/\/\)$/{
22303 s//\1/
22304 q
22305 }
22306 /^X\(\/\).*/{
22307 s//\1/
22308 q
22309 }
22310 s/.*/./; q'`/stamp-h$_am_stamp_count
22311 ;;
d9898ee8 22312
dd184caf 22313 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22314echo "$as_me: executing $ac_file commands" >&6;}
22315 ;;
22316 esac
d9898ee8 22317
22318
dd184caf 22319 case $ac_file$ac_mode in
22320 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
d9898ee8 22321 # Strip MF so we end up with the name of the file.
22322 mf=`echo "$mf" | sed -e 's/:.*$//'`
22323 # Check whether this is an Automake generated Makefile or not.
22324 # We used to match only the files named `Makefile.in', but
22325 # some people rename them; so instead we look at the file content.
22326 # Grep'ing the first line is not enough: some people post-process
22327 # each Makefile.in and add a new line on top of each file to say so.
dd184caf 22328 # Grep'ing the whole file is not good either: AIX grep has a line
22329 # limit of 2048, but all sed's we know have understand at least 4000.
22330 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22331 dirpart=`$as_dirname -- "$mf" ||
d9898ee8 22332$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22333 X"$mf" : 'X\(//\)[^/]' \| \
22334 X"$mf" : 'X\(//\)$' \| \
dd184caf 22335 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22336echo X"$mf" |
dd184caf 22337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22338 s//\1/
22339 q
22340 }
22341 /^X\(\/\/\)[^/].*/{
22342 s//\1/
22343 q
22344 }
22345 /^X\(\/\/\)$/{
22346 s//\1/
22347 q
22348 }
22349 /^X\(\/\).*/{
22350 s//\1/
22351 q
22352 }
22353 s/.*/./; q'`
d9898ee8 22354 else
22355 continue
22356 fi
22357 # Extract the definition of DEPDIR, am__include, and am__quote
22358 # from the Makefile without running `make'.
22359 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22360 test -z "$DEPDIR" && continue
22361 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22362 test -z "am__include" && continue
22363 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22364 # When using ansi2knr, U may be empty or an underscore; expand it
22365 U=`sed -n 's/^U = //p' < "$mf"`
22366 # Find all dependency output files, they are included files with
22367 # $(DEPDIR) in their names. We invoke sed twice because it is the
22368 # simplest approach to changing $(DEPDIR) to its actual value in the
22369 # expansion.
22370 for file in `sed -n "
22371 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22372 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22373 # Make sure the directory exists.
22374 test -f "$dirpart/$file" && continue
dd184caf 22375 fdir=`$as_dirname -- "$file" ||
d9898ee8 22376$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22377 X"$file" : 'X\(//\)[^/]' \| \
22378 X"$file" : 'X\(//\)$' \| \
dd184caf 22379 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22380echo X"$file" |
dd184caf 22381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22382 s//\1/
22383 q
22384 }
22385 /^X\(\/\/\)[^/].*/{
22386 s//\1/
22387 q
22388 }
22389 /^X\(\/\/\)$/{
22390 s//\1/
22391 q
22392 }
22393 /^X\(\/\).*/{
22394 s//\1/
22395 q
22396 }
22397 s/.*/./; q'`
22398 { as_dir=$dirpart/$fdir
22399 case $as_dir in #(
22400 -*) as_dir=./$as_dir;;
22401 esac
22402 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 22403 as_dirs=
dd184caf 22404 while :; do
22405 case $as_dir in #(
22406 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22407 *) as_qdir=$as_dir;;
22408 esac
22409 as_dirs="'$as_qdir' $as_dirs"
22410 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 22411$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22412 X"$as_dir" : 'X\(//\)[^/]' \| \
22413 X"$as_dir" : 'X\(//\)$' \| \
dd184caf 22414 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22415echo X"$as_dir" |
dd184caf 22416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22417 s//\1/
22418 q
22419 }
22420 /^X\(\/\/\)[^/].*/{
22421 s//\1/
22422 q
22423 }
22424 /^X\(\/\/\)$/{
22425 s//\1/
22426 q
22427 }
22428 /^X\(\/\).*/{
22429 s//\1/
22430 q
22431 }
22432 s/.*/./; q'`
22433 test -d "$as_dir" && break
d9898ee8 22434 done
dd184caf 22435 test -z "$as_dirs" || eval "mkdir $as_dirs"
22436 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22437echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 22438 { (exit 1); exit 1; }; }; }
d9898ee8 22439 # echo "creating $dirpart/$file"
22440 echo '# dummy' > "$dirpart/$file"
22441 done
22442done
22443 ;;
dd184caf 22444
d9898ee8 22445 esac
dd184caf 22446done # for ac_tag
d9898ee8 22447
d9898ee8 22448
22449{ (exit 0); exit 0; }
22450_ACEOF
22451chmod +x $CONFIG_STATUS
22452ac_clean_files=$ac_clean_files_save
22453
22454
22455# configure is writing to config.log, and then calls config.status.
22456# config.status does its own redirection, appending to config.log.
22457# Unfortunately, on DOS this fails, as config.log is still kept open
22458# by configure, so config.status won't be able to write to it; its
22459# output is simply discarded. So we exec the FD to /dev/null,
22460# effectively closing config.log, so it can be properly (re)opened and
22461# appended to by config.status. When coming back to configure, we
22462# need to make the FD available again.
22463if test "$no_create" != yes; then
22464 ac_cs_success=:
22465 ac_config_status_args=
22466 test "$silent" = yes &&
22467 ac_config_status_args="$ac_config_status_args --quiet"
22468 exec 5>/dev/null
22469 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22470 exec 5>>config.log
22471 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22472 # would make configure fail if this is the last instruction.
22473 $ac_cs_success || { (exit 1); exit 1; }
22474fi
22475