Crap from running automake again; remove when merging.
[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
dd184caf 856GREP
857EGREP
858ECHO
859AR
860RANLIB
861CPP
862CXX
863CXXFLAGS
864ac_ct_CXX
865CXXDEPMODE
866am__fastdepCXX_TRUE
867am__fastdepCXX_FALSE
868CXXCPP
869F77
870FFLAGS
871ac_ct_F77
872LIBTOOL
873USE_FCNTL_TRUE
874USE_FCNTL_FALSE
875USE_FLOCK_TRUE
876USE_FLOCK_FALSE
877USE_LOCKF_TRUE
878USE_LOCKF_FALSE
879HAVE_SGML_TRUE
880HAVE_SGML_FALSE
881LIBOBJS
882LTLIBOBJS'
d9898ee8 883ac_subst_files=''
dd184caf 884 ac_precious_vars='build_alias
885host_alias
886target_alias
887CC
888CFLAGS
889LDFLAGS
890LIBS
891CPPFLAGS
892CPP
893CXX
894CXXFLAGS
895CCC
896CXXCPP
897F77
898FFLAGS'
899
d9898ee8 900
901# Initialize some variables set by options.
902ac_init_help=
903ac_init_version=false
904# The variables have the same names as the options, with
905# dashes changed to underlines.
906cache_file=/dev/null
907exec_prefix=NONE
908no_create=
909no_recursion=
910prefix=NONE
911program_prefix=NONE
912program_suffix=NONE
913program_transform_name=s,x,x,
914silent=
915site=
916srcdir=
917verbose=
918x_includes=NONE
919x_libraries=NONE
920
921# Installation directory options.
922# These are left unexpanded so users can "make install exec_prefix=/foo"
923# and all the variables that are supposed to be based on exec_prefix
924# by default will actually change.
925# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 926# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 927bindir='${exec_prefix}/bin'
928sbindir='${exec_prefix}/sbin'
929libexecdir='${exec_prefix}/libexec'
dd184caf 930datarootdir='${prefix}/share'
931datadir='${datarootdir}'
d9898ee8 932sysconfdir='${prefix}/etc'
933sharedstatedir='${prefix}/com'
934localstatedir='${prefix}/var'
d9898ee8 935includedir='${prefix}/include'
936oldincludedir='/usr/include'
dd184caf 937docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938infodir='${datarootdir}/info'
939htmldir='${docdir}'
940dvidir='${docdir}'
941pdfdir='${docdir}'
942psdir='${docdir}'
943libdir='${exec_prefix}/lib'
944localedir='${datarootdir}/locale'
945mandir='${datarootdir}/man'
d9898ee8 946
947ac_prev=
dd184caf 948ac_dashdash=
d9898ee8 949for ac_option
950do
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
dd184caf 953 eval $ac_prev=\$ac_option
d9898ee8 954 ac_prev=
955 continue
956 fi
957
dd184caf 958 case $ac_option in
959 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 *) ac_optarg=yes ;;
961 esac
d9898ee8 962
963 # Accept the important Cygnus configure options, so we can diagnose typos.
964
dd184caf 965 case $ac_dashdash$ac_option in
966 --)
967 ac_dashdash=yes ;;
d9898ee8 968
969 -bindir | --bindir | --bindi | --bind | --bin | --bi)
970 ac_prev=bindir ;;
971 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
972 bindir=$ac_optarg ;;
973
974 -build | --build | --buil | --bui | --bu)
975 ac_prev=build_alias ;;
976 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
977 build_alias=$ac_optarg ;;
978
979 -cache-file | --cache-file | --cache-fil | --cache-fi \
980 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
981 ac_prev=cache_file ;;
982 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
983 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
984 cache_file=$ac_optarg ;;
985
986 --config-cache | -C)
987 cache_file=config.cache ;;
988
dd184caf 989 -datadir | --datadir | --datadi | --datad)
d9898ee8 990 ac_prev=datadir ;;
dd184caf 991 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 992 datadir=$ac_optarg ;;
993
dd184caf 994 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
995 | --dataroo | --dataro | --datar)
996 ac_prev=datarootdir ;;
997 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
998 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
999 datarootdir=$ac_optarg ;;
1000
d9898ee8 1001 -disable-* | --disable-*)
1002 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1003 # Reject names that are not valid shell variable names.
dd184caf 1004 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1005 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1006 { (exit 1); exit 1; }; }
dd184caf 1007 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1008 eval enable_$ac_feature=no ;;
1009
1010 -docdir | --docdir | --docdi | --doc | --do)
1011 ac_prev=docdir ;;
1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013 docdir=$ac_optarg ;;
1014
1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016 ac_prev=dvidir ;;
1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018 dvidir=$ac_optarg ;;
d9898ee8 1019
1020 -enable-* | --enable-*)
1021 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
dd184caf 1023 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1024 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1025 { (exit 1); exit 1; }; }
dd184caf 1026 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1027 eval enable_$ac_feature=\$ac_optarg ;;
d9898ee8 1028
1029 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031 | --exec | --exe | --ex)
1032 ac_prev=exec_prefix ;;
1033 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035 | --exec=* | --exe=* | --ex=*)
1036 exec_prefix=$ac_optarg ;;
1037
1038 -gas | --gas | --ga | --g)
1039 # Obsolete; use --with-gas.
1040 with_gas=yes ;;
1041
1042 -help | --help | --hel | --he | -h)
1043 ac_init_help=long ;;
1044 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045 ac_init_help=recursive ;;
1046 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047 ac_init_help=short ;;
1048
1049 -host | --host | --hos | --ho)
1050 ac_prev=host_alias ;;
1051 -host=* | --host=* | --hos=* | --ho=*)
1052 host_alias=$ac_optarg ;;
1053
dd184caf 1054 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055 ac_prev=htmldir ;;
1056 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057 | --ht=*)
1058 htmldir=$ac_optarg ;;
1059
d9898ee8 1060 -includedir | --includedir | --includedi | --included | --include \
1061 | --includ | --inclu | --incl | --inc)
1062 ac_prev=includedir ;;
1063 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064 | --includ=* | --inclu=* | --incl=* | --inc=*)
1065 includedir=$ac_optarg ;;
1066
1067 -infodir | --infodir | --infodi | --infod | --info | --inf)
1068 ac_prev=infodir ;;
1069 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070 infodir=$ac_optarg ;;
1071
1072 -libdir | --libdir | --libdi | --libd)
1073 ac_prev=libdir ;;
1074 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075 libdir=$ac_optarg ;;
1076
1077 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078 | --libexe | --libex | --libe)
1079 ac_prev=libexecdir ;;
1080 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081 | --libexe=* | --libex=* | --libe=*)
1082 libexecdir=$ac_optarg ;;
1083
dd184caf 1084 -localedir | --localedir | --localedi | --localed | --locale)
1085 ac_prev=localedir ;;
1086 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087 localedir=$ac_optarg ;;
1088
d9898ee8 1089 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 1090 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1091 ac_prev=localstatedir ;;
1092 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 1093 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1094 localstatedir=$ac_optarg ;;
1095
1096 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097 ac_prev=mandir ;;
1098 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099 mandir=$ac_optarg ;;
1100
1101 -nfp | --nfp | --nf)
1102 # Obsolete; use --without-fp.
1103 with_fp=no ;;
1104
1105 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106 | --no-cr | --no-c | -n)
1107 no_create=yes ;;
1108
1109 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111 no_recursion=yes ;;
1112
1113 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115 | --oldin | --oldi | --old | --ol | --o)
1116 ac_prev=oldincludedir ;;
1117 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120 oldincludedir=$ac_optarg ;;
1121
1122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123 ac_prev=prefix ;;
1124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125 prefix=$ac_optarg ;;
1126
1127 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128 | --program-pre | --program-pr | --program-p)
1129 ac_prev=program_prefix ;;
1130 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132 program_prefix=$ac_optarg ;;
1133
1134 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135 | --program-suf | --program-su | --program-s)
1136 ac_prev=program_suffix ;;
1137 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139 program_suffix=$ac_optarg ;;
1140
1141 -program-transform-name | --program-transform-name \
1142 | --program-transform-nam | --program-transform-na \
1143 | --program-transform-n | --program-transform- \
1144 | --program-transform | --program-transfor \
1145 | --program-transfo | --program-transf \
1146 | --program-trans | --program-tran \
1147 | --progr-tra | --program-tr | --program-t)
1148 ac_prev=program_transform_name ;;
1149 -program-transform-name=* | --program-transform-name=* \
1150 | --program-transform-nam=* | --program-transform-na=* \
1151 | --program-transform-n=* | --program-transform-=* \
1152 | --program-transform=* | --program-transfor=* \
1153 | --program-transfo=* | --program-transf=* \
1154 | --program-trans=* | --program-tran=* \
1155 | --progr-tra=* | --program-tr=* | --program-t=*)
1156 program_transform_name=$ac_optarg ;;
1157
dd184caf 1158 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159 ac_prev=pdfdir ;;
1160 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161 pdfdir=$ac_optarg ;;
1162
1163 -psdir | --psdir | --psdi | --psd | --ps)
1164 ac_prev=psdir ;;
1165 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166 psdir=$ac_optarg ;;
1167
d9898ee8 1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169 | -silent | --silent | --silen | --sile | --sil)
1170 silent=yes ;;
1171
1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173 ac_prev=sbindir ;;
1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175 | --sbi=* | --sb=*)
1176 sbindir=$ac_optarg ;;
1177
1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180 | --sharedst | --shareds | --shared | --share | --shar \
1181 | --sha | --sh)
1182 ac_prev=sharedstatedir ;;
1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186 | --sha=* | --sh=*)
1187 sharedstatedir=$ac_optarg ;;
1188
1189 -site | --site | --sit)
1190 ac_prev=site ;;
1191 -site=* | --site=* | --sit=*)
1192 site=$ac_optarg ;;
1193
1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195 ac_prev=srcdir ;;
1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1197 srcdir=$ac_optarg ;;
1198
1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200 | --syscon | --sysco | --sysc | --sys | --sy)
1201 ac_prev=sysconfdir ;;
1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1204 sysconfdir=$ac_optarg ;;
1205
1206 -target | --target | --targe | --targ | --tar | --ta | --t)
1207 ac_prev=target_alias ;;
1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1209 target_alias=$ac_optarg ;;
1210
1211 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212 verbose=yes ;;
1213
1214 -version | --version | --versio | --versi | --vers | -V)
1215 ac_init_version=: ;;
1216
1217 -with-* | --with-*)
1218 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219 # Reject names that are not valid shell variable names.
dd184caf 1220 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1221 { echo "$as_me: error: invalid package name: $ac_package" >&2
1222 { (exit 1); exit 1; }; }
dd184caf 1223 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1224 eval with_$ac_package=\$ac_optarg ;;
d9898ee8 1225
1226 -without-* | --without-*)
1227 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228 # Reject names that are not valid shell variable names.
dd184caf 1229 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1230 { echo "$as_me: error: invalid package name: $ac_package" >&2
1231 { (exit 1); exit 1; }; }
dd184caf 1232 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1233 eval with_$ac_package=no ;;
d9898ee8 1234
1235 --x)
1236 # Obsolete; use --with-x.
1237 with_x=yes ;;
1238
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244 x_includes=$ac_optarg ;;
1245
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251 x_libraries=$ac_optarg ;;
1252
1253 -*) { echo "$as_me: error: unrecognized option: $ac_option
1254Try \`$0 --help' for more information." >&2
1255 { (exit 1); exit 1; }; }
1256 ;;
1257
1258 *=*)
1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1262 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1263 { (exit 1); exit 1; }; }
dd184caf 1264 eval $ac_envvar=\$ac_optarg
d9898ee8 1265 export $ac_envvar ;;
1266
1267 *)
1268 # FIXME: should be removed in autoconf 3.0.
1269 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1273 ;;
1274
1275 esac
1276done
1277
1278if test -n "$ac_prev"; then
1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280 { echo "$as_me: error: missing argument to $ac_option" >&2
1281 { (exit 1); exit 1; }; }
1282fi
1283
dd184caf 1284# Be sure to have absolute directory names.
1285for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286 datadir sysconfdir sharedstatedir localstatedir includedir \
1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288 libdir localedir mandir
d9898ee8 1289do
dd184caf 1290 eval ac_val=\$$ac_var
d9898ee8 1291 case $ac_val in
dd184caf 1292 [\\/$]* | ?:[\\/]* ) continue;;
1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1294 esac
dd184caf 1295 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1296 { (exit 1); exit 1; }; }
d9898ee8 1297done
1298
1299# There might be people who depend on the old broken behavior: `$host'
1300# used to hold the argument of --host etc.
1301# FIXME: To remove some day.
1302build=$build_alias
1303host=$host_alias
1304target=$target_alias
1305
1306# FIXME: To remove some day.
1307if test "x$host_alias" != x; then
1308 if test "x$build_alias" = x; then
1309 cross_compiling=maybe
1310 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1311 If a cross compiler is detected then cross compile mode will be used." >&2
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315fi
1316
1317ac_tool_prefix=
1318test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320test "$silent" = yes && exec 6>/dev/null
1321
1322
dd184caf 1323ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324ac_ls_di=`ls -di .` &&
1325ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 { echo "$as_me: error: Working directory cannot be determined" >&2
1327 { (exit 1); exit 1; }; }
1328test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 { echo "$as_me: error: pwd does not report name of working directory" >&2
1330 { (exit 1); exit 1; }; }
1331
1332
d9898ee8 1333# Find the source files, if location was not specified.
1334if test -z "$srcdir"; then
1335 ac_srcdir_defaulted=yes
dd184caf 1336 # Try the directory containing this script, then the parent directory.
1337 ac_confdir=`$as_dirname -- "$0" ||
d9898ee8 1338$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339 X"$0" : 'X\(//\)[^/]' \| \
1340 X"$0" : 'X\(//\)$' \| \
dd184caf 1341 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 1342echo X"$0" |
dd184caf 1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)[^/].*/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\).*/{
1356 s//\1/
1357 q
1358 }
1359 s/.*/./; q'`
d9898ee8 1360 srcdir=$ac_confdir
dd184caf 1361 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1362 srcdir=..
1363 fi
1364else
1365 ac_srcdir_defaulted=no
1366fi
dd184caf 1367if test ! -r "$srcdir/$ac_unique_file"; then
1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1369 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1370 { (exit 1); exit 1; }; }
d9898ee8 1371fi
dd184caf 1372ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373ac_abs_confdir=`(
1374 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
d9898ee8 1375 { (exit 1); exit 1; }; }
dd184caf 1376 pwd)`
1377# When building in place, set srcdir=.
1378if test "$ac_abs_confdir" = "$ac_pwd"; then
1379 srcdir=.
1380fi
1381# Remove unnecessary trailing slashes from srcdir.
1382# Double slashes in file names in object file debugging info
1383# mess up M-x gdb in Emacs.
1384case $srcdir in
1385*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386esac
1387for ac_var in $ac_precious_vars; do
1388 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_env_${ac_var}_value=\$${ac_var}
1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392done
d9898ee8 1393
1394#
1395# Report the --help message.
1396#
1397if test "$ac_init_help" = "long"; then
1398 # Omit some internal or obsolete options to make the list less imposing.
1399 # This message is too long to be a string in the A/UX 3.1 sh.
1400 cat <<_ACEOF
1401\`configure' configures liblock 0.60 to adapt to many kinds of systems.
1402
1403Usage: $0 [OPTION]... [VAR=VALUE]...
1404
1405To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406VAR=VALUE. See below for descriptions of some of the useful variables.
1407
1408Defaults for the options are specified in brackets.
1409
1410Configuration:
1411 -h, --help display this help and exit
1412 --help=short display options specific to this package
1413 --help=recursive display the short help of all the included packages
1414 -V, --version display version information and exit
1415 -q, --quiet, --silent do not print \`checking...' messages
1416 --cache-file=FILE cache test results in FILE [disabled]
1417 -C, --config-cache alias for \`--cache-file=config.cache'
1418 -n, --no-create do not create output files
1419 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1420
d9898ee8 1421Installation directories:
1422 --prefix=PREFIX install architecture-independent files in PREFIX
1423 [$ac_default_prefix]
1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1425 [PREFIX]
1426
1427By default, \`make install' will install all the files in
1428\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1429an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430for instance \`--prefix=\$HOME'.
1431
1432For better control, use the options below.
1433
1434Fine tuning of the installation directories:
1435 --bindir=DIR user executables [EPREFIX/bin]
1436 --sbindir=DIR system admin executables [EPREFIX/sbin]
1437 --libexecdir=DIR program executables [EPREFIX/libexec]
d9898ee8 1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1441 --libdir=DIR object code libraries [EPREFIX/lib]
1442 --includedir=DIR C header files [PREFIX/include]
1443 --oldincludedir=DIR C header files for non-gcc [/usr/include]
dd184caf 1444 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1445 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1446 --infodir=DIR info documentation [DATAROOTDIR/info]
1447 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1448 --mandir=DIR man documentation [DATAROOTDIR/man]
1449 --docdir=DIR documentation root [DATAROOTDIR/doc/liblock]
1450 --htmldir=DIR html documentation [DOCDIR]
1451 --dvidir=DIR dvi documentation [DOCDIR]
1452 --pdfdir=DIR pdf documentation [DOCDIR]
1453 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1454_ACEOF
1455
1456 cat <<\_ACEOF
1457
1458Program names:
1459 --program-prefix=PREFIX prepend PREFIX to installed program names
1460 --program-suffix=SUFFIX append SUFFIX to installed program names
1461 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1462
1463System types:
1464 --build=BUILD configure for building on BUILD [guessed]
1465 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466_ACEOF
1467fi
1468
1469if test -n "$ac_init_help"; then
1470 case $ac_init_help in
1471 short | recursive ) echo "Configuration of liblock 0.60:";;
1472 esac
1473 cat <<\_ACEOF
1474
1475Optional Features:
1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1478 --disable-dependency-tracking speeds up one-time build
1479 --enable-dependency-tracking do not reject slow dependency extractors
dd184caf 1480 --enable-shared[=PKGS] build shared libraries [default=yes]
1481 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1482 --enable-fast-install[=PKGS]
1483 optimize for fast installation [default=yes]
1484 --disable-libtool-lock avoid locking (might break parallel builds)
1485
1486Optional Packages:
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1489 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1490 --with-pic try to use only PIC/non-PIC objects [default=use
1491 both]
dd184caf 1492 --with-tags[=TAGS] include additional configurations [automatic]
d9898ee8 1493
1494
1495Some influential environment variables:
1496 CC C compiler command
1497 CFLAGS C compiler flags
1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1499 nonstandard directory <lib dir>
dd184caf 1500 LIBS libraries to pass to the linker, e.g. -l<library>
1501 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1502 you have headers in a nonstandard directory <include dir>
d9898ee8 1503 CPP C preprocessor
1504 CXX C++ compiler command
1505 CXXFLAGS C++ compiler flags
1506 CXXCPP C++ preprocessor
1507 F77 Fortran 77 compiler command
1508 FFLAGS Fortran 77 compiler flags
1509
1510Use these variables to override the choices made by `configure' or to help
1511it to find libraries and programs with nonstandard names/locations.
1512
1513Report bugs to <courier-users@lists.sourceforge.net>.
1514_ACEOF
dd184caf 1515ac_status=$?
d9898ee8 1516fi
1517
1518if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
d9898ee8 1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
dd184caf 1521 test -d "$ac_dir" || continue
d9898ee8 1522 ac_builddir=.
1523
dd184caf 1524case "$ac_dir" in
1525.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526*)
d9898ee8 1527 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
dd184caf 1528 # A ".." for each directory in $ac_dir_suffix.
1529 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1530 case $ac_top_builddir_sub in
1531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533 esac ;;
1534esac
1535ac_abs_top_builddir=$ac_pwd
1536ac_abs_builddir=$ac_pwd$ac_dir_suffix
1537# for backward compatibility:
1538ac_top_builddir=$ac_top_build_prefix
d9898ee8 1539
1540case $srcdir in
dd184caf 1541 .) # We are building in place.
d9898ee8 1542 ac_srcdir=.
dd184caf 1543 ac_top_srcdir=$ac_top_builddir_sub
1544 ac_abs_top_srcdir=$ac_pwd ;;
1545 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1546 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1547 ac_top_srcdir=$srcdir
1548 ac_abs_top_srcdir=$srcdir ;;
1549 *) # Relative name.
1550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1551 ac_top_srcdir=$ac_top_build_prefix$srcdir
1552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1553esac
dd184caf 1554ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1555
1556 cd "$ac_dir" || { ac_status=$?; continue; }
1557 # Check for guested configure.
1558 if test -f "$ac_srcdir/configure.gnu"; then
1559 echo &&
1560 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1561 elif test -f "$ac_srcdir/configure"; then
1562 echo &&
1563 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1564 else
1565 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1566 fi || ac_status=$?
1567 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1568 done
1569fi
1570
dd184caf 1571test -n "$ac_init_help" && exit $ac_status
d9898ee8 1572if $ac_init_version; then
1573 cat <<\_ACEOF
1574liblock configure 0.60
dd184caf 1575generated by GNU Autoconf 2.61
d9898ee8 1576
dd184caf 1577Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15782002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 1579This configure script is free software; the Free Software Foundation
1580gives unlimited permission to copy, distribute and modify it.
1581_ACEOF
dd184caf 1582 exit
d9898ee8 1583fi
dd184caf 1584cat >config.log <<_ACEOF
d9898ee8 1585This file contains any messages produced by compilers while
1586running configure, to aid debugging if configure makes a mistake.
1587
1588It was created by liblock $as_me 0.60, which was
dd184caf 1589generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 1590
1591 $ $0 $@
1592
1593_ACEOF
dd184caf 1594exec 5>>config.log
d9898ee8 1595{
1596cat <<_ASUNAME
1597## --------- ##
1598## Platform. ##
1599## --------- ##
1600
1601hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1602uname -m = `(uname -m) 2>/dev/null || echo unknown`
1603uname -r = `(uname -r) 2>/dev/null || echo unknown`
1604uname -s = `(uname -s) 2>/dev/null || echo unknown`
1605uname -v = `(uname -v) 2>/dev/null || echo unknown`
1606
1607/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1608/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1609
1610/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1611/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1612/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1613/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1614/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1615/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1616/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1617
1618_ASUNAME
1619
1620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621for as_dir in $PATH
1622do
1623 IFS=$as_save_IFS
1624 test -z "$as_dir" && as_dir=.
1625 echo "PATH: $as_dir"
1626done
dd184caf 1627IFS=$as_save_IFS
d9898ee8 1628
1629} >&5
1630
1631cat >&5 <<_ACEOF
1632
1633
1634## ----------- ##
1635## Core tests. ##
1636## ----------- ##
1637
1638_ACEOF
1639
1640
1641# Keep a trace of the command line.
1642# Strip out --no-create and --no-recursion so they do not pile up.
1643# Strip out --silent because we don't want to record it for future runs.
1644# Also quote any args containing shell meta-characters.
1645# Make two passes to allow for proper duplicate-argument suppression.
1646ac_configure_args=
1647ac_configure_args0=
1648ac_configure_args1=
d9898ee8 1649ac_must_keep_next=false
1650for ac_pass in 1 2
1651do
1652 for ac_arg
1653 do
1654 case $ac_arg in
1655 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1657 | -silent | --silent | --silen | --sile | --sil)
1658 continue ;;
dd184caf 1659 *\'*)
d9898ee8 1660 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1661 esac
1662 case $ac_pass in
1663 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1664 2)
1665 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1666 if test $ac_must_keep_next = true; then
1667 ac_must_keep_next=false # Got value, back to normal.
1668 else
1669 case $ac_arg in
1670 *=* | --config-cache | -C | -disable-* | --disable-* \
1671 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1672 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1673 | -with-* | --with-* | -without-* | --without-* | --x)
1674 case "$ac_configure_args0 " in
1675 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1676 esac
1677 ;;
1678 -* ) ac_must_keep_next=true ;;
1679 esac
1680 fi
dd184caf 1681 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1682 ;;
1683 esac
1684 done
1685done
1686$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1687$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1688
1689# When interrupted or exit'd, cleanup temporary files, and complete
1690# config.log. We remove comments because anyway the quotes in there
1691# would cause problems or look ugly.
dd184caf 1692# WARNING: Use '\'' to represent an apostrophe within the trap.
1693# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1694trap 'exit_status=$?
1695 # Save into config.log some information that might help in debugging.
1696 {
1697 echo
1698
1699 cat <<\_ASBOX
1700## ---------------- ##
1701## Cache variables. ##
1702## ---------------- ##
1703_ASBOX
1704 echo
1705 # The following way of writing the cache mishandles newlines in values,
dd184caf 1706(
1707 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1708 eval ac_val=\$$ac_var
1709 case $ac_val in #(
1710 *${as_nl}*)
1711 case $ac_var in #(
1712 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1713echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1714 esac
1715 case $ac_var in #(
1716 _ | IFS | as_nl) ;; #(
1717 *) $as_unset $ac_var ;;
1718 esac ;;
1719 esac
1720 done
d9898ee8 1721 (set) 2>&1 |
dd184caf 1722 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1723 *${as_nl}ac_space=\ *)
d9898ee8 1724 sed -n \
dd184caf 1725 "s/'\''/'\''\\\\'\'''\''/g;
1726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1727 ;; #(
d9898ee8 1728 *)
dd184caf 1729 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1730 ;;
dd184caf 1731 esac |
1732 sort
1733)
d9898ee8 1734 echo
1735
1736 cat <<\_ASBOX
1737## ----------------- ##
1738## Output variables. ##
1739## ----------------- ##
1740_ASBOX
1741 echo
1742 for ac_var in $ac_subst_vars
1743 do
dd184caf 1744 eval ac_val=\$$ac_var
1745 case $ac_val in
1746 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1747 esac
1748 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1749 done | sort
1750 echo
1751
1752 if test -n "$ac_subst_files"; then
1753 cat <<\_ASBOX
dd184caf 1754## ------------------- ##
1755## File substitutions. ##
1756## ------------------- ##
d9898ee8 1757_ASBOX
1758 echo
1759 for ac_var in $ac_subst_files
1760 do
dd184caf 1761 eval ac_val=\$$ac_var
1762 case $ac_val in
1763 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1764 esac
1765 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1766 done | sort
1767 echo
1768 fi
1769
1770 if test -s confdefs.h; then
1771 cat <<\_ASBOX
1772## ----------- ##
1773## confdefs.h. ##
1774## ----------- ##
1775_ASBOX
1776 echo
dd184caf 1777 cat confdefs.h
d9898ee8 1778 echo
1779 fi
1780 test "$ac_signal" != 0 &&
1781 echo "$as_me: caught signal $ac_signal"
1782 echo "$as_me: exit $exit_status"
1783 } >&5
dd184caf 1784 rm -f core *.core core.conftest.* &&
1785 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1786 exit $exit_status
dd184caf 1787' 0
d9898ee8 1788for ac_signal in 1 2 13 15; do
1789 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1790done
1791ac_signal=0
1792
1793# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 1794rm -f -r conftest* confdefs.h
d9898ee8 1795
1796# Predefined preprocessor variables.
1797
1798cat >>confdefs.h <<_ACEOF
1799#define PACKAGE_NAME "$PACKAGE_NAME"
1800_ACEOF
1801
1802
1803cat >>confdefs.h <<_ACEOF
1804#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1805_ACEOF
1806
1807
1808cat >>confdefs.h <<_ACEOF
1809#define PACKAGE_VERSION "$PACKAGE_VERSION"
1810_ACEOF
1811
1812
1813cat >>confdefs.h <<_ACEOF
1814#define PACKAGE_STRING "$PACKAGE_STRING"
1815_ACEOF
1816
1817
1818cat >>confdefs.h <<_ACEOF
1819#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1820_ACEOF
1821
1822
1823# Let the site file select an alternate cache file if it wants to.
1824# Prefer explicitly selected file to automatically selected ones.
dd184caf 1825if test -n "$CONFIG_SITE"; then
1826 set x "$CONFIG_SITE"
1827elif test "x$prefix" != xNONE; then
1828 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1829else
1830 set x "$ac_default_prefix/share/config.site" \
1831 "$ac_default_prefix/etc/config.site"
d9898ee8 1832fi
dd184caf 1833shift
1834for ac_site_file
1835do
d9898ee8 1836 if test -r "$ac_site_file"; then
1837 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1838echo "$as_me: loading site script $ac_site_file" >&6;}
1839 sed 's/^/| /' "$ac_site_file" >&5
1840 . "$ac_site_file"
1841 fi
1842done
1843
1844if test -r "$cache_file"; then
1845 # Some versions of bash will fail to source /dev/null (special
1846 # files actually), so we avoid doing that.
1847 if test -f "$cache_file"; then
1848 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1849echo "$as_me: loading cache $cache_file" >&6;}
1850 case $cache_file in
dd184caf 1851 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1852 *) . "./$cache_file";;
d9898ee8 1853 esac
1854 fi
1855else
1856 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1857echo "$as_me: creating cache $cache_file" >&6;}
1858 >$cache_file
1859fi
1860
1861# Check that the precious variables saved in the cache have kept the same
1862# value.
1863ac_cache_corrupted=false
dd184caf 1864for ac_var in $ac_precious_vars; do
d9898ee8 1865 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1866 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 1867 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1868 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1869 case $ac_old_set,$ac_new_set in
1870 set,)
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1872echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1874 ,set)
1875 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1876echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1877 ac_cache_corrupted=: ;;
1878 ,);;
1879 *)
1880 if test "x$ac_old_val" != "x$ac_new_val"; then
1881 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1882echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1883 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1884echo "$as_me: former value: $ac_old_val" >&2;}
1885 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1886echo "$as_me: current value: $ac_new_val" >&2;}
1887 ac_cache_corrupted=:
1888 fi;;
1889 esac
1890 # Pass precious variables to config.status.
1891 if test "$ac_new_set" = set; then
1892 case $ac_new_val in
dd184caf 1893 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1894 *) ac_arg=$ac_var=$ac_new_val ;;
1895 esac
1896 case " $ac_configure_args " in
1897 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1898 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1899 esac
1900 fi
1901done
1902if $ac_cache_corrupted; then
1903 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1904echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1905 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1906echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1907 { (exit 1); exit 1; }; }
1908fi
1909
d9898ee8 1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
dd184caf 1934ac_ext=c
1935ac_cpp='$CPP $CPPFLAGS'
1936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1938ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 1939
1940
1941
1942>confdefs.h # Kill PACKAGE_ macros
1943
1944
dd184caf 1945ac_config_headers="$ac_config_headers config.h"
1946
1947am__api_version='1.10'
d9898ee8 1948
d9898ee8 1949ac_aux_dir=
dd184caf 1950for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1951 if test -f "$ac_dir/install-sh"; then
d9898ee8 1952 ac_aux_dir=$ac_dir
1953 ac_install_sh="$ac_aux_dir/install-sh -c"
1954 break
dd184caf 1955 elif test -f "$ac_dir/install.sh"; then
d9898ee8 1956 ac_aux_dir=$ac_dir
1957 ac_install_sh="$ac_aux_dir/install.sh -c"
1958 break
dd184caf 1959 elif test -f "$ac_dir/shtool"; then
d9898ee8 1960 ac_aux_dir=$ac_dir
1961 ac_install_sh="$ac_aux_dir/shtool install -c"
1962 break
1963 fi
1964done
1965if test -z "$ac_aux_dir"; then
dd184caf 1966 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1967echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 1968 { (exit 1); exit 1; }; }
1969fi
dd184caf 1970
1971# These three variables are undocumented and unsupported,
1972# and are intended to be withdrawn in a future Autoconf release.
1973# They can cause serious problems if a builder's source tree is in a directory
1974# whose full name contains unusual characters.
1975ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1976ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1977ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1978
d9898ee8 1979
1980# Find a good install program. We prefer a C program (faster),
1981# so one script is as good as another. But avoid the broken or
1982# incompatible versions:
1983# SysV /etc/install, /usr/sbin/install
1984# SunOS /usr/etc/install
1985# IRIX /sbin/install
1986# AIX /bin/install
1987# AmigaOS /C/install, which installs bootblocks on floppy discs
1988# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1989# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1990# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1991# OS/2's system install, which has a completely different semantic
1992# ./install, which can be erroneously created by make from ./install.sh.
dd184caf 1993{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1994echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 1995if test -z "$INSTALL"; then
1996if test "${ac_cv_path_install+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998else
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000for as_dir in $PATH
2001do
2002 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=.
2004 # Account for people who put trailing slashes in PATH elements.
2005case $as_dir/ in
2006 ./ | .// | /cC/* | \
2007 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2008 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2009 /usr/ucb/* ) ;;
2010 *)
2011 # OSF1 and SCO ODT 3.0 have their own names for install.
2012 # Don't use installbsd from OSF since it installs stuff as root
2013 # by default.
2014 for ac_prog in ginstall scoinst install; do
2015 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2016 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2017 if test $ac_prog = install &&
2018 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2019 # AIX install. It has an incompatible calling convention.
2020 :
2021 elif test $ac_prog = install &&
2022 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2023 # program-specific install script used by HP pwplus--don't use.
2024 :
2025 else
2026 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2027 break 3
2028 fi
2029 fi
2030 done
2031 done
2032 ;;
2033esac
2034done
dd184caf 2035IFS=$as_save_IFS
d9898ee8 2036
2037
2038fi
2039 if test "${ac_cv_path_install+set}" = set; then
2040 INSTALL=$ac_cv_path_install
2041 else
dd184caf 2042 # As a last resort, use the slow shell script. Don't cache a
2043 # value for INSTALL within a source directory, because that will
d9898ee8 2044 # break other packages using the cache if that directory is
dd184caf 2045 # removed, or if the value is a relative name.
d9898ee8 2046 INSTALL=$ac_install_sh
2047 fi
2048fi
dd184caf 2049{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2050echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 2051
2052# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2053# It thinks the first close brace ends the variable substitution.
2054test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2055
2056test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2057
2058test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2059
dd184caf 2060{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2061echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
d9898ee8 2062# Just in case
2063sleep 1
2064echo timestamp > conftest.file
2065# Do `set' in a subshell so we don't clobber the current shell's
2066# arguments. Must try -L first in case configure is actually a
2067# symlink; some systems play weird games with the mod time of symlinks
2068# (eg FreeBSD returns the mod time of the symlink's containing
2069# directory).
2070if (
2071 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2072 if test "$*" = "X"; then
2073 # -L didn't work.
2074 set X `ls -t $srcdir/configure conftest.file`
2075 fi
2076 rm -f conftest.file
2077 if test "$*" != "X $srcdir/configure conftest.file" \
2078 && test "$*" != "X conftest.file $srcdir/configure"; then
2079
2080 # If neither matched, then we have a broken ls. This can happen
2081 # if, for instance, CONFIG_SHELL is bash and it inherits a
2082 # broken ls alias from the environment. This has actually
2083 # happened. Such a system could not be considered "sane".
2084 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2085alias in your environment" >&5
2086echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2087alias in your environment" >&2;}
2088 { (exit 1); exit 1; }; }
2089 fi
2090
2091 test "$2" = conftest.file
2092 )
2093then
2094 # Ok.
2095 :
2096else
2097 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2098Check your system clock" >&5
2099echo "$as_me: error: newly created file is older than distributed files!
2100Check your system clock" >&2;}
2101 { (exit 1); exit 1; }; }
2102fi
dd184caf 2103{ echo "$as_me:$LINENO: result: yes" >&5
2104echo "${ECHO_T}yes" >&6; }
d9898ee8 2105test "$program_prefix" != NONE &&
dd184caf 2106 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2107# Use a double $ so make ignores it.
2108test "$program_suffix" != NONE &&
dd184caf 2109 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
d9898ee8 2110# Double any \ or $. echo might interpret backslashes.
2111# By default was `s,x,x', remove it if useless.
2112cat <<\_ACEOF >conftest.sed
2113s/[\\$]/&&/g;s/;s,x,x,$//
2114_ACEOF
2115program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
dd184caf 2116rm -f conftest.sed
d9898ee8 2117
2118# expand $ac_aux_dir to an absolute path
2119am_aux_dir=`cd $ac_aux_dir && pwd`
2120
2121test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2122# Use eval to expand $SHELL
2123if eval "$MISSING --run true"; then
2124 am_missing_run="$MISSING --run "
2125else
2126 am_missing_run=
2127 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2128echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2129fi
2130
dd184caf 2131{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2132echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2133if test -z "$MKDIR_P"; then
2134 if test "${ac_cv_path_mkdir+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2139do
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 for ac_prog in mkdir gmkdir; do
2143 for ac_exec_ext in '' $ac_executable_extensions; do
2144 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2145 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2146 'mkdir (GNU coreutils) '* | \
2147 'mkdir (coreutils) '* | \
2148 'mkdir (fileutils) '4.1*)
2149 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2150 break 3;;
2151 esac
2152 done
2153 done
2154done
2155IFS=$as_save_IFS
2156
2157fi
2158
2159 if test "${ac_cv_path_mkdir+set}" = set; then
2160 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2161 else
dd184caf 2162 # As a last resort, use the slow shell script. Don't cache a
2163 # value for MKDIR_P within a source directory, because that will
2164 # break other packages using the cache if that directory is
2165 # removed, or if the value is a relative name.
2166 test -d ./--version && rmdir ./--version
2167 MKDIR_P="$ac_install_sh -d"
d9898ee8 2168 fi
2169fi
dd184caf 2170{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2171echo "${ECHO_T}$MKDIR_P" >&6; }
2172
2173mkdir_p="$MKDIR_P"
2174case $mkdir_p in
2175 [\\/$]* | ?:[\\/]*) ;;
2176 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2177esac
d9898ee8 2178
2179for ac_prog in gawk mawk nawk awk
2180do
2181 # Extract the first word of "$ac_prog", so it can be a program name with args.
2182set dummy $ac_prog; ac_word=$2
dd184caf 2183{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2185if test "${ac_cv_prog_AWK+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187else
2188 if test -n "$AWK"; then
2189 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2190else
2191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192for as_dir in $PATH
2193do
2194 IFS=$as_save_IFS
2195 test -z "$as_dir" && as_dir=.
2196 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2198 ac_cv_prog_AWK="$ac_prog"
2199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 break 2
2201 fi
2202done
2203done
dd184caf 2204IFS=$as_save_IFS
d9898ee8 2205
2206fi
2207fi
2208AWK=$ac_cv_prog_AWK
2209if test -n "$AWK"; then
dd184caf 2210 { echo "$as_me:$LINENO: result: $AWK" >&5
2211echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2212else
dd184caf 2213 { echo "$as_me:$LINENO: result: no" >&5
2214echo "${ECHO_T}no" >&6; }
d9898ee8 2215fi
2216
dd184caf 2217
d9898ee8 2218 test -n "$AWK" && break
2219done
2220
dd184caf 2221{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2222echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2223set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2224if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226else
2227 cat >conftest.make <<\_ACEOF
dd184caf 2228SHELL = /bin/sh
d9898ee8 2229all:
dd184caf 2230 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2231_ACEOF
2232# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
dd184caf 2233case `${MAKE-make} -f conftest.make 2>/dev/null` in
2234 *@@@%%%=?*=@@@%%%*)
2235 eval ac_cv_prog_make_${ac_make}_set=yes;;
2236 *)
2237 eval ac_cv_prog_make_${ac_make}_set=no;;
2238esac
d9898ee8 2239rm -f conftest.make
2240fi
dd184caf 2241if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2242 { echo "$as_me:$LINENO: result: yes" >&5
2243echo "${ECHO_T}yes" >&6; }
d9898ee8 2244 SET_MAKE=
2245else
dd184caf 2246 { echo "$as_me:$LINENO: result: no" >&5
2247echo "${ECHO_T}no" >&6; }
d9898ee8 2248 SET_MAKE="MAKE=${MAKE-make}"
2249fi
2250
2251rm -rf .tst 2>/dev/null
2252mkdir .tst 2>/dev/null
2253if test -d .tst; then
2254 am__leading_dot=.
2255else
2256 am__leading_dot=_
2257fi
2258rmdir .tst 2>/dev/null
2259
dd184caf 2260if test "`cd $srcdir && pwd`" != "`pwd`"; then
2261 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2262 # is not polluted with repeated "-I."
2263 am__isrc=' -I$(srcdir)'
2264 # test to see if srcdir already configured
2265 if test -f $srcdir/config.status; then
2266 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d9898ee8 2267echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2268 { (exit 1); exit 1; }; }
dd184caf 2269 fi
d9898ee8 2270fi
2271
2272# test whether we have cygpath
2273if test -z "$CYGPATH_W"; then
2274 if (cygpath --version) >/dev/null 2>/dev/null; then
2275 CYGPATH_W='cygpath -w'
2276 else
2277 CYGPATH_W=echo
2278 fi
2279fi
2280
2281
2282# Define the identity of the package.
2283 PACKAGE='liblock'
2284 VERSION='0.60'
2285
2286
2287# Some tools Automake needs.
2288
2289ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2290
2291
2292AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2293
2294
2295AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2296
2297
2298AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2299
2300
2301MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2302
dd184caf 2303install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
d9898ee8 2304
2305# Installed binaries are usually stripped using `strip' when the user
2306# run `make install-strip'. However `strip' might not be the right
2307# tool to use in cross-compilation environments, therefore Automake
2308# will honor the `STRIP' environment variable to overrule this program.
2309if test "$cross_compiling" != no; then
2310 if test -n "$ac_tool_prefix"; then
2311 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2312set dummy ${ac_tool_prefix}strip; ac_word=$2
dd184caf 2313{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2315if test "${ac_cv_prog_STRIP+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2317else
2318 if test -n "$STRIP"; then
2319 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2320else
2321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322for as_dir in $PATH
2323do
2324 IFS=$as_save_IFS
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2328 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 break 2
2331 fi
2332done
2333done
dd184caf 2334IFS=$as_save_IFS
d9898ee8 2335
2336fi
2337fi
2338STRIP=$ac_cv_prog_STRIP
2339if test -n "$STRIP"; then
dd184caf 2340 { echo "$as_me:$LINENO: result: $STRIP" >&5
2341echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 2342else
dd184caf 2343 { echo "$as_me:$LINENO: result: no" >&5
2344echo "${ECHO_T}no" >&6; }
d9898ee8 2345fi
2346
dd184caf 2347
d9898ee8 2348fi
2349if test -z "$ac_cv_prog_STRIP"; then
2350 ac_ct_STRIP=$STRIP
2351 # Extract the first word of "strip", so it can be a program name with args.
2352set dummy strip; ac_word=$2
dd184caf 2353{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2355if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2357else
2358 if test -n "$ac_ct_STRIP"; then
2359 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2360else
2361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362for as_dir in $PATH
2363do
2364 IFS=$as_save_IFS
2365 test -z "$as_dir" && as_dir=.
2366 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2368 ac_cv_prog_ac_ct_STRIP="strip"
2369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 break 2
2371 fi
2372done
2373done
dd184caf 2374IFS=$as_save_IFS
d9898ee8 2375
d9898ee8 2376fi
2377fi
2378ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2379if test -n "$ac_ct_STRIP"; then
dd184caf 2380 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2381echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 2382else
dd184caf 2383 { echo "$as_me:$LINENO: result: no" >&5
2384echo "${ECHO_T}no" >&6; }
d9898ee8 2385fi
2386
dd184caf 2387 if test "x$ac_ct_STRIP" = x; then
2388 STRIP=":"
2389 else
2390 case $cross_compiling:$ac_tool_warned in
2391yes:)
2392{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2393whose name does not start with the host triplet. If you think this
2394configuration is useful to you, please write to autoconf@gnu.org." >&5
2395echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2396whose name does not start with the host triplet. If you think this
2397configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2398ac_tool_warned=yes ;;
2399esac
2400 STRIP=$ac_ct_STRIP
2401 fi
d9898ee8 2402else
2403 STRIP="$ac_cv_prog_STRIP"
2404fi
2405
2406fi
dd184caf 2407INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2408
2409# We need awk for the "check" target. The system "awk" is bad on
2410# some platforms.
2411# Always define AMTAR for backward compatibility.
2412
2413AMTAR=${AMTAR-"${am_missing_run}tar"}
2414
2415am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2416
2417
2418
2419
2420
2421
2422for ac_prog in gawk mawk nawk awk
2423do
2424 # Extract the first word of "$ac_prog", so it can be a program name with args.
2425set dummy $ac_prog; ac_word=$2
dd184caf 2426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2428if test "${ac_cv_prog_AWK+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2430else
2431 if test -n "$AWK"; then
2432 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2433else
2434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435for as_dir in $PATH
2436do
2437 IFS=$as_save_IFS
2438 test -z "$as_dir" && as_dir=.
2439 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2441 ac_cv_prog_AWK="$ac_prog"
2442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443 break 2
2444 fi
2445done
2446done
dd184caf 2447IFS=$as_save_IFS
d9898ee8 2448
2449fi
2450fi
2451AWK=$ac_cv_prog_AWK
2452if test -n "$AWK"; then
dd184caf 2453 { echo "$as_me:$LINENO: result: $AWK" >&5
2454echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2455else
dd184caf 2456 { echo "$as_me:$LINENO: result: no" >&5
2457echo "${ECHO_T}no" >&6; }
d9898ee8 2458fi
2459
dd184caf 2460
d9898ee8 2461 test -n "$AWK" && break
2462done
2463
2464ac_ext=c
2465ac_cpp='$CPP $CPPFLAGS'
2466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469if test -n "$ac_tool_prefix"; then
2470 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2471set dummy ${ac_tool_prefix}gcc; ac_word=$2
dd184caf 2472{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2474if test "${ac_cv_prog_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476else
2477 if test -n "$CC"; then
2478 ac_cv_prog_CC="$CC" # Let the user override the test.
2479else
2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481for as_dir in $PATH
2482do
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2487 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 break 2
2490 fi
2491done
2492done
dd184caf 2493IFS=$as_save_IFS
d9898ee8 2494
2495fi
2496fi
2497CC=$ac_cv_prog_CC
2498if test -n "$CC"; then
dd184caf 2499 { echo "$as_me:$LINENO: result: $CC" >&5
2500echo "${ECHO_T}$CC" >&6; }
d9898ee8 2501else
dd184caf 2502 { echo "$as_me:$LINENO: result: no" >&5
2503echo "${ECHO_T}no" >&6; }
d9898ee8 2504fi
2505
dd184caf 2506
d9898ee8 2507fi
2508if test -z "$ac_cv_prog_CC"; then
2509 ac_ct_CC=$CC
2510 # Extract the first word of "gcc", so it can be a program name with args.
2511set dummy gcc; ac_word=$2
dd184caf 2512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2514if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2516else
2517 if test -n "$ac_ct_CC"; then
2518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2519else
2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521for as_dir in $PATH
2522do
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2527 ac_cv_prog_ac_ct_CC="gcc"
2528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 break 2
2530 fi
2531done
2532done
dd184caf 2533IFS=$as_save_IFS
d9898ee8 2534
2535fi
2536fi
2537ac_ct_CC=$ac_cv_prog_ac_ct_CC
2538if test -n "$ac_ct_CC"; then
dd184caf 2539 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2540echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2541else
dd184caf 2542 { echo "$as_me:$LINENO: result: no" >&5
2543echo "${ECHO_T}no" >&6; }
d9898ee8 2544fi
2545
dd184caf 2546 if test "x$ac_ct_CC" = x; then
2547 CC=""
2548 else
2549 case $cross_compiling:$ac_tool_warned in
2550yes:)
2551{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2552whose name does not start with the host triplet. If you think this
2553configuration is useful to you, please write to autoconf@gnu.org." >&5
2554echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2555whose name does not start with the host triplet. If you think this
2556configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2557ac_tool_warned=yes ;;
2558esac
2559 CC=$ac_ct_CC
2560 fi
d9898ee8 2561else
2562 CC="$ac_cv_prog_CC"
2563fi
2564
2565if test -z "$CC"; then
dd184caf 2566 if test -n "$ac_tool_prefix"; then
2567 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2568set dummy ${ac_tool_prefix}cc; ac_word=$2
dd184caf 2569{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2571if test "${ac_cv_prog_CC+set}" = set; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2573else
2574 if test -n "$CC"; then
2575 ac_cv_prog_CC="$CC" # Let the user override the test.
2576else
2577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578for as_dir in $PATH
2579do
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2584 ac_cv_prog_CC="${ac_tool_prefix}cc"
2585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2587 fi
2588done
2589done
dd184caf 2590IFS=$as_save_IFS
d9898ee8 2591
2592fi
2593fi
2594CC=$ac_cv_prog_CC
2595if test -n "$CC"; then
dd184caf 2596 { echo "$as_me:$LINENO: result: $CC" >&5
2597echo "${ECHO_T}$CC" >&6; }
d9898ee8 2598else
dd184caf 2599 { echo "$as_me:$LINENO: result: no" >&5
2600echo "${ECHO_T}no" >&6; }
d9898ee8 2601fi
2602
d9898ee8 2603
dd184caf 2604 fi
d9898ee8 2605fi
2606if test -z "$CC"; then
2607 # Extract the first word of "cc", so it can be a program name with args.
2608set dummy cc; ac_word=$2
dd184caf 2609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2611if test "${ac_cv_prog_CC+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2613else
2614 if test -n "$CC"; then
2615 ac_cv_prog_CC="$CC" # Let the user override the test.
2616else
2617 ac_prog_rejected=no
2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619for as_dir in $PATH
2620do
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2625 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2626 ac_prog_rejected=yes
2627 continue
2628 fi
2629 ac_cv_prog_CC="cc"
2630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 break 2
2632 fi
2633done
2634done
dd184caf 2635IFS=$as_save_IFS
d9898ee8 2636
2637if test $ac_prog_rejected = yes; then
2638 # We found a bogon in the path, so make sure we never use it.
2639 set dummy $ac_cv_prog_CC
2640 shift
2641 if test $# != 0; then
2642 # We chose a different compiler from the bogus one.
2643 # However, it has the same basename, so the bogon will be chosen
2644 # first if we set CC to just the basename; use the full file name.
2645 shift
2646 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2647 fi
2648fi
2649fi
2650fi
2651CC=$ac_cv_prog_CC
2652if test -n "$CC"; then
dd184caf 2653 { echo "$as_me:$LINENO: result: $CC" >&5
2654echo "${ECHO_T}$CC" >&6; }
d9898ee8 2655else
dd184caf 2656 { echo "$as_me:$LINENO: result: no" >&5
2657echo "${ECHO_T}no" >&6; }
d9898ee8 2658fi
2659
dd184caf 2660
d9898ee8 2661fi
2662if test -z "$CC"; then
2663 if test -n "$ac_tool_prefix"; then
dd184caf 2664 for ac_prog in cl.exe
d9898ee8 2665 do
2666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2667set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 2668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2670if test "${ac_cv_prog_CC+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2672else
2673 if test -n "$CC"; then
2674 ac_cv_prog_CC="$CC" # Let the user override the test.
2675else
2676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677for as_dir in $PATH
2678do
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2683 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 break 2
2686 fi
2687done
2688done
dd184caf 2689IFS=$as_save_IFS
d9898ee8 2690
2691fi
2692fi
2693CC=$ac_cv_prog_CC
2694if test -n "$CC"; then
dd184caf 2695 { echo "$as_me:$LINENO: result: $CC" >&5
2696echo "${ECHO_T}$CC" >&6; }
d9898ee8 2697else
dd184caf 2698 { echo "$as_me:$LINENO: result: no" >&5
2699echo "${ECHO_T}no" >&6; }
d9898ee8 2700fi
2701
dd184caf 2702
d9898ee8 2703 test -n "$CC" && break
2704 done
2705fi
2706if test -z "$CC"; then
2707 ac_ct_CC=$CC
dd184caf 2708 for ac_prog in cl.exe
d9898ee8 2709do
2710 # Extract the first word of "$ac_prog", so it can be a program name with args.
2711set dummy $ac_prog; ac_word=$2
dd184caf 2712{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2714if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2715 echo $ECHO_N "(cached) $ECHO_C" >&6
2716else
2717 if test -n "$ac_ct_CC"; then
2718 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2719else
2720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721for as_dir in $PATH
2722do
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2727 ac_cv_prog_ac_ct_CC="$ac_prog"
2728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 break 2
2730 fi
2731done
2732done
dd184caf 2733IFS=$as_save_IFS
d9898ee8 2734
2735fi
2736fi
2737ac_ct_CC=$ac_cv_prog_ac_ct_CC
2738if test -n "$ac_ct_CC"; then
dd184caf 2739 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2740echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2741else
dd184caf 2742 { echo "$as_me:$LINENO: result: no" >&5
2743echo "${ECHO_T}no" >&6; }
d9898ee8 2744fi
2745
dd184caf 2746
d9898ee8 2747 test -n "$ac_ct_CC" && break
2748done
2749
dd184caf 2750 if test "x$ac_ct_CC" = x; then
2751 CC=""
2752 else
2753 case $cross_compiling:$ac_tool_warned in
2754yes:)
2755{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2756whose name does not start with the host triplet. If you think this
2757configuration is useful to you, please write to autoconf@gnu.org." >&5
2758echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2759whose name does not start with the host triplet. If you think this
2760configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2761ac_tool_warned=yes ;;
2762esac
2763 CC=$ac_ct_CC
2764 fi
d9898ee8 2765fi
2766
2767fi
2768
2769
2770test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2771See \`config.log' for more details." >&5
2772echo "$as_me: error: no acceptable C compiler found in \$PATH
2773See \`config.log' for more details." >&2;}
2774 { (exit 1); exit 1; }; }
2775
2776# Provide some information about the compiler.
dd184caf 2777echo "$as_me:$LINENO: checking for C compiler version" >&5
d9898ee8 2778ac_compiler=`set X $ac_compile; echo $2`
dd184caf 2779{ (ac_try="$ac_compiler --version >&5"
2780case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2783esac
2784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }
dd184caf 2789{ (ac_try="$ac_compiler -v >&5"
2790case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2793esac
2794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }
dd184caf 2799{ (ac_try="$ac_compiler -V >&5"
2800case "(($ac_try" in
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802 *) ac_try_echo=$ac_try;;
2803esac
2804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2805 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }
2809
2810cat >conftest.$ac_ext <<_ACEOF
2811/* confdefs.h. */
2812_ACEOF
2813cat confdefs.h >>conftest.$ac_ext
2814cat >>conftest.$ac_ext <<_ACEOF
2815/* end confdefs.h. */
2816
2817int
2818main ()
2819{
2820
2821 ;
2822 return 0;
2823}
2824_ACEOF
2825ac_clean_files_save=$ac_clean_files
2826ac_clean_files="$ac_clean_files a.out a.exe b.out"
2827# Try to create an executable without -o first, disregard a.out.
2828# It will help us diagnose broken compilers, and finding out an intuition
2829# of exeext.
dd184caf 2830{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2831echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
d9898ee8 2832ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
dd184caf 2833#
2834# List of possible output files, starting from the most likely.
2835# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2836# only as a last resort. b.out is created by i960 compilers.
2837ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2838#
2839# The IRIX 6 linker writes into existing files which may not be
2840# executable, retaining their permissions. Remove them first so a
2841# subsequent execution test works.
2842ac_rmfiles=
2843for ac_file in $ac_files
2844do
2845 case $ac_file in
2846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2847 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2848 esac
2849done
2850rm -f $ac_rmfiles
2851
2852if { (ac_try="$ac_link_default"
2853case "(($ac_try" in
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2856esac
2857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2858 (eval "$ac_link_default") 2>&5
d9898ee8 2859 ac_status=$?
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; then
dd184caf 2862 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2863# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2864# in a Makefile. We should not override ac_cv_exeext if it was cached,
2865# so that the user can short-circuit this test for compilers unknown to
2866# Autoconf.
2867for ac_file in $ac_files ''
d9898ee8 2868do
2869 test -f "$ac_file" || continue
2870 case $ac_file in
dd184caf 2871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
d9898ee8 2872 ;;
2873 [ab].out )
2874 # We found the default executable, but exeext='' is most
2875 # certainly right.
2876 break;;
2877 *.* )
dd184caf 2878 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2879 then :; else
2880 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2881 fi
2882 # We set ac_cv_exeext here because the later test for it is not
2883 # safe: cross compilers may not add the suffix if given an `-o'
2884 # argument, so we may need to know it at that point already.
2885 # Even if this section looks crufty: it has the advantage of
2886 # actually working.
d9898ee8 2887 break;;
2888 * )
2889 break;;
2890 esac
2891done
dd184caf 2892test "$ac_cv_exeext" = no && ac_cv_exeext=
2893
d9898ee8 2894else
dd184caf 2895 ac_file=''
2896fi
2897
2898{ echo "$as_me:$LINENO: result: $ac_file" >&5
2899echo "${ECHO_T}$ac_file" >&6; }
2900if test -z "$ac_file"; then
d9898ee8 2901 echo "$as_me: failed program was:" >&5
2902sed 's/^/| /' conftest.$ac_ext >&5
2903
2904{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2905See \`config.log' for more details." >&5
2906echo "$as_me: error: C compiler cannot create executables
2907See \`config.log' for more details." >&2;}
2908 { (exit 77); exit 77; }; }
2909fi
2910
2911ac_exeext=$ac_cv_exeext
d9898ee8 2912
dd184caf 2913# Check that the compiler produces executables we can run. If not, either
d9898ee8 2914# the compiler is broken, or we cross compile.
dd184caf 2915{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2916echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
d9898ee8 2917# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2918# If not cross compiling, check that we can run a simple program.
2919if test "$cross_compiling" != yes; then
2920 if { ac_try='./$ac_file'
dd184caf 2921 { (case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924esac
2925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_try") 2>&5
d9898ee8 2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; }; then
2930 cross_compiling=no
2931 else
2932 if test "$cross_compiling" = maybe; then
2933 cross_compiling=yes
2934 else
2935 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2936If you meant to cross compile, use \`--host'.
2937See \`config.log' for more details." >&5
2938echo "$as_me: error: cannot run C compiled programs.
2939If you meant to cross compile, use \`--host'.
2940See \`config.log' for more details." >&2;}
2941 { (exit 1); exit 1; }; }
2942 fi
2943 fi
2944fi
dd184caf 2945{ echo "$as_me:$LINENO: result: yes" >&5
2946echo "${ECHO_T}yes" >&6; }
d9898ee8 2947
2948rm -f a.out a.exe conftest$ac_cv_exeext b.out
2949ac_clean_files=$ac_clean_files_save
dd184caf 2950# Check that the compiler produces executables we can run. If not, either
d9898ee8 2951# the compiler is broken, or we cross compile.
dd184caf 2952{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2953echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2954{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2955echo "${ECHO_T}$cross_compiling" >&6; }
2956
2957{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2958echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2959if { (ac_try="$ac_link"
2960case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963esac
2964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_link") 2>&5
d9898ee8 2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; then
2969 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2970# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2971# work properly (i.e., refer to `conftest.exe'), while it won't with
2972# `rm'.
2973for ac_file in conftest.exe conftest conftest.*; do
2974 test -f "$ac_file" || continue
2975 case $ac_file in
dd184caf 2976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
d9898ee8 2977 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 2978 break;;
2979 * ) break;;
2980 esac
2981done
2982else
2983 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2984See \`config.log' for more details." >&5
2985echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2986See \`config.log' for more details." >&2;}
2987 { (exit 1); exit 1; }; }
2988fi
2989
2990rm -f conftest$ac_cv_exeext
dd184caf 2991{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2992echo "${ECHO_T}$ac_cv_exeext" >&6; }
d9898ee8 2993
2994rm -f conftest.$ac_ext
2995EXEEXT=$ac_cv_exeext
2996ac_exeext=$EXEEXT
dd184caf 2997{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2998echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
d9898ee8 2999if test "${ac_cv_objext+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001else
3002 cat >conftest.$ac_ext <<_ACEOF
3003/* confdefs.h. */
3004_ACEOF
3005cat confdefs.h >>conftest.$ac_ext
3006cat >>conftest.$ac_ext <<_ACEOF
3007/* end confdefs.h. */
3008
3009int
3010main ()
3011{
3012
3013 ;
3014 return 0;
3015}
3016_ACEOF
3017rm -f conftest.o conftest.obj
dd184caf 3018if { (ac_try="$ac_compile"
3019case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022esac
3023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>&5
d9898ee8 3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; then
dd184caf 3028 for ac_file in conftest.o conftest.obj conftest.*; do
3029 test -f "$ac_file" || continue;
d9898ee8 3030 case $ac_file in
dd184caf 3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
d9898ee8 3032 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3033 break;;
3034 esac
3035done
3036else
3037 echo "$as_me: failed program was:" >&5
3038sed 's/^/| /' conftest.$ac_ext >&5
3039
3040{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3041See \`config.log' for more details." >&5
3042echo "$as_me: error: cannot compute suffix of object files: cannot compile
3043See \`config.log' for more details." >&2;}
3044 { (exit 1); exit 1; }; }
3045fi
3046
3047rm -f conftest.$ac_cv_objext conftest.$ac_ext
3048fi
dd184caf 3049{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3050echo "${ECHO_T}$ac_cv_objext" >&6; }
d9898ee8 3051OBJEXT=$ac_cv_objext
3052ac_objext=$OBJEXT
dd184caf 3053{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3054echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d9898ee8 3055if test "${ac_cv_c_compiler_gnu+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3057else
3058 cat >conftest.$ac_ext <<_ACEOF
3059/* confdefs.h. */
3060_ACEOF
3061cat confdefs.h >>conftest.$ac_ext
3062cat >>conftest.$ac_ext <<_ACEOF
3063/* end confdefs.h. */
3064
3065int
3066main ()
3067{
3068#ifndef __GNUC__
3069 choke me
3070#endif
3071
3072 ;
3073 return 0;
3074}
3075_ACEOF
3076rm -f conftest.$ac_objext
dd184caf 3077if { (ac_try="$ac_compile"
3078case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081esac
3082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3084 ac_status=$?
3085 grep -v '^ *+' conftest.er1 >conftest.err
3086 rm -f conftest.er1
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3089 (exit $ac_status); } && {
3090 test -z "$ac_c_werror_flag" ||
3091 test ! -s conftest.err
3092 } && test -s conftest.$ac_objext; then
d9898ee8 3093 ac_compiler_gnu=yes
3094else
3095 echo "$as_me: failed program was:" >&5
3096sed 's/^/| /' conftest.$ac_ext >&5
3097
dd184caf 3098 ac_compiler_gnu=no
d9898ee8 3099fi
dd184caf 3100
3101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3102ac_cv_c_compiler_gnu=$ac_compiler_gnu
3103
3104fi
dd184caf 3105{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3106echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d9898ee8 3107GCC=`test $ac_compiler_gnu = yes && echo yes`
3108ac_test_CFLAGS=${CFLAGS+set}
3109ac_save_CFLAGS=$CFLAGS
dd184caf 3110{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3111echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d9898ee8 3112if test "${ac_cv_prog_cc_g+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114else
dd184caf 3115 ac_save_c_werror_flag=$ac_c_werror_flag
3116 ac_c_werror_flag=yes
3117 ac_cv_prog_cc_g=no
3118 CFLAGS="-g"
3119 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3120/* confdefs.h. */
3121_ACEOF
3122cat confdefs.h >>conftest.$ac_ext
3123cat >>conftest.$ac_ext <<_ACEOF
3124/* end confdefs.h. */
3125
3126int
3127main ()
3128{
3129
3130 ;
3131 return 0;
3132}
3133_ACEOF
3134rm -f conftest.$ac_objext
dd184caf 3135if { (ac_try="$ac_compile"
3136case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139esac
3140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3142 ac_status=$?
3143 grep -v '^ *+' conftest.er1 >conftest.err
3144 rm -f conftest.er1
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3147 (exit $ac_status); } && {
3148 test -z "$ac_c_werror_flag" ||
3149 test ! -s conftest.err
3150 } && test -s conftest.$ac_objext; then
3151 ac_cv_prog_cc_g=yes
3152else
3153 echo "$as_me: failed program was:" >&5
3154sed 's/^/| /' conftest.$ac_ext >&5
3155
3156 CFLAGS=""
3157 cat >conftest.$ac_ext <<_ACEOF
3158/* confdefs.h. */
3159_ACEOF
3160cat confdefs.h >>conftest.$ac_ext
3161cat >>conftest.$ac_ext <<_ACEOF
3162/* end confdefs.h. */
3163
3164int
3165main ()
3166{
3167
3168 ;
3169 return 0;
3170}
3171_ACEOF
3172rm -f conftest.$ac_objext
3173if { (ac_try="$ac_compile"
3174case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177esac
3178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3180 ac_status=$?
dd184caf 3181 grep -v '^ *+' conftest.er1 >conftest.err
3182 rm -f conftest.er1
3183 cat conftest.err >&5
d9898ee8 3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3185 (exit $ac_status); } && {
3186 test -z "$ac_c_werror_flag" ||
3187 test ! -s conftest.err
3188 } && test -s conftest.$ac_objext; then
3189 :
3190else
3191 echo "$as_me: failed program was:" >&5
3192sed 's/^/| /' conftest.$ac_ext >&5
3193
3194 ac_c_werror_flag=$ac_save_c_werror_flag
3195 CFLAGS="-g"
3196 cat >conftest.$ac_ext <<_ACEOF
3197/* confdefs.h. */
3198_ACEOF
3199cat confdefs.h >>conftest.$ac_ext
3200cat >>conftest.$ac_ext <<_ACEOF
3201/* end confdefs.h. */
3202
3203int
3204main ()
3205{
3206
3207 ;
3208 return 0;
3209}
3210_ACEOF
3211rm -f conftest.$ac_objext
3212if { (ac_try="$ac_compile"
3213case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216esac
3217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3219 ac_status=$?
dd184caf 3220 grep -v '^ *+' conftest.er1 >conftest.err
3221 rm -f conftest.er1
3222 cat conftest.err >&5
d9898ee8 3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3224 (exit $ac_status); } && {
3225 test -z "$ac_c_werror_flag" ||
3226 test ! -s conftest.err
3227 } && test -s conftest.$ac_objext; then
d9898ee8 3228 ac_cv_prog_cc_g=yes
3229else
3230 echo "$as_me: failed program was:" >&5
3231sed 's/^/| /' conftest.$ac_ext >&5
3232
dd184caf 3233
3234fi
3235
3236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237fi
3238
3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3240fi
dd184caf 3241
3242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3244fi
dd184caf 3245{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3246echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d9898ee8 3247if test "$ac_test_CFLAGS" = set; then
3248 CFLAGS=$ac_save_CFLAGS
3249elif test $ac_cv_prog_cc_g = yes; then
3250 if test "$GCC" = yes; then
3251 CFLAGS="-g -O2"
3252 else
3253 CFLAGS="-g"
3254 fi
3255else
3256 if test "$GCC" = yes; then
3257 CFLAGS="-O2"
3258 else
3259 CFLAGS=
3260 fi
3261fi
dd184caf 3262{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3263echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3264if test "${ac_cv_prog_cc_c89+set}" = set; then
d9898ee8 3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3266else
dd184caf 3267 ac_cv_prog_cc_c89=no
d9898ee8 3268ac_save_CC=$CC
3269cat >conftest.$ac_ext <<_ACEOF
3270/* confdefs.h. */
3271_ACEOF
3272cat confdefs.h >>conftest.$ac_ext
3273cat >>conftest.$ac_ext <<_ACEOF
3274/* end confdefs.h. */
3275#include <stdarg.h>
3276#include <stdio.h>
3277#include <sys/types.h>
3278#include <sys/stat.h>
3279/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3280struct buf { int x; };
3281FILE * (*rcsopen) (struct buf *, struct stat *, int);
3282static char *e (p, i)
3283 char **p;
3284 int i;
3285{
3286 return p[i];
3287}
3288static char *f (char * (*g) (char **, int), char **p, ...)
3289{
3290 char *s;
3291 va_list v;
3292 va_start (v,p);
3293 s = g (p, va_arg (v,int));
3294 va_end (v);
3295 return s;
3296}
3297
3298/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3299 function prototypes and stuff, but not '\xHH' hex character constants.
3300 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3301 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3302 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3303 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3304 that's true only with -std. */
d9898ee8 3305int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3306
dd184caf 3307/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3308 inside strings and character constants. */
3309#define FOO(x) 'x'
3310int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3311
d9898ee8 3312int test (int i, double x);
3313struct s1 {int (*f) (int a);};
3314struct s2 {int (*f) (double a);};
3315int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3316int argc;
3317char **argv;
3318int
3319main ()
3320{
3321return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3322 ;
3323 return 0;
3324}
3325_ACEOF
dd184caf 3326for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3327 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3328do
3329 CC="$ac_save_CC $ac_arg"
3330 rm -f conftest.$ac_objext
dd184caf 3331if { (ac_try="$ac_compile"
3332case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335esac
3336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3338 ac_status=$?
3339 grep -v '^ *+' conftest.er1 >conftest.err
3340 rm -f conftest.er1
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3343 (exit $ac_status); } && {
3344 test -z "$ac_c_werror_flag" ||
3345 test ! -s conftest.err
3346 } && test -s conftest.$ac_objext; then
3347 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3348else
3349 echo "$as_me: failed program was:" >&5
3350sed 's/^/| /' conftest.$ac_ext >&5
3351
dd184caf 3352
d9898ee8 3353fi
dd184caf 3354
3355rm -f core conftest.err conftest.$ac_objext
3356 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3357done
dd184caf 3358rm -f conftest.$ac_ext
d9898ee8 3359CC=$ac_save_CC
3360
3361fi
dd184caf 3362# AC_CACHE_VAL
3363case "x$ac_cv_prog_cc_c89" in
3364 x)
3365 { echo "$as_me:$LINENO: result: none needed" >&5
3366echo "${ECHO_T}none needed" >&6; } ;;
3367 xno)
3368 { echo "$as_me:$LINENO: result: unsupported" >&5
3369echo "${ECHO_T}unsupported" >&6; } ;;
d9898ee8 3370 *)
dd184caf 3371 CC="$CC $ac_cv_prog_cc_c89"
3372 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3373echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3374esac
3375
d9898ee8 3376
d9898ee8 3377ac_ext=c
3378ac_cpp='$CPP $CPPFLAGS'
3379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382DEPDIR="${am__leading_dot}deps"
3383
dd184caf 3384ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3385
3386
3387am_make=${MAKE-make}
3388cat > confinc << 'END'
3389am__doit:
3390 @echo done
3391.PHONY: am__doit
3392END
3393# If we don't find an include directive, just comment out the code.
dd184caf 3394{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3395echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
d9898ee8 3396am__include="#"
3397am__quote=
3398_am_result=none
3399# First try GNU make style include.
3400echo "include confinc" > confmf
3401# We grep out `Entering directory' and `Leaving directory'
3402# messages which can occur if `w' ends up in MAKEFLAGS.
3403# In particular we don't look at `^make:' because GNU make might
3404# be invoked under some other name (usually "gmake"), in which
3405# case it prints its new name instead of `make'.
3406if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3407 am__include=include
3408 am__quote=
3409 _am_result=GNU
3410fi
3411# Now try BSD make style include.
3412if test "$am__include" = "#"; then
3413 echo '.include "confinc"' > confmf
3414 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3415 am__include=.include
3416 am__quote="\""
3417 _am_result=BSD
3418 fi
3419fi
3420
3421
dd184caf 3422{ echo "$as_me:$LINENO: result: $_am_result" >&5
3423echo "${ECHO_T}$_am_result" >&6; }
d9898ee8 3424rm -f confinc confmf
3425
dd184caf 3426# Check whether --enable-dependency-tracking was given.
d9898ee8 3427if test "${enable_dependency_tracking+set}" = set; then
dd184caf 3428 enableval=$enable_dependency_tracking;
3429fi
d9898ee8 3430
d9898ee8 3431if test "x$enable_dependency_tracking" != xno; then
3432 am_depcomp="$ac_aux_dir/depcomp"
3433 AMDEPBACKSLASH='\'
3434fi
dd184caf 3435 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3436 AMDEP_TRUE=
3437 AMDEP_FALSE='#'
3438else
3439 AMDEP_TRUE='#'
3440 AMDEP_FALSE=
3441fi
3442
3443
3444
d9898ee8 3445depcc="$CC" am_compiler_list=
3446
dd184caf 3447{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3448echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 3449if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451else
3452 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3453 # We make a subdir and do the tests there. Otherwise we can end up
3454 # making bogus files that we don't know about and never remove. For
3455 # instance it was reported that on HP-UX the gcc test will end up
3456 # making a dummy file named `D' -- because `-MD' means `put the output
3457 # in D'.
3458 mkdir conftest.dir
3459 # Copy depcomp to subdir because otherwise we won't find it if we're
3460 # using a relative directory.
3461 cp "$am_depcomp" conftest.dir
3462 cd conftest.dir
3463 # We will build objects and dependencies in a subdirectory because
3464 # it helps to detect inapplicable dependency modes. For instance
3465 # both Tru64's cc and ICC support -MD to output dependencies as a
3466 # side effect of compilation, but ICC will put the dependencies in
3467 # the current directory while Tru64 will put them in the object
3468 # directory.
3469 mkdir sub
3470
3471 am_cv_CC_dependencies_compiler_type=none
3472 if test "$am_compiler_list" = ""; then
3473 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3474 fi
3475 for depmode in $am_compiler_list; do
3476 # Setup a source with many dependencies, because some compilers
3477 # like to wrap large dependency lists on column 80 (with \), and
3478 # we should not choose a depcomp mode which is confused by this.
3479 #
3480 # We need to recreate these files for each test, as the compiler may
3481 # overwrite some of them when testing with obscure command lines.
3482 # This happens at least with the AIX C compiler.
3483 : > sub/conftest.c
3484 for i in 1 2 3 4 5 6; do
3485 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3486 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3487 # Solaris 8's {/usr,}/bin/sh.
3488 touch sub/conftst$i.h
3489 done
3490 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3491
3492 case $depmode in
3493 nosideeffect)
3494 # after this tag, mechanisms are not by side-effect, so they'll
3495 # only be used when explicitly requested
3496 if test "x$enable_dependency_tracking" = xyes; then
3497 continue
3498 else
3499 break
3500 fi
3501 ;;
3502 none) break ;;
3503 esac
3504 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3505 # mode. It turns out that the SunPro C++ compiler does not properly
3506 # handle `-M -o', and we need to detect this.
3507 if depmode=$depmode \
3508 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3509 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3510 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3511 >/dev/null 2>conftest.err &&
dd184caf 3512 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3513 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3514 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3515 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3516 # icc doesn't choke on unknown options, it will just issue warnings
3517 # or remarks (even with -Werror). So we grep stderr for any message
3518 # that says an option was ignored or not supported.
3519 # When given -MP, icc 7.0 and 7.1 complain thusly:
3520 # icc: Command line warning: ignoring option '-M'; no argument required
3521 # The diagnosis changed in icc 8.0:
3522 # icc: Command line remark: option '-MP' not supported
3523 if (grep 'ignoring option' conftest.err ||
3524 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3525 am_cv_CC_dependencies_compiler_type=$depmode
3526 break
3527 fi
3528 fi
3529 done
3530
3531 cd ..
3532 rm -rf conftest.dir
3533else
3534 am_cv_CC_dependencies_compiler_type=none
3535fi
3536
3537fi
dd184caf 3538{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3539echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3540CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3541
dd184caf 3542 if
d9898ee8 3543 test "x$enable_dependency_tracking" != xno \
3544 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3545 am__fastdepCC_TRUE=
3546 am__fastdepCC_FALSE='#'
3547else
3548 am__fastdepCC_TRUE='#'
3549 am__fastdepCC_FALSE=
3550fi
3551
3552
3553# Find a good install program. We prefer a C program (faster),
3554# so one script is as good as another. But avoid the broken or
3555# incompatible versions:
3556# SysV /etc/install, /usr/sbin/install
3557# SunOS /usr/etc/install
3558# IRIX /sbin/install
3559# AIX /bin/install
3560# AmigaOS /C/install, which installs bootblocks on floppy discs
3561# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3562# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3563# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3564# OS/2's system install, which has a completely different semantic
3565# ./install, which can be erroneously created by make from ./install.sh.
dd184caf 3566{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3567echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 3568if test -z "$INSTALL"; then
3569if test "${ac_cv_path_install+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3571else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573for as_dir in $PATH
3574do
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
3577 # Account for people who put trailing slashes in PATH elements.
3578case $as_dir/ in
3579 ./ | .// | /cC/* | \
3580 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3581 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3582 /usr/ucb/* ) ;;
3583 *)
3584 # OSF1 and SCO ODT 3.0 have their own names for install.
3585 # Don't use installbsd from OSF since it installs stuff as root
3586 # by default.
3587 for ac_prog in ginstall scoinst install; do
3588 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 3589 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 3590 if test $ac_prog = install &&
3591 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3592 # AIX install. It has an incompatible calling convention.
3593 :
3594 elif test $ac_prog = install &&
3595 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3596 # program-specific install script used by HP pwplus--don't use.
3597 :
3598 else
3599 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3600 break 3
3601 fi
3602 fi
3603 done
3604 done
3605 ;;
3606esac
3607done
dd184caf 3608IFS=$as_save_IFS
d9898ee8 3609
3610
3611fi
3612 if test "${ac_cv_path_install+set}" = set; then
3613 INSTALL=$ac_cv_path_install
3614 else
dd184caf 3615 # As a last resort, use the slow shell script. Don't cache a
3616 # value for INSTALL within a source directory, because that will
d9898ee8 3617 # break other packages using the cache if that directory is
dd184caf 3618 # removed, or if the value is a relative name.
d9898ee8 3619 INSTALL=$ac_install_sh
3620 fi
3621fi
dd184caf 3622{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3623echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 3624
3625# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3626# It thinks the first close brace ends the variable substitution.
3627test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3628
3629test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3630
3631test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3632
dd184caf 3633{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3634echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d9898ee8 3635LN_S=$as_ln_s
3636if test "$LN_S" = "ln -s"; then
dd184caf 3637 { echo "$as_me:$LINENO: result: yes" >&5
3638echo "${ECHO_T}yes" >&6; }
d9898ee8 3639else
dd184caf 3640 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3641echo "${ECHO_T}no, using $LN_S" >&6; }
d9898ee8 3642fi
3643
dd184caf 3644# Check whether --enable-shared was given.
d9898ee8 3645if test "${enable_shared+set}" = set; then
dd184caf 3646 enableval=$enable_shared; p=${PACKAGE-default}
d9898ee8 3647 case $enableval in
3648 yes) enable_shared=yes ;;
3649 no) enable_shared=no ;;
3650 *)
3651 enable_shared=no
3652 # Look at the argument we got. We use all the common list separators.
3653 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3654 for pkg in $enableval; do
3655 IFS="$lt_save_ifs"
3656 if test "X$pkg" = "X$p"; then
3657 enable_shared=yes
3658 fi
3659 done
3660 IFS="$lt_save_ifs"
3661 ;;
3662 esac
3663else
3664 enable_shared=yes
dd184caf 3665fi
3666
d9898ee8 3667
dd184caf 3668# Check whether --enable-static was given.
d9898ee8 3669if test "${enable_static+set}" = set; then
dd184caf 3670 enableval=$enable_static; p=${PACKAGE-default}
d9898ee8 3671 case $enableval in
3672 yes) enable_static=yes ;;
3673 no) enable_static=no ;;
3674 *)
3675 enable_static=no
3676 # Look at the argument we got. We use all the common list separators.
3677 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3678 for pkg in $enableval; do
3679 IFS="$lt_save_ifs"
3680 if test "X$pkg" = "X$p"; then
3681 enable_static=yes
3682 fi
3683 done
3684 IFS="$lt_save_ifs"
3685 ;;
3686 esac
3687else
3688 enable_static=yes
dd184caf 3689fi
3690
d9898ee8 3691
dd184caf 3692# Check whether --enable-fast-install was given.
d9898ee8 3693if test "${enable_fast_install+set}" = set; then
dd184caf 3694 enableval=$enable_fast_install; p=${PACKAGE-default}
d9898ee8 3695 case $enableval in
3696 yes) enable_fast_install=yes ;;
3697 no) enable_fast_install=no ;;
3698 *)
3699 enable_fast_install=no
3700 # Look at the argument we got. We use all the common list separators.
3701 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3702 for pkg in $enableval; do
3703 IFS="$lt_save_ifs"
3704 if test "X$pkg" = "X$p"; then
3705 enable_fast_install=yes
3706 fi
3707 done
3708 IFS="$lt_save_ifs"
3709 ;;
3710 esac
3711else
3712 enable_fast_install=yes
dd184caf 3713fi
3714
d9898ee8 3715
3716# Make sure we can run config.sub.
dd184caf 3717$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3718 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3719echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 3720 { (exit 1); exit 1; }; }
3721
dd184caf 3722{ echo "$as_me:$LINENO: checking build system type" >&5
3723echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
d9898ee8 3724if test "${ac_cv_build+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726else
dd184caf 3727 ac_build_alias=$build_alias
3728test "x$ac_build_alias" = x &&
3729 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3730test "x$ac_build_alias" = x &&
d9898ee8 3731 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3732echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3733 { (exit 1); exit 1; }; }
dd184caf 3734ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3735 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3736echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 3737 { (exit 1); exit 1; }; }
3738
3739fi
dd184caf 3740{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3741echo "${ECHO_T}$ac_cv_build" >&6; }
3742case $ac_cv_build in
3743*-*-*) ;;
3744*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3745echo "$as_me: error: invalid value of canonical build" >&2;}
3746 { (exit 1); exit 1; }; };;
3747esac
d9898ee8 3748build=$ac_cv_build
dd184caf 3749ac_save_IFS=$IFS; IFS='-'
3750set x $ac_cv_build
3751shift
3752build_cpu=$1
3753build_vendor=$2
3754shift; shift
3755# Remember, the first character of IFS is used to create $*,
3756# except with old shells:
3757build_os=$*
3758IFS=$ac_save_IFS
3759case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3760
3761
3762{ echo "$as_me:$LINENO: checking host system type" >&5
3763echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
d9898ee8 3764if test "${ac_cv_host+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
dd184caf 3767 if test "x$host_alias" = x; then
3768 ac_cv_host=$ac_cv_build
3769else
3770 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3771 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3772echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 3773 { (exit 1); exit 1; }; }
dd184caf 3774fi
d9898ee8 3775
3776fi
dd184caf 3777{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3778echo "${ECHO_T}$ac_cv_host" >&6; }
3779case $ac_cv_host in
3780*-*-*) ;;
3781*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3782echo "$as_me: error: invalid value of canonical host" >&2;}
3783 { (exit 1); exit 1; }; };;
3784esac
d9898ee8 3785host=$ac_cv_host
dd184caf 3786ac_save_IFS=$IFS; IFS='-'
3787set x $ac_cv_host
3788shift
3789host_cpu=$1
3790host_vendor=$2
3791shift; shift
3792# Remember, the first character of IFS is used to create $*,
3793# except with old shells:
3794host_os=$*
3795IFS=$ac_save_IFS
3796case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3797
3798
3799{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3800echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
d9898ee8 3801if test "${lt_cv_path_SED+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3803else
3804 # Loop through the user's path and test for sed and gsed.
3805# Then use that list of sed's as ones to test for truncation.
3806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807for as_dir in $PATH
3808do
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 for lt_ac_prog in sed gsed; do
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3814 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3815 fi
3816 done
3817 done
3818done
d9898ee8 3819lt_ac_max=0
3820lt_ac_count=0
3821# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3822# along with /bin/sed that truncates output.
3823for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3824 test ! -f $lt_ac_sed && continue
3825 cat /dev/null > conftest.in
3826 lt_ac_count=0
3827 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3828 # Check for GNU sed and select it if it is found.
3829 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3830 lt_cv_path_SED=$lt_ac_sed
3831 break
3832 fi
3833 while true; do
3834 cat conftest.in conftest.in >conftest.tmp
3835 mv conftest.tmp conftest.in
3836 cp conftest.in conftest.nl
3837 echo >>conftest.nl
3838 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3839 cmp -s conftest.out conftest.nl || break
3840 # 10000 chars as input seems more than enough
3841 test $lt_ac_count -gt 10 && break
3842 lt_ac_count=`expr $lt_ac_count + 1`
3843 if test $lt_ac_count -gt $lt_ac_max; then
3844 lt_ac_max=$lt_ac_count
3845 lt_cv_path_SED=$lt_ac_sed
3846 fi
3847 done
3848done
3849
3850fi
3851
3852SED=$lt_cv_path_SED
dd184caf 3853{ echo "$as_me:$LINENO: result: $SED" >&5
3854echo "${ECHO_T}$SED" >&6; }
3855
3856{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3857echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3858if test "${ac_cv_path_GREP+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3860else
3861 # Extract the first word of "grep ggrep" to use in msg output
3862if test -z "$GREP"; then
3863set dummy grep ggrep; ac_prog_name=$2
3864if test "${ac_cv_path_GREP+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3866else
3867 ac_path_GREP_found=false
3868# Loop through the user's path and test for each of PROGNAME-LIST
3869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3871do
3872 IFS=$as_save_IFS
3873 test -z "$as_dir" && as_dir=.
3874 for ac_prog in grep ggrep; do
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3877 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3878 # Check for GNU ac_path_GREP and select it if it is found.
3879 # Check for GNU $ac_path_GREP
3880case `"$ac_path_GREP" --version 2>&1` in
3881*GNU*)
3882 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3883*)
3884 ac_count=0
3885 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3886 while :
3887 do
3888 cat "conftest.in" "conftest.in" >"conftest.tmp"
3889 mv "conftest.tmp" "conftest.in"
3890 cp "conftest.in" "conftest.nl"
3891 echo 'GREP' >> "conftest.nl"
3892 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3893 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3894 ac_count=`expr $ac_count + 1`
3895 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3896 # Best one so far, save it but keep looking for a better one
3897 ac_cv_path_GREP="$ac_path_GREP"
3898 ac_path_GREP_max=$ac_count
3899 fi
3900 # 10*(2^10) chars as input seems more than enough
3901 test $ac_count -gt 10 && break
3902 done
3903 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3904esac
3905
3906
3907 $ac_path_GREP_found && break 3
3908 done
3909done
3910
3911done
3912IFS=$as_save_IFS
3913
3914
3915fi
3916
3917GREP="$ac_cv_path_GREP"
3918if test -z "$GREP"; then
3919 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3920echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3921 { (exit 1); exit 1; }; }
3922fi
3923
3924else
3925 ac_cv_path_GREP=$GREP
3926fi
3927
d9898ee8 3928
dd184caf 3929fi
3930{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3931echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3932 GREP="$ac_cv_path_GREP"
3933
3934
3935{ echo "$as_me:$LINENO: checking for egrep" >&5
3936echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3937if test "${ac_cv_path_EGREP+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939else
3940 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3941 then ac_cv_path_EGREP="$GREP -E"
3942 else
3943 # Extract the first word of "egrep" to use in msg output
3944if test -z "$EGREP"; then
3945set dummy egrep; ac_prog_name=$2
3946if test "${ac_cv_path_EGREP+set}" = set; then
d9898ee8 3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948else
dd184caf 3949 ac_path_EGREP_found=false
3950# Loop through the user's path and test for each of PROGNAME-LIST
3951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3953do
3954 IFS=$as_save_IFS
3955 test -z "$as_dir" && as_dir=.
3956 for ac_prog in egrep; do
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3959 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3960 # Check for GNU ac_path_EGREP and select it if it is found.
3961 # Check for GNU $ac_path_EGREP
3962case `"$ac_path_EGREP" --version 2>&1` in
3963*GNU*)
3964 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3965*)
3966 ac_count=0
3967 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3968 while :
3969 do
3970 cat "conftest.in" "conftest.in" >"conftest.tmp"
3971 mv "conftest.tmp" "conftest.in"
3972 cp "conftest.in" "conftest.nl"
3973 echo 'EGREP' >> "conftest.nl"
3974 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3975 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3976 ac_count=`expr $ac_count + 1`
3977 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3978 # Best one so far, save it but keep looking for a better one
3979 ac_cv_path_EGREP="$ac_path_EGREP"
3980 ac_path_EGREP_max=$ac_count
d9898ee8 3981 fi
dd184caf 3982 # 10*(2^10) chars as input seems more than enough
3983 test $ac_count -gt 10 && break
3984 done
3985 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3986esac
3987
3988
3989 $ac_path_EGREP_found && break 3
3990 done
3991done
3992
3993done
3994IFS=$as_save_IFS
3995
3996
3997fi
3998
3999EGREP="$ac_cv_path_EGREP"
4000if test -z "$EGREP"; then
4001 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4002echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4003 { (exit 1); exit 1; }; }
4004fi
4005
4006else
4007 ac_cv_path_EGREP=$EGREP
4008fi
4009
4010
4011 fi
d9898ee8 4012fi
dd184caf 4013{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4014echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4015 EGREP="$ac_cv_path_EGREP"
d9898ee8 4016
4017
4018
dd184caf 4019# Check whether --with-gnu-ld was given.
d9898ee8 4020if test "${with_gnu_ld+set}" = set; then
dd184caf 4021 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4022else
4023 with_gnu_ld=no
dd184caf 4024fi
4025
d9898ee8 4026ac_prog=ld
4027if test "$GCC" = yes; then
4028 # Check if gcc -print-prog-name=ld gives a path.
dd184caf 4029 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4030echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 4031 case $host in
4032 *-*-mingw*)
4033 # gcc leaves a trailing carriage return which upsets mingw
4034 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4035 *)
4036 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4037 esac
4038 case $ac_prog in
4039 # Accept absolute paths.
4040 [\\/]* | ?:[\\/]*)
4041 re_direlt='/[^/][^/]*/\.\./'
4042 # Canonicalize the pathname of ld
4043 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4044 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4045 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4046 done
4047 test -z "$LD" && LD="$ac_prog"
4048 ;;
4049 "")
4050 # If it fails, then pretend we aren't using GCC.
4051 ac_prog=ld
4052 ;;
4053 *)
4054 # If it is relative, then search for the first ld in PATH.
4055 with_gnu_ld=unknown
4056 ;;
4057 esac
4058elif test "$with_gnu_ld" = yes; then
dd184caf 4059 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4060echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 4061else
dd184caf 4062 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4063echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 4064fi
4065if test "${lt_cv_path_LD+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067else
4068 if test -z "$LD"; then
4069 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4070 for ac_dir in $PATH; do
4071 IFS="$lt_save_ifs"
4072 test -z "$ac_dir" && ac_dir=.
4073 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4074 lt_cv_path_LD="$ac_dir/$ac_prog"
4075 # Check to see if the program is GNU ld. I'd rather use --version,
4076 # but apparently some variants of GNU ld only accept -v.
4077 # Break only if it was the GNU/non-GNU ld that we prefer.
4078 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4079 *GNU* | *'with BFD'*)
4080 test "$with_gnu_ld" != no && break
4081 ;;
4082 *)
4083 test "$with_gnu_ld" != yes && break
4084 ;;
4085 esac
4086 fi
4087 done
4088 IFS="$lt_save_ifs"
4089else
4090 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4091fi
4092fi
4093
4094LD="$lt_cv_path_LD"
4095if test -n "$LD"; then
dd184caf 4096 { echo "$as_me:$LINENO: result: $LD" >&5
4097echo "${ECHO_T}$LD" >&6; }
d9898ee8 4098else
dd184caf 4099 { echo "$as_me:$LINENO: result: no" >&5
4100echo "${ECHO_T}no" >&6; }
d9898ee8 4101fi
4102test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4103echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4104 { (exit 1); exit 1; }; }
dd184caf 4105{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4106echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 4107if test "${lt_cv_prog_gnu_ld+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109else
4110 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4111case `$LD -v 2>&1 </dev/null` in
4112*GNU* | *'with BFD'*)
4113 lt_cv_prog_gnu_ld=yes
4114 ;;
4115*)
4116 lt_cv_prog_gnu_ld=no
4117 ;;
4118esac
4119fi
dd184caf 4120{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4121echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4122with_gnu_ld=$lt_cv_prog_gnu_ld
4123
4124
dd184caf 4125{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4126echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d9898ee8 4127if test "${lt_cv_ld_reload_flag+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129else
4130 lt_cv_ld_reload_flag='-r'
4131fi
dd184caf 4132{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4133echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
d9898ee8 4134reload_flag=$lt_cv_ld_reload_flag
4135case $reload_flag in
4136"" | " "*) ;;
4137*) reload_flag=" $reload_flag" ;;
4138esac
4139reload_cmds='$LD$reload_flag -o $output$reload_objs'
4140case $host_os in
4141 darwin*)
4142 if test "$GCC" = yes; then
4143 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4144 else
4145 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4146 fi
4147 ;;
4148esac
4149
dd184caf 4150{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4151echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
d9898ee8 4152if test "${lt_cv_path_NM+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4154else
4155 if test -n "$NM"; then
4156 # Let the user override the test.
4157 lt_cv_path_NM="$NM"
4158else
4159 lt_nm_to_check="${ac_tool_prefix}nm"
4160 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4161 lt_nm_to_check="$lt_nm_to_check nm"
4162 fi
4163 for lt_tmp_nm in $lt_nm_to_check; do
4164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4165 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4166 IFS="$lt_save_ifs"
4167 test -z "$ac_dir" && ac_dir=.
4168 tmp_nm="$ac_dir/$lt_tmp_nm"
4169 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4170 # Check to see if the nm accepts a BSD-compat flag.
4171 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4172 # nm: unknown option "B" ignored
4173 # Tru64's nm complains that /dev/null is an invalid object file
4174 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4175 */dev/null* | *'Invalid file or object type'*)
4176 lt_cv_path_NM="$tmp_nm -B"
4177 break
4178 ;;
4179 *)
4180 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4181 */dev/null*)
4182 lt_cv_path_NM="$tmp_nm -p"
4183 break
4184 ;;
4185 *)
4186 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4187 continue # so that we can try to find one that supports BSD flags
4188 ;;
4189 esac
4190 ;;
4191 esac
4192 fi
4193 done
4194 IFS="$lt_save_ifs"
4195 done
4196 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4197fi
4198fi
dd184caf 4199{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4200echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d9898ee8 4201NM="$lt_cv_path_NM"
4202
dd184caf 4203{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4204echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
d9898ee8 4205if test "${lt_cv_deplibs_check_method+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207else
4208 lt_cv_file_magic_cmd='$MAGIC_CMD'
4209lt_cv_file_magic_test_file=
4210lt_cv_deplibs_check_method='unknown'
4211# Need to set the preceding variable on all platforms that support
4212# interlibrary dependencies.
4213# 'none' -- dependencies not supported.
4214# `unknown' -- same as none, but documents that we really don't know.
4215# 'pass_all' -- all dependencies passed with no checks.
4216# 'test_compile' -- check by making test program.
4217# 'file_magic [[regex]]' -- check by looking for files in library path
4218# which responds to the $file_magic_cmd with a given extended regex.
4219# If you have `file' or equivalent on your system and you're not sure
4220# whether `pass_all' will *always* work, you probably want this one.
4221
4222case $host_os in
4223aix4* | aix5*)
4224 lt_cv_deplibs_check_method=pass_all
4225 ;;
4226
4227beos*)
4228 lt_cv_deplibs_check_method=pass_all
4229 ;;
4230
4231bsdi[45]*)
4232 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4233 lt_cv_file_magic_cmd='/usr/bin/file -L'
4234 lt_cv_file_magic_test_file=/shlib/libc.so
4235 ;;
4236
4237cygwin*)
4238 # func_win32_libid is a shell function defined in ltmain.sh
4239 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4240 lt_cv_file_magic_cmd='func_win32_libid'
4241 ;;
4242
4243mingw* | pw32*)
4244 # Base MSYS/MinGW do not provide the 'file' command needed by
4245 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4246 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4247 lt_cv_file_magic_cmd='$OBJDUMP -f'
4248 ;;
4249
4250darwin* | rhapsody*)
4251 lt_cv_deplibs_check_method=pass_all
4252 ;;
4253
1dce02f2 4254freebsd* | dragonfly*)
d9898ee8 4255 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4256 case $host_cpu in
4257 i*86 )
4258 # Not sure whether the presence of OpenBSD here was a mistake.
4259 # Let's accept both of them until this is cleared up.
4260 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4261 lt_cv_file_magic_cmd=/usr/bin/file
4262 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4263 ;;
4264 esac
4265 else
4266 lt_cv_deplibs_check_method=pass_all
4267 fi
4268 ;;
4269
4270gnu*)
4271 lt_cv_deplibs_check_method=pass_all
4272 ;;
4273
4274hpux10.20* | hpux11*)
4275 lt_cv_file_magic_cmd=/usr/bin/file
4276 case $host_cpu in
4277 ia64*)
4278 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4279 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4280 ;;
4281 hppa*64*)
4282 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]'
4283 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4284 ;;
4285 *)
4286 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4287 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4288 ;;
4289 esac
4290 ;;
4291
4292interix3*)
4293 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4294 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4295 ;;
4296
4297irix5* | irix6* | nonstopux*)
4298 case $LD in
4299 *-32|*"-32 ") libmagic=32-bit;;
4300 *-n32|*"-n32 ") libmagic=N32;;
4301 *-64|*"-64 ") libmagic=64-bit;;
4302 *) libmagic=never-match;;
4303 esac
4304 lt_cv_deplibs_check_method=pass_all
4305 ;;
4306
4307# This must be Linux ELF.
1dce02f2 4308linux* | k*bsd*-gnu)
d9898ee8 4309 lt_cv_deplibs_check_method=pass_all
4310 ;;
4311
1dce02f2 4312netbsd* | netbsdelf*-gnu)
d9898ee8 4313 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4315 else
4316 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4317 fi
4318 ;;
4319
4320newos6*)
4321 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4322 lt_cv_file_magic_cmd=/usr/bin/file
4323 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4324 ;;
4325
4326nto-qnx*)
4327 lt_cv_deplibs_check_method=unknown
4328 ;;
4329
4330openbsd*)
4331 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4333 else
4334 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4335 fi
4336 ;;
4337
4338osf3* | osf4* | osf5*)
4339 lt_cv_deplibs_check_method=pass_all
4340 ;;
4341
4342solaris*)
4343 lt_cv_deplibs_check_method=pass_all
4344 ;;
4345
4346sysv4 | sysv4.3*)
4347 case $host_vendor in
4348 motorola)
4349 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]'
4350 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4351 ;;
4352 ncr)
4353 lt_cv_deplibs_check_method=pass_all
4354 ;;
4355 sequent)
4356 lt_cv_file_magic_cmd='/bin/file'
4357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4358 ;;
4359 sni)
4360 lt_cv_file_magic_cmd='/bin/file'
4361 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4362 lt_cv_file_magic_test_file=/lib/libc.so
4363 ;;
4364 siemens)
4365 lt_cv_deplibs_check_method=pass_all
4366 ;;
4367 pc)
4368 lt_cv_deplibs_check_method=pass_all
4369 ;;
4370 esac
4371 ;;
4372
4373sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4374 lt_cv_deplibs_check_method=pass_all
4375 ;;
4376esac
4377
4378fi
dd184caf 4379{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4380echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
d9898ee8 4381file_magic_cmd=$lt_cv_file_magic_cmd
4382deplibs_check_method=$lt_cv_deplibs_check_method
4383test -z "$deplibs_check_method" && deplibs_check_method=unknown
4384
4385
4386
4387
4388# If no C compiler was specified, use CC.
4389LTCC=${LTCC-"$CC"}
4390
4391# If no C compiler flags were specified, use CFLAGS.
4392LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4393
4394# Allow CC to be a program name with arguments.
4395compiler=$CC
4396
4397
dd184caf 4398# Check whether --enable-libtool-lock was given.
d9898ee8 4399if test "${enable_libtool_lock+set}" = set; then
dd184caf 4400 enableval=$enable_libtool_lock;
4401fi
d9898ee8 4402
d9898ee8 4403test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4404
4405# Some flags need to be propagated to the compiler or linker for good
4406# libtool support.
4407case $host in
4408ia64-*-hpux*)
4409 # Find out which ABI we are using.
4410 echo 'int i;' > conftest.$ac_ext
4411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412 (eval $ac_compile) 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; then
4416 case `/usr/bin/file conftest.$ac_objext` in
4417 *ELF-32*)
4418 HPUX_IA64_MODE="32"
4419 ;;
4420 *ELF-64*)
4421 HPUX_IA64_MODE="64"
4422 ;;
4423 esac
4424 fi
4425 rm -rf conftest*
4426 ;;
4427*-*-irix6*)
4428 # Find out which ABI we are using.
1dce02f2 4429 echo '#line 4429 "configure"' > conftest.$ac_ext
d9898ee8 4430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431 (eval $ac_compile) 2>&5
4432 ac_status=$?
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; then
4435 if test "$lt_cv_prog_gnu_ld" = yes; then
4436 case `/usr/bin/file conftest.$ac_objext` in
4437 *32-bit*)
4438 LD="${LD-ld} -melf32bsmip"
4439 ;;
4440 *N32*)
4441 LD="${LD-ld} -melf32bmipn32"
4442 ;;
4443 *64-bit*)
4444 LD="${LD-ld} -melf64bmip"
4445 ;;
4446 esac
4447 else
4448 case `/usr/bin/file conftest.$ac_objext` in
4449 *32-bit*)
4450 LD="${LD-ld} -32"
4451 ;;
4452 *N32*)
4453 LD="${LD-ld} -n32"
4454 ;;
4455 *64-bit*)
4456 LD="${LD-ld} -64"
4457 ;;
4458 esac
4459 fi
4460 fi
4461 rm -rf conftest*
4462 ;;
4463
4464x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4465 # Find out which ABI we are using.
4466 echo 'int i;' > conftest.$ac_ext
4467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4468 (eval $ac_compile) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; then
4472 case `/usr/bin/file conftest.o` in
4473 *32-bit*)
4474 case $host in
4475 x86_64-*linux*)
4476 LD="${LD-ld} -m elf_i386"
4477 ;;
4478 ppc64-*linux*|powerpc64-*linux*)
4479 LD="${LD-ld} -m elf32ppclinux"
4480 ;;
4481 s390x-*linux*)
4482 LD="${LD-ld} -m elf_s390"
4483 ;;
4484 sparc64-*linux*)
4485 LD="${LD-ld} -m elf32_sparc"
4486 ;;
4487 esac
4488 ;;
4489 *64-bit*)
4490 case $host in
4491 x86_64-*linux*)
4492 LD="${LD-ld} -m elf_x86_64"
4493 ;;
4494 ppc*-*linux*|powerpc*-*linux*)
4495 LD="${LD-ld} -m elf64ppc"
4496 ;;
4497 s390*-*linux*)
4498 LD="${LD-ld} -m elf64_s390"
4499 ;;
4500 sparc*-*linux*)
4501 LD="${LD-ld} -m elf64_sparc"
4502 ;;
4503 esac
4504 ;;
4505 esac
4506 fi
4507 rm -rf conftest*
4508 ;;
4509
4510*-*-sco3.2v5*)
4511 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4512 SAVE_CFLAGS="$CFLAGS"
4513 CFLAGS="$CFLAGS -belf"
dd184caf 4514 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4515echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d9898ee8 4516if test "${lt_cv_cc_needs_belf+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4518else
4519 ac_ext=c
4520ac_cpp='$CPP $CPPFLAGS'
4521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524
4525 cat >conftest.$ac_ext <<_ACEOF
4526/* confdefs.h. */
4527_ACEOF
4528cat confdefs.h >>conftest.$ac_ext
4529cat >>conftest.$ac_ext <<_ACEOF
4530/* end confdefs.h. */
4531
4532int
4533main ()
4534{
4535
4536 ;
4537 return 0;
4538}
4539_ACEOF
4540rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 4541if { (ac_try="$ac_link"
4542case "(($ac_try" in
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4545esac
4546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4547 (eval "$ac_link") 2>conftest.er1
d9898ee8 4548 ac_status=$?
4549 grep -v '^ *+' conftest.er1 >conftest.err
4550 rm -f conftest.er1
4551 cat conftest.err >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4553 (exit $ac_status); } && {
4554 test -z "$ac_c_werror_flag" ||
4555 test ! -s conftest.err
4556 } && test -s conftest$ac_exeext &&
4557 $as_test_x conftest$ac_exeext; then
d9898ee8 4558 lt_cv_cc_needs_belf=yes
4559else
4560 echo "$as_me: failed program was:" >&5
4561sed 's/^/| /' conftest.$ac_ext >&5
4562
dd184caf 4563 lt_cv_cc_needs_belf=no
d9898ee8 4564fi
dd184caf 4565
4566rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 4567 conftest$ac_exeext conftest.$ac_ext
4568 ac_ext=c
4569ac_cpp='$CPP $CPPFLAGS'
4570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573
4574fi
dd184caf 4575{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4576echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
d9898ee8 4577 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4578 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4579 CFLAGS="$SAVE_CFLAGS"
4580 fi
4581 ;;
4582sparc*-*solaris*)
4583 # Find out which ABI we are using.
4584 echo 'int i;' > conftest.$ac_ext
4585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586 (eval $ac_compile) 2>&5
4587 ac_status=$?
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; then
4590 case `/usr/bin/file conftest.o` in
4591 *64-bit*)
4592 case $lt_cv_prog_gnu_ld in
4593 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4594 *) LD="${LD-ld} -64" ;;
4595 esac
4596 ;;
4597 esac
4598 fi
4599 rm -rf conftest*
4600 ;;
4601
4602
4603esac
4604
4605need_locks="$enable_libtool_lock"
4606
4607
4608ac_ext=c
4609ac_cpp='$CPP $CPPFLAGS'
4610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4612ac_compiler_gnu=$ac_cv_c_compiler_gnu
dd184caf 4613{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4614echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d9898ee8 4615# On Suns, sometimes $CPP names a directory.
4616if test -n "$CPP" && test -d "$CPP"; then
4617 CPP=
4618fi
4619if test -z "$CPP"; then
4620 if test "${ac_cv_prog_CPP+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622else
4623 # Double quotes because CPP needs to be expanded
4624 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4625 do
4626 ac_preproc_ok=false
4627for ac_c_preproc_warn_flag in '' yes
4628do
4629 # Use a header file that comes with gcc, so configuring glibc
4630 # with a fresh cross-compiler works.
4631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4632 # <limits.h> exists even on freestanding compilers.
4633 # On the NeXT, cc -E runs the code through the compiler's parser,
4634 # not just through cpp. "Syntax error" is here to catch this case.
4635 cat >conftest.$ac_ext <<_ACEOF
4636/* confdefs.h. */
4637_ACEOF
4638cat confdefs.h >>conftest.$ac_ext
4639cat >>conftest.$ac_ext <<_ACEOF
4640/* end confdefs.h. */
4641#ifdef __STDC__
4642# include <limits.h>
4643#else
4644# include <assert.h>
4645#endif
4646 Syntax error
4647_ACEOF
dd184caf 4648if { (ac_try="$ac_cpp conftest.$ac_ext"
4649case "(($ac_try" in
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4652esac
4653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4655 ac_status=$?
4656 grep -v '^ *+' conftest.er1 >conftest.err
4657 rm -f conftest.er1
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4660 (exit $ac_status); } >/dev/null && {
4661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4662 test ! -s conftest.err
4663 }; then
d9898ee8 4664 :
4665else
4666 echo "$as_me: failed program was:" >&5
4667sed 's/^/| /' conftest.$ac_ext >&5
4668
4669 # Broken: fails on valid input.
4670continue
4671fi
dd184caf 4672
d9898ee8 4673rm -f conftest.err conftest.$ac_ext
4674
dd184caf 4675 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4676 # can be detected and how.
4677 cat >conftest.$ac_ext <<_ACEOF
4678/* confdefs.h. */
4679_ACEOF
4680cat confdefs.h >>conftest.$ac_ext
4681cat >>conftest.$ac_ext <<_ACEOF
4682/* end confdefs.h. */
4683#include <ac_nonexistent.h>
4684_ACEOF
dd184caf 4685if { (ac_try="$ac_cpp conftest.$ac_ext"
4686case "(($ac_try" in
4687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688 *) ac_try_echo=$ac_try;;
4689esac
4690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4692 ac_status=$?
4693 grep -v '^ *+' conftest.er1 >conftest.err
4694 rm -f conftest.er1
4695 cat conftest.err >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4697 (exit $ac_status); } >/dev/null && {
4698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4699 test ! -s conftest.err
4700 }; then
d9898ee8 4701 # Broken: success on invalid input.
4702continue
4703else
4704 echo "$as_me: failed program was:" >&5
4705sed 's/^/| /' conftest.$ac_ext >&5
4706
4707 # Passes both tests.
4708ac_preproc_ok=:
4709break
4710fi
dd184caf 4711
d9898ee8 4712rm -f conftest.err conftest.$ac_ext
4713
4714done
4715# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4716rm -f conftest.err conftest.$ac_ext
4717if $ac_preproc_ok; then
4718 break
4719fi
4720
4721 done
4722 ac_cv_prog_CPP=$CPP
4723
4724fi
4725 CPP=$ac_cv_prog_CPP
4726else
4727 ac_cv_prog_CPP=$CPP
4728fi
dd184caf 4729{ echo "$as_me:$LINENO: result: $CPP" >&5
4730echo "${ECHO_T}$CPP" >&6; }
d9898ee8 4731ac_preproc_ok=false
4732for ac_c_preproc_warn_flag in '' yes
4733do
4734 # Use a header file that comes with gcc, so configuring glibc
4735 # with a fresh cross-compiler works.
4736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4737 # <limits.h> exists even on freestanding compilers.
4738 # On the NeXT, cc -E runs the code through the compiler's parser,
4739 # not just through cpp. "Syntax error" is here to catch this case.
4740 cat >conftest.$ac_ext <<_ACEOF
4741/* confdefs.h. */
4742_ACEOF
4743cat confdefs.h >>conftest.$ac_ext
4744cat >>conftest.$ac_ext <<_ACEOF
4745/* end confdefs.h. */
4746#ifdef __STDC__
4747# include <limits.h>
4748#else
4749# include <assert.h>
4750#endif
4751 Syntax error
4752_ACEOF
dd184caf 4753if { (ac_try="$ac_cpp conftest.$ac_ext"
4754case "(($ac_try" in
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4757esac
4758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4760 ac_status=$?
4761 grep -v '^ *+' conftest.er1 >conftest.err
4762 rm -f conftest.er1
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4765 (exit $ac_status); } >/dev/null && {
4766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4767 test ! -s conftest.err
4768 }; then
d9898ee8 4769 :
4770else
4771 echo "$as_me: failed program was:" >&5
4772sed 's/^/| /' conftest.$ac_ext >&5
4773
4774 # Broken: fails on valid input.
4775continue
4776fi
dd184caf 4777
d9898ee8 4778rm -f conftest.err conftest.$ac_ext
4779
dd184caf 4780 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4781 # can be detected and how.
4782 cat >conftest.$ac_ext <<_ACEOF
4783/* confdefs.h. */
4784_ACEOF
4785cat confdefs.h >>conftest.$ac_ext
4786cat >>conftest.$ac_ext <<_ACEOF
4787/* end confdefs.h. */
4788#include <ac_nonexistent.h>
4789_ACEOF
dd184caf 4790if { (ac_try="$ac_cpp conftest.$ac_ext"
4791case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794esac
4795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4797 ac_status=$?
4798 grep -v '^ *+' conftest.er1 >conftest.err
4799 rm -f conftest.er1
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4802 (exit $ac_status); } >/dev/null && {
4803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4804 test ! -s conftest.err
4805 }; then
d9898ee8 4806 # Broken: success on invalid input.
4807continue
4808else
4809 echo "$as_me: failed program was:" >&5
4810sed 's/^/| /' conftest.$ac_ext >&5
4811
4812 # Passes both tests.
4813ac_preproc_ok=:
4814break
4815fi
dd184caf 4816
d9898ee8 4817rm -f conftest.err conftest.$ac_ext
4818
4819done
4820# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4821rm -f conftest.err conftest.$ac_ext
4822if $ac_preproc_ok; then
4823 :
4824else
4825 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4826See \`config.log' for more details." >&5
4827echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4828See \`config.log' for more details." >&2;}
4829 { (exit 1); exit 1; }; }
4830fi
4831
4832ac_ext=c
4833ac_cpp='$CPP $CPPFLAGS'
4834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837
4838
dd184caf 4839{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4840echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 4841if test "${ac_cv_header_stdc+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4843else
4844 cat >conftest.$ac_ext <<_ACEOF
4845/* confdefs.h. */
4846_ACEOF
4847cat confdefs.h >>conftest.$ac_ext
4848cat >>conftest.$ac_ext <<_ACEOF
4849/* end confdefs.h. */
4850#include <stdlib.h>
4851#include <stdarg.h>
4852#include <string.h>
4853#include <float.h>
4854
4855int
4856main ()
4857{
4858
4859 ;
4860 return 0;
4861}
4862_ACEOF
4863rm -f conftest.$ac_objext
dd184caf 4864if { (ac_try="$ac_compile"
4865case "(($ac_try" in
4866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4867 *) ac_try_echo=$ac_try;;
4868esac
4869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4870 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4871 ac_status=$?
4872 grep -v '^ *+' conftest.er1 >conftest.err
4873 rm -f conftest.er1
4874 cat conftest.err >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4876 (exit $ac_status); } && {
4877 test -z "$ac_c_werror_flag" ||
4878 test ! -s conftest.err
4879 } && test -s conftest.$ac_objext; then
d9898ee8 4880 ac_cv_header_stdc=yes
4881else
4882 echo "$as_me: failed program was:" >&5
4883sed 's/^/| /' conftest.$ac_ext >&5
4884
dd184caf 4885 ac_cv_header_stdc=no
d9898ee8 4886fi
dd184caf 4887
4888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4889
4890if test $ac_cv_header_stdc = yes; then
4891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4892 cat >conftest.$ac_ext <<_ACEOF
4893/* confdefs.h. */
4894_ACEOF
4895cat confdefs.h >>conftest.$ac_ext
4896cat >>conftest.$ac_ext <<_ACEOF
4897/* end confdefs.h. */
4898#include <string.h>
4899
4900_ACEOF
4901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4902 $EGREP "memchr" >/dev/null 2>&1; then
4903 :
4904else
4905 ac_cv_header_stdc=no
4906fi
4907rm -f conftest*
4908
4909fi
4910
4911if test $ac_cv_header_stdc = yes; then
4912 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4913 cat >conftest.$ac_ext <<_ACEOF
4914/* confdefs.h. */
4915_ACEOF
4916cat confdefs.h >>conftest.$ac_ext
4917cat >>conftest.$ac_ext <<_ACEOF
4918/* end confdefs.h. */
4919#include <stdlib.h>
4920
4921_ACEOF
4922if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4923 $EGREP "free" >/dev/null 2>&1; then
4924 :
4925else
4926 ac_cv_header_stdc=no
4927fi
4928rm -f conftest*
4929
4930fi
4931
4932if test $ac_cv_header_stdc = yes; then
4933 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4934 if test "$cross_compiling" = yes; then
4935 :
4936else
4937 cat >conftest.$ac_ext <<_ACEOF
4938/* confdefs.h. */
4939_ACEOF
4940cat confdefs.h >>conftest.$ac_ext
4941cat >>conftest.$ac_ext <<_ACEOF
4942/* end confdefs.h. */
4943#include <ctype.h>
dd184caf 4944#include <stdlib.h>
d9898ee8 4945#if ((' ' & 0x0FF) == 0x020)
4946# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4947# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4948#else
4949# define ISLOWER(c) \
4950 (('a' <= (c) && (c) <= 'i') \
4951 || ('j' <= (c) && (c) <= 'r') \
4952 || ('s' <= (c) && (c) <= 'z'))
4953# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4954#endif
4955
4956#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4957int
4958main ()
4959{
4960 int i;
4961 for (i = 0; i < 256; i++)
4962 if (XOR (islower (i), ISLOWER (i))
4963 || toupper (i) != TOUPPER (i))
dd184caf 4964 return 2;
4965 return 0;
d9898ee8 4966}
4967_ACEOF
4968rm -f conftest$ac_exeext
dd184caf 4969if { (ac_try="$ac_link"
4970case "(($ac_try" in
4971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4972 *) ac_try_echo=$ac_try;;
4973esac
4974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4975 (eval "$ac_link") 2>&5
d9898ee8 4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 4979 { (case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982esac
4983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984 (eval "$ac_try") 2>&5
d9898ee8 4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4988 :
4989else
4990 echo "$as_me: program exited with status $ac_status" >&5
4991echo "$as_me: failed program was:" >&5
4992sed 's/^/| /' conftest.$ac_ext >&5
4993
4994( exit $ac_status )
4995ac_cv_header_stdc=no
4996fi
dd184caf 4997rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 4998fi
dd184caf 4999
5000
d9898ee8 5001fi
5002fi
dd184caf 5003{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5004echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 5005if test $ac_cv_header_stdc = yes; then
5006
5007cat >>confdefs.h <<\_ACEOF
5008#define STDC_HEADERS 1
5009_ACEOF
5010
5011fi
5012
5013# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5024 inttypes.h stdint.h unistd.h
5025do
5026as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 5027{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5031else
5032 cat >conftest.$ac_ext <<_ACEOF
5033/* confdefs.h. */
5034_ACEOF
5035cat confdefs.h >>conftest.$ac_ext
5036cat >>conftest.$ac_ext <<_ACEOF
5037/* end confdefs.h. */
5038$ac_includes_default
5039
5040#include <$ac_header>
5041_ACEOF
5042rm -f conftest.$ac_objext
dd184caf 5043if { (ac_try="$ac_compile"
5044case "(($ac_try" in
5045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046 *) ac_try_echo=$ac_try;;
5047esac
5048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5050 ac_status=$?
5051 grep -v '^ *+' conftest.er1 >conftest.err
5052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5055 (exit $ac_status); } && {
5056 test -z "$ac_c_werror_flag" ||
5057 test ! -s conftest.err
5058 } && test -s conftest.$ac_objext; then
d9898ee8 5059 eval "$as_ac_Header=yes"
5060else
5061 echo "$as_me: failed program was:" >&5
5062sed 's/^/| /' conftest.$ac_ext >&5
5063
dd184caf 5064 eval "$as_ac_Header=no"
d9898ee8 5065fi
dd184caf 5066
5067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5068fi
dd184caf 5069ac_res=`eval echo '${'$as_ac_Header'}'`
5070 { echo "$as_me:$LINENO: result: $ac_res" >&5
5071echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5072if test `eval echo '${'$as_ac_Header'}'` = yes; then
5073 cat >>confdefs.h <<_ACEOF
5074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5075_ACEOF
5076
5077fi
5078
5079done
5080
5081
5082
5083for ac_header in dlfcn.h
5084do
5085as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 5086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091fi
dd184caf 5092ac_res=`eval echo '${'$as_ac_Header'}'`
5093 { echo "$as_me:$LINENO: result: $ac_res" >&5
5094echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5095else
5096 # Is the header compilable?
dd184caf 5097{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5098echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 5099cat >conftest.$ac_ext <<_ACEOF
5100/* confdefs.h. */
5101_ACEOF
5102cat confdefs.h >>conftest.$ac_ext
5103cat >>conftest.$ac_ext <<_ACEOF
5104/* end confdefs.h. */
5105$ac_includes_default
5106#include <$ac_header>
5107_ACEOF
5108rm -f conftest.$ac_objext
dd184caf 5109if { (ac_try="$ac_compile"
5110case "(($ac_try" in
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5113esac
5114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5116 ac_status=$?
5117 grep -v '^ *+' conftest.er1 >conftest.err
5118 rm -f conftest.er1
5119 cat conftest.err >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5121 (exit $ac_status); } && {
5122 test -z "$ac_c_werror_flag" ||
5123 test ! -s conftest.err
5124 } && test -s conftest.$ac_objext; then
d9898ee8 5125 ac_header_compiler=yes
5126else
5127 echo "$as_me: failed program was:" >&5
5128sed 's/^/| /' conftest.$ac_ext >&5
5129
dd184caf 5130 ac_header_compiler=no
d9898ee8 5131fi
dd184caf 5132
5133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5135echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 5136
5137# Is the header present?
dd184caf 5138{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5139echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 5140cat >conftest.$ac_ext <<_ACEOF
5141/* confdefs.h. */
5142_ACEOF
5143cat confdefs.h >>conftest.$ac_ext
5144cat >>conftest.$ac_ext <<_ACEOF
5145/* end confdefs.h. */
5146#include <$ac_header>
5147_ACEOF
dd184caf 5148if { (ac_try="$ac_cpp conftest.$ac_ext"
5149case "(($ac_try" in
5150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5151 *) ac_try_echo=$ac_try;;
5152esac
5153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5155 ac_status=$?
5156 grep -v '^ *+' conftest.er1 >conftest.err
5157 rm -f conftest.er1
5158 cat conftest.err >&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5160 (exit $ac_status); } >/dev/null && {
5161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5162 test ! -s conftest.err
5163 }; then
d9898ee8 5164 ac_header_preproc=yes
5165else
5166 echo "$as_me: failed program was:" >&5
5167sed 's/^/| /' conftest.$ac_ext >&5
5168
5169 ac_header_preproc=no
5170fi
dd184caf 5171
d9898ee8 5172rm -f conftest.err conftest.$ac_ext
dd184caf 5173{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5174echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 5175
5176# So? What about this header?
5177case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5178 yes:no: )
5179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5180echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5182echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5183 ac_header_preproc=yes
5184 ;;
5185 no:yes:* )
5186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5187echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5189echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5191echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5193echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5195echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5197echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dd184caf 5198 ( cat <<\_ASBOX
d9898ee8 5199## -------------------------------------------------- ##
5200## Report this to courier-users@lists.sourceforge.net ##
5201## -------------------------------------------------- ##
5202_ASBOX
dd184caf 5203 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 5204 ;;
5205esac
dd184caf 5206{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210else
5211 eval "$as_ac_Header=\$ac_header_preproc"
5212fi
dd184caf 5213ac_res=`eval echo '${'$as_ac_Header'}'`
5214 { echo "$as_me:$LINENO: result: $ac_res" >&5
5215echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5216
5217fi
5218if test `eval echo '${'$as_ac_Header'}'` = yes; then
5219 cat >>confdefs.h <<_ACEOF
5220#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5221_ACEOF
5222
5223fi
5224
5225done
5226
dd184caf 5227ac_ext=cpp
d9898ee8 5228ac_cpp='$CXXCPP $CPPFLAGS'
5229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
dd184caf 5232if test -z "$CXX"; then
5233 if test -n "$CCC"; then
5234 CXX=$CCC
5235 else
5236 if test -n "$ac_tool_prefix"; then
5237 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5238 do
5239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5240set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 5241{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5243if test "${ac_cv_prog_CXX+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245else
5246 if test -n "$CXX"; then
5247 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5248else
5249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250for as_dir in $PATH
5251do
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5256 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 break 2
5259 fi
5260done
5261done
dd184caf 5262IFS=$as_save_IFS
d9898ee8 5263
5264fi
5265fi
5266CXX=$ac_cv_prog_CXX
5267if test -n "$CXX"; then
dd184caf 5268 { echo "$as_me:$LINENO: result: $CXX" >&5
5269echo "${ECHO_T}$CXX" >&6; }
d9898ee8 5270else
dd184caf 5271 { echo "$as_me:$LINENO: result: no" >&5
5272echo "${ECHO_T}no" >&6; }
d9898ee8 5273fi
5274
dd184caf 5275
d9898ee8 5276 test -n "$CXX" && break
5277 done
5278fi
5279if test -z "$CXX"; then
5280 ac_ct_CXX=$CXX
dd184caf 5281 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5282do
5283 # Extract the first word of "$ac_prog", so it can be a program name with args.
5284set dummy $ac_prog; ac_word=$2
dd184caf 5285{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5287if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5289else
5290 if test -n "$ac_ct_CXX"; then
5291 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5292else
5293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294for as_dir in $PATH
5295do
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5300 ac_cv_prog_ac_ct_CXX="$ac_prog"
5301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5303 fi
5304done
5305done
dd184caf 5306IFS=$as_save_IFS
d9898ee8 5307
5308fi
5309fi
5310ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5311if test -n "$ac_ct_CXX"; then
dd184caf 5312 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5313echo "${ECHO_T}$ac_ct_CXX" >&6; }
d9898ee8 5314else
dd184caf 5315 { echo "$as_me:$LINENO: result: no" >&5
5316echo "${ECHO_T}no" >&6; }
d9898ee8 5317fi
5318
dd184caf 5319
d9898ee8 5320 test -n "$ac_ct_CXX" && break
5321done
d9898ee8 5322
dd184caf 5323 if test "x$ac_ct_CXX" = x; then
5324 CXX="g++"
5325 else
5326 case $cross_compiling:$ac_tool_warned in
5327yes:)
5328{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5329whose name does not start with the host triplet. If you think this
5330configuration is useful to you, please write to autoconf@gnu.org." >&5
5331echo "$as_me: 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." >&2;}
5334ac_tool_warned=yes ;;
5335esac
5336 CXX=$ac_ct_CXX
5337 fi
d9898ee8 5338fi
5339
dd184caf 5340 fi
5341fi
d9898ee8 5342# Provide some information about the compiler.
dd184caf 5343echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d9898ee8 5344ac_compiler=`set X $ac_compile; echo $2`
dd184caf 5345{ (ac_try="$ac_compiler --version >&5"
5346case "(($ac_try" in
5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348 *) ac_try_echo=$ac_try;;
5349esac
5350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5351 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 5352 ac_status=$?
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }
dd184caf 5355{ (ac_try="$ac_compiler -v >&5"
5356case "(($ac_try" in
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5359esac
5360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }
dd184caf 5365{ (ac_try="$ac_compiler -V >&5"
5366case "(($ac_try" in
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5369esac
5370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 5372 ac_status=$?
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }
5375
dd184caf 5376{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5377echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d9898ee8 5378if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5380else
5381 cat >conftest.$ac_ext <<_ACEOF
5382/* confdefs.h. */
5383_ACEOF
5384cat confdefs.h >>conftest.$ac_ext
5385cat >>conftest.$ac_ext <<_ACEOF
5386/* end confdefs.h. */
5387
5388int
5389main ()
5390{
5391#ifndef __GNUC__
5392 choke me
5393#endif
5394
5395 ;
5396 return 0;
5397}
5398_ACEOF
5399rm -f conftest.$ac_objext
dd184caf 5400if { (ac_try="$ac_compile"
5401case "(($ac_try" in
5402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5403 *) ac_try_echo=$ac_try;;
5404esac
5405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5406 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5407 ac_status=$?
5408 grep -v '^ *+' conftest.er1 >conftest.err
5409 rm -f conftest.er1
5410 cat conftest.err >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5412 (exit $ac_status); } && {
5413 test -z "$ac_cxx_werror_flag" ||
5414 test ! -s conftest.err
5415 } && test -s conftest.$ac_objext; then
d9898ee8 5416 ac_compiler_gnu=yes
5417else
5418 echo "$as_me: failed program was:" >&5
5419sed 's/^/| /' conftest.$ac_ext >&5
5420
dd184caf 5421 ac_compiler_gnu=no
d9898ee8 5422fi
dd184caf 5423
5424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5425ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5426
5427fi
dd184caf 5428{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5429echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d9898ee8 5430GXX=`test $ac_compiler_gnu = yes && echo yes`
5431ac_test_CXXFLAGS=${CXXFLAGS+set}
5432ac_save_CXXFLAGS=$CXXFLAGS
dd184caf 5433{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5434echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d9898ee8 5435if test "${ac_cv_prog_cxx_g+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5437else
dd184caf 5438 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5439 ac_cxx_werror_flag=yes
5440 ac_cv_prog_cxx_g=no
5441 CXXFLAGS="-g"
5442 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5443/* confdefs.h. */
5444_ACEOF
5445cat confdefs.h >>conftest.$ac_ext
5446cat >>conftest.$ac_ext <<_ACEOF
5447/* end confdefs.h. */
5448
5449int
5450main ()
5451{
5452
5453 ;
5454 return 0;
5455}
5456_ACEOF
5457rm -f conftest.$ac_objext
dd184caf 5458if { (ac_try="$ac_compile"
5459case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462esac
5463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5465 ac_status=$?
5466 grep -v '^ *+' conftest.er1 >conftest.err
5467 rm -f conftest.er1
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5470 (exit $ac_status); } && {
5471 test -z "$ac_cxx_werror_flag" ||
5472 test ! -s conftest.err
5473 } && test -s conftest.$ac_objext; then
d9898ee8 5474 ac_cv_prog_cxx_g=yes
5475else
5476 echo "$as_me: failed program was:" >&5
5477sed 's/^/| /' conftest.$ac_ext >&5
5478
dd184caf 5479 CXXFLAGS=""
5480 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5481/* confdefs.h. */
5482_ACEOF
5483cat confdefs.h >>conftest.$ac_ext
5484cat >>conftest.$ac_ext <<_ACEOF
5485/* end confdefs.h. */
dd184caf 5486
d9898ee8 5487int
5488main ()
5489{
dd184caf 5490
d9898ee8 5491 ;
5492 return 0;
5493}
5494_ACEOF
5495rm -f conftest.$ac_objext
dd184caf 5496if { (ac_try="$ac_compile"
5497case "(($ac_try" in
5498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499 *) ac_try_echo=$ac_try;;
5500esac
5501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5502 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5503 ac_status=$?
5504 grep -v '^ *+' conftest.er1 >conftest.err
5505 rm -f conftest.er1
5506 cat conftest.err >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5508 (exit $ac_status); } && {
5509 test -z "$ac_cxx_werror_flag" ||
5510 test ! -s conftest.err
5511 } && test -s conftest.$ac_objext; then
d9898ee8 5512 :
5513else
5514 echo "$as_me: failed program was:" >&5
5515sed 's/^/| /' conftest.$ac_ext >&5
5516
dd184caf 5517 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5518 CXXFLAGS="-g"
5519 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5520/* confdefs.h. */
5521_ACEOF
5522cat confdefs.h >>conftest.$ac_ext
5523cat >>conftest.$ac_ext <<_ACEOF
5524/* end confdefs.h. */
dd184caf 5525
d9898ee8 5526int
5527main ()
5528{
dd184caf 5529
d9898ee8 5530 ;
5531 return 0;
5532}
5533_ACEOF
5534rm -f conftest.$ac_objext
dd184caf 5535if { (ac_try="$ac_compile"
5536case "(($ac_try" in
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5539esac
5540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5547 (exit $ac_status); } && {
5548 test -z "$ac_cxx_werror_flag" ||
5549 test ! -s conftest.err
5550 } && test -s conftest.$ac_objext; then
5551 ac_cv_prog_cxx_g=yes
d9898ee8 5552else
5553 echo "$as_me: failed program was:" >&5
5554sed 's/^/| /' conftest.$ac_ext >&5
5555
dd184caf 5556
d9898ee8 5557fi
dd184caf 5558
5559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560fi
5561
5562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5563fi
5564
dd184caf 5565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5567fi
5568{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5569echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5570if test "$ac_test_CXXFLAGS" = set; then
5571 CXXFLAGS=$ac_save_CXXFLAGS
5572elif test $ac_cv_prog_cxx_g = yes; then
5573 if test "$GXX" = yes; then
5574 CXXFLAGS="-g -O2"
5575 else
5576 CXXFLAGS="-g"
5577 fi
5578else
5579 if test "$GXX" = yes; then
5580 CXXFLAGS="-O2"
5581 else
5582 CXXFLAGS=
5583 fi
5584fi
5585ac_ext=cpp
d9898ee8 5586ac_cpp='$CXXCPP $CPPFLAGS'
5587ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5588ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5589ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5590
5591depcc="$CXX" am_compiler_list=
5592
dd184caf 5593{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5594echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 5595if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5597else
5598 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5599 # We make a subdir and do the tests there. Otherwise we can end up
5600 # making bogus files that we don't know about and never remove. For
5601 # instance it was reported that on HP-UX the gcc test will end up
5602 # making a dummy file named `D' -- because `-MD' means `put the output
5603 # in D'.
5604 mkdir conftest.dir
5605 # Copy depcomp to subdir because otherwise we won't find it if we're
5606 # using a relative directory.
5607 cp "$am_depcomp" conftest.dir
5608 cd conftest.dir
5609 # We will build objects and dependencies in a subdirectory because
5610 # it helps to detect inapplicable dependency modes. For instance
5611 # both Tru64's cc and ICC support -MD to output dependencies as a
5612 # side effect of compilation, but ICC will put the dependencies in
5613 # the current directory while Tru64 will put them in the object
5614 # directory.
5615 mkdir sub
5616
5617 am_cv_CXX_dependencies_compiler_type=none
5618 if test "$am_compiler_list" = ""; then
5619 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5620 fi
5621 for depmode in $am_compiler_list; do
5622 # Setup a source with many dependencies, because some compilers
5623 # like to wrap large dependency lists on column 80 (with \), and
5624 # we should not choose a depcomp mode which is confused by this.
5625 #
5626 # We need to recreate these files for each test, as the compiler may
5627 # overwrite some of them when testing with obscure command lines.
5628 # This happens at least with the AIX C compiler.
5629 : > sub/conftest.c
5630 for i in 1 2 3 4 5 6; do
5631 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5632 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5633 # Solaris 8's {/usr,}/bin/sh.
5634 touch sub/conftst$i.h
5635 done
5636 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5637
5638 case $depmode in
5639 nosideeffect)
5640 # after this tag, mechanisms are not by side-effect, so they'll
5641 # only be used when explicitly requested
5642 if test "x$enable_dependency_tracking" = xyes; then
5643 continue
5644 else
5645 break
5646 fi
5647 ;;
5648 none) break ;;
5649 esac
5650 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5651 # mode. It turns out that the SunPro C++ compiler does not properly
5652 # handle `-M -o', and we need to detect this.
5653 if depmode=$depmode \
5654 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5655 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5656 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5657 >/dev/null 2>conftest.err &&
dd184caf 5658 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5659 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5660 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5661 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5662 # icc doesn't choke on unknown options, it will just issue warnings
5663 # or remarks (even with -Werror). So we grep stderr for any message
5664 # that says an option was ignored or not supported.
5665 # When given -MP, icc 7.0 and 7.1 complain thusly:
5666 # icc: Command line warning: ignoring option '-M'; no argument required
5667 # The diagnosis changed in icc 8.0:
5668 # icc: Command line remark: option '-MP' not supported
5669 if (grep 'ignoring option' conftest.err ||
5670 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5671 am_cv_CXX_dependencies_compiler_type=$depmode
5672 break
5673 fi
5674 fi
5675 done
5676
5677 cd ..
5678 rm -rf conftest.dir
5679else
5680 am_cv_CXX_dependencies_compiler_type=none
5681fi
5682
5683fi
dd184caf 5684{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5685echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
d9898ee8 5686CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5687
dd184caf 5688 if
d9898ee8 5689 test "x$enable_dependency_tracking" != xno \
5690 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5691 am__fastdepCXX_TRUE=
5692 am__fastdepCXX_FALSE='#'
5693else
5694 am__fastdepCXX_TRUE='#'
5695 am__fastdepCXX_FALSE=
5696fi
5697
5698
5699
5700
5701if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5702 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5703 (test "X$CXX" != "Xg++"))) ; then
dd184caf 5704 ac_ext=cpp
d9898ee8 5705ac_cpp='$CXXCPP $CPPFLAGS'
5706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
dd184caf 5709{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5710echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d9898ee8 5711if test -z "$CXXCPP"; then
5712 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5714else
5715 # Double quotes because CXXCPP needs to be expanded
5716 for CXXCPP in "$CXX -E" "/lib/cpp"
5717 do
5718 ac_preproc_ok=false
5719for ac_cxx_preproc_warn_flag in '' yes
5720do
5721 # Use a header file that comes with gcc, so configuring glibc
5722 # with a fresh cross-compiler works.
5723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5724 # <limits.h> exists even on freestanding compilers.
5725 # On the NeXT, cc -E runs the code through the compiler's parser,
5726 # not just through cpp. "Syntax error" is here to catch this case.
5727 cat >conftest.$ac_ext <<_ACEOF
5728/* confdefs.h. */
5729_ACEOF
5730cat confdefs.h >>conftest.$ac_ext
5731cat >>conftest.$ac_ext <<_ACEOF
5732/* end confdefs.h. */
5733#ifdef __STDC__
5734# include <limits.h>
5735#else
5736# include <assert.h>
5737#endif
5738 Syntax error
5739_ACEOF
dd184caf 5740if { (ac_try="$ac_cpp conftest.$ac_ext"
5741case "(($ac_try" in
5742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743 *) ac_try_echo=$ac_try;;
5744esac
5745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5747 ac_status=$?
5748 grep -v '^ *+' conftest.er1 >conftest.err
5749 rm -f conftest.er1
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5752 (exit $ac_status); } >/dev/null && {
5753 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5754 test ! -s conftest.err
5755 }; then
d9898ee8 5756 :
5757else
5758 echo "$as_me: failed program was:" >&5
5759sed 's/^/| /' conftest.$ac_ext >&5
5760
5761 # Broken: fails on valid input.
5762continue
5763fi
dd184caf 5764
d9898ee8 5765rm -f conftest.err conftest.$ac_ext
5766
dd184caf 5767 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5768 # can be detected and how.
5769 cat >conftest.$ac_ext <<_ACEOF
5770/* confdefs.h. */
5771_ACEOF
5772cat confdefs.h >>conftest.$ac_ext
5773cat >>conftest.$ac_ext <<_ACEOF
5774/* end confdefs.h. */
5775#include <ac_nonexistent.h>
5776_ACEOF
dd184caf 5777if { (ac_try="$ac_cpp conftest.$ac_ext"
5778case "(($ac_try" in
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5781esac
5782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5784 ac_status=$?
5785 grep -v '^ *+' conftest.er1 >conftest.err
5786 rm -f conftest.er1
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5789 (exit $ac_status); } >/dev/null && {
5790 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5791 test ! -s conftest.err
5792 }; then
d9898ee8 5793 # Broken: success on invalid input.
5794continue
5795else
5796 echo "$as_me: failed program was:" >&5
5797sed 's/^/| /' conftest.$ac_ext >&5
5798
5799 # Passes both tests.
5800ac_preproc_ok=:
5801break
5802fi
dd184caf 5803
d9898ee8 5804rm -f conftest.err conftest.$ac_ext
5805
5806done
5807# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5808rm -f conftest.err conftest.$ac_ext
5809if $ac_preproc_ok; then
5810 break
5811fi
5812
5813 done
5814 ac_cv_prog_CXXCPP=$CXXCPP
5815
5816fi
5817 CXXCPP=$ac_cv_prog_CXXCPP
5818else
5819 ac_cv_prog_CXXCPP=$CXXCPP
5820fi
dd184caf 5821{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5822echo "${ECHO_T}$CXXCPP" >&6; }
d9898ee8 5823ac_preproc_ok=false
5824for ac_cxx_preproc_warn_flag in '' yes
5825do
5826 # Use a header file that comes with gcc, so configuring glibc
5827 # with a fresh cross-compiler works.
5828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5829 # <limits.h> exists even on freestanding compilers.
5830 # On the NeXT, cc -E runs the code through the compiler's parser,
5831 # not just through cpp. "Syntax error" is here to catch this case.
5832 cat >conftest.$ac_ext <<_ACEOF
5833/* confdefs.h. */
5834_ACEOF
5835cat confdefs.h >>conftest.$ac_ext
5836cat >>conftest.$ac_ext <<_ACEOF
5837/* end confdefs.h. */
5838#ifdef __STDC__
5839# include <limits.h>
5840#else
5841# include <assert.h>
5842#endif
5843 Syntax error
5844_ACEOF
dd184caf 5845if { (ac_try="$ac_cpp conftest.$ac_ext"
5846case "(($ac_try" in
5847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848 *) ac_try_echo=$ac_try;;
5849esac
5850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5852 ac_status=$?
5853 grep -v '^ *+' conftest.er1 >conftest.err
5854 rm -f conftest.er1
5855 cat conftest.err >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5857 (exit $ac_status); } >/dev/null && {
5858 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5859 test ! -s conftest.err
5860 }; then
d9898ee8 5861 :
5862else
5863 echo "$as_me: failed program was:" >&5
5864sed 's/^/| /' conftest.$ac_ext >&5
5865
5866 # Broken: fails on valid input.
5867continue
5868fi
dd184caf 5869
d9898ee8 5870rm -f conftest.err conftest.$ac_ext
5871
dd184caf 5872 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5873 # can be detected and how.
5874 cat >conftest.$ac_ext <<_ACEOF
5875/* confdefs.h. */
5876_ACEOF
5877cat confdefs.h >>conftest.$ac_ext
5878cat >>conftest.$ac_ext <<_ACEOF
5879/* end confdefs.h. */
5880#include <ac_nonexistent.h>
5881_ACEOF
dd184caf 5882if { (ac_try="$ac_cpp conftest.$ac_ext"
5883case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886esac
5887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5889 ac_status=$?
5890 grep -v '^ *+' conftest.er1 >conftest.err
5891 rm -f conftest.er1
5892 cat conftest.err >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5894 (exit $ac_status); } >/dev/null && {
5895 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5896 test ! -s conftest.err
5897 }; then
d9898ee8 5898 # Broken: success on invalid input.
5899continue
5900else
5901 echo "$as_me: failed program was:" >&5
5902sed 's/^/| /' conftest.$ac_ext >&5
5903
5904 # Passes both tests.
5905ac_preproc_ok=:
5906break
5907fi
dd184caf 5908
d9898ee8 5909rm -f conftest.err conftest.$ac_ext
5910
5911done
5912# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5913rm -f conftest.err conftest.$ac_ext
5914if $ac_preproc_ok; then
5915 :
5916else
5917 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5918See \`config.log' for more details." >&5
5919echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5920See \`config.log' for more details." >&2;}
5921 { (exit 1); exit 1; }; }
5922fi
5923
dd184caf 5924ac_ext=cpp
d9898ee8 5925ac_cpp='$CXXCPP $CPPFLAGS'
5926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5929
5930fi
5931
5932
5933ac_ext=f
5934ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5935ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5936ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5937if test -n "$ac_tool_prefix"; then
dd184caf 5938 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 5939 do
5940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5941set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 5942{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5944if test "${ac_cv_prog_F77+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946else
5947 if test -n "$F77"; then
5948 ac_cv_prog_F77="$F77" # Let the user override the test.
5949else
5950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951for as_dir in $PATH
5952do
5953 IFS=$as_save_IFS
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5957 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 break 2
5960 fi
5961done
5962done
dd184caf 5963IFS=$as_save_IFS
d9898ee8 5964
5965fi
5966fi
5967F77=$ac_cv_prog_F77
5968if test -n "$F77"; then
dd184caf 5969 { echo "$as_me:$LINENO: result: $F77" >&5
5970echo "${ECHO_T}$F77" >&6; }
d9898ee8 5971else
dd184caf 5972 { echo "$as_me:$LINENO: result: no" >&5
5973echo "${ECHO_T}no" >&6; }
d9898ee8 5974fi
5975
dd184caf 5976
d9898ee8 5977 test -n "$F77" && break
5978 done
5979fi
5980if test -z "$F77"; then
5981 ac_ct_F77=$F77
dd184caf 5982 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 5983do
5984 # Extract the first word of "$ac_prog", so it can be a program name with args.
5985set dummy $ac_prog; ac_word=$2
dd184caf 5986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5988if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5990else
5991 if test -n "$ac_ct_F77"; then
5992 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5993else
5994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995for as_dir in $PATH
5996do
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6001 ac_cv_prog_ac_ct_F77="$ac_prog"
6002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 break 2
6004 fi
6005done
6006done
dd184caf 6007IFS=$as_save_IFS
d9898ee8 6008
6009fi
6010fi
6011ac_ct_F77=$ac_cv_prog_ac_ct_F77
6012if test -n "$ac_ct_F77"; then
dd184caf 6013 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6014echo "${ECHO_T}$ac_ct_F77" >&6; }
d9898ee8 6015else
dd184caf 6016 { echo "$as_me:$LINENO: result: no" >&5
6017echo "${ECHO_T}no" >&6; }
d9898ee8 6018fi
6019
dd184caf 6020
d9898ee8 6021 test -n "$ac_ct_F77" && break
6022done
6023
dd184caf 6024 if test "x$ac_ct_F77" = x; then
6025 F77=""
6026 else
6027 case $cross_compiling:$ac_tool_warned in
6028yes:)
6029{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6030whose name does not start with the host triplet. If you think this
6031configuration is useful to you, please write to autoconf@gnu.org." >&5
6032echo "$as_me: 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." >&2;}
6035ac_tool_warned=yes ;;
6036esac
6037 F77=$ac_ct_F77
6038 fi
d9898ee8 6039fi
6040
6041
6042# Provide some information about the compiler.
dd184caf 6043echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d9898ee8 6044ac_compiler=`set X $ac_compile; echo $2`
dd184caf 6045{ (ac_try="$ac_compiler --version >&5"
6046case "(($ac_try" in
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6049esac
6050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 6052 ac_status=$?
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }
dd184caf 6055{ (ac_try="$ac_compiler -v >&5"
6056case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6059esac
6060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 6062 ac_status=$?
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }
dd184caf 6065{ (ac_try="$ac_compiler -V >&5"
6066case "(($ac_try" in
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6069esac
6070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }
6075rm -f a.out
6076
6077# If we don't use `.F' as extension, the preprocessor is not run on the
6078# input file. (Note that this only needs to work for GNU compilers.)
6079ac_save_ext=$ac_ext
6080ac_ext=F
dd184caf 6081{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6082echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d9898ee8 6083if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085else
6086 cat >conftest.$ac_ext <<_ACEOF
6087 program main
6088#ifndef __GNUC__
6089 choke me
6090#endif
6091
6092 end
6093_ACEOF
6094rm -f conftest.$ac_objext
dd184caf 6095if { (ac_try="$ac_compile"
6096case "(($ac_try" in
6097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098 *) ac_try_echo=$ac_try;;
6099esac
6100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6101 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6102 ac_status=$?
6103 grep -v '^ *+' conftest.er1 >conftest.err
6104 rm -f conftest.er1
6105 cat conftest.err >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 6107 (exit $ac_status); } && {
6108 test -z "$ac_f77_werror_flag" ||
6109 test ! -s conftest.err
6110 } && test -s conftest.$ac_objext; then
d9898ee8 6111 ac_compiler_gnu=yes
6112else
6113 echo "$as_me: failed program was:" >&5
6114sed 's/^/| /' conftest.$ac_ext >&5
6115
dd184caf 6116 ac_compiler_gnu=no
d9898ee8 6117fi
dd184caf 6118
6119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6120ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6121
6122fi
dd184caf 6123{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6124echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d9898ee8 6125ac_ext=$ac_save_ext
6126ac_test_FFLAGS=${FFLAGS+set}
6127ac_save_FFLAGS=$FFLAGS
6128FFLAGS=
dd184caf 6129{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6130echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d9898ee8 6131if test "${ac_cv_prog_f77_g+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6133else
6134 FFLAGS=-g
6135cat >conftest.$ac_ext <<_ACEOF
6136 program main
6137
6138 end
6139_ACEOF
6140rm -f conftest.$ac_objext
dd184caf 6141if { (ac_try="$ac_compile"
6142case "(($ac_try" in
6143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6144 *) ac_try_echo=$ac_try;;
6145esac
6146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6148 ac_status=$?
6149 grep -v '^ *+' conftest.er1 >conftest.err
6150 rm -f conftest.er1
6151 cat conftest.err >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 6153 (exit $ac_status); } && {
6154 test -z "$ac_f77_werror_flag" ||
6155 test ! -s conftest.err
6156 } && test -s conftest.$ac_objext; then
d9898ee8 6157 ac_cv_prog_f77_g=yes
6158else
6159 echo "$as_me: failed program was:" >&5
6160sed 's/^/| /' conftest.$ac_ext >&5
6161
dd184caf 6162 ac_cv_prog_f77_g=no
d9898ee8 6163fi
dd184caf 6164
6165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6166
6167fi
dd184caf 6168{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6169echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d9898ee8 6170if test "$ac_test_FFLAGS" = set; then
6171 FFLAGS=$ac_save_FFLAGS
6172elif test $ac_cv_prog_f77_g = yes; then
6173 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6174 FFLAGS="-g -O2"
6175 else
6176 FFLAGS="-g"
6177 fi
6178else
6179 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6180 FFLAGS="-O2"
6181 else
6182 FFLAGS=
6183 fi
6184fi
6185
6186G77=`test $ac_compiler_gnu = yes && echo yes`
6187ac_ext=c
6188ac_cpp='$CPP $CPPFLAGS'
6189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192
6193
6194
6195# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6196
6197# find the maximum length of command line arguments
dd184caf 6198{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6199echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
d9898ee8 6200if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202else
6203 i=0
6204 teststring="ABCD"
6205
6206 case $build_os in
6207 msdosdjgpp*)
6208 # On DJGPP, this test can blow up pretty badly due to problems in libc
6209 # (any single argument exceeding 2000 bytes causes a buffer overrun
6210 # during glob expansion). Even if it were fixed, the result of this
6211 # check would be larger than it should be.
6212 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6213 ;;
6214
6215 gnu*)
6216 # Under GNU Hurd, this test is not required because there is
6217 # no limit to the length of command line arguments.
6218 # Libtool will interpret -1 as no limit whatsoever
6219 lt_cv_sys_max_cmd_len=-1;
6220 ;;
6221
6222 cygwin* | mingw*)
6223 # On Win9x/ME, this test blows up -- it succeeds, but takes
6224 # about 5 minutes as the teststring grows exponentially.
6225 # Worse, since 9x/ME are not pre-emptively multitasking,
6226 # you end up with a "frozen" computer, even though with patience
6227 # the test eventually succeeds (with a max line length of 256k).
6228 # Instead, let's just punt: use the minimum linelength reported by
6229 # all of the supported platforms: 8192 (on NT/2K/XP).
6230 lt_cv_sys_max_cmd_len=8192;
6231 ;;
6232
6233 amigaos*)
6234 # On AmigaOS with pdksh, this test takes hours, literally.
6235 # So we just punt and use a minimum line length of 8192.
6236 lt_cv_sys_max_cmd_len=8192;
6237 ;;
6238
6239 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6240 # This has been around since 386BSD, at least. Likely further.
6241 if test -x /sbin/sysctl; then
6242 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6243 elif test -x /usr/sbin/sysctl; then
6244 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6245 else
6246 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6247 fi
6248 # And add a safety zone
6249 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6251 ;;
6252
6253 interix*)
6254 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6255 lt_cv_sys_max_cmd_len=196608
6256 ;;
6257
6258 osf*)
6259 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6260 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6261 # nice to cause kernel panics so lets avoid the loop below.
6262 # First set a reasonable default.
6263 lt_cv_sys_max_cmd_len=16384
6264 #
6265 if test -x /sbin/sysconfig; then
6266 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6267 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6268 esac
6269 fi
6270 ;;
6271 sco3.2v5*)
6272 lt_cv_sys_max_cmd_len=102400
6273 ;;
6274 sysv5* | sco5v6* | sysv4.2uw2*)
6275 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6276 if test -n "$kargmax"; then
6277 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6278 else
6279 lt_cv_sys_max_cmd_len=32768
6280 fi
6281 ;;
6282 *)
6283 # If test is not a shell built-in, we'll probably end up computing a
6284 # maximum length that is only half of the actual maximum length, but
6285 # we can't tell.
6286 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6287 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6288 = "XX$teststring") >/dev/null 2>&1 &&
6289 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6290 lt_cv_sys_max_cmd_len=$new_result &&
6291 test $i != 17 # 1/2 MB should be enough
6292 do
6293 i=`expr $i + 1`
6294 teststring=$teststring$teststring
6295 done
6296 teststring=
6297 # Add a significant safety factor because C++ compilers can tack on massive
6298 # amounts of additional arguments before passing them to the linker.
6299 # It appears as though 1/2 is a usable value.
6300 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6301 ;;
6302 esac
6303
6304fi
6305
6306if test -n $lt_cv_sys_max_cmd_len ; then
dd184caf 6307 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6308echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 6309else
dd184caf 6310 { echo "$as_me:$LINENO: result: none" >&5
6311echo "${ECHO_T}none" >&6; }
d9898ee8 6312fi
6313
6314
6315
6316
6317# Check for command to grab the raw symbol name followed by C symbol from nm.
dd184caf 6318{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6319echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d9898ee8 6320if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6322else
6323
6324# These are sane defaults that work on at least a few old systems.
6325# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6326
6327# Character class describing NM global symbol codes.
6328symcode='[BCDEGRST]'
6329
6330# Regexp to match symbols that can be accessed directly from C.
6331sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6332
6333# Transform an extracted symbol line into a proper C declaration
6334lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6335
6336# Transform an extracted symbol line into symbol name and symbol address
6337lt_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'"
6338
6339# Define system-specific variables.
6340case $host_os in
6341aix*)
6342 symcode='[BCDT]'
6343 ;;
6344cygwin* | mingw* | pw32*)
6345 symcode='[ABCDGISTW]'
6346 ;;
6347hpux*) # Its linker distinguishes data from code symbols
6348 if test "$host_cpu" = ia64; then
6349 symcode='[ABCDEGRST]'
6350 fi
6351 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6352 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'"
6353 ;;
1dce02f2 6354linux* | k*bsd*-gnu)
d9898ee8 6355 if test "$host_cpu" = ia64; then
6356 symcode='[ABCDGIRSTW]'
6357 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6358 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'"
6359 fi
6360 ;;
6361irix* | nonstopux*)
6362 symcode='[BCDEGRST]'
6363 ;;
6364osf*)
6365 symcode='[BCDEGQRST]'
6366 ;;
6367solaris*)
6368 symcode='[BDRT]'
6369 ;;
6370sco3.2v5*)
6371 symcode='[DT]'
6372 ;;
6373sysv4.2uw2*)
6374 symcode='[DT]'
6375 ;;
6376sysv5* | sco5v6* | unixware* | OpenUNIX*)
6377 symcode='[ABDT]'
6378 ;;
6379sysv4)
6380 symcode='[DFNSTU]'
6381 ;;
6382esac
6383
6384# Handle CRLF in mingw tool chain
6385opt_cr=
6386case $build_os in
6387mingw*)
6388 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6389 ;;
6390esac
6391
6392# If we're using GNU nm, then use its standard symbol codes.
6393case `$NM -V 2>&1` in
6394*GNU* | *'with BFD'*)
6395 symcode='[ABCDGIRSTW]' ;;
6396esac
6397
6398# Try without a prefix undercore, then with it.
6399for ac_symprfx in "" "_"; do
6400
6401 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6402 symxfrm="\\1 $ac_symprfx\\2 \\2"
6403
6404 # Write the raw and C identifiers.
6405 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6406
6407 # Check to see that the pipe works correctly.
6408 pipe_works=no
6409
6410 rm -f conftest*
6411 cat > conftest.$ac_ext <<EOF
6412#ifdef __cplusplus
6413extern "C" {
6414#endif
6415char nm_test_var;
6416void nm_test_func(){}
6417#ifdef __cplusplus
6418}
6419#endif
6420int main(){nm_test_var='a';nm_test_func();return(0);}
6421EOF
6422
6423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6424 (eval $ac_compile) 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; then
6428 # Now try to grab the symbols.
6429 nlist=conftest.nm
6430 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6431 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6432 ac_status=$?
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } && test -s "$nlist"; then
6435 # Try sorting and uniquifying the output.
6436 if sort "$nlist" | uniq > "$nlist"T; then
6437 mv -f "$nlist"T "$nlist"
6438 else
6439 rm -f "$nlist"T
6440 fi
6441
6442 # Make sure that we snagged all the symbols we need.
6443 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6444 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6445 cat <<EOF > conftest.$ac_ext
6446#ifdef __cplusplus
6447extern "C" {
6448#endif
6449
6450EOF
6451 # Now generate the symbol file.
6452 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6453
6454 cat <<EOF >> conftest.$ac_ext
6455#if defined (__STDC__) && __STDC__
6456# define lt_ptr_t void *
6457#else
6458# define lt_ptr_t char *
6459# define const
6460#endif
6461
6462/* The mapping between symbol names and symbols. */
6463const struct {
6464 const char *name;
6465 lt_ptr_t address;
6466}
6467lt_preloaded_symbols[] =
6468{
6469EOF
6470 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6471 cat <<\EOF >> conftest.$ac_ext
6472 {0, (lt_ptr_t) 0}
6473};
6474
6475#ifdef __cplusplus
6476}
6477#endif
6478EOF
6479 # Now try linking the two files.
6480 mv conftest.$ac_objext conftstm.$ac_objext
6481 lt_save_LIBS="$LIBS"
6482 lt_save_CFLAGS="$CFLAGS"
6483 LIBS="conftstm.$ac_objext"
6484 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6486 (eval $ac_link) 2>&5
6487 ac_status=$?
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6490 pipe_works=yes
6491 fi
6492 LIBS="$lt_save_LIBS"
6493 CFLAGS="$lt_save_CFLAGS"
6494 else
6495 echo "cannot find nm_test_func in $nlist" >&5
6496 fi
6497 else
6498 echo "cannot find nm_test_var in $nlist" >&5
6499 fi
6500 else
6501 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6502 fi
6503 else
6504 echo "$progname: failed program was:" >&5
6505 cat conftest.$ac_ext >&5
6506 fi
6507 rm -f conftest* conftst*
6508
6509 # Do not use the global_symbol_pipe unless it works.
6510 if test "$pipe_works" = yes; then
6511 break
6512 else
6513 lt_cv_sys_global_symbol_pipe=
6514 fi
6515done
6516
6517fi
6518
6519if test -z "$lt_cv_sys_global_symbol_pipe"; then
6520 lt_cv_sys_global_symbol_to_cdecl=
6521fi
6522if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
dd184caf 6523 { echo "$as_me:$LINENO: result: failed" >&5
6524echo "${ECHO_T}failed" >&6; }
d9898ee8 6525else
dd184caf 6526 { echo "$as_me:$LINENO: result: ok" >&5
6527echo "${ECHO_T}ok" >&6; }
d9898ee8 6528fi
6529
dd184caf 6530{ echo "$as_me:$LINENO: checking for objdir" >&5
6531echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d9898ee8 6532if test "${lt_cv_objdir+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6534else
6535 rm -f .libs 2>/dev/null
6536mkdir .libs 2>/dev/null
6537if test -d .libs; then
6538 lt_cv_objdir=.libs
6539else
6540 # MS-DOS does not allow filenames that begin with a dot.
6541 lt_cv_objdir=_libs
6542fi
6543rmdir .libs 2>/dev/null
6544fi
dd184caf 6545{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6546echo "${ECHO_T}$lt_cv_objdir" >&6; }
d9898ee8 6547objdir=$lt_cv_objdir
6548
6549
6550
6551
6552
6553case $host_os in
6554aix3*)
6555 # AIX sometimes has problems with the GCC collect2 program. For some
6556 # reason, if we set the COLLECT_NAMES environment variable, the problems
6557 # vanish in a puff of smoke.
6558 if test "X${COLLECT_NAMES+set}" != Xset; then
6559 COLLECT_NAMES=
6560 export COLLECT_NAMES
6561 fi
6562 ;;
6563esac
6564
6565# Sed substitution that helps us do robust quoting. It backslashifies
6566# metacharacters that are still active within double-quoted strings.
6567Xsed='sed -e 1s/^X//'
6568sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6569
6570# Same as above, but do not quote variable references.
6571double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6572
6573# Sed substitution to delay expansion of an escaped shell variable in a
6574# double_quote_subst'ed string.
6575delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6576
6577# Sed substitution to avoid accidental globbing in evaled expressions
6578no_glob_subst='s/\*/\\\*/g'
6579
6580# Constants:
6581rm="rm -f"
6582
6583# Global variables:
6584default_ofile=libtool
6585can_build_shared=yes
6586
6587# All known linkers require a `.a' archive for static linking (except MSVC,
6588# which needs '.lib').
6589libext=a
6590ltmain="$ac_aux_dir/ltmain.sh"
6591ofile="$default_ofile"
6592with_gnu_ld="$lt_cv_prog_gnu_ld"
6593
6594if test -n "$ac_tool_prefix"; then
6595 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6596set dummy ${ac_tool_prefix}ar; ac_word=$2
dd184caf 6597{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6599if test "${ac_cv_prog_AR+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6601else
6602 if test -n "$AR"; then
6603 ac_cv_prog_AR="$AR" # Let the user override the test.
6604else
6605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606for as_dir in $PATH
6607do
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6612 ac_cv_prog_AR="${ac_tool_prefix}ar"
6613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 break 2
6615 fi
6616done
6617done
dd184caf 6618IFS=$as_save_IFS
d9898ee8 6619
6620fi
6621fi
6622AR=$ac_cv_prog_AR
6623if test -n "$AR"; then
dd184caf 6624 { echo "$as_me:$LINENO: result: $AR" >&5
6625echo "${ECHO_T}$AR" >&6; }
d9898ee8 6626else
dd184caf 6627 { echo "$as_me:$LINENO: result: no" >&5
6628echo "${ECHO_T}no" >&6; }
d9898ee8 6629fi
6630
dd184caf 6631
d9898ee8 6632fi
6633if test -z "$ac_cv_prog_AR"; then
6634 ac_ct_AR=$AR
6635 # Extract the first word of "ar", so it can be a program name with args.
6636set dummy ar; ac_word=$2
dd184caf 6637{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6639if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6641else
6642 if test -n "$ac_ct_AR"; then
6643 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6644else
6645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646for as_dir in $PATH
6647do
6648 IFS=$as_save_IFS
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6652 ac_cv_prog_ac_ct_AR="ar"
6653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 break 2
6655 fi
6656done
6657done
dd184caf 6658IFS=$as_save_IFS
d9898ee8 6659
d9898ee8 6660fi
6661fi
6662ac_ct_AR=$ac_cv_prog_ac_ct_AR
6663if test -n "$ac_ct_AR"; then
dd184caf 6664 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6665echo "${ECHO_T}$ac_ct_AR" >&6; }
d9898ee8 6666else
dd184caf 6667 { echo "$as_me:$LINENO: result: no" >&5
6668echo "${ECHO_T}no" >&6; }
d9898ee8 6669fi
6670
dd184caf 6671 if test "x$ac_ct_AR" = x; then
6672 AR="false"
6673 else
6674 case $cross_compiling:$ac_tool_warned in
6675yes:)
6676{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6677whose name does not start with the host triplet. If you think this
6678configuration is useful to you, please write to autoconf@gnu.org." >&5
6679echo "$as_me: 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." >&2;}
6682ac_tool_warned=yes ;;
6683esac
6684 AR=$ac_ct_AR
6685 fi
d9898ee8 6686else
6687 AR="$ac_cv_prog_AR"
6688fi
6689
6690if test -n "$ac_tool_prefix"; then
6691 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6692set dummy ${ac_tool_prefix}ranlib; ac_word=$2
dd184caf 6693{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6695if test "${ac_cv_prog_RANLIB+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6697else
6698 if test -n "$RANLIB"; then
6699 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6700else
6701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702for as_dir in $PATH
6703do
6704 IFS=$as_save_IFS
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6708 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 break 2
6711 fi
6712done
6713done
dd184caf 6714IFS=$as_save_IFS
d9898ee8 6715
6716fi
6717fi
6718RANLIB=$ac_cv_prog_RANLIB
6719if test -n "$RANLIB"; then
dd184caf 6720 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6721echo "${ECHO_T}$RANLIB" >&6; }
d9898ee8 6722else
dd184caf 6723 { echo "$as_me:$LINENO: result: no" >&5
6724echo "${ECHO_T}no" >&6; }
d9898ee8 6725fi
6726
dd184caf 6727
d9898ee8 6728fi
6729if test -z "$ac_cv_prog_RANLIB"; then
6730 ac_ct_RANLIB=$RANLIB
6731 # Extract the first word of "ranlib", so it can be a program name with args.
6732set dummy ranlib; ac_word=$2
dd184caf 6733{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6735if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737else
6738 if test -n "$ac_ct_RANLIB"; then
6739 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6740else
6741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742for as_dir in $PATH
6743do
6744 IFS=$as_save_IFS
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6748 ac_cv_prog_ac_ct_RANLIB="ranlib"
6749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 break 2
6751 fi
6752done
6753done
dd184caf 6754IFS=$as_save_IFS
d9898ee8 6755
d9898ee8 6756fi
6757fi
6758ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6759if test -n "$ac_ct_RANLIB"; then
dd184caf 6760 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6761echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d9898ee8 6762else
dd184caf 6763 { echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6; }
d9898ee8 6765fi
6766
dd184caf 6767 if test "x$ac_ct_RANLIB" = x; then
6768 RANLIB=":"
6769 else
6770 case $cross_compiling:$ac_tool_warned in
6771yes:)
6772{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6773whose name does not start with the host triplet. If you think this
6774configuration is useful to you, please write to autoconf@gnu.org." >&5
6775echo "$as_me: 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." >&2;}
6778ac_tool_warned=yes ;;
6779esac
6780 RANLIB=$ac_ct_RANLIB
6781 fi
d9898ee8 6782else
6783 RANLIB="$ac_cv_prog_RANLIB"
6784fi
6785
6786if test -n "$ac_tool_prefix"; then
6787 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6788set dummy ${ac_tool_prefix}strip; ac_word=$2
dd184caf 6789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6791if test "${ac_cv_prog_STRIP+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6793else
6794 if test -n "$STRIP"; then
6795 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6796else
6797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798for as_dir in $PATH
6799do
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6804 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 break 2
6807 fi
6808done
6809done
dd184caf 6810IFS=$as_save_IFS
d9898ee8 6811
6812fi
6813fi
6814STRIP=$ac_cv_prog_STRIP
6815if test -n "$STRIP"; then
dd184caf 6816 { echo "$as_me:$LINENO: result: $STRIP" >&5
6817echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 6818else
dd184caf 6819 { echo "$as_me:$LINENO: result: no" >&5
6820echo "${ECHO_T}no" >&6; }
d9898ee8 6821fi
6822
dd184caf 6823
d9898ee8 6824fi
6825if test -z "$ac_cv_prog_STRIP"; then
6826 ac_ct_STRIP=$STRIP
6827 # Extract the first word of "strip", so it can be a program name with args.
6828set dummy strip; ac_word=$2
dd184caf 6829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6831if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6833else
6834 if test -n "$ac_ct_STRIP"; then
6835 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6836else
6837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838for as_dir in $PATH
6839do
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6844 ac_cv_prog_ac_ct_STRIP="strip"
6845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6847 fi
6848done
6849done
dd184caf 6850IFS=$as_save_IFS
d9898ee8 6851
d9898ee8 6852fi
6853fi
6854ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6855if test -n "$ac_ct_STRIP"; then
dd184caf 6856 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6857echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 6858else
dd184caf 6859 { echo "$as_me:$LINENO: result: no" >&5
6860echo "${ECHO_T}no" >&6; }
d9898ee8 6861fi
6862
dd184caf 6863 if test "x$ac_ct_STRIP" = x; then
6864 STRIP=":"
6865 else
6866 case $cross_compiling:$ac_tool_warned in
6867yes:)
6868{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6869whose name does not start with the host triplet. If you think this
6870configuration is useful to you, please write to autoconf@gnu.org." >&5
6871echo "$as_me: 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." >&2;}
6874ac_tool_warned=yes ;;
6875esac
6876 STRIP=$ac_ct_STRIP
6877 fi
d9898ee8 6878else
6879 STRIP="$ac_cv_prog_STRIP"
6880fi
6881
6882
6883old_CC="$CC"
6884old_CFLAGS="$CFLAGS"
6885
6886# Set sane defaults for various variables
6887test -z "$AR" && AR=ar
6888test -z "$AR_FLAGS" && AR_FLAGS=cru
6889test -z "$AS" && AS=as
6890test -z "$CC" && CC=cc
6891test -z "$LTCC" && LTCC=$CC
6892test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6893test -z "$DLLTOOL" && DLLTOOL=dlltool
6894test -z "$LD" && LD=ld
6895test -z "$LN_S" && LN_S="ln -s"
6896test -z "$MAGIC_CMD" && MAGIC_CMD=file
6897test -z "$NM" && NM=nm
6898test -z "$SED" && SED=sed
6899test -z "$OBJDUMP" && OBJDUMP=objdump
6900test -z "$RANLIB" && RANLIB=:
6901test -z "$STRIP" && STRIP=:
6902test -z "$ac_objext" && ac_objext=o
6903
6904# Determine commands to create old-style static archives.
6905old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6906old_postinstall_cmds='chmod 644 $oldlib'
6907old_postuninstall_cmds=
6908
6909if test -n "$RANLIB"; then
6910 case $host_os in
6911 openbsd*)
6912 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6913 ;;
6914 *)
6915 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6916 ;;
6917 esac
6918 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6919fi
6920
6921for cc_temp in $compiler""; do
6922 case $cc_temp in
6923 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6924 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6925 \-*) ;;
6926 *) break;;
6927 esac
6928done
6929cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6930
6931
6932# Only perform the check for file, if the check method requires it
6933case $deplibs_check_method in
6934file_magic*)
6935 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
dd184caf 6936 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6937echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d9898ee8 6938if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6940else
6941 case $MAGIC_CMD in
6942[\\/*] | ?:[\\/]*)
6943 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6944 ;;
6945*)
6946 lt_save_MAGIC_CMD="$MAGIC_CMD"
6947 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6948 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6949 for ac_dir in $ac_dummy; do
6950 IFS="$lt_save_ifs"
6951 test -z "$ac_dir" && ac_dir=.
6952 if test -f $ac_dir/${ac_tool_prefix}file; then
6953 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6954 if test -n "$file_magic_test_file"; then
6955 case $deplibs_check_method in
6956 "file_magic "*)
6957 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6958 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6959 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6960 $EGREP "$file_magic_regex" > /dev/null; then
6961 :
6962 else
6963 cat <<EOF 1>&2
6964
6965*** Warning: the command libtool uses to detect shared libraries,
6966*** $file_magic_cmd, produces output that libtool cannot recognize.
6967*** The result is that libtool may fail to recognize shared libraries
6968*** as such. This will affect the creation of libtool libraries that
6969*** depend on shared libraries, but programs linked with such libtool
6970*** libraries will work regardless of this problem. Nevertheless, you
6971*** may want to report the problem to your system manager and/or to
6972*** bug-libtool@gnu.org
6973
6974EOF
6975 fi ;;
6976 esac
6977 fi
6978 break
6979 fi
6980 done
6981 IFS="$lt_save_ifs"
6982 MAGIC_CMD="$lt_save_MAGIC_CMD"
6983 ;;
6984esac
6985fi
6986
6987MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6988if test -n "$MAGIC_CMD"; then
dd184caf 6989 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6990echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 6991else
dd184caf 6992 { echo "$as_me:$LINENO: result: no" >&5
6993echo "${ECHO_T}no" >&6; }
d9898ee8 6994fi
6995
6996if test -z "$lt_cv_path_MAGIC_CMD"; then
6997 if test -n "$ac_tool_prefix"; then
dd184caf 6998 { echo "$as_me:$LINENO: checking for file" >&5
6999echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d9898ee8 7000if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002else
7003 case $MAGIC_CMD in
7004[\\/*] | ?:[\\/]*)
7005 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7006 ;;
7007*)
7008 lt_save_MAGIC_CMD="$MAGIC_CMD"
7009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7010 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7011 for ac_dir in $ac_dummy; do
7012 IFS="$lt_save_ifs"
7013 test -z "$ac_dir" && ac_dir=.
7014 if test -f $ac_dir/file; then
7015 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7016 if test -n "$file_magic_test_file"; then
7017 case $deplibs_check_method in
7018 "file_magic "*)
7019 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7021 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7022 $EGREP "$file_magic_regex" > /dev/null; then
7023 :
7024 else
7025 cat <<EOF 1>&2
7026
7027*** Warning: the command libtool uses to detect shared libraries,
7028*** $file_magic_cmd, produces output that libtool cannot recognize.
7029*** The result is that libtool may fail to recognize shared libraries
7030*** as such. This will affect the creation of libtool libraries that
7031*** depend on shared libraries, but programs linked with such libtool
7032*** libraries will work regardless of this problem. Nevertheless, you
7033*** may want to report the problem to your system manager and/or to
7034*** bug-libtool@gnu.org
7035
7036EOF
7037 fi ;;
7038 esac
7039 fi
7040 break
7041 fi
7042 done
7043 IFS="$lt_save_ifs"
7044 MAGIC_CMD="$lt_save_MAGIC_CMD"
7045 ;;
7046esac
7047fi
7048
7049MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7050if test -n "$MAGIC_CMD"; then
dd184caf 7051 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7052echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7053else
dd184caf 7054 { echo "$as_me:$LINENO: result: no" >&5
7055echo "${ECHO_T}no" >&6; }
d9898ee8 7056fi
7057
7058 else
7059 MAGIC_CMD=:
7060 fi
7061fi
7062
7063 fi
7064 ;;
7065esac
7066
7067enable_dlopen=no
7068enable_win32_dll=no
7069
dd184caf 7070# Check whether --enable-libtool-lock was given.
d9898ee8 7071if test "${enable_libtool_lock+set}" = set; then
dd184caf 7072 enableval=$enable_libtool_lock;
7073fi
d9898ee8 7074
d9898ee8 7075test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7076
7077
dd184caf 7078# Check whether --with-pic was given.
d9898ee8 7079if test "${with_pic+set}" = set; then
dd184caf 7080 withval=$with_pic; pic_mode="$withval"
d9898ee8 7081else
7082 pic_mode=default
dd184caf 7083fi
7084
d9898ee8 7085test -z "$pic_mode" && pic_mode=default
7086
7087# Use C for the default configuration in the libtool script
7088tagname=
7089lt_save_CC="$CC"
7090ac_ext=c
7091ac_cpp='$CPP $CPPFLAGS'
7092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7094ac_compiler_gnu=$ac_cv_c_compiler_gnu
7095
7096
7097# Source file extension for C test sources.
7098ac_ext=c
7099
7100# Object file extension for compiled C test sources.
7101objext=o
7102objext=$objext
7103
7104# Code to be used in simple compile tests
7105lt_simple_compile_test_code="int some_variable = 0;\n"
7106
7107# Code to be used in simple link tests
7108lt_simple_link_test_code='int main(){return(0);}\n'
7109
7110
7111# If no C compiler was specified, use CC.
7112LTCC=${LTCC-"$CC"}
7113
7114# If no C compiler flags were specified, use CFLAGS.
7115LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7116
7117# Allow CC to be a program name with arguments.
7118compiler=$CC
7119
7120
7121# save warnings/boilerplate of simple test code
7122ac_outfile=conftest.$ac_objext
7123printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7124eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7125_lt_compiler_boilerplate=`cat conftest.err`
7126$rm conftest*
7127
7128ac_outfile=conftest.$ac_objext
7129printf "$lt_simple_link_test_code" >conftest.$ac_ext
7130eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7131_lt_linker_boilerplate=`cat conftest.err`
7132$rm conftest*
7133
7134
7135
7136lt_prog_compiler_no_builtin_flag=
7137
7138if test "$GCC" = yes; then
7139 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7140
7141
dd184caf 7142{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7143echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 7144if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146else
7147 lt_cv_prog_compiler_rtti_exceptions=no
7148 ac_outfile=conftest.$ac_objext
7149 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7150 lt_compiler_flag="-fno-rtti -fno-exceptions"
7151 # Insert the option either (1) after the last *FLAGS variable, or
7152 # (2) before a word containing "conftest.", or (3) at the end.
7153 # Note that $ac_compile itself does not contain backslashes and begins
7154 # with a dollar sign (not a hyphen), so the echo should work correctly.
7155 # The option is referenced via a variable to avoid confusing sed.
7156 lt_compile=`echo "$ac_compile" | $SED \
7157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7159 -e 's:$: $lt_compiler_flag:'`
1dce02f2 7160 (eval echo "\"\$as_me:7160: $lt_compile\"" >&5)
d9898ee8 7161 (eval "$lt_compile" 2>conftest.err)
7162 ac_status=$?
7163 cat conftest.err >&5
1dce02f2 7164 echo "$as_me:7164: \$? = $ac_status" >&5
d9898ee8 7165 if (exit $ac_status) && test -s "$ac_outfile"; then
7166 # The compiler can only warn and ignore the option if not recognized
7167 # So say no if there are warnings other than the usual output.
7168 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7169 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7170 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7171 lt_cv_prog_compiler_rtti_exceptions=yes
7172 fi
7173 fi
7174 $rm conftest*
7175
7176fi
dd184caf 7177{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7178echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7179
7180if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7181 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7182else
7183 :
7184fi
7185
7186fi
7187
7188lt_prog_compiler_wl=
7189lt_prog_compiler_pic=
7190lt_prog_compiler_static=
7191
dd184caf 7192{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7193echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 7194
7195 if test "$GCC" = yes; then
7196 lt_prog_compiler_wl='-Wl,'
7197 lt_prog_compiler_static='-static'
7198
7199 case $host_os in
7200 aix*)
7201 # All AIX code is PIC.
7202 if test "$host_cpu" = ia64; then
7203 # AIX 5 now supports IA64 processor
7204 lt_prog_compiler_static='-Bstatic'
7205 fi
7206 ;;
7207
7208 amigaos*)
7209 # FIXME: we need at least 68020 code to build shared libraries, but
7210 # adding the `-m68020' flag to GCC prevents building anything better,
7211 # like `-m68040'.
7212 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7213 ;;
7214
7215 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7216 # PIC is the default for these OSes.
7217 ;;
7218
7219 mingw* | pw32* | os2*)
7220 # This hack is so that the source file can tell whether it is being
7221 # built for inclusion in a dll (and should export symbols for example).
7222 lt_prog_compiler_pic='-DDLL_EXPORT'
7223 ;;
7224
7225 darwin* | rhapsody*)
7226 # PIC is the default on this platform
7227 # Common symbols not allowed in MH_DYLIB files
7228 lt_prog_compiler_pic='-fno-common'
7229 ;;
7230
7231 interix3*)
7232 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7233 # Instead, we relocate shared libraries at runtime.
7234 ;;
7235
7236 msdosdjgpp*)
7237 # Just because we use GCC doesn't mean we suddenly get shared libraries
7238 # on systems that don't support them.
7239 lt_prog_compiler_can_build_shared=no
7240 enable_shared=no
7241 ;;
7242
7243 sysv4*MP*)
7244 if test -d /usr/nec; then
7245 lt_prog_compiler_pic=-Kconform_pic
7246 fi
7247 ;;
7248
7249 hpux*)
7250 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7251 # not for PA HP-UX.
7252 case $host_cpu in
7253 hppa*64*|ia64*)
7254 # +Z the default
7255 ;;
7256 *)
7257 lt_prog_compiler_pic='-fPIC'
7258 ;;
7259 esac
7260 ;;
7261
7262 *)
7263 lt_prog_compiler_pic='-fPIC'
7264 ;;
7265 esac
7266 else
7267 # PORTME Check for flag to pass linker flags through the system compiler.
7268 case $host_os in
7269 aix*)
7270 lt_prog_compiler_wl='-Wl,'
7271 if test "$host_cpu" = ia64; then
7272 # AIX 5 now supports IA64 processor
7273 lt_prog_compiler_static='-Bstatic'
7274 else
7275 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7276 fi
7277 ;;
7278 darwin*)
7279 # PIC is the default on this platform
7280 # Common symbols not allowed in MH_DYLIB files
7281 case $cc_basename in
7282 xlc*)
7283 lt_prog_compiler_pic='-qnocommon'
7284 lt_prog_compiler_wl='-Wl,'
7285 ;;
7286 esac
7287 ;;
7288
7289 mingw* | pw32* | os2*)
7290 # This hack is so that the source file can tell whether it is being
7291 # built for inclusion in a dll (and should export symbols for example).
7292 lt_prog_compiler_pic='-DDLL_EXPORT'
7293 ;;
7294
7295 hpux9* | hpux10* | hpux11*)
7296 lt_prog_compiler_wl='-Wl,'
7297 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7298 # not for PA HP-UX.
7299 case $host_cpu in
7300 hppa*64*|ia64*)
7301 # +Z the default
7302 ;;
7303 *)
7304 lt_prog_compiler_pic='+Z'
7305 ;;
7306 esac
7307 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7308 lt_prog_compiler_static='${wl}-a ${wl}archive'
7309 ;;
7310
7311 irix5* | irix6* | nonstopux*)
7312 lt_prog_compiler_wl='-Wl,'
7313 # PIC (with -KPIC) is the default.
7314 lt_prog_compiler_static='-non_shared'
7315 ;;
7316
7317 newsos6)
7318 lt_prog_compiler_pic='-KPIC'
7319 lt_prog_compiler_static='-Bstatic'
7320 ;;
7321
1dce02f2 7322 linux* | k*bsd*-gnu)
d9898ee8 7323 case $cc_basename in
7324 icc* | ecc*)
7325 lt_prog_compiler_wl='-Wl,'
7326 lt_prog_compiler_pic='-KPIC'
7327 lt_prog_compiler_static='-static'
7328 ;;
7329 pgcc* | pgf77* | pgf90* | pgf95*)
7330 # Portland Group compilers (*not* the Pentium gcc compiler,
7331 # which looks to be a dead project)
7332 lt_prog_compiler_wl='-Wl,'
7333 lt_prog_compiler_pic='-fpic'
7334 lt_prog_compiler_static='-Bstatic'
7335 ;;
7336 ccc*)
7337 lt_prog_compiler_wl='-Wl,'
7338 # All Alpha code is PIC.
7339 lt_prog_compiler_static='-non_shared'
7340 ;;
7341 esac
7342 ;;
7343
7344 osf3* | osf4* | osf5*)
7345 lt_prog_compiler_wl='-Wl,'
7346 # All OSF/1 code is PIC.
7347 lt_prog_compiler_static='-non_shared'
7348 ;;
7349
7350 solaris*)
7351 lt_prog_compiler_pic='-KPIC'
7352 lt_prog_compiler_static='-Bstatic'
7353 case $cc_basename in
7354 f77* | f90* | f95*)
7355 lt_prog_compiler_wl='-Qoption ld ';;
7356 *)
7357 lt_prog_compiler_wl='-Wl,';;
7358 esac
7359 ;;
7360
7361 sunos4*)
7362 lt_prog_compiler_wl='-Qoption ld '
7363 lt_prog_compiler_pic='-PIC'
7364 lt_prog_compiler_static='-Bstatic'
7365 ;;
7366
7367 sysv4 | sysv4.2uw2* | sysv4.3*)
7368 lt_prog_compiler_wl='-Wl,'
7369 lt_prog_compiler_pic='-KPIC'
7370 lt_prog_compiler_static='-Bstatic'
7371 ;;
7372
7373 sysv4*MP*)
7374 if test -d /usr/nec ;then
7375 lt_prog_compiler_pic='-Kconform_pic'
7376 lt_prog_compiler_static='-Bstatic'
7377 fi
7378 ;;
7379
7380 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7381 lt_prog_compiler_wl='-Wl,'
7382 lt_prog_compiler_pic='-KPIC'
7383 lt_prog_compiler_static='-Bstatic'
7384 ;;
7385
7386 unicos*)
7387 lt_prog_compiler_wl='-Wl,'
7388 lt_prog_compiler_can_build_shared=no
7389 ;;
7390
7391 uts4*)
7392 lt_prog_compiler_pic='-pic'
7393 lt_prog_compiler_static='-Bstatic'
7394 ;;
7395
7396 *)
7397 lt_prog_compiler_can_build_shared=no
7398 ;;
7399 esac
7400 fi
7401
dd184caf 7402{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7403echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d9898ee8 7404
7405#
7406# Check to make sure the PIC flag actually works.
7407#
7408if test -n "$lt_prog_compiler_pic"; then
7409
dd184caf 7410{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7411echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d9898ee8 7412if test "${lt_prog_compiler_pic_works+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7414else
7415 lt_prog_compiler_pic_works=no
7416 ac_outfile=conftest.$ac_objext
7417 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7418 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7419 # Insert the option either (1) after the last *FLAGS variable, or
7420 # (2) before a word containing "conftest.", or (3) at the end.
7421 # Note that $ac_compile itself does not contain backslashes and begins
7422 # with a dollar sign (not a hyphen), so the echo should work correctly.
7423 # The option is referenced via a variable to avoid confusing sed.
7424 lt_compile=`echo "$ac_compile" | $SED \
7425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7427 -e 's:$: $lt_compiler_flag:'`
1dce02f2 7428 (eval echo "\"\$as_me:7428: $lt_compile\"" >&5)
d9898ee8 7429 (eval "$lt_compile" 2>conftest.err)
7430 ac_status=$?
7431 cat conftest.err >&5
1dce02f2 7432 echo "$as_me:7432: \$? = $ac_status" >&5
d9898ee8 7433 if (exit $ac_status) && test -s "$ac_outfile"; then
7434 # The compiler can only warn and ignore the option if not recognized
7435 # So say no if there are warnings other than the usual output.
7436 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7438 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7439 lt_prog_compiler_pic_works=yes
7440 fi
7441 fi
7442 $rm conftest*
7443
7444fi
dd184caf 7445{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7446echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d9898ee8 7447
7448if test x"$lt_prog_compiler_pic_works" = xyes; then
7449 case $lt_prog_compiler_pic in
7450 "" | " "*) ;;
7451 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7452 esac
7453else
7454 lt_prog_compiler_pic=
7455 lt_prog_compiler_can_build_shared=no
7456fi
7457
7458fi
7459case $host_os in
7460 # For platforms which do not support PIC, -DPIC is meaningless:
7461 *djgpp*)
7462 lt_prog_compiler_pic=
7463 ;;
7464 *)
7465 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7466 ;;
7467esac
7468
7469#
7470# Check to make sure the static flag actually works.
7471#
7472wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
dd184caf 7473{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7474echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 7475if test "${lt_prog_compiler_static_works+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7477else
7478 lt_prog_compiler_static_works=no
7479 save_LDFLAGS="$LDFLAGS"
7480 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7481 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7482 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7483 # The linker can only warn and ignore the option if not recognized
7484 # So say no if there are warnings
7485 if test -s conftest.err; then
7486 # Append any errors to the config.log.
7487 cat conftest.err 1>&5
7488 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7490 if diff conftest.exp conftest.er2 >/dev/null; then
7491 lt_prog_compiler_static_works=yes
7492 fi
7493 else
7494 lt_prog_compiler_static_works=yes
7495 fi
7496 fi
7497 $rm conftest*
7498 LDFLAGS="$save_LDFLAGS"
7499
7500fi
dd184caf 7501{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7502echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
d9898ee8 7503
7504if test x"$lt_prog_compiler_static_works" = xyes; then
7505 :
7506else
7507 lt_prog_compiler_static=
7508fi
7509
7510
dd184caf 7511{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7512echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 7513if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7515else
7516 lt_cv_prog_compiler_c_o=no
7517 $rm -r conftest 2>/dev/null
7518 mkdir conftest
7519 cd conftest
7520 mkdir out
7521 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7522
7523 lt_compiler_flag="-o out/conftest2.$ac_objext"
7524 # Insert the option either (1) after the last *FLAGS variable, or
7525 # (2) before a word containing "conftest.", or (3) at the end.
7526 # Note that $ac_compile itself does not contain backslashes and begins
7527 # with a dollar sign (not a hyphen), so the echo should work correctly.
7528 lt_compile=`echo "$ac_compile" | $SED \
7529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7531 -e 's:$: $lt_compiler_flag:'`
1dce02f2 7532 (eval echo "\"\$as_me:7532: $lt_compile\"" >&5)
d9898ee8 7533 (eval "$lt_compile" 2>out/conftest.err)
7534 ac_status=$?
7535 cat out/conftest.err >&5
1dce02f2 7536 echo "$as_me:7536: \$? = $ac_status" >&5
d9898ee8 7537 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7538 then
7539 # The compiler can only warn and ignore the option if not recognized
7540 # So say no if there are warnings
7541 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7542 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7543 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7544 lt_cv_prog_compiler_c_o=yes
7545 fi
7546 fi
7547 chmod u+w . 2>&5
7548 $rm conftest*
7549 # SGI C++ compiler will create directory out/ii_files/ for
7550 # template instantiation
7551 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7552 $rm out/* && rmdir out
7553 cd ..
7554 rmdir conftest
7555 $rm conftest*
7556
7557fi
dd184caf 7558{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7559echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 7560
7561
7562hard_links="nottested"
7563if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7564 # do not overwrite the value of need_locks provided by the user
dd184caf 7565 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7566echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 7567 hard_links=yes
7568 $rm conftest*
7569 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7570 touch conftest.a
7571 ln conftest.a conftest.b 2>&5 || hard_links=no
7572 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 7573 { echo "$as_me:$LINENO: result: $hard_links" >&5
7574echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 7575 if test "$hard_links" = no; then
7576 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7577echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7578 need_locks=warn
7579 fi
7580else
7581 need_locks=no
7582fi
7583
dd184caf 7584{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7585echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 7586
7587 runpath_var=
7588 allow_undefined_flag=
7589 enable_shared_with_static_runtimes=no
7590 archive_cmds=
7591 archive_expsym_cmds=
7592 old_archive_From_new_cmds=
7593 old_archive_from_expsyms_cmds=
7594 export_dynamic_flag_spec=
7595 whole_archive_flag_spec=
7596 thread_safe_flag_spec=
7597 hardcode_libdir_flag_spec=
7598 hardcode_libdir_flag_spec_ld=
7599 hardcode_libdir_separator=
7600 hardcode_direct=no
7601 hardcode_minus_L=no
7602 hardcode_shlibpath_var=unsupported
7603 link_all_deplibs=unknown
7604 hardcode_automatic=no
7605 module_cmds=
7606 module_expsym_cmds=
7607 always_export_symbols=no
7608 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7609 # include_expsyms should be a list of space-separated symbols to be *always*
7610 # included in the symbol list
7611 include_expsyms=
7612 # exclude_expsyms can be an extended regexp of symbols to exclude
7613 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7614 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7615 # as well as any symbol that contains `d'.
7616 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7617 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7618 # platforms (ab)use it in PIC code, but their linkers get confused if
7619 # the symbol is explicitly referenced. Since portable code cannot
7620 # rely on this symbol name, it's probably fine to never include it in
7621 # preloaded symbol tables.
7622 extract_expsyms_cmds=
7623 # Just being paranoid about ensuring that cc_basename is set.
7624 for cc_temp in $compiler""; do
7625 case $cc_temp in
7626 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7627 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7628 \-*) ;;
7629 *) break;;
7630 esac
7631done
7632cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7633
7634 case $host_os in
7635 cygwin* | mingw* | pw32*)
7636 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7637 # When not using gcc, we currently assume that we are using
7638 # Microsoft Visual C++.
7639 if test "$GCC" != yes; then
7640 with_gnu_ld=no
7641 fi
7642 ;;
7643 interix*)
7644 # we just hope/assume this is gcc and not c89 (= MSVC++)
7645 with_gnu_ld=yes
7646 ;;
7647 openbsd*)
7648 with_gnu_ld=no
7649 ;;
7650 esac
7651
7652 ld_shlibs=yes
7653 if test "$with_gnu_ld" = yes; then
7654 # If archive_cmds runs LD, not CC, wlarc should be empty
7655 wlarc='${wl}'
7656
7657 # Set some defaults for GNU ld with shared library support. These
7658 # are reset later if shared libraries are not supported. Putting them
7659 # here allows them to be overridden if necessary.
7660 runpath_var=LD_RUN_PATH
7661 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7662 export_dynamic_flag_spec='${wl}--export-dynamic'
7663 # ancient GNU ld didn't support --whole-archive et. al.
7664 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7665 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7666 else
7667 whole_archive_flag_spec=
7668 fi
7669 supports_anon_versioning=no
7670 case `$LD -v 2>/dev/null` in
7671 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7672 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7673 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7674 *\ 2.11.*) ;; # other 2.11 versions
7675 *) supports_anon_versioning=yes ;;
7676 esac
7677
7678 # See if GNU ld supports shared libraries.
7679 case $host_os in
7680 aix3* | aix4* | aix5*)
7681 # On AIX/PPC, the GNU linker is very broken
7682 if test "$host_cpu" != ia64; then
7683 ld_shlibs=no
7684 cat <<EOF 1>&2
7685
7686*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7687*** to be unable to reliably create shared libraries on AIX.
7688*** Therefore, libtool is disabling shared libraries support. If you
7689*** really care for shared libraries, you may want to modify your PATH
7690*** so that a non-GNU linker is found, and then restart.
7691
7692EOF
7693 fi
7694 ;;
7695
7696 amigaos*)
7697 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)'
7698 hardcode_libdir_flag_spec='-L$libdir'
7699 hardcode_minus_L=yes
7700
7701 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7702 # that the semantics of dynamic libraries on AmigaOS, at least up
7703 # to version 4, is to share data among multiple programs linked
7704 # with the same dynamic library. Since this doesn't match the
7705 # behavior of shared libraries on other platforms, we can't use
7706 # them.
7707 ld_shlibs=no
7708 ;;
7709
7710 beos*)
7711 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7712 allow_undefined_flag=unsupported
7713 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7714 # support --undefined. This deserves some investigation. FIXME
7715 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7716 else
7717 ld_shlibs=no
7718 fi
7719 ;;
7720
7721 cygwin* | mingw* | pw32*)
7722 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7723 # as there is no search path for DLLs.
7724 hardcode_libdir_flag_spec='-L$libdir'
7725 allow_undefined_flag=unsupported
7726 always_export_symbols=no
7727 enable_shared_with_static_runtimes=yes
7728 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7729
7730 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7732 # If the export-symbols file already is a .def file (1st line
7733 # is EXPORTS), use it as is; otherwise, prepend...
7734 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7735 cp $export_symbols $output_objdir/$soname.def;
7736 else
7737 echo EXPORTS > $output_objdir/$soname.def;
7738 cat $export_symbols >> $output_objdir/$soname.def;
7739 fi~
7740 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7741 else
7742 ld_shlibs=no
7743 fi
7744 ;;
7745
7746 interix3*)
7747 hardcode_direct=no
7748 hardcode_shlibpath_var=no
7749 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7750 export_dynamic_flag_spec='${wl}-E'
7751 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7752 # Instead, shared libraries are loaded at an image base (0x10000000 by
7753 # default) and relocated if they conflict, which is a slow very memory
7754 # consuming and fragmenting process. To avoid this, we pick a random,
7755 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7756 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7757 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7758 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'
7759 ;;
7760
1dce02f2 7761 linux* | k*bsd*-gnu)
d9898ee8 7762 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7763 tmp_addflag=
7764 case $cc_basename,$host_cpu in
7765 pgcc*) # Portland Group C compiler
7766 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'
7767 tmp_addflag=' $pic_flag'
7768 ;;
7769 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7770 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'
7771 tmp_addflag=' $pic_flag -Mnomain' ;;
7772 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7773 tmp_addflag=' -i_dynamic' ;;
7774 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7775 tmp_addflag=' -i_dynamic -nofor_main' ;;
7776 ifc* | ifort*) # Intel Fortran compiler
7777 tmp_addflag=' -nofor_main' ;;
7778 esac
7779 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7780
7781 if test $supports_anon_versioning = yes; then
7782 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7783 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7784 $echo "local: *; };" >> $output_objdir/$libname.ver~
7785 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7786 fi
1dce02f2 7787 link_all_deplibs=no
d9898ee8 7788 else
7789 ld_shlibs=no
7790 fi
7791 ;;
7792
1dce02f2 7793 netbsd* | netbsdelf*-gnu)
d9898ee8 7794 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7795 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7796 wlarc=
7797 else
7798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7799 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7800 fi
7801 ;;
7802
7803 solaris*)
7804 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7805 ld_shlibs=no
7806 cat <<EOF 1>&2
7807
7808*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7809*** create shared libraries on Solaris systems. Therefore, libtool
7810*** is disabling shared libraries support. We urge you to upgrade GNU
7811*** binutils to release 2.9.1 or newer. Another option is to modify
7812*** your PATH or compiler configuration so that the native linker is
7813*** used, and then restart.
7814
7815EOF
7816 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7818 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7819 else
7820 ld_shlibs=no
7821 fi
7822 ;;
7823
7824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7825 case `$LD -v 2>&1` in
7826 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7827 ld_shlibs=no
7828 cat <<_LT_EOF 1>&2
7829
7830*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7831*** reliably create shared libraries on SCO systems. Therefore, libtool
7832*** is disabling shared libraries support. We urge you to upgrade GNU
7833*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7834*** your PATH or compiler configuration so that the native linker is
7835*** used, and then restart.
7836
7837_LT_EOF
7838 ;;
7839 *)
7840 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7841 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7843 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7844 else
7845 ld_shlibs=no
7846 fi
7847 ;;
7848 esac
7849 ;;
7850
7851 sunos4*)
7852 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7853 wlarc=
7854 hardcode_direct=yes
7855 hardcode_shlibpath_var=no
7856 ;;
7857
7858 *)
7859 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7861 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7862 else
7863 ld_shlibs=no
7864 fi
7865 ;;
7866 esac
7867
7868 if test "$ld_shlibs" = no; then
7869 runpath_var=
7870 hardcode_libdir_flag_spec=
7871 export_dynamic_flag_spec=
7872 whole_archive_flag_spec=
7873 fi
7874 else
7875 # PORTME fill in a description of your system's linker (not GNU ld)
7876 case $host_os in
7877 aix3*)
7878 allow_undefined_flag=unsupported
7879 always_export_symbols=yes
7880 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'
7881 # Note: this linker hardcodes the directories in LIBPATH if there
7882 # are no directories specified by -L.
7883 hardcode_minus_L=yes
7884 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7885 # Neither direct hardcoding nor static linking is supported with a
7886 # broken collect2.
7887 hardcode_direct=unsupported
7888 fi
7889 ;;
7890
7891 aix4* | aix5*)
7892 if test "$host_cpu" = ia64; then
7893 # On IA64, the linker does run time linking by default, so we don't
7894 # have to do anything special.
7895 aix_use_runtimelinking=no
7896 exp_sym_flag='-Bexport'
7897 no_entry_flag=""
7898 else
7899 # If we're using GNU nm, then we don't want the "-C" option.
7900 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7901 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7902 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'
7903 else
7904 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'
7905 fi
7906 aix_use_runtimelinking=no
7907
7908 # Test if we are trying to use run time linking or normal
7909 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7910 # need to do runtime linking.
7911 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7912 for ld_flag in $LDFLAGS; do
7913 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7914 aix_use_runtimelinking=yes
7915 break
7916 fi
7917 done
7918 ;;
7919 esac
7920
7921 exp_sym_flag='-bexport'
7922 no_entry_flag='-bnoentry'
7923 fi
7924
7925 # When large executables or shared objects are built, AIX ld can
7926 # have problems creating the table of contents. If linking a library
7927 # or program results in "error TOC overflow" add -mminimal-toc to
7928 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7929 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7930
7931 archive_cmds=''
7932 hardcode_direct=yes
7933 hardcode_libdir_separator=':'
7934 link_all_deplibs=yes
7935
7936 if test "$GCC" = yes; then
7937 case $host_os in aix4.[012]|aix4.[012].*)
7938 # We only want to do this on AIX 4.2 and lower, the check
7939 # below for broken collect2 doesn't work under 4.3+
7940 collect2name=`${CC} -print-prog-name=collect2`
7941 if test -f "$collect2name" && \
7942 strings "$collect2name" | grep resolve_lib_name >/dev/null
7943 then
7944 # We have reworked collect2
7945 hardcode_direct=yes
7946 else
7947 # We have old collect2
7948 hardcode_direct=unsupported
7949 # It fails to find uninstalled libraries when the uninstalled
7950 # path is not listed in the libpath. Setting hardcode_minus_L
7951 # to unsupported forces relinking
7952 hardcode_minus_L=yes
7953 hardcode_libdir_flag_spec='-L$libdir'
7954 hardcode_libdir_separator=
7955 fi
7956 ;;
7957 esac
7958 shared_flag='-shared'
7959 if test "$aix_use_runtimelinking" = yes; then
7960 shared_flag="$shared_flag "'${wl}-G'
7961 fi
7962 else
7963 # not using gcc
7964 if test "$host_cpu" = ia64; then
7965 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7966 # chokes on -Wl,-G. The following line is correct:
7967 shared_flag='-G'
7968 else
7969 if test "$aix_use_runtimelinking" = yes; then
7970 shared_flag='${wl}-G'
7971 else
7972 shared_flag='${wl}-bM:SRE'
7973 fi
7974 fi
7975 fi
7976
7977 # It seems that -bexpall does not export symbols beginning with
7978 # underscore (_), so it is better to generate a list of symbols to export.
7979 always_export_symbols=yes
7980 if test "$aix_use_runtimelinking" = yes; then
7981 # Warning - without using the other runtime loading flags (-brtl),
7982 # -berok will link without error, but may produce a broken library.
7983 allow_undefined_flag='-berok'
7984 # Determine the default libpath from the value encoded in an empty executable.
7985 cat >conftest.$ac_ext <<_ACEOF
7986/* confdefs.h. */
7987_ACEOF
7988cat confdefs.h >>conftest.$ac_ext
7989cat >>conftest.$ac_ext <<_ACEOF
7990/* end confdefs.h. */
7991
7992int
7993main ()
7994{
7995
7996 ;
7997 return 0;
7998}
7999_ACEOF
8000rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8001if { (ac_try="$ac_link"
8002case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005esac
8006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_link") 2>conftest.er1
d9898ee8 8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest$ac_exeext &&
8017 $as_test_x conftest$ac_exeext; then
d9898ee8 8018
8019aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8020}'`
8021# Check for a 64-bit object if we didn't find anything.
8022if 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; }
8023}'`; fi
8024else
8025 echo "$as_me: failed program was:" >&5
8026sed 's/^/| /' conftest.$ac_ext >&5
8027
dd184caf 8028
d9898ee8 8029fi
dd184caf 8030
8031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8032 conftest$ac_exeext conftest.$ac_ext
8033if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8034
8035 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8036 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"
8037 else
8038 if test "$host_cpu" = ia64; then
8039 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8040 allow_undefined_flag="-z nodefs"
8041 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"
8042 else
8043 # Determine the default libpath from the value encoded in an empty executable.
8044 cat >conftest.$ac_ext <<_ACEOF
8045/* confdefs.h. */
8046_ACEOF
8047cat confdefs.h >>conftest.$ac_ext
8048cat >>conftest.$ac_ext <<_ACEOF
8049/* end confdefs.h. */
8050
8051int
8052main ()
8053{
8054
8055 ;
8056 return 0;
8057}
8058_ACEOF
8059rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8060if { (ac_try="$ac_link"
8061case "(($ac_try" in
8062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8064esac
8065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066 (eval "$ac_link") 2>conftest.er1
d9898ee8 8067 ac_status=$?
8068 grep -v '^ *+' conftest.er1 >conftest.err
8069 rm -f conftest.er1
8070 cat conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8072 (exit $ac_status); } && {
8073 test -z "$ac_c_werror_flag" ||
8074 test ! -s conftest.err
8075 } && test -s conftest$ac_exeext &&
8076 $as_test_x conftest$ac_exeext; then
d9898ee8 8077
8078aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8079}'`
8080# Check for a 64-bit object if we didn't find anything.
8081if 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; }
8082}'`; fi
8083else
8084 echo "$as_me: failed program was:" >&5
8085sed 's/^/| /' conftest.$ac_ext >&5
8086
dd184caf 8087
d9898ee8 8088fi
dd184caf 8089
8090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8091 conftest$ac_exeext conftest.$ac_ext
8092if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8093
8094 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8095 # Warning - without using the other run time loading flags,
8096 # -berok will link without error, but may produce a broken library.
8097 no_undefined_flag=' ${wl}-bernotok'
8098 allow_undefined_flag=' ${wl}-berok'
8099 # Exported symbols can be pulled into shared objects from archives
8100 whole_archive_flag_spec='$convenience'
8101 archive_cmds_need_lc=yes
8102 # This is similar to how AIX traditionally builds its shared libraries.
8103 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'
8104 fi
8105 fi
8106 ;;
8107
8108 amigaos*)
8109 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)'
8110 hardcode_libdir_flag_spec='-L$libdir'
8111 hardcode_minus_L=yes
8112 # see comment about different semantics on the GNU ld section
8113 ld_shlibs=no
8114 ;;
8115
8116 bsdi[45]*)
8117 export_dynamic_flag_spec=-rdynamic
8118 ;;
8119
8120 cygwin* | mingw* | pw32*)
8121 # When not using gcc, we currently assume that we are using
8122 # Microsoft Visual C++.
8123 # hardcode_libdir_flag_spec is actually meaningless, as there is
8124 # no search path for DLLs.
8125 hardcode_libdir_flag_spec=' '
8126 allow_undefined_flag=unsupported
8127 # Tell ltmain to make .lib files, not .a files.
8128 libext=lib
8129 # Tell ltmain to make .dll files, not .so files.
8130 shrext_cmds=".dll"
8131 # FIXME: Setting linknames here is a bad hack.
8132 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8133 # The linker will automatically build a .lib file if we build a DLL.
8134 old_archive_From_new_cmds='true'
8135 # FIXME: Should let the user specify the lib program.
8136 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8137 fix_srcfile_path='`cygpath -w "$srcfile"`'
8138 enable_shared_with_static_runtimes=yes
8139 ;;
8140
8141 darwin* | rhapsody*)
8142 case $host_os in
8143 rhapsody* | darwin1.[012])
8144 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8145 ;;
8146 *) # Darwin 1.3 on
8147 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8148 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8149 else
8150 case ${MACOSX_DEPLOYMENT_TARGET} in
8151 10.[012])
8152 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8153 ;;
8154 10.*)
8155 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8156 ;;
8157 esac
8158 fi
8159 ;;
8160 esac
8161 archive_cmds_need_lc=no
8162 hardcode_direct=no
8163 hardcode_automatic=yes
8164 hardcode_shlibpath_var=unsupported
8165 whole_archive_flag_spec=''
8166 link_all_deplibs=yes
8167 if test "$GCC" = yes ; then
8168 output_verbose_link_cmd='echo'
8169 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8170 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8171 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8172 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}'
8173 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}'
8174 else
8175 case $cc_basename in
8176 xlc*)
8177 output_verbose_link_cmd='echo'
8178 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8179 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8180 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8181 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}'
8182 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}'
8183 ;;
8184 *)
8185 ld_shlibs=no
8186 ;;
8187 esac
8188 fi
8189 ;;
8190
8191 dgux*)
8192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8193 hardcode_libdir_flag_spec='-L$libdir'
8194 hardcode_shlibpath_var=no
8195 ;;
8196
8197 freebsd1*)
8198 ld_shlibs=no
8199 ;;
8200
8201 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8202 # support. Future versions do this automatically, but an explicit c++rt0.o
8203 # does not break anything, and helps significantly (at the cost of a little
8204 # extra space).
8205 freebsd2.2*)
8206 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8207 hardcode_libdir_flag_spec='-R$libdir'
8208 hardcode_direct=yes
8209 hardcode_shlibpath_var=no
8210 ;;
8211
8212 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8213 freebsd2*)
8214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8215 hardcode_direct=yes
8216 hardcode_minus_L=yes
8217 hardcode_shlibpath_var=no
8218 ;;
8219
8220 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1dce02f2 8221 freebsd* | dragonfly*)
d9898ee8 8222 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8223 hardcode_libdir_flag_spec='-R$libdir'
8224 hardcode_direct=yes
8225 hardcode_shlibpath_var=no
8226 ;;
8227
8228 hpux9*)
8229 if test "$GCC" = yes; then
8230 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'
8231 else
8232 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'
8233 fi
8234 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8235 hardcode_libdir_separator=:
8236 hardcode_direct=yes
8237
8238 # hardcode_minus_L: Not really in the search PATH,
8239 # but as the default location of the library.
8240 hardcode_minus_L=yes
8241 export_dynamic_flag_spec='${wl}-E'
8242 ;;
8243
8244 hpux10*)
8245 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8246 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8247 else
8248 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8249 fi
8250 if test "$with_gnu_ld" = no; then
8251 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8252 hardcode_libdir_separator=:
8253
8254 hardcode_direct=yes
8255 export_dynamic_flag_spec='${wl}-E'
8256
8257 # hardcode_minus_L: Not really in the search PATH,
8258 # but as the default location of the library.
8259 hardcode_minus_L=yes
8260 fi
8261 ;;
8262
8263 hpux11*)
8264 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8265 case $host_cpu in
8266 hppa*64*)
8267 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8268 ;;
8269 ia64*)
8270 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8271 ;;
8272 *)
8273 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8274 ;;
8275 esac
8276 else
8277 case $host_cpu in
8278 hppa*64*)
8279 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8280 ;;
8281 ia64*)
8282 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8283 ;;
8284 *)
8285 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8286 ;;
8287 esac
8288 fi
8289 if test "$with_gnu_ld" = no; then
8290 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8291 hardcode_libdir_separator=:
8292
8293 case $host_cpu in
8294 hppa*64*|ia64*)
8295 hardcode_libdir_flag_spec_ld='+b $libdir'
8296 hardcode_direct=no
8297 hardcode_shlibpath_var=no
8298 ;;
8299 *)
8300 hardcode_direct=yes
8301 export_dynamic_flag_spec='${wl}-E'
8302
8303 # hardcode_minus_L: Not really in the search PATH,
8304 # but as the default location of the library.
8305 hardcode_minus_L=yes
8306 ;;
8307 esac
8308 fi
8309 ;;
8310
8311 irix5* | irix6* | nonstopux*)
8312 if test "$GCC" = yes; then
8313 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'
8314 else
8315 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'
8316 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8317 fi
8318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8319 hardcode_libdir_separator=:
8320 link_all_deplibs=yes
8321 ;;
8322
1dce02f2 8323 netbsd* | netbsdelf*-gnu)
d9898ee8 8324 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8325 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8326 else
8327 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8328 fi
8329 hardcode_libdir_flag_spec='-R$libdir'
8330 hardcode_direct=yes
8331 hardcode_shlibpath_var=no
8332 ;;
8333
8334 newsos6)
8335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8336 hardcode_direct=yes
8337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8338 hardcode_libdir_separator=:
8339 hardcode_shlibpath_var=no
8340 ;;
8341
8342 openbsd*)
8343 hardcode_direct=yes
8344 hardcode_shlibpath_var=no
8345 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8346 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8347 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8348 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8349 export_dynamic_flag_spec='${wl}-E'
8350 else
8351 case $host_os in
8352 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8354 hardcode_libdir_flag_spec='-R$libdir'
8355 ;;
8356 *)
8357 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8358 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8359 ;;
8360 esac
8361 fi
8362 ;;
8363
8364 os2*)
8365 hardcode_libdir_flag_spec='-L$libdir'
8366 hardcode_minus_L=yes
8367 allow_undefined_flag=unsupported
8368 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'
8369 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8370 ;;
8371
8372 osf3*)
8373 if test "$GCC" = yes; then
8374 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8375 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'
8376 else
8377 allow_undefined_flag=' -expect_unresolved \*'
8378 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'
8379 fi
8380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8381 hardcode_libdir_separator=:
8382 ;;
8383
8384 osf4* | osf5*) # as osf3* with the addition of -msym flag
8385 if test "$GCC" = yes; then
8386 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8387 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'
8388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8389 else
8390 allow_undefined_flag=' -expect_unresolved \*'
8391 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'
8392 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8393 $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'
8394
8395 # Both c and cxx compiler support -rpath directly
8396 hardcode_libdir_flag_spec='-rpath $libdir'
8397 fi
8398 hardcode_libdir_separator=:
8399 ;;
8400
8401 solaris*)
8402 no_undefined_flag=' -z text'
8403 if test "$GCC" = yes; then
8404 wlarc='${wl}'
8405 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8406 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8407 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8408 else
8409 wlarc=''
8410 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8411 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8412 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8413 fi
8414 hardcode_libdir_flag_spec='-R$libdir'
8415 hardcode_shlibpath_var=no
8416 case $host_os in
8417 solaris2.[0-5] | solaris2.[0-5].*) ;;
8418 *)
8419 # The compiler driver will combine linker options so we
8420 # cannot just pass the convience library names through
8421 # without $wl, iff we do not link with $LD.
8422 # Luckily, gcc supports the same syntax we need for Sun Studio.
8423 # Supported since Solaris 2.6 (maybe 2.5.1?)
8424 case $wlarc in
8425 '')
8426 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8427 *)
8428 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' ;;
8429 esac ;;
8430 esac
8431 link_all_deplibs=yes
8432 ;;
8433
8434 sunos4*)
8435 if test "x$host_vendor" = xsequent; then
8436 # Use $CC to link under sequent, because it throws in some extra .o
8437 # files that make .init and .fini sections work.
8438 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8439 else
8440 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8441 fi
8442 hardcode_libdir_flag_spec='-L$libdir'
8443 hardcode_direct=yes
8444 hardcode_minus_L=yes
8445 hardcode_shlibpath_var=no
8446 ;;
8447
8448 sysv4)
8449 case $host_vendor in
8450 sni)
8451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8452 hardcode_direct=yes # is this really true???
8453 ;;
8454 siemens)
8455 ## LD is ld it makes a PLAMLIB
8456 ## CC just makes a GrossModule.
8457 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8458 reload_cmds='$CC -r -o $output$reload_objs'
8459 hardcode_direct=no
8460 ;;
8461 motorola)
8462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8463 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8464 ;;
8465 esac
8466 runpath_var='LD_RUN_PATH'
8467 hardcode_shlibpath_var=no
8468 ;;
8469
8470 sysv4.3*)
8471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8472 hardcode_shlibpath_var=no
8473 export_dynamic_flag_spec='-Bexport'
8474 ;;
8475
8476 sysv4*MP*)
8477 if test -d /usr/nec; then
8478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8479 hardcode_shlibpath_var=no
8480 runpath_var=LD_RUN_PATH
8481 hardcode_runpath_var=yes
8482 ld_shlibs=yes
8483 fi
8484 ;;
8485
8486 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8487 no_undefined_flag='${wl}-z,text'
8488 archive_cmds_need_lc=no
8489 hardcode_shlibpath_var=no
8490 runpath_var='LD_RUN_PATH'
8491
8492 if test "$GCC" = yes; then
8493 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8494 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8495 else
8496 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8497 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8498 fi
8499 ;;
8500
8501 sysv5* | sco3.2v5* | sco5v6*)
8502 # Note: We can NOT use -z defs as we might desire, because we do not
8503 # link with -lc, and that would cause any symbols used from libc to
8504 # always be unresolved, which means just about no library would
8505 # ever link correctly. If we're not using GNU ld we use -z text
8506 # though, which does catch some bad symbols but isn't as heavy-handed
8507 # as -z defs.
8508 no_undefined_flag='${wl}-z,text'
8509 allow_undefined_flag='${wl}-z,nodefs'
8510 archive_cmds_need_lc=no
8511 hardcode_shlibpath_var=no
8512 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8513 hardcode_libdir_separator=':'
8514 link_all_deplibs=yes
8515 export_dynamic_flag_spec='${wl}-Bexport'
8516 runpath_var='LD_RUN_PATH'
8517
8518 if test "$GCC" = yes; then
8519 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8520 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8521 else
8522 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8523 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8524 fi
8525 ;;
8526
8527 uts4*)
8528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8529 hardcode_libdir_flag_spec='-L$libdir'
8530 hardcode_shlibpath_var=no
8531 ;;
8532
8533 *)
8534 ld_shlibs=no
8535 ;;
8536 esac
8537 fi
8538
dd184caf 8539{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8540echo "${ECHO_T}$ld_shlibs" >&6; }
d9898ee8 8541test "$ld_shlibs" = no && can_build_shared=no
8542
8543#
8544# Do we need to explicitly link libc?
8545#
8546case "x$archive_cmds_need_lc" in
8547x|xyes)
8548 # Assume -lc should be added
8549 archive_cmds_need_lc=yes
8550
8551 if test "$enable_shared" = yes && test "$GCC" = yes; then
8552 case $archive_cmds in
8553 *'~'*)
8554 # FIXME: we may have to deal with multi-command sequences.
8555 ;;
8556 '$CC '*)
8557 # Test whether the compiler implicitly links with -lc since on some
8558 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8559 # to ld, don't add -lc before -lgcc.
dd184caf 8560 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8561echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 8562 $rm conftest*
8563 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8564
8565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8566 (eval $ac_compile) 2>&5
8567 ac_status=$?
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); } 2>conftest.err; then
8570 soname=conftest
8571 lib=conftest
8572 libobjs=conftest.$ac_objext
8573 deplibs=
8574 wl=$lt_prog_compiler_wl
8575 pic_flag=$lt_prog_compiler_pic
8576 compiler_flags=-v
8577 linker_flags=-v
8578 verstring=
8579 output_objdir=.
8580 libname=conftest
8581 lt_save_allow_undefined_flag=$allow_undefined_flag
8582 allow_undefined_flag=
8583 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8584 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }
8588 then
8589 archive_cmds_need_lc=no
8590 else
8591 archive_cmds_need_lc=yes
8592 fi
8593 allow_undefined_flag=$lt_save_allow_undefined_flag
8594 else
8595 cat conftest.err 1>&5
8596 fi
8597 $rm conftest*
dd184caf 8598 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8599echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d9898ee8 8600 ;;
8601 esac
8602 fi
8603 ;;
8604esac
8605
dd184caf 8606{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8607echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 8608library_names_spec=
8609libname_spec='lib$name'
8610soname_spec=
8611shrext_cmds=".so"
8612postinstall_cmds=
8613postuninstall_cmds=
8614finish_cmds=
8615finish_eval=
8616shlibpath_var=
8617shlibpath_overrides_runpath=unknown
8618version_type=none
8619dynamic_linker="$host_os ld.so"
8620sys_lib_dlsearch_path_spec="/lib /usr/lib"
8621if test "$GCC" = yes; then
8622 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8623 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8624 # if the path contains ";" then we assume it to be the separator
8625 # otherwise default to the standard path separator (i.e. ":") - it is
8626 # assumed that no part of a normal pathname contains ";" but that should
8627 # okay in the real world where ";" in dirpaths is itself problematic.
8628 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8629 else
8630 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8631 fi
8632else
8633 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8634fi
8635need_lib_prefix=unknown
8636hardcode_into_libs=no
8637
8638# when you set need_version to no, make sure it does not cause -set_version
8639# flags to be left without arguments
8640need_version=unknown
8641
8642case $host_os in
8643aix3*)
8644 version_type=linux
8645 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8646 shlibpath_var=LIBPATH
8647
8648 # AIX 3 has no versioning support, so we append a major version to the name.
8649 soname_spec='${libname}${release}${shared_ext}$major'
8650 ;;
8651
8652aix4* | aix5*)
8653 version_type=linux
8654 need_lib_prefix=no
8655 need_version=no
8656 hardcode_into_libs=yes
8657 if test "$host_cpu" = ia64; then
8658 # AIX 5 supports IA64
8659 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8660 shlibpath_var=LD_LIBRARY_PATH
8661 else
8662 # With GCC up to 2.95.x, collect2 would create an import file
8663 # for dependence libraries. The import file would start with
8664 # the line `#! .'. This would cause the generated library to
8665 # depend on `.', always an invalid library. This was fixed in
8666 # development snapshots of GCC prior to 3.0.
8667 case $host_os in
8668 aix4 | aix4.[01] | aix4.[01].*)
8669 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8670 echo ' yes '
8671 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8672 :
8673 else
8674 can_build_shared=no
8675 fi
8676 ;;
8677 esac
8678 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8679 # soname into executable. Probably we can add versioning support to
8680 # collect2, so additional links can be useful in future.
8681 if test "$aix_use_runtimelinking" = yes; then
8682 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8683 # instead of lib<name>.a to let people know that these are not
8684 # typical AIX shared libraries.
8685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8686 else
8687 # We preserve .a as extension for shared libraries through AIX4.2
8688 # and later when we are not doing run time linking.
8689 library_names_spec='${libname}${release}.a $libname.a'
8690 soname_spec='${libname}${release}${shared_ext}$major'
8691 fi
8692 shlibpath_var=LIBPATH
8693 fi
8694 ;;
8695
8696amigaos*)
8697 library_names_spec='$libname.ixlibrary $libname.a'
8698 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8699 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'
8700 ;;
8701
8702beos*)
8703 library_names_spec='${libname}${shared_ext}'
8704 dynamic_linker="$host_os ld.so"
8705 shlibpath_var=LIBRARY_PATH
8706 ;;
8707
8708bsdi[45]*)
8709 version_type=linux
8710 need_version=no
8711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8712 soname_spec='${libname}${release}${shared_ext}$major'
8713 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8714 shlibpath_var=LD_LIBRARY_PATH
8715 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8716 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8717 # the default ld.so.conf also contains /usr/contrib/lib and
8718 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8719 # libtool to hard-code these into programs
8720 ;;
8721
8722cygwin* | mingw* | pw32*)
8723 version_type=windows
8724 shrext_cmds=".dll"
8725 need_version=no
8726 need_lib_prefix=no
8727
8728 case $GCC,$host_os in
8729 yes,cygwin* | yes,mingw* | yes,pw32*)
8730 library_names_spec='$libname.dll.a'
8731 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8732 postinstall_cmds='base_file=`basename \${file}`~
8733 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8734 dldir=$destdir/`dirname \$dlpath`~
8735 test -d \$dldir || mkdir -p \$dldir~
8736 $install_prog $dir/$dlname \$dldir/$dlname~
8737 chmod a+x \$dldir/$dlname'
8738 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8739 dlpath=$dir/\$dldll~
8740 $rm \$dlpath'
8741 shlibpath_overrides_runpath=yes
8742
8743 case $host_os in
8744 cygwin*)
8745 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8746 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8747 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8748 ;;
8749 mingw*)
8750 # MinGW DLLs use traditional 'lib' prefix
8751 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8752 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8753 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8754 # It is most probably a Windows format PATH printed by
8755 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8756 # path with ; separators, and with drive letters. We can handle the
8757 # drive letters (cygwin fileutils understands them), so leave them,
8758 # especially as we might pass files found there to a mingw objdump,
8759 # which wouldn't understand a cygwinified path. Ahh.
8760 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8761 else
8762 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8763 fi
8764 ;;
8765 pw32*)
8766 # pw32 DLLs use 'pw' prefix rather than 'lib'
8767 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8768 ;;
8769 esac
8770 ;;
8771
8772 *)
8773 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8774 ;;
8775 esac
8776 dynamic_linker='Win32 ld.exe'
8777 # FIXME: first we should search . and the directory the executable is in
8778 shlibpath_var=PATH
8779 ;;
8780
8781darwin* | rhapsody*)
8782 dynamic_linker="$host_os dyld"
8783 version_type=darwin
8784 need_lib_prefix=no
8785 need_version=no
8786 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8787 soname_spec='${libname}${release}${major}$shared_ext'
8788 shlibpath_overrides_runpath=yes
8789 shlibpath_var=DYLD_LIBRARY_PATH
8790 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8791 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8792 if test "$GCC" = yes; then
8793 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"`
8794 else
8795 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8796 fi
8797 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8798 ;;
8799
8800dgux*)
8801 version_type=linux
8802 need_lib_prefix=no
8803 need_version=no
8804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8805 soname_spec='${libname}${release}${shared_ext}$major'
8806 shlibpath_var=LD_LIBRARY_PATH
8807 ;;
8808
8809freebsd1*)
8810 dynamic_linker=no
8811 ;;
8812
d9898ee8 8813freebsd* | dragonfly*)
8814 # DragonFly does not have aout. When/if they implement a new
8815 # versioning mechanism, adjust this.
8816 if test -x /usr/bin/objformat; then
8817 objformat=`/usr/bin/objformat`
8818 else
8819 case $host_os in
8820 freebsd[123]*) objformat=aout ;;
8821 *) objformat=elf ;;
8822 esac
8823 fi
8824 version_type=freebsd-$objformat
8825 case $version_type in
8826 freebsd-elf*)
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8828 need_version=no
8829 need_lib_prefix=no
8830 ;;
8831 freebsd-*)
8832 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8833 need_version=yes
8834 ;;
8835 esac
8836 shlibpath_var=LD_LIBRARY_PATH
8837 case $host_os in
8838 freebsd2*)
8839 shlibpath_overrides_runpath=yes
8840 ;;
8841 freebsd3.[01]* | freebsdelf3.[01]*)
8842 shlibpath_overrides_runpath=yes
8843 hardcode_into_libs=yes
8844 ;;
8845 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8846 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8847 shlibpath_overrides_runpath=no
8848 hardcode_into_libs=yes
8849 ;;
8850 freebsd*) # from 4.6 on
8851 shlibpath_overrides_runpath=yes
8852 hardcode_into_libs=yes
8853 ;;
8854 esac
8855 ;;
8856
8857gnu*)
8858 version_type=linux
8859 need_lib_prefix=no
8860 need_version=no
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8862 soname_spec='${libname}${release}${shared_ext}$major'
8863 shlibpath_var=LD_LIBRARY_PATH
8864 hardcode_into_libs=yes
8865 ;;
8866
8867hpux9* | hpux10* | hpux11*)
8868 # Give a soname corresponding to the major version so that dld.sl refuses to
8869 # link against other versions.
8870 version_type=sunos
8871 need_lib_prefix=no
8872 need_version=no
8873 case $host_cpu in
8874 ia64*)
8875 shrext_cmds='.so'
8876 hardcode_into_libs=yes
8877 dynamic_linker="$host_os dld.so"
8878 shlibpath_var=LD_LIBRARY_PATH
8879 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 if test "X$HPUX_IA64_MODE" = X32; then
8883 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8884 else
8885 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8886 fi
8887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8888 ;;
8889 hppa*64*)
8890 shrext_cmds='.sl'
8891 hardcode_into_libs=yes
8892 dynamic_linker="$host_os dld.sl"
8893 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8894 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8896 soname_spec='${libname}${release}${shared_ext}$major'
8897 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8899 ;;
8900 *)
8901 shrext_cmds='.sl'
8902 dynamic_linker="$host_os dld.sl"
8903 shlibpath_var=SHLIB_PATH
8904 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8906 soname_spec='${libname}${release}${shared_ext}$major'
8907 ;;
8908 esac
8909 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8910 postinstall_cmds='chmod 555 $lib'
8911 ;;
8912
8913interix3*)
8914 version_type=linux
8915 need_lib_prefix=no
8916 need_version=no
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8918 soname_spec='${libname}${release}${shared_ext}$major'
8919 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8920 shlibpath_var=LD_LIBRARY_PATH
8921 shlibpath_overrides_runpath=no
8922 hardcode_into_libs=yes
8923 ;;
8924
8925irix5* | irix6* | nonstopux*)
8926 case $host_os in
8927 nonstopux*) version_type=nonstopux ;;
8928 *)
8929 if test "$lt_cv_prog_gnu_ld" = yes; then
8930 version_type=linux
8931 else
8932 version_type=irix
8933 fi ;;
8934 esac
8935 need_lib_prefix=no
8936 need_version=no
8937 soname_spec='${libname}${release}${shared_ext}$major'
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8939 case $host_os in
8940 irix5* | nonstopux*)
8941 libsuff= shlibsuff=
8942 ;;
8943 *)
8944 case $LD in # libtool.m4 will add one of these switches to LD
8945 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8946 libsuff= shlibsuff= libmagic=32-bit;;
8947 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8948 libsuff=32 shlibsuff=N32 libmagic=N32;;
8949 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8950 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8951 *) libsuff= shlibsuff= libmagic=never-match;;
8952 esac
8953 ;;
8954 esac
8955 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8956 shlibpath_overrides_runpath=no
8957 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8958 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8959 hardcode_into_libs=yes
8960 ;;
8961
8962# No shared lib support for Linux oldld, aout, or coff.
8963linux*oldld* | linux*aout* | linux*coff*)
8964 dynamic_linker=no
8965 ;;
8966
8967# This must be Linux ELF.
1dce02f2 8968linux* | k*bsd*-gnu)
d9898ee8 8969 version_type=linux
8970 need_lib_prefix=no
8971 need_version=no
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8973 soname_spec='${libname}${release}${shared_ext}$major'
8974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8975 shlibpath_var=LD_LIBRARY_PATH
8976 shlibpath_overrides_runpath=no
8977 # This implies no fast_install, which is unacceptable.
8978 # Some rework will be needed to allow for fast_install
8979 # before this can be enabled.
8980 hardcode_into_libs=yes
8981
d9898ee8 8982 # Append ld.so.conf contents to the search path
8983 if test -f /etc/ld.so.conf; then
1dce02f2 8984 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8985 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
d9898ee8 8986 fi
8987
8988 # We used to test for /lib/ld.so.1 and disable shared libraries on
8989 # powerpc, because MkLinux only supported shared libraries with the
8990 # GNU dynamic linker. Since this was broken with cross compilers,
8991 # most powerpc-linux boxes support dynamic linking these days and
8992 # people can always --disable-shared, the test was removed, and we
8993 # assume the GNU/Linux dynamic linker is in use.
8994 dynamic_linker='GNU/Linux ld.so'
8995 ;;
8996
1dce02f2 8997netbsdelf*-gnu)
d9898ee8 8998 version_type=linux
8999 need_lib_prefix=no
9000 need_version=no
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 shlibpath_var=LD_LIBRARY_PATH
9004 shlibpath_overrides_runpath=no
9005 hardcode_into_libs=yes
1dce02f2 9006 dynamic_linker='NetBSD ld.elf_so'
d9898ee8 9007 ;;
9008
9009netbsd*)
9010 version_type=sunos
9011 need_lib_prefix=no
9012 need_version=no
9013 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9016 dynamic_linker='NetBSD (a.out) ld.so'
9017 else
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 dynamic_linker='NetBSD ld.elf_so'
9021 fi
9022 shlibpath_var=LD_LIBRARY_PATH
9023 shlibpath_overrides_runpath=yes
9024 hardcode_into_libs=yes
9025 ;;
9026
9027newsos6)
9028 version_type=linux
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 shlibpath_overrides_runpath=yes
9032 ;;
9033
9034nto-qnx*)
9035 version_type=linux
9036 need_lib_prefix=no
9037 need_version=no
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 shlibpath_overrides_runpath=yes
9042 ;;
9043
9044openbsd*)
9045 version_type=sunos
9046 sys_lib_dlsearch_path_spec="/usr/lib"
9047 need_lib_prefix=no
9048 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9049 case $host_os in
9050 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9051 *) need_version=no ;;
9052 esac
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9057 case $host_os in
9058 openbsd2.[89] | openbsd2.[89].*)
9059 shlibpath_overrides_runpath=no
9060 ;;
9061 *)
9062 shlibpath_overrides_runpath=yes
9063 ;;
9064 esac
9065 else
9066 shlibpath_overrides_runpath=yes
9067 fi
9068 ;;
9069
9070os2*)
9071 libname_spec='$name'
9072 shrext_cmds=".dll"
9073 need_lib_prefix=no
9074 library_names_spec='$libname${shared_ext} $libname.a'
9075 dynamic_linker='OS/2 ld.exe'
9076 shlibpath_var=LIBPATH
9077 ;;
9078
9079osf3* | osf4* | osf5*)
9080 version_type=osf
9081 need_lib_prefix=no
9082 need_version=no
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9087 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9088 ;;
9089
9090solaris*)
9091 version_type=linux
9092 need_lib_prefix=no
9093 need_version=no
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 shlibpath_overrides_runpath=yes
9098 hardcode_into_libs=yes
9099 # ldd complains unless libraries are executable
9100 postinstall_cmds='chmod +x $lib'
9101 ;;
9102
9103sunos4*)
9104 version_type=sunos
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9106 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9107 shlibpath_var=LD_LIBRARY_PATH
9108 shlibpath_overrides_runpath=yes
9109 if test "$with_gnu_ld" = yes; then
9110 need_lib_prefix=no
9111 fi
9112 need_version=yes
9113 ;;
9114
9115sysv4 | sysv4.3*)
9116 version_type=linux
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 shlibpath_var=LD_LIBRARY_PATH
9120 case $host_vendor in
9121 sni)
9122 shlibpath_overrides_runpath=no
9123 need_lib_prefix=no
9124 export_dynamic_flag_spec='${wl}-Blargedynsym'
9125 runpath_var=LD_RUN_PATH
9126 ;;
9127 siemens)
9128 need_lib_prefix=no
9129 ;;
9130 motorola)
9131 need_lib_prefix=no
9132 need_version=no
9133 shlibpath_overrides_runpath=no
9134 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9135 ;;
9136 esac
9137 ;;
9138
9139sysv4*MP*)
9140 if test -d /usr/nec ;then
9141 version_type=linux
9142 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9143 soname_spec='$libname${shared_ext}.$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 fi
9146 ;;
9147
9148sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9149 version_type=freebsd-elf
9150 need_lib_prefix=no
9151 need_version=no
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 shlibpath_var=LD_LIBRARY_PATH
9155 hardcode_into_libs=yes
9156 if test "$with_gnu_ld" = yes; then
9157 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9158 shlibpath_overrides_runpath=no
9159 else
9160 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9161 shlibpath_overrides_runpath=yes
9162 case $host_os in
9163 sco3.2v5*)
9164 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9165 ;;
9166 esac
9167 fi
9168 sys_lib_dlsearch_path_spec='/usr/lib'
9169 ;;
9170
9171uts4*)
9172 version_type=linux
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9174 soname_spec='${libname}${release}${shared_ext}$major'
9175 shlibpath_var=LD_LIBRARY_PATH
9176 ;;
9177
9178*)
9179 dynamic_linker=no
9180 ;;
9181esac
dd184caf 9182{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9183echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 9184test "$dynamic_linker" = no && can_build_shared=no
9185
9186variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9187if test "$GCC" = yes; then
9188 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9189fi
9190
dd184caf 9191{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9192echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 9193hardcode_action=
9194if test -n "$hardcode_libdir_flag_spec" || \
9195 test -n "$runpath_var" || \
9196 test "X$hardcode_automatic" = "Xyes" ; then
9197
9198 # We can hardcode non-existant directories.
9199 if test "$hardcode_direct" != no &&
9200 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9201 # have to relink, otherwise we might link with an installed library
9202 # when we should be linking with a yet-to-be-installed one
9203 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9204 test "$hardcode_minus_L" != no; then
9205 # Linking always hardcodes the temporary library directory.
9206 hardcode_action=relink
9207 else
9208 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9209 hardcode_action=immediate
9210 fi
9211else
9212 # We cannot hardcode anything, or else we can only hardcode existing
9213 # directories.
9214 hardcode_action=unsupported
9215fi
dd184caf 9216{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9217echo "${ECHO_T}$hardcode_action" >&6; }
d9898ee8 9218
9219if test "$hardcode_action" = relink; then
9220 # Fast installation is not supported
9221 enable_fast_install=no
9222elif test "$shlibpath_overrides_runpath" = yes ||
9223 test "$enable_shared" = no; then
9224 # Fast installation is not necessary
9225 enable_fast_install=needless
9226fi
9227
9228striplib=
9229old_striplib=
dd184caf 9230{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9231echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d9898ee8 9232if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9233 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9234 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
dd184caf 9235 { echo "$as_me:$LINENO: result: yes" >&5
9236echo "${ECHO_T}yes" >&6; }
d9898ee8 9237else
9238# FIXME - insert some real tests, host_os isn't really good enough
9239 case $host_os in
9240 darwin*)
9241 if test -n "$STRIP" ; then
9242 striplib="$STRIP -x"
dd184caf 9243 { echo "$as_me:$LINENO: result: yes" >&5
9244echo "${ECHO_T}yes" >&6; }
d9898ee8 9245 else
dd184caf 9246 { echo "$as_me:$LINENO: result: no" >&5
9247echo "${ECHO_T}no" >&6; }
d9898ee8 9248fi
9249 ;;
9250 *)
dd184caf 9251 { echo "$as_me:$LINENO: result: no" >&5
9252echo "${ECHO_T}no" >&6; }
d9898ee8 9253 ;;
9254 esac
9255fi
9256
9257if test "x$enable_dlopen" != xyes; then
9258 enable_dlopen=unknown
9259 enable_dlopen_self=unknown
9260 enable_dlopen_self_static=unknown
9261else
9262 lt_cv_dlopen=no
9263 lt_cv_dlopen_libs=
9264
9265 case $host_os in
9266 beos*)
9267 lt_cv_dlopen="load_add_on"
9268 lt_cv_dlopen_libs=
9269 lt_cv_dlopen_self=yes
9270 ;;
9271
9272 mingw* | pw32*)
9273 lt_cv_dlopen="LoadLibrary"
9274 lt_cv_dlopen_libs=
9275 ;;
9276
9277 cygwin*)
9278 lt_cv_dlopen="dlopen"
9279 lt_cv_dlopen_libs=
9280 ;;
9281
9282 darwin*)
9283 # if libdl is installed we need to link against it
dd184caf 9284 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9285echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9286if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9288else
9289 ac_check_lib_save_LIBS=$LIBS
9290LIBS="-ldl $LIBS"
9291cat >conftest.$ac_ext <<_ACEOF
9292/* confdefs.h. */
9293_ACEOF
9294cat confdefs.h >>conftest.$ac_ext
9295cat >>conftest.$ac_ext <<_ACEOF
9296/* end confdefs.h. */
9297
dd184caf 9298/* Override any GCC internal prototype to avoid an error.
9299 Use char because int might match the return type of a GCC
9300 builtin and then its argument prototype would still apply. */
d9898ee8 9301#ifdef __cplusplus
9302extern "C"
9303#endif
d9898ee8 9304char dlopen ();
9305int
9306main ()
9307{
dd184caf 9308return dlopen ();
d9898ee8 9309 ;
9310 return 0;
9311}
9312_ACEOF
9313rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9314if { (ac_try="$ac_link"
9315case "(($ac_try" in
9316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317 *) ac_try_echo=$ac_try;;
9318esac
9319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9320 (eval "$ac_link") 2>conftest.er1
d9898ee8 9321 ac_status=$?
9322 grep -v '^ *+' conftest.er1 >conftest.err
9323 rm -f conftest.er1
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9326 (exit $ac_status); } && {
9327 test -z "$ac_c_werror_flag" ||
9328 test ! -s conftest.err
9329 } && test -s conftest$ac_exeext &&
9330 $as_test_x conftest$ac_exeext; then
d9898ee8 9331 ac_cv_lib_dl_dlopen=yes
9332else
9333 echo "$as_me: failed program was:" >&5
9334sed 's/^/| /' conftest.$ac_ext >&5
9335
dd184caf 9336 ac_cv_lib_dl_dlopen=no
d9898ee8 9337fi
dd184caf 9338
9339rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9340 conftest$ac_exeext conftest.$ac_ext
9341LIBS=$ac_check_lib_save_LIBS
9342fi
dd184caf 9343{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9344echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9345if test $ac_cv_lib_dl_dlopen = yes; then
9346 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9347else
9348
9349 lt_cv_dlopen="dyld"
9350 lt_cv_dlopen_libs=
9351 lt_cv_dlopen_self=yes
9352
9353fi
9354
9355 ;;
9356
9357 *)
dd184caf 9358 { echo "$as_me:$LINENO: checking for shl_load" >&5
9359echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9898ee8 9360if test "${ac_cv_func_shl_load+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9362else
9363 cat >conftest.$ac_ext <<_ACEOF
9364/* confdefs.h. */
9365_ACEOF
9366cat confdefs.h >>conftest.$ac_ext
9367cat >>conftest.$ac_ext <<_ACEOF
9368/* end confdefs.h. */
9369/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9371#define shl_load innocuous_shl_load
9372
9373/* System header to define __stub macros and hopefully few prototypes,
9374 which can conflict with char shl_load (); below.
9375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9376 <limits.h> exists even on freestanding compilers. */
9377
9378#ifdef __STDC__
9379# include <limits.h>
9380#else
9381# include <assert.h>
9382#endif
9383
9384#undef shl_load
9385
dd184caf 9386/* Override any GCC internal prototype to avoid an error.
9387 Use char because int might match the return type of a GCC
9388 builtin and then its argument prototype would still apply. */
d9898ee8 9389#ifdef __cplusplus
9390extern "C"
d9898ee8 9391#endif
d9898ee8 9392char shl_load ();
9393/* The GNU C library defines this for functions which it implements
9394 to always fail with ENOSYS. Some functions are actually named
9395 something starting with __ and the normal name is an alias. */
dd184caf 9396#if defined __stub_shl_load || defined __stub___shl_load
d9898ee8 9397choke me
d9898ee8 9398#endif
9399
9400int
9401main ()
9402{
dd184caf 9403return shl_load ();
d9898ee8 9404 ;
9405 return 0;
9406}
9407_ACEOF
9408rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9409if { (ac_try="$ac_link"
9410case "(($ac_try" in
9411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412 *) ac_try_echo=$ac_try;;
9413esac
9414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415 (eval "$ac_link") 2>conftest.er1
d9898ee8 9416 ac_status=$?
9417 grep -v '^ *+' conftest.er1 >conftest.err
9418 rm -f conftest.er1
9419 cat conftest.err >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9421 (exit $ac_status); } && {
9422 test -z "$ac_c_werror_flag" ||
9423 test ! -s conftest.err
9424 } && test -s conftest$ac_exeext &&
9425 $as_test_x conftest$ac_exeext; then
d9898ee8 9426 ac_cv_func_shl_load=yes
9427else
9428 echo "$as_me: failed program was:" >&5
9429sed 's/^/| /' conftest.$ac_ext >&5
9430
dd184caf 9431 ac_cv_func_shl_load=no
d9898ee8 9432fi
dd184caf 9433
9434rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9435 conftest$ac_exeext conftest.$ac_ext
9436fi
dd184caf 9437{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9438echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9898ee8 9439if test $ac_cv_func_shl_load = yes; then
9440 lt_cv_dlopen="shl_load"
9441else
dd184caf 9442 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9443echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9898ee8 9444if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9446else
9447 ac_check_lib_save_LIBS=$LIBS
9448LIBS="-ldld $LIBS"
9449cat >conftest.$ac_ext <<_ACEOF
9450/* confdefs.h. */
9451_ACEOF
9452cat confdefs.h >>conftest.$ac_ext
9453cat >>conftest.$ac_ext <<_ACEOF
9454/* end confdefs.h. */
9455
dd184caf 9456/* Override any GCC internal prototype to avoid an error.
9457 Use char because int might match the return type of a GCC
9458 builtin and then its argument prototype would still apply. */
d9898ee8 9459#ifdef __cplusplus
9460extern "C"
9461#endif
d9898ee8 9462char shl_load ();
9463int
9464main ()
9465{
dd184caf 9466return shl_load ();
d9898ee8 9467 ;
9468 return 0;
9469}
9470_ACEOF
9471rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9472if { (ac_try="$ac_link"
9473case "(($ac_try" in
9474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475 *) ac_try_echo=$ac_try;;
9476esac
9477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478 (eval "$ac_link") 2>conftest.er1
d9898ee8 9479 ac_status=$?
9480 grep -v '^ *+' conftest.er1 >conftest.err
9481 rm -f conftest.er1
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9484 (exit $ac_status); } && {
9485 test -z "$ac_c_werror_flag" ||
9486 test ! -s conftest.err
9487 } && test -s conftest$ac_exeext &&
9488 $as_test_x conftest$ac_exeext; then
d9898ee8 9489 ac_cv_lib_dld_shl_load=yes
9490else
9491 echo "$as_me: failed program was:" >&5
9492sed 's/^/| /' conftest.$ac_ext >&5
9493
dd184caf 9494 ac_cv_lib_dld_shl_load=no
d9898ee8 9495fi
dd184caf 9496
9497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9498 conftest$ac_exeext conftest.$ac_ext
9499LIBS=$ac_check_lib_save_LIBS
9500fi
dd184caf 9501{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9502echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9898ee8 9503if test $ac_cv_lib_dld_shl_load = yes; then
9504 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9505else
dd184caf 9506 { echo "$as_me:$LINENO: checking for dlopen" >&5
9507echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d9898ee8 9508if test "${ac_cv_func_dlopen+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9510else
9511 cat >conftest.$ac_ext <<_ACEOF
9512/* confdefs.h. */
9513_ACEOF
9514cat confdefs.h >>conftest.$ac_ext
9515cat >>conftest.$ac_ext <<_ACEOF
9516/* end confdefs.h. */
9517/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9519#define dlopen innocuous_dlopen
9520
9521/* System header to define __stub macros and hopefully few prototypes,
9522 which can conflict with char dlopen (); below.
9523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9524 <limits.h> exists even on freestanding compilers. */
9525
9526#ifdef __STDC__
9527# include <limits.h>
9528#else
9529# include <assert.h>
9530#endif
9531
9532#undef dlopen
9533
dd184caf 9534/* Override any GCC internal prototype to avoid an error.
9535 Use char because int might match the return type of a GCC
9536 builtin and then its argument prototype would still apply. */
d9898ee8 9537#ifdef __cplusplus
9538extern "C"
d9898ee8 9539#endif
d9898ee8 9540char dlopen ();
9541/* The GNU C library defines this for functions which it implements
9542 to always fail with ENOSYS. Some functions are actually named
9543 something starting with __ and the normal name is an alias. */
dd184caf 9544#if defined __stub_dlopen || defined __stub___dlopen
d9898ee8 9545choke me
d9898ee8 9546#endif
9547
9548int
9549main ()
9550{
dd184caf 9551return dlopen ();
d9898ee8 9552 ;
9553 return 0;
9554}
9555_ACEOF
9556rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9557if { (ac_try="$ac_link"
9558case "(($ac_try" in
9559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560 *) ac_try_echo=$ac_try;;
9561esac
9562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563 (eval "$ac_link") 2>conftest.er1
d9898ee8 9564 ac_status=$?
9565 grep -v '^ *+' conftest.er1 >conftest.err
9566 rm -f conftest.er1
9567 cat conftest.err >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9569 (exit $ac_status); } && {
9570 test -z "$ac_c_werror_flag" ||
9571 test ! -s conftest.err
9572 } && test -s conftest$ac_exeext &&
9573 $as_test_x conftest$ac_exeext; then
d9898ee8 9574 ac_cv_func_dlopen=yes
9575else
9576 echo "$as_me: failed program was:" >&5
9577sed 's/^/| /' conftest.$ac_ext >&5
9578
dd184caf 9579 ac_cv_func_dlopen=no
d9898ee8 9580fi
dd184caf 9581
9582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9583 conftest$ac_exeext conftest.$ac_ext
9584fi
dd184caf 9585{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9586echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d9898ee8 9587if test $ac_cv_func_dlopen = yes; then
9588 lt_cv_dlopen="dlopen"
9589else
dd184caf 9590 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9591echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9592if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
9594else
9595 ac_check_lib_save_LIBS=$LIBS
9596LIBS="-ldl $LIBS"
9597cat >conftest.$ac_ext <<_ACEOF
9598/* confdefs.h. */
9599_ACEOF
9600cat confdefs.h >>conftest.$ac_ext
9601cat >>conftest.$ac_ext <<_ACEOF
9602/* end confdefs.h. */
9603
dd184caf 9604/* Override any GCC internal prototype to avoid an error.
9605 Use char because int might match the return type of a GCC
9606 builtin and then its argument prototype would still apply. */
d9898ee8 9607#ifdef __cplusplus
9608extern "C"
9609#endif
d9898ee8 9610char dlopen ();
9611int
9612main ()
9613{
dd184caf 9614return dlopen ();
d9898ee8 9615 ;
9616 return 0;
9617}
9618_ACEOF
9619rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9620if { (ac_try="$ac_link"
9621case "(($ac_try" in
9622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623 *) ac_try_echo=$ac_try;;
9624esac
9625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 (eval "$ac_link") 2>conftest.er1
d9898ee8 9627 ac_status=$?
9628 grep -v '^ *+' conftest.er1 >conftest.err
9629 rm -f conftest.er1
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9632 (exit $ac_status); } && {
9633 test -z "$ac_c_werror_flag" ||
9634 test ! -s conftest.err
9635 } && test -s conftest$ac_exeext &&
9636 $as_test_x conftest$ac_exeext; then
d9898ee8 9637 ac_cv_lib_dl_dlopen=yes
9638else
9639 echo "$as_me: failed program was:" >&5
9640sed 's/^/| /' conftest.$ac_ext >&5
9641
dd184caf 9642 ac_cv_lib_dl_dlopen=no
d9898ee8 9643fi
dd184caf 9644
9645rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9646 conftest$ac_exeext conftest.$ac_ext
9647LIBS=$ac_check_lib_save_LIBS
9648fi
dd184caf 9649{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9650echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9651if test $ac_cv_lib_dl_dlopen = yes; then
9652 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9653else
dd184caf 9654 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9655echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9898ee8 9656if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9658else
9659 ac_check_lib_save_LIBS=$LIBS
9660LIBS="-lsvld $LIBS"
9661cat >conftest.$ac_ext <<_ACEOF
9662/* confdefs.h. */
9663_ACEOF
9664cat confdefs.h >>conftest.$ac_ext
9665cat >>conftest.$ac_ext <<_ACEOF
9666/* end confdefs.h. */
9667
dd184caf 9668/* Override any GCC internal prototype to avoid an error.
9669 Use char because int might match the return type of a GCC
9670 builtin and then its argument prototype would still apply. */
d9898ee8 9671#ifdef __cplusplus
9672extern "C"
9673#endif
d9898ee8 9674char dlopen ();
9675int
9676main ()
9677{
dd184caf 9678return dlopen ();
d9898ee8 9679 ;
9680 return 0;
9681}
9682_ACEOF
9683rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9684if { (ac_try="$ac_link"
9685case "(($ac_try" in
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9688esac
9689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_link") 2>conftest.er1
d9898ee8 9691 ac_status=$?
9692 grep -v '^ *+' conftest.er1 >conftest.err
9693 rm -f conftest.er1
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9696 (exit $ac_status); } && {
9697 test -z "$ac_c_werror_flag" ||
9698 test ! -s conftest.err
9699 } && test -s conftest$ac_exeext &&
9700 $as_test_x conftest$ac_exeext; then
d9898ee8 9701 ac_cv_lib_svld_dlopen=yes
9702else
9703 echo "$as_me: failed program was:" >&5
9704sed 's/^/| /' conftest.$ac_ext >&5
9705
dd184caf 9706 ac_cv_lib_svld_dlopen=no
d9898ee8 9707fi
dd184caf 9708
9709rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9710 conftest$ac_exeext conftest.$ac_ext
9711LIBS=$ac_check_lib_save_LIBS
9712fi
dd184caf 9713{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9714echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9898ee8 9715if test $ac_cv_lib_svld_dlopen = yes; then
9716 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9717else
dd184caf 9718 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9719echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9898ee8 9720if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9722else
9723 ac_check_lib_save_LIBS=$LIBS
9724LIBS="-ldld $LIBS"
9725cat >conftest.$ac_ext <<_ACEOF
9726/* confdefs.h. */
9727_ACEOF
9728cat confdefs.h >>conftest.$ac_ext
9729cat >>conftest.$ac_ext <<_ACEOF
9730/* end confdefs.h. */
9731
dd184caf 9732/* Override any GCC internal prototype to avoid an error.
9733 Use char because int might match the return type of a GCC
9734 builtin and then its argument prototype would still apply. */
d9898ee8 9735#ifdef __cplusplus
9736extern "C"
9737#endif
d9898ee8 9738char dld_link ();
9739int
9740main ()
9741{
dd184caf 9742return dld_link ();
d9898ee8 9743 ;
9744 return 0;
9745}
9746_ACEOF
9747rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9748if { (ac_try="$ac_link"
9749case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752esac
9753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_link") 2>conftest.er1
d9898ee8 9755 ac_status=$?
9756 grep -v '^ *+' conftest.er1 >conftest.err
9757 rm -f conftest.er1
9758 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9760 (exit $ac_status); } && {
9761 test -z "$ac_c_werror_flag" ||
9762 test ! -s conftest.err
9763 } && test -s conftest$ac_exeext &&
9764 $as_test_x conftest$ac_exeext; then
d9898ee8 9765 ac_cv_lib_dld_dld_link=yes
9766else
9767 echo "$as_me: failed program was:" >&5
9768sed 's/^/| /' conftest.$ac_ext >&5
9769
dd184caf 9770 ac_cv_lib_dld_dld_link=no
d9898ee8 9771fi
dd184caf 9772
9773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9774 conftest$ac_exeext conftest.$ac_ext
9775LIBS=$ac_check_lib_save_LIBS
9776fi
dd184caf 9777{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9778echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9898ee8 9779if test $ac_cv_lib_dld_dld_link = yes; then
9780 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9781fi
9782
9783
9784fi
9785
9786
9787fi
9788
9789
9790fi
9791
9792
9793fi
9794
9795
9796fi
9797
9798 ;;
9799 esac
9800
9801 if test "x$lt_cv_dlopen" != xno; then
9802 enable_dlopen=yes
9803 else
9804 enable_dlopen=no
9805 fi
9806
9807 case $lt_cv_dlopen in
9808 dlopen)
9809 save_CPPFLAGS="$CPPFLAGS"
9810 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9811
9812 save_LDFLAGS="$LDFLAGS"
9813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9814
9815 save_LIBS="$LIBS"
9816 LIBS="$lt_cv_dlopen_libs $LIBS"
9817
dd184caf 9818 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9819echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 9820if test "${lt_cv_dlopen_self+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9822else
9823 if test "$cross_compiling" = yes; then :
9824 lt_cv_dlopen_self=cross
9825else
9826 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9827 lt_status=$lt_dlunknown
9828 cat > conftest.$ac_ext <<EOF
1dce02f2 9829#line 9829 "configure"
d9898ee8 9830#include "confdefs.h"
9831
9832#if HAVE_DLFCN_H
9833#include <dlfcn.h>
9834#endif
9835
9836#include <stdio.h>
9837
9838#ifdef RTLD_GLOBAL
9839# define LT_DLGLOBAL RTLD_GLOBAL
9840#else
9841# ifdef DL_GLOBAL
9842# define LT_DLGLOBAL DL_GLOBAL
9843# else
9844# define LT_DLGLOBAL 0
9845# endif
9846#endif
9847
9848/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9849 find out it does not work in some platform. */
9850#ifndef LT_DLLAZY_OR_NOW
9851# ifdef RTLD_LAZY
9852# define LT_DLLAZY_OR_NOW RTLD_LAZY
9853# else
9854# ifdef DL_LAZY
9855# define LT_DLLAZY_OR_NOW DL_LAZY
9856# else
9857# ifdef RTLD_NOW
9858# define LT_DLLAZY_OR_NOW RTLD_NOW
9859# else
9860# ifdef DL_NOW
9861# define LT_DLLAZY_OR_NOW DL_NOW
9862# else
9863# define LT_DLLAZY_OR_NOW 0
9864# endif
9865# endif
9866# endif
9867# endif
9868#endif
9869
9870#ifdef __cplusplus
9871extern "C" void exit (int);
9872#endif
9873
9874void fnord() { int i=42;}
9875int main ()
9876{
9877 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9878 int status = $lt_dlunknown;
9879
9880 if (self)
9881 {
9882 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9883 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9884 /* dlclose (self); */
9885 }
9886 else
9887 puts (dlerror ());
9888
9889 exit (status);
9890}
9891EOF
9892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9893 (eval $ac_link) 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9897 (./conftest; exit; ) >&5 2>/dev/null
9898 lt_status=$?
9899 case x$lt_status in
9900 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9901 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9902 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9903 esac
9904 else :
9905 # compilation failed
9906 lt_cv_dlopen_self=no
9907 fi
9908fi
9909rm -fr conftest*
9910
9911
9912fi
dd184caf 9913{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9914echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d9898ee8 9915
9916 if test "x$lt_cv_dlopen_self" = xyes; then
9917 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
dd184caf 9918 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9919echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 9920if test "${lt_cv_dlopen_self_static+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922else
9923 if test "$cross_compiling" = yes; then :
9924 lt_cv_dlopen_self_static=cross
9925else
9926 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9927 lt_status=$lt_dlunknown
9928 cat > conftest.$ac_ext <<EOF
1dce02f2 9929#line 9929 "configure"
d9898ee8 9930#include "confdefs.h"
9931
9932#if HAVE_DLFCN_H
9933#include <dlfcn.h>
9934#endif
9935
9936#include <stdio.h>
9937
9938#ifdef RTLD_GLOBAL
9939# define LT_DLGLOBAL RTLD_GLOBAL
9940#else
9941# ifdef DL_GLOBAL
9942# define LT_DLGLOBAL DL_GLOBAL
9943# else
9944# define LT_DLGLOBAL 0
9945# endif
9946#endif
9947
9948/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9949 find out it does not work in some platform. */
9950#ifndef LT_DLLAZY_OR_NOW
9951# ifdef RTLD_LAZY
9952# define LT_DLLAZY_OR_NOW RTLD_LAZY
9953# else
9954# ifdef DL_LAZY
9955# define LT_DLLAZY_OR_NOW DL_LAZY
9956# else
9957# ifdef RTLD_NOW
9958# define LT_DLLAZY_OR_NOW RTLD_NOW
9959# else
9960# ifdef DL_NOW
9961# define LT_DLLAZY_OR_NOW DL_NOW
9962# else
9963# define LT_DLLAZY_OR_NOW 0
9964# endif
9965# endif
9966# endif
9967# endif
9968#endif
9969
9970#ifdef __cplusplus
9971extern "C" void exit (int);
9972#endif
9973
9974void fnord() { int i=42;}
9975int main ()
9976{
9977 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9978 int status = $lt_dlunknown;
9979
9980 if (self)
9981 {
9982 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9983 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9984 /* dlclose (self); */
9985 }
9986 else
9987 puts (dlerror ());
9988
9989 exit (status);
9990}
9991EOF
9992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9993 (eval $ac_link) 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9997 (./conftest; exit; ) >&5 2>/dev/null
9998 lt_status=$?
9999 case x$lt_status in
10000 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10001 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10002 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10003 esac
10004 else :
10005 # compilation failed
10006 lt_cv_dlopen_self_static=no
10007 fi
10008fi
10009rm -fr conftest*
10010
10011
10012fi
dd184caf 10013{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10014echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d9898ee8 10015 fi
10016
10017 CPPFLAGS="$save_CPPFLAGS"
10018 LDFLAGS="$save_LDFLAGS"
10019 LIBS="$save_LIBS"
10020 ;;
10021 esac
10022
10023 case $lt_cv_dlopen_self in
10024 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10025 *) enable_dlopen_self=unknown ;;
10026 esac
10027
10028 case $lt_cv_dlopen_self_static in
10029 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10030 *) enable_dlopen_self_static=unknown ;;
10031 esac
10032fi
10033
10034
10035# Report which library types will actually be built
dd184caf 10036{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10037echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10038{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10039echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 10040
dd184caf 10041{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10042echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 10043test "$can_build_shared" = "no" && enable_shared=no
10044
10045# On AIX, shared libraries and static libraries use the same namespace, and
10046# are all built from PIC.
10047case $host_os in
10048aix3*)
10049 test "$enable_shared" = yes && enable_static=no
10050 if test -n "$RANLIB"; then
10051 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10052 postinstall_cmds='$RANLIB $lib'
10053 fi
10054 ;;
10055
10056aix4* | aix5*)
10057 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10058 test "$enable_shared" = yes && enable_static=no
10059 fi
10060 ;;
10061esac
dd184caf 10062{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10063echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 10064
dd184caf 10065{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10066echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 10067# Make sure either enable_shared or enable_static is yes.
10068test "$enable_shared" = yes || enable_static=yes
dd184caf 10069{ echo "$as_me:$LINENO: result: $enable_static" >&5
10070echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 10071
10072# The else clause should only fire when bootstrapping the
10073# libtool distribution, otherwise you forgot to ship ltmain.sh
10074# with your package, and you will get complaints that there are
10075# no rules to generate ltmain.sh.
10076if test -f "$ltmain"; then
10077 # See if we are running on zsh, and set the options which allow our commands through
10078 # without removal of \ escapes.
10079 if test -n "${ZSH_VERSION+set}" ; then
10080 setopt NO_GLOB_SUBST
10081 fi
10082 # Now quote all the things that may contain metacharacters while being
10083 # careful not to overquote the AC_SUBSTed values. We take copies of the
10084 # variables and quote the copies for generation of the libtool script.
10085 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10086 SED SHELL STRIP \
10087 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10088 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10089 deplibs_check_method reload_flag reload_cmds need_locks \
10090 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10091 lt_cv_sys_global_symbol_to_c_name_address \
10092 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10093 old_postinstall_cmds old_postuninstall_cmds \
10094 compiler \
10095 CC \
10096 LD \
10097 lt_prog_compiler_wl \
10098 lt_prog_compiler_pic \
10099 lt_prog_compiler_static \
10100 lt_prog_compiler_no_builtin_flag \
10101 export_dynamic_flag_spec \
10102 thread_safe_flag_spec \
10103 whole_archive_flag_spec \
10104 enable_shared_with_static_runtimes \
10105 old_archive_cmds \
10106 old_archive_from_new_cmds \
10107 predep_objects \
10108 postdep_objects \
10109 predeps \
10110 postdeps \
10111 compiler_lib_search_path \
10112 archive_cmds \
10113 archive_expsym_cmds \
10114 postinstall_cmds \
10115 postuninstall_cmds \
10116 old_archive_from_expsyms_cmds \
10117 allow_undefined_flag \
10118 no_undefined_flag \
10119 export_symbols_cmds \
10120 hardcode_libdir_flag_spec \
10121 hardcode_libdir_flag_spec_ld \
10122 hardcode_libdir_separator \
10123 hardcode_automatic \
10124 module_cmds \
10125 module_expsym_cmds \
10126 lt_cv_prog_compiler_c_o \
10127 exclude_expsyms \
10128 include_expsyms; do
10129
10130 case $var in
10131 old_archive_cmds | \
10132 old_archive_from_new_cmds | \
10133 archive_cmds | \
10134 archive_expsym_cmds | \
10135 module_cmds | \
10136 module_expsym_cmds | \
10137 old_archive_from_expsyms_cmds | \
10138 export_symbols_cmds | \
10139 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10140 postinstall_cmds | postuninstall_cmds | \
10141 old_postinstall_cmds | old_postuninstall_cmds | \
10142 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10143 # Double-quote double-evaled strings.
10144 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10145 ;;
10146 *)
10147 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10148 ;;
10149 esac
10150 done
10151
10152 case $lt_echo in
10153 *'\$0 --fallback-echo"')
10154 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10155 ;;
10156 esac
10157
10158cfgfile="${ofile}T"
10159 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10160 $rm -f "$cfgfile"
10161 { echo "$as_me:$LINENO: creating $ofile" >&5
10162echo "$as_me: creating $ofile" >&6;}
10163
10164 cat <<__EOF__ >> "$cfgfile"
10165#! $SHELL
10166
10167# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10168# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10169# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10170#
10171# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10172# Free Software Foundation, Inc.
10173#
10174# This file is part of GNU Libtool:
10175# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10176#
10177# This program is free software; you can redistribute it and/or modify
10178# it under the terms of the GNU General Public License as published by
10179# the Free Software Foundation; either version 2 of the License, or
10180# (at your option) any later version.
10181#
10182# This program is distributed in the hope that it will be useful, but
10183# WITHOUT ANY WARRANTY; without even the implied warranty of
10184# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10185# General Public License for more details.
10186#
10187# You should have received a copy of the GNU General Public License
10188# along with this program; if not, write to the Free Software
10189# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10190#
10191# As a special exception to the GNU General Public License, if you
10192# distribute this file as part of a program that contains a
10193# configuration script generated by Autoconf, you may include it under
10194# the same distribution terms that you use for the rest of that program.
10195
10196# A sed program that does not truncate output.
10197SED=$lt_SED
10198
10199# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10200Xsed="$SED -e 1s/^X//"
10201
10202# The HP-UX ksh and POSIX shell print the target directory to stdout
10203# if CDPATH is set.
10204(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10205
10206# The names of the tagged configurations supported by this script.
10207available_tags=
10208
10209# ### BEGIN LIBTOOL CONFIG
10210
10211# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10212
10213# Shell to use when invoking shell scripts.
10214SHELL=$lt_SHELL
10215
10216# Whether or not to build shared libraries.
10217build_libtool_libs=$enable_shared
10218
10219# Whether or not to build static libraries.
10220build_old_libs=$enable_static
10221
10222# Whether or not to add -lc for building shared libraries.
10223build_libtool_need_lc=$archive_cmds_need_lc
10224
10225# Whether or not to disallow shared libs when runtime libs are static
10226allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10227
10228# Whether or not to optimize for fast installation.
10229fast_install=$enable_fast_install
10230
10231# The host system.
10232host_alias=$host_alias
10233host=$host
10234host_os=$host_os
10235
10236# The build system.
10237build_alias=$build_alias
10238build=$build
10239build_os=$build_os
10240
10241# An echo program that does not interpret backslashes.
10242echo=$lt_echo
10243
10244# The archiver.
10245AR=$lt_AR
10246AR_FLAGS=$lt_AR_FLAGS
10247
10248# A C compiler.
10249LTCC=$lt_LTCC
10250
10251# LTCC compiler flags.
10252LTCFLAGS=$lt_LTCFLAGS
10253
10254# A language-specific compiler.
10255CC=$lt_compiler
10256
10257# Is the compiler the GNU C compiler?
10258with_gcc=$GCC
10259
d9898ee8 10260# An ERE matcher.
10261EGREP=$lt_EGREP
10262
10263# The linker used to build libraries.
10264LD=$lt_LD
10265
10266# Whether we need hard or soft links.
10267LN_S=$lt_LN_S
10268
10269# A BSD-compatible nm program.
10270NM=$lt_NM
10271
10272# A symbol stripping program
10273STRIP=$lt_STRIP
10274
10275# Used to examine libraries when file_magic_cmd begins "file"
10276MAGIC_CMD=$MAGIC_CMD
10277
10278# Used on cygwin: DLL creation program.
10279DLLTOOL="$DLLTOOL"
10280
10281# Used on cygwin: object dumper.
10282OBJDUMP="$OBJDUMP"
10283
10284# Used on cygwin: assembler.
10285AS="$AS"
10286
10287# The name of the directory that contains temporary libtool files.
10288objdir=$objdir
10289
10290# How to create reloadable object files.
10291reload_flag=$lt_reload_flag
10292reload_cmds=$lt_reload_cmds
10293
10294# How to pass a linker flag through the compiler.
10295wl=$lt_lt_prog_compiler_wl
10296
10297# Object file suffix (normally "o").
10298objext="$ac_objext"
10299
10300# Old archive suffix (normally "a").
10301libext="$libext"
10302
10303# Shared library suffix (normally ".so").
10304shrext_cmds='$shrext_cmds'
10305
10306# Executable file suffix (normally "").
10307exeext="$exeext"
10308
10309# Additional compiler flags for building library objects.
10310pic_flag=$lt_lt_prog_compiler_pic
10311pic_mode=$pic_mode
10312
10313# What is the maximum length of a command?
10314max_cmd_len=$lt_cv_sys_max_cmd_len
10315
10316# Does compiler simultaneously support -c and -o options?
10317compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10318
10319# Must we lock files when doing compilation?
10320need_locks=$lt_need_locks
10321
10322# Do we need the lib prefix for modules?
10323need_lib_prefix=$need_lib_prefix
10324
10325# Do we need a version for libraries?
10326need_version=$need_version
10327
10328# Whether dlopen is supported.
10329dlopen_support=$enable_dlopen
10330
10331# Whether dlopen of programs is supported.
10332dlopen_self=$enable_dlopen_self
10333
10334# Whether dlopen of statically linked programs is supported.
10335dlopen_self_static=$enable_dlopen_self_static
10336
10337# Compiler flag to prevent dynamic linking.
10338link_static_flag=$lt_lt_prog_compiler_static
10339
10340# Compiler flag to turn off builtin functions.
10341no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10342
10343# Compiler flag to allow reflexive dlopens.
10344export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10345
10346# Compiler flag to generate shared objects directly from archives.
10347whole_archive_flag_spec=$lt_whole_archive_flag_spec
10348
10349# Compiler flag to generate thread-safe objects.
10350thread_safe_flag_spec=$lt_thread_safe_flag_spec
10351
10352# Library versioning type.
10353version_type=$version_type
10354
10355# Format of library name prefix.
10356libname_spec=$lt_libname_spec
10357
10358# List of archive names. First name is the real one, the rest are links.
10359# The last name is the one that the linker finds with -lNAME.
10360library_names_spec=$lt_library_names_spec
10361
10362# The coded name of the library, if different from the real name.
10363soname_spec=$lt_soname_spec
10364
10365# Commands used to build and install an old-style archive.
10366RANLIB=$lt_RANLIB
10367old_archive_cmds=$lt_old_archive_cmds
10368old_postinstall_cmds=$lt_old_postinstall_cmds
10369old_postuninstall_cmds=$lt_old_postuninstall_cmds
10370
10371# Create an old-style archive from a shared archive.
10372old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10373
10374# Create a temporary old-style archive to link instead of a shared archive.
10375old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10376
10377# Commands used to build and install a shared archive.
10378archive_cmds=$lt_archive_cmds
10379archive_expsym_cmds=$lt_archive_expsym_cmds
10380postinstall_cmds=$lt_postinstall_cmds
10381postuninstall_cmds=$lt_postuninstall_cmds
10382
10383# Commands used to build a loadable module (assumed same as above if empty)
10384module_cmds=$lt_module_cmds
10385module_expsym_cmds=$lt_module_expsym_cmds
10386
10387# Commands to strip libraries.
10388old_striplib=$lt_old_striplib
10389striplib=$lt_striplib
10390
10391# Dependencies to place before the objects being linked to create a
10392# shared library.
dd184caf 10393predep_objects=$lt_predep_objects
d9898ee8 10394
10395# Dependencies to place after the objects being linked to create a
10396# shared library.
dd184caf 10397postdep_objects=$lt_postdep_objects
d9898ee8 10398
10399# Dependencies to place before the objects being linked to create a
10400# shared library.
10401predeps=$lt_predeps
10402
10403# Dependencies to place after the objects being linked to create a
10404# shared library.
10405postdeps=$lt_postdeps
10406
10407# The library search path used internally by the compiler when linking
10408# a shared library.
dd184caf 10409compiler_lib_search_path=$lt_compiler_lib_search_path
d9898ee8 10410
10411# Method to check whether dependent libraries are shared objects.
10412deplibs_check_method=$lt_deplibs_check_method
10413
10414# Command to use when deplibs_check_method == file_magic.
10415file_magic_cmd=$lt_file_magic_cmd
10416
10417# Flag that allows shared libraries with undefined symbols to be built.
10418allow_undefined_flag=$lt_allow_undefined_flag
10419
10420# Flag that forces no undefined symbols.
10421no_undefined_flag=$lt_no_undefined_flag
10422
10423# Commands used to finish a libtool library installation in a directory.
10424finish_cmds=$lt_finish_cmds
10425
10426# Same as above, but a single script fragment to be evaled but not shown.
10427finish_eval=$lt_finish_eval
10428
10429# Take the output of nm and produce a listing of raw symbols and C names.
10430global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10431
10432# Transform the output of nm in a proper C declaration
10433global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10434
10435# Transform the output of nm in a C name address pair
10436global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10437
10438# This is the shared library runtime path variable.
10439runpath_var=$runpath_var
10440
10441# This is the shared library path variable.
10442shlibpath_var=$shlibpath_var
10443
10444# Is shlibpath searched before the hard-coded library search path?
10445shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10446
10447# How to hardcode a shared library path into an executable.
10448hardcode_action=$hardcode_action
10449
10450# Whether we should hardcode library paths into libraries.
10451hardcode_into_libs=$hardcode_into_libs
10452
10453# Flag to hardcode \$libdir into a binary during linking.
10454# This must work even if \$libdir does not exist.
10455hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10456
10457# If ld is used when linking, flag to hardcode \$libdir into
10458# a binary during linking. This must work even if \$libdir does
10459# not exist.
10460hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10461
10462# Whether we need a single -rpath flag with a separated argument.
10463hardcode_libdir_separator=$lt_hardcode_libdir_separator
10464
10465# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10466# resulting binary.
10467hardcode_direct=$hardcode_direct
10468
10469# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10470# resulting binary.
10471hardcode_minus_L=$hardcode_minus_L
10472
10473# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10474# the resulting binary.
10475hardcode_shlibpath_var=$hardcode_shlibpath_var
10476
10477# Set to yes if building a shared library automatically hardcodes DIR into the library
10478# and all subsequent libraries and executables linked against it.
10479hardcode_automatic=$hardcode_automatic
10480
10481# Variables whose values should be saved in libtool wrapper scripts and
10482# restored at relink time.
10483variables_saved_for_relink="$variables_saved_for_relink"
10484
10485# Whether libtool must link a program against all its dependency libraries.
10486link_all_deplibs=$link_all_deplibs
10487
10488# Compile-time system search path for libraries
dd184caf 10489sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 10490
10491# Run-time system search path for libraries
10492sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10493
10494# Fix the shell variable \$srcfile for the compiler.
10495fix_srcfile_path="$fix_srcfile_path"
10496
10497# Set to yes if exported symbols are required.
10498always_export_symbols=$always_export_symbols
10499
10500# The commands to list exported symbols.
10501export_symbols_cmds=$lt_export_symbols_cmds
10502
10503# The commands to extract the exported symbol list from a shared archive.
10504extract_expsyms_cmds=$lt_extract_expsyms_cmds
10505
10506# Symbols that should not be listed in the preloaded symbols.
10507exclude_expsyms=$lt_exclude_expsyms
10508
10509# Symbols that must always be exported.
10510include_expsyms=$lt_include_expsyms
10511
10512# ### END LIBTOOL CONFIG
10513
10514__EOF__
10515
10516
10517 case $host_os in
10518 aix3*)
10519 cat <<\EOF >> "$cfgfile"
10520
10521# AIX sometimes has problems with the GCC collect2 program. For some
10522# reason, if we set the COLLECT_NAMES environment variable, the problems
10523# vanish in a puff of smoke.
10524if test "X${COLLECT_NAMES+set}" != Xset; then
10525 COLLECT_NAMES=
10526 export COLLECT_NAMES
10527fi
10528EOF
10529 ;;
10530 esac
10531
10532 # We use sed instead of cat because bash on DJGPP gets confused if
10533 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10534 # text mode, it properly converts lines to CR/LF. This bash problem
10535 # is reportedly fixed, but why not run on old versions too?
10536 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10537
10538 mv -f "$cfgfile" "$ofile" || \
10539 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10540 chmod +x "$ofile"
10541
10542else
10543 # If there is no Makefile yet, we rely on a make rule to execute
10544 # `config.status --recheck' to rerun these tests and create the
10545 # libtool script then.
10546 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10547 if test -f "$ltmain_in"; then
10548 test -f Makefile && make "$ltmain"
10549 fi
10550fi
10551
10552
10553ac_ext=c
10554ac_cpp='$CPP $CPPFLAGS'
10555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10557ac_compiler_gnu=$ac_cv_c_compiler_gnu
10558
10559CC="$lt_save_CC"
10560
10561
dd184caf 10562# Check whether --with-tags was given.
d9898ee8 10563if test "${with_tags+set}" = set; then
dd184caf 10564 withval=$with_tags; tagnames="$withval"
10565fi
10566
d9898ee8 10567
10568if test -f "$ltmain" && test -n "$tagnames"; then
10569 if test ! -f "${ofile}"; then
10570 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10571echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10572 fi
10573
10574 if test -z "$LTCC"; then
10575 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10576 if test -z "$LTCC"; then
10577 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10578echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10579 else
10580 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10581echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10582 fi
10583 fi
10584 if test -z "$LTCFLAGS"; then
10585 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10586 fi
10587
10588 # Extract list of available tagged configurations in $ofile.
10589 # Note that this assumes the entire list is on one line.
10590 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10591
10592 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10593 for tagname in $tagnames; do
10594 IFS="$lt_save_ifs"
10595 # Check whether tagname contains only valid characters
10596 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10597 "") ;;
10598 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10599echo "$as_me: error: invalid tag name: $tagname" >&2;}
10600 { (exit 1); exit 1; }; }
10601 ;;
10602 esac
10603
10604 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10605 then
10606 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10607echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10608 { (exit 1); exit 1; }; }
10609 fi
10610
10611 # Update the list of available tags.
10612 if test -n "$tagname"; then
10613 echo appending configuration tag \"$tagname\" to $ofile
10614
10615 case $tagname in
10616 CXX)
10617 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10618 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10619 (test "X$CXX" != "Xg++"))) ; then
dd184caf 10620 ac_ext=cpp
d9898ee8 10621ac_cpp='$CXXCPP $CPPFLAGS'
10622ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10623ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10624ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10625
10626
10627
10628
10629archive_cmds_need_lc_CXX=no
10630allow_undefined_flag_CXX=
10631always_export_symbols_CXX=no
10632archive_expsym_cmds_CXX=
10633export_dynamic_flag_spec_CXX=
10634hardcode_direct_CXX=no
10635hardcode_libdir_flag_spec_CXX=
10636hardcode_libdir_flag_spec_ld_CXX=
10637hardcode_libdir_separator_CXX=
10638hardcode_minus_L_CXX=no
10639hardcode_shlibpath_var_CXX=unsupported
10640hardcode_automatic_CXX=no
10641module_cmds_CXX=
10642module_expsym_cmds_CXX=
10643link_all_deplibs_CXX=unknown
10644old_archive_cmds_CXX=$old_archive_cmds
10645no_undefined_flag_CXX=
10646whole_archive_flag_spec_CXX=
10647enable_shared_with_static_runtimes_CXX=no
10648
10649# Dependencies to place before and after the object being linked:
10650predep_objects_CXX=
10651postdep_objects_CXX=
10652predeps_CXX=
10653postdeps_CXX=
10654compiler_lib_search_path_CXX=
10655
10656# Source file extension for C++ test sources.
10657ac_ext=cpp
10658
10659# Object file extension for compiled C++ test sources.
10660objext=o
10661objext_CXX=$objext
10662
10663# Code to be used in simple compile tests
10664lt_simple_compile_test_code="int some_variable = 0;\n"
10665
10666# Code to be used in simple link tests
10667lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10668
10669# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10670
10671# If no C compiler was specified, use CC.
10672LTCC=${LTCC-"$CC"}
10673
10674# If no C compiler flags were specified, use CFLAGS.
10675LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10676
10677# Allow CC to be a program name with arguments.
10678compiler=$CC
10679
10680
10681# save warnings/boilerplate of simple test code
10682ac_outfile=conftest.$ac_objext
10683printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10684eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10685_lt_compiler_boilerplate=`cat conftest.err`
10686$rm conftest*
10687
10688ac_outfile=conftest.$ac_objext
10689printf "$lt_simple_link_test_code" >conftest.$ac_ext
10690eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10691_lt_linker_boilerplate=`cat conftest.err`
10692$rm conftest*
10693
10694
10695# Allow CC to be a program name with arguments.
10696lt_save_CC=$CC
10697lt_save_LD=$LD
10698lt_save_GCC=$GCC
10699GCC=$GXX
10700lt_save_with_gnu_ld=$with_gnu_ld
10701lt_save_path_LD=$lt_cv_path_LD
10702if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10703 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10704else
10705 $as_unset lt_cv_prog_gnu_ld
10706fi
10707if test -n "${lt_cv_path_LDCXX+set}"; then
10708 lt_cv_path_LD=$lt_cv_path_LDCXX
10709else
10710 $as_unset lt_cv_path_LD
10711fi
10712test -z "${LDCXX+set}" || LD=$LDCXX
10713CC=${CXX-"c++"}
10714compiler=$CC
10715compiler_CXX=$CC
10716for cc_temp in $compiler""; do
10717 case $cc_temp in
10718 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10719 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10720 \-*) ;;
10721 *) break;;
10722 esac
10723done
10724cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10725
10726
10727# We don't want -fno-exception wen compiling C++ code, so set the
10728# no_builtin_flag separately
10729if test "$GXX" = yes; then
10730 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10731else
10732 lt_prog_compiler_no_builtin_flag_CXX=
10733fi
10734
10735if test "$GXX" = yes; then
10736 # Set up default GNU C++ configuration
10737
10738
dd184caf 10739# Check whether --with-gnu-ld was given.
d9898ee8 10740if test "${with_gnu_ld+set}" = set; then
dd184caf 10741 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 10742else
10743 with_gnu_ld=no
dd184caf 10744fi
10745
d9898ee8 10746ac_prog=ld
10747if test "$GCC" = yes; then
10748 # Check if gcc -print-prog-name=ld gives a path.
dd184caf 10749 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10750echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 10751 case $host in
10752 *-*-mingw*)
10753 # gcc leaves a trailing carriage return which upsets mingw
10754 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10755 *)
10756 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10757 esac
10758 case $ac_prog in
10759 # Accept absolute paths.
10760 [\\/]* | ?:[\\/]*)
10761 re_direlt='/[^/][^/]*/\.\./'
10762 # Canonicalize the pathname of ld
10763 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10764 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10765 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10766 done
10767 test -z "$LD" && LD="$ac_prog"
10768 ;;
10769 "")
10770 # If it fails, then pretend we aren't using GCC.
10771 ac_prog=ld
10772 ;;
10773 *)
10774 # If it is relative, then search for the first ld in PATH.
10775 with_gnu_ld=unknown
10776 ;;
10777 esac
10778elif test "$with_gnu_ld" = yes; then
dd184caf 10779 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10780echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 10781else
dd184caf 10782 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10783echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 10784fi
10785if test "${lt_cv_path_LD+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10787else
10788 if test -z "$LD"; then
10789 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10790 for ac_dir in $PATH; do
10791 IFS="$lt_save_ifs"
10792 test -z "$ac_dir" && ac_dir=.
10793 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10794 lt_cv_path_LD="$ac_dir/$ac_prog"
10795 # Check to see if the program is GNU ld. I'd rather use --version,
10796 # but apparently some variants of GNU ld only accept -v.
10797 # Break only if it was the GNU/non-GNU ld that we prefer.
10798 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10799 *GNU* | *'with BFD'*)
10800 test "$with_gnu_ld" != no && break
10801 ;;
10802 *)
10803 test "$with_gnu_ld" != yes && break
10804 ;;
10805 esac
10806 fi
10807 done
10808 IFS="$lt_save_ifs"
10809else
10810 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10811fi
10812fi
10813
10814LD="$lt_cv_path_LD"
10815if test -n "$LD"; then
dd184caf 10816 { echo "$as_me:$LINENO: result: $LD" >&5
10817echo "${ECHO_T}$LD" >&6; }
d9898ee8 10818else
dd184caf 10819 { echo "$as_me:$LINENO: result: no" >&5
10820echo "${ECHO_T}no" >&6; }
d9898ee8 10821fi
10822test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10823echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10824 { (exit 1); exit 1; }; }
dd184caf 10825{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10826echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 10827if test "${lt_cv_prog_gnu_ld+set}" = set; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10829else
10830 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10831case `$LD -v 2>&1 </dev/null` in
10832*GNU* | *'with BFD'*)
10833 lt_cv_prog_gnu_ld=yes
10834 ;;
10835*)
10836 lt_cv_prog_gnu_ld=no
10837 ;;
10838esac
10839fi
dd184caf 10840{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10841echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 10842with_gnu_ld=$lt_cv_prog_gnu_ld
10843
10844
10845
10846 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10847 # archiving commands below assume that GNU ld is being used.
10848 if test "$with_gnu_ld" = yes; then
10849 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10850 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'
10851
10852 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10853 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10854
10855 # If archive_cmds runs LD, not CC, wlarc should be empty
10856 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10857 # investigate it a little bit more. (MM)
10858 wlarc='${wl}'
10859
10860 # ancient GNU ld didn't support --whole-archive et. al.
10861 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10862 grep 'no-whole-archive' > /dev/null; then
10863 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10864 else
10865 whole_archive_flag_spec_CXX=
10866 fi
10867 else
10868 with_gnu_ld=no
10869 wlarc=
10870
10871 # A generic and very simple default shared library creation
10872 # command for GNU C++ for the case where it uses the native
10873 # linker, instead of GNU ld. If possible, this setting should
10874 # overridden to take advantage of the native linker features on
10875 # the platform it is being used on.
10876 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10877 fi
10878
10879 # Commands to make compiler produce verbose output that lists
10880 # what "hidden" libraries, object files and flags are used when
10881 # linking a shared library.
10882 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10883
10884else
10885 GXX=no
10886 with_gnu_ld=no
10887 wlarc=
10888fi
10889
10890# PORTME: fill in a description of your system's C++ link characteristics
dd184caf 10891{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10892echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 10893ld_shlibs_CXX=yes
10894case $host_os in
10895 aix3*)
10896 # FIXME: insert proper C++ library support
10897 ld_shlibs_CXX=no
10898 ;;
10899 aix4* | aix5*)
10900 if test "$host_cpu" = ia64; then
10901 # On IA64, the linker does run time linking by default, so we don't
10902 # have to do anything special.
10903 aix_use_runtimelinking=no
10904 exp_sym_flag='-Bexport'
10905 no_entry_flag=""
10906 else
10907 aix_use_runtimelinking=no
10908
10909 # Test if we are trying to use run time linking or normal
10910 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10911 # need to do runtime linking.
10912 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10913 for ld_flag in $LDFLAGS; do
10914 case $ld_flag in
10915 *-brtl*)
10916 aix_use_runtimelinking=yes
10917 break
10918 ;;
10919 esac
10920 done
10921 ;;
10922 esac
10923
10924 exp_sym_flag='-bexport'
10925 no_entry_flag='-bnoentry'
10926 fi
10927
10928 # When large executables or shared objects are built, AIX ld can
10929 # have problems creating the table of contents. If linking a library
10930 # or program results in "error TOC overflow" add -mminimal-toc to
10931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10933
10934 archive_cmds_CXX=''
10935 hardcode_direct_CXX=yes
10936 hardcode_libdir_separator_CXX=':'
10937 link_all_deplibs_CXX=yes
10938
10939 if test "$GXX" = yes; then
10940 case $host_os in aix4.[012]|aix4.[012].*)
10941 # We only want to do this on AIX 4.2 and lower, the check
10942 # below for broken collect2 doesn't work under 4.3+
10943 collect2name=`${CC} -print-prog-name=collect2`
10944 if test -f "$collect2name" && \
10945 strings "$collect2name" | grep resolve_lib_name >/dev/null
10946 then
10947 # We have reworked collect2
10948 hardcode_direct_CXX=yes
10949 else
10950 # We have old collect2
10951 hardcode_direct_CXX=unsupported
10952 # It fails to find uninstalled libraries when the uninstalled
10953 # path is not listed in the libpath. Setting hardcode_minus_L
10954 # to unsupported forces relinking
10955 hardcode_minus_L_CXX=yes
10956 hardcode_libdir_flag_spec_CXX='-L$libdir'
10957 hardcode_libdir_separator_CXX=
10958 fi
10959 ;;
10960 esac
10961 shared_flag='-shared'
10962 if test "$aix_use_runtimelinking" = yes; then
10963 shared_flag="$shared_flag "'${wl}-G'
10964 fi
10965 else
10966 # not using gcc
10967 if test "$host_cpu" = ia64; then
10968 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10969 # chokes on -Wl,-G. The following line is correct:
10970 shared_flag='-G'
10971 else
10972 if test "$aix_use_runtimelinking" = yes; then
10973 shared_flag='${wl}-G'
10974 else
10975 shared_flag='${wl}-bM:SRE'
10976 fi
10977 fi
10978 fi
10979
10980 # It seems that -bexpall does not export symbols beginning with
10981 # underscore (_), so it is better to generate a list of symbols to export.
10982 always_export_symbols_CXX=yes
10983 if test "$aix_use_runtimelinking" = yes; then
10984 # Warning - without using the other runtime loading flags (-brtl),
10985 # -berok will link without error, but may produce a broken library.
10986 allow_undefined_flag_CXX='-berok'
10987 # Determine the default libpath from the value encoded in an empty executable.
10988 cat >conftest.$ac_ext <<_ACEOF
10989/* confdefs.h. */
10990_ACEOF
10991cat confdefs.h >>conftest.$ac_ext
10992cat >>conftest.$ac_ext <<_ACEOF
10993/* end confdefs.h. */
10994
10995int
10996main ()
10997{
10998
10999 ;
11000 return 0;
11001}
11002_ACEOF
11003rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 11004if { (ac_try="$ac_link"
11005case "(($ac_try" in
11006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11007 *) ac_try_echo=$ac_try;;
11008esac
11009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11010 (eval "$ac_link") 2>conftest.er1
d9898ee8 11011 ac_status=$?
11012 grep -v '^ *+' conftest.er1 >conftest.err
11013 rm -f conftest.er1
11014 cat conftest.err >&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11016 (exit $ac_status); } && {
11017 test -z "$ac_cxx_werror_flag" ||
11018 test ! -s conftest.err
11019 } && test -s conftest$ac_exeext &&
11020 $as_test_x conftest$ac_exeext; then
d9898ee8 11021
11022aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11023}'`
11024# Check for a 64-bit object if we didn't find anything.
11025if 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; }
11026}'`; fi
11027else
11028 echo "$as_me: failed program was:" >&5
11029sed 's/^/| /' conftest.$ac_ext >&5
11030
dd184caf 11031
d9898ee8 11032fi
dd184caf 11033
11034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11035 conftest$ac_exeext conftest.$ac_ext
11036if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11037
11038 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11039
11040 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"
11041 else
11042 if test "$host_cpu" = ia64; then
11043 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11044 allow_undefined_flag_CXX="-z nodefs"
11045 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"
11046 else
11047 # Determine the default libpath from the value encoded in an empty executable.
11048 cat >conftest.$ac_ext <<_ACEOF
11049/* confdefs.h. */
11050_ACEOF
11051cat confdefs.h >>conftest.$ac_ext
11052cat >>conftest.$ac_ext <<_ACEOF
11053/* end confdefs.h. */
11054
11055int
11056main ()
11057{
11058
11059 ;
11060 return 0;
11061}
11062_ACEOF
11063rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 11064if { (ac_try="$ac_link"
11065case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11068esac
11069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070 (eval "$ac_link") 2>conftest.er1
d9898ee8 11071 ac_status=$?
11072 grep -v '^ *+' conftest.er1 >conftest.err
11073 rm -f conftest.er1
11074 cat conftest.err >&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11076 (exit $ac_status); } && {
11077 test -z "$ac_cxx_werror_flag" ||
11078 test ! -s conftest.err
11079 } && test -s conftest$ac_exeext &&
11080 $as_test_x conftest$ac_exeext; then
d9898ee8 11081
11082aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11083}'`
11084# Check for a 64-bit object if we didn't find anything.
11085if 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; }
11086}'`; fi
11087else
11088 echo "$as_me: failed program was:" >&5
11089sed 's/^/| /' conftest.$ac_ext >&5
11090
dd184caf 11091
d9898ee8 11092fi
dd184caf 11093
11094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11095 conftest$ac_exeext conftest.$ac_ext
11096if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11097
11098 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11099 # Warning - without using the other run time loading flags,
11100 # -berok will link without error, but may produce a broken library.
11101 no_undefined_flag_CXX=' ${wl}-bernotok'
11102 allow_undefined_flag_CXX=' ${wl}-berok'
11103 # Exported symbols can be pulled into shared objects from archives
11104 whole_archive_flag_spec_CXX='$convenience'
11105 archive_cmds_need_lc_CXX=yes
11106 # This is similar to how AIX traditionally builds its shared libraries.
11107 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'
11108 fi
11109 fi
11110 ;;
11111
11112 beos*)
11113 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11114 allow_undefined_flag_CXX=unsupported
11115 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11116 # support --undefined. This deserves some investigation. FIXME
11117 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11118 else
11119 ld_shlibs_CXX=no
11120 fi
11121 ;;
11122
11123 chorus*)
11124 case $cc_basename in
11125 *)
11126 # FIXME: insert proper C++ library support
11127 ld_shlibs_CXX=no
11128 ;;
11129 esac
11130 ;;
11131
11132 cygwin* | mingw* | pw32*)
11133 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11134 # as there is no search path for DLLs.
11135 hardcode_libdir_flag_spec_CXX='-L$libdir'
11136 allow_undefined_flag_CXX=unsupported
11137 always_export_symbols_CXX=no
11138 enable_shared_with_static_runtimes_CXX=yes
11139
11140 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11141 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'
11142 # If the export-symbols file already is a .def file (1st line
11143 # is EXPORTS), use it as is; otherwise, prepend...
11144 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11145 cp $export_symbols $output_objdir/$soname.def;
11146 else
11147 echo EXPORTS > $output_objdir/$soname.def;
11148 cat $export_symbols >> $output_objdir/$soname.def;
11149 fi~
11150 $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'
11151 else
11152 ld_shlibs_CXX=no
11153 fi
11154 ;;
11155 darwin* | rhapsody*)
11156 case $host_os in
11157 rhapsody* | darwin1.[012])
11158 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11159 ;;
11160 *) # Darwin 1.3 on
11161 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11162 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11163 else
11164 case ${MACOSX_DEPLOYMENT_TARGET} in
11165 10.[012])
11166 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11167 ;;
11168 10.*)
11169 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11170 ;;
11171 esac
11172 fi
11173 ;;
11174 esac
11175 archive_cmds_need_lc_CXX=no
11176 hardcode_direct_CXX=no
11177 hardcode_automatic_CXX=yes
11178 hardcode_shlibpath_var_CXX=unsupported
11179 whole_archive_flag_spec_CXX=''
11180 link_all_deplibs_CXX=yes
11181
11182 if test "$GXX" = yes ; then
11183 lt_int_apple_cc_single_mod=no
11184 output_verbose_link_cmd='echo'
11185 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11186 lt_int_apple_cc_single_mod=yes
11187 fi
11188 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11189 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11190 else
11191 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'
11192 fi
11193 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11194 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11195 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11196 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}'
11197 else
11198 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}'
11199 fi
11200 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}'
11201 else
11202 case $cc_basename in
11203 xlc*)
11204 output_verbose_link_cmd='echo'
11205 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'
11206 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11207 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11208 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}'
11209 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}'
11210 ;;
11211 *)
11212 ld_shlibs_CXX=no
11213 ;;
11214 esac
11215 fi
11216 ;;
11217
11218 dgux*)
11219 case $cc_basename in
11220 ec++*)
11221 # FIXME: insert proper C++ library support
11222 ld_shlibs_CXX=no
11223 ;;
11224 ghcx*)
11225 # Green Hills C++ Compiler
11226 # FIXME: insert proper C++ library support
11227 ld_shlibs_CXX=no
11228 ;;
11229 *)
11230 # FIXME: insert proper C++ library support
11231 ld_shlibs_CXX=no
11232 ;;
11233 esac
11234 ;;
11235 freebsd[12]*)
11236 # C++ shared libraries reported to be fairly broken before switch to ELF
11237 ld_shlibs_CXX=no
11238 ;;
11239 freebsd-elf*)
11240 archive_cmds_need_lc_CXX=no
11241 ;;
1dce02f2 11242 freebsd* | dragonfly*)
d9898ee8 11243 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11244 # conventions
11245 ld_shlibs_CXX=yes
11246 ;;
11247 gnu*)
11248 ;;
11249 hpux9*)
11250 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11251 hardcode_libdir_separator_CXX=:
11252 export_dynamic_flag_spec_CXX='${wl}-E'
11253 hardcode_direct_CXX=yes
11254 hardcode_minus_L_CXX=yes # Not in the search PATH,
11255 # but as the default
11256 # location of the library.
11257
11258 case $cc_basename in
11259 CC*)
11260 # FIXME: insert proper C++ library support
11261 ld_shlibs_CXX=no
11262 ;;
11263 aCC*)
11264 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'
11265 # Commands to make compiler produce verbose output that lists
11266 # what "hidden" libraries, object files and flags are used when
11267 # linking a shared library.
11268 #
11269 # There doesn't appear to be a way to prevent this compiler from
11270 # explicitly linking system object files so we need to strip them
11271 # from the output so that they don't get included in the library
11272 # dependencies.
11273 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'
11274 ;;
11275 *)
11276 if test "$GXX" = yes; then
11277 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'
11278 else
11279 # FIXME: insert proper C++ library support
11280 ld_shlibs_CXX=no
11281 fi
11282 ;;
11283 esac
11284 ;;
11285 hpux10*|hpux11*)
11286 if test $with_gnu_ld = no; then
11287 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11288 hardcode_libdir_separator_CXX=:
11289
11290 case $host_cpu in
11291 hppa*64*|ia64*)
11292 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11293 ;;
11294 *)
11295 export_dynamic_flag_spec_CXX='${wl}-E'
11296 ;;
11297 esac
11298 fi
11299 case $host_cpu in
11300 hppa*64*|ia64*)
11301 hardcode_direct_CXX=no
11302 hardcode_shlibpath_var_CXX=no
11303 ;;
11304 *)
11305 hardcode_direct_CXX=yes
11306 hardcode_minus_L_CXX=yes # Not in the search PATH,
11307 # but as the default
11308 # location of the library.
11309 ;;
11310 esac
11311
11312 case $cc_basename in
11313 CC*)
11314 # FIXME: insert proper C++ library support
11315 ld_shlibs_CXX=no
11316 ;;
11317 aCC*)
11318 case $host_cpu in
11319 hppa*64*)
11320 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11321 ;;
11322 ia64*)
11323 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11324 ;;
11325 *)
11326 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11327 ;;
11328 esac
11329 # Commands to make compiler produce verbose output that lists
11330 # what "hidden" libraries, object files and flags are used when
11331 # linking a shared library.
11332 #
11333 # There doesn't appear to be a way to prevent this compiler from
11334 # explicitly linking system object files so we need to strip them
11335 # from the output so that they don't get included in the library
11336 # dependencies.
11337 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'
11338 ;;
11339 *)
11340 if test "$GXX" = yes; then
11341 if test $with_gnu_ld = no; then
11342 case $host_cpu in
11343 hppa*64*)
11344 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11345 ;;
11346 ia64*)
11347 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11348 ;;
11349 *)
11350 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'
11351 ;;
11352 esac
11353 fi
11354 else
11355 # FIXME: insert proper C++ library support
11356 ld_shlibs_CXX=no
11357 fi
11358 ;;
11359 esac
11360 ;;
11361 interix3*)
11362 hardcode_direct_CXX=no
11363 hardcode_shlibpath_var_CXX=no
11364 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11365 export_dynamic_flag_spec_CXX='${wl}-E'
11366 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11367 # Instead, shared libraries are loaded at an image base (0x10000000 by
11368 # default) and relocated if they conflict, which is a slow very memory
11369 # consuming and fragmenting process. To avoid this, we pick a random,
11370 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11371 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11372 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'
11373 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'
11374 ;;
11375 irix5* | irix6*)
11376 case $cc_basename in
11377 CC*)
11378 # SGI C++
11379 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'
11380
11381 # Archives containing C++ object files must be created using
11382 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11383 # necessary to make sure instantiated templates are included
11384 # in the archive.
11385 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11386 ;;
11387 *)
11388 if test "$GXX" = yes; then
11389 if test "$with_gnu_ld" = no; then
11390 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'
11391 else
11392 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'
11393 fi
11394 fi
11395 link_all_deplibs_CXX=yes
11396 ;;
11397 esac
11398 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11399 hardcode_libdir_separator_CXX=:
11400 ;;
1dce02f2 11401 linux* | k*bsd*-gnu)
d9898ee8 11402 case $cc_basename in
11403 KCC*)
11404 # Kuck and Associates, Inc. (KAI) C++ Compiler
11405
11406 # KCC will only create a shared library if the output file
11407 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11408 # to its proper name (with version) after linking.
11409 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'
11410 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'
11411 # Commands to make compiler produce verbose output that lists
11412 # what "hidden" libraries, object files and flags are used when
11413 # linking a shared library.
11414 #
11415 # There doesn't appear to be a way to prevent this compiler from
11416 # explicitly linking system object files so we need to strip them
11417 # from the output so that they don't get included in the library
11418 # dependencies.
11419 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'
11420
11421 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11422 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11423
11424 # Archives containing C++ object files must be created using
11425 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11426 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11427 ;;
11428 icpc*)
11429 # Intel C++
11430 with_gnu_ld=yes
11431 # version 8.0 and above of icpc choke on multiply defined symbols
11432 # if we add $predep_objects and $postdep_objects, however 7.1 and
11433 # earlier do not add the objects themselves.
11434 case `$CC -V 2>&1` in
11435 *"Version 7."*)
11436 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11437 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'
11438 ;;
11439 *) # Version 8.0 or newer
11440 tmp_idyn=
11441 case $host_cpu in
11442 ia64*) tmp_idyn=' -i_dynamic';;
11443 esac
11444 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11445 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'
11446 ;;
11447 esac
11448 archive_cmds_need_lc_CXX=no
11449 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11450 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11451 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11452 ;;
11453 pgCC*)
11454 # Portland Group C++ compiler
11455 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11456 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'
11457
11458 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11459 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11460 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'
11461 ;;
11462 cxx*)
11463 # Compaq C++
11464 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11465 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'
11466
11467 runpath_var=LD_RUN_PATH
11468 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11469 hardcode_libdir_separator_CXX=:
11470
11471 # Commands to make compiler produce verbose output that lists
11472 # what "hidden" libraries, object files and flags are used when
11473 # linking a shared library.
11474 #
11475 # There doesn't appear to be a way to prevent this compiler from
11476 # explicitly linking system object files so we need to strip them
11477 # from the output so that they don't get included in the library
11478 # dependencies.
11479 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'
11480 ;;
11481 esac
11482 ;;
11483 lynxos*)
11484 # FIXME: insert proper C++ library support
11485 ld_shlibs_CXX=no
11486 ;;
11487 m88k*)
11488 # FIXME: insert proper C++ library support
11489 ld_shlibs_CXX=no
11490 ;;
11491 mvs*)
11492 case $cc_basename in
11493 cxx*)
11494 # FIXME: insert proper C++ library support
11495 ld_shlibs_CXX=no
11496 ;;
11497 *)
11498 # FIXME: insert proper C++ library support
11499 ld_shlibs_CXX=no
11500 ;;
11501 esac
11502 ;;
1dce02f2 11503 netbsd* | netbsdelf*-gnu)
d9898ee8 11504 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11505 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11506 wlarc=
11507 hardcode_libdir_flag_spec_CXX='-R$libdir'
11508 hardcode_direct_CXX=yes
11509 hardcode_shlibpath_var_CXX=no
11510 fi
11511 # Workaround some broken pre-1.5 toolchains
11512 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11513 ;;
11514 openbsd2*)
11515 # C++ shared libraries are fairly broken
11516 ld_shlibs_CXX=no
11517 ;;
11518 openbsd*)
11519 hardcode_direct_CXX=yes
11520 hardcode_shlibpath_var_CXX=no
11521 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11522 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11523 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11524 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11525 export_dynamic_flag_spec_CXX='${wl}-E'
11526 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11527 fi
11528 output_verbose_link_cmd='echo'
11529 ;;
11530 osf3*)
11531 case $cc_basename in
11532 KCC*)
11533 # Kuck and Associates, Inc. (KAI) C++ Compiler
11534
11535 # KCC will only create a shared library if the output file
11536 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11537 # to its proper name (with version) after linking.
11538 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'
11539
11540 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11541 hardcode_libdir_separator_CXX=:
11542
11543 # Archives containing C++ object files must be created using
11544 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11545 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11546
11547 ;;
11548 RCC*)
11549 # Rational C++ 2.4.1
11550 # FIXME: insert proper C++ library support
11551 ld_shlibs_CXX=no
11552 ;;
11553 cxx*)
11554 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11555 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'
11556
11557 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11558 hardcode_libdir_separator_CXX=:
11559
11560 # Commands to make compiler produce verbose output that lists
11561 # what "hidden" libraries, object files and flags are used when
11562 # linking a shared library.
11563 #
11564 # There doesn't appear to be a way to prevent this compiler from
11565 # explicitly linking system object files so we need to strip them
11566 # from the output so that they don't get included in the library
11567 # dependencies.
11568 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'
11569 ;;
11570 *)
11571 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11572 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11573 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'
11574
11575 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11576 hardcode_libdir_separator_CXX=:
11577
11578 # Commands to make compiler produce verbose output that lists
11579 # what "hidden" libraries, object files and flags are used when
11580 # linking a shared library.
11581 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11582
11583 else
11584 # FIXME: insert proper C++ library support
11585 ld_shlibs_CXX=no
11586 fi
11587 ;;
11588 esac
11589 ;;
11590 osf4* | osf5*)
11591 case $cc_basename in
11592 KCC*)
11593 # Kuck and Associates, Inc. (KAI) C++ Compiler
11594
11595 # KCC will only create a shared library if the output file
11596 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11597 # to its proper name (with version) after linking.
11598 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'
11599
11600 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11601 hardcode_libdir_separator_CXX=:
11602
11603 # Archives containing C++ object files must be created using
11604 # the KAI C++ compiler.
11605 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11606 ;;
11607 RCC*)
11608 # Rational C++ 2.4.1
11609 # FIXME: insert proper C++ library support
11610 ld_shlibs_CXX=no
11611 ;;
11612 cxx*)
11613 allow_undefined_flag_CXX=' -expect_unresolved \*'
11614 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'
11615 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11616 echo "-hidden">> $lib.exp~
11617 $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~
11618 $rm $lib.exp'
11619
11620 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11621 hardcode_libdir_separator_CXX=:
11622
11623 # Commands to make compiler produce verbose output that lists
11624 # what "hidden" libraries, object files and flags are used when
11625 # linking a shared library.
11626 #
11627 # There doesn't appear to be a way to prevent this compiler from
11628 # explicitly linking system object files so we need to strip them
11629 # from the output so that they don't get included in the library
11630 # dependencies.
11631 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'
11632 ;;
11633 *)
11634 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11635 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11636 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'
11637
11638 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11639 hardcode_libdir_separator_CXX=:
11640
11641 # Commands to make compiler produce verbose output that lists
11642 # what "hidden" libraries, object files and flags are used when
11643 # linking a shared library.
11644 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11645
11646 else
11647 # FIXME: insert proper C++ library support
11648 ld_shlibs_CXX=no
11649 fi
11650 ;;
11651 esac
11652 ;;
11653 psos*)
11654 # FIXME: insert proper C++ library support
11655 ld_shlibs_CXX=no
11656 ;;
11657 sunos4*)
11658 case $cc_basename in
11659 CC*)
11660 # Sun C++ 4.x
11661 # FIXME: insert proper C++ library support
11662 ld_shlibs_CXX=no
11663 ;;
11664 lcc*)
11665 # Lucid
11666 # FIXME: insert proper C++ library support
11667 ld_shlibs_CXX=no
11668 ;;
11669 *)
11670 # FIXME: insert proper C++ library support
11671 ld_shlibs_CXX=no
11672 ;;
11673 esac
11674 ;;
11675 solaris*)
11676 case $cc_basename in
11677 CC*)
11678 # Sun C++ 4.2, 5.x and Centerline C++
11679 archive_cmds_need_lc_CXX=yes
11680 no_undefined_flag_CXX=' -zdefs'
11681 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11682 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11683 $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'
11684
11685 hardcode_libdir_flag_spec_CXX='-R$libdir'
11686 hardcode_shlibpath_var_CXX=no
11687 case $host_os in
11688 solaris2.[0-5] | solaris2.[0-5].*) ;;
11689 *)
11690 # The C++ compiler is used as linker so we must use $wl
11691 # flag to pass the commands to the underlying system
11692 # linker. We must also pass each convience library through
11693 # to the system linker between allextract/defaultextract.
11694 # The C++ compiler will combine linker options so we
11695 # cannot just pass the convience library names through
11696 # without $wl.
11697 # Supported since Solaris 2.6 (maybe 2.5.1?)
11698 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'
11699 ;;
11700 esac
11701 link_all_deplibs_CXX=yes
11702
11703 output_verbose_link_cmd='echo'
11704
11705 # Archives containing C++ object files must be created using
11706 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11707 # necessary to make sure instantiated templates are included
11708 # in the archive.
11709 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11710 ;;
11711 gcx*)
11712 # Green Hills C++ Compiler
11713 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11714
11715 # The C++ compiler must be used to create the archive.
11716 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11717 ;;
11718 *)
11719 # GNU C++ compiler with Solaris linker
11720 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11721 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11722 if $CC --version | grep -v '^2\.7' > /dev/null; then
11723 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11724 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11725 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11726
11727 # Commands to make compiler produce verbose output that lists
11728 # what "hidden" libraries, object files and flags are used when
11729 # linking a shared library.
11730 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11731 else
11732 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11733 # platform.
11734 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11735 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11736 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11737
11738 # Commands to make compiler produce verbose output that lists
11739 # what "hidden" libraries, object files and flags are used when
11740 # linking a shared library.
11741 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11742 fi
11743
11744 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11745 fi
11746 ;;
11747 esac
11748 ;;
11749 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11750 no_undefined_flag_CXX='${wl}-z,text'
11751 archive_cmds_need_lc_CXX=no
11752 hardcode_shlibpath_var_CXX=no
11753 runpath_var='LD_RUN_PATH'
11754
11755 case $cc_basename in
11756 CC*)
11757 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11758 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11759 ;;
11760 *)
11761 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11762 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11763 ;;
11764 esac
11765 ;;
11766 sysv5* | sco3.2v5* | sco5v6*)
11767 # Note: We can NOT use -z defs as we might desire, because we do not
11768 # link with -lc, and that would cause any symbols used from libc to
11769 # always be unresolved, which means just about no library would
11770 # ever link correctly. If we're not using GNU ld we use -z text
11771 # though, which does catch some bad symbols but isn't as heavy-handed
11772 # as -z defs.
11773 # For security reasons, it is highly recommended that you always
11774 # use absolute paths for naming shared libraries, and exclude the
11775 # DT_RUNPATH tag from executables and libraries. But doing so
11776 # requires that you compile everything twice, which is a pain.
11777 # So that behaviour is only enabled if SCOABSPATH is set to a
11778 # non-empty value in the environment. Most likely only useful for
11779 # creating official distributions of packages.
11780 # This is a hack until libtool officially supports absolute path
11781 # names for shared libraries.
11782 no_undefined_flag_CXX='${wl}-z,text'
11783 allow_undefined_flag_CXX='${wl}-z,nodefs'
11784 archive_cmds_need_lc_CXX=no
11785 hardcode_shlibpath_var_CXX=no
11786 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11787 hardcode_libdir_separator_CXX=':'
11788 link_all_deplibs_CXX=yes
11789 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11790 runpath_var='LD_RUN_PATH'
11791
11792 case $cc_basename in
11793 CC*)
11794 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11795 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11796 ;;
11797 *)
11798 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11799 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11800 ;;
11801 esac
11802 ;;
11803 tandem*)
11804 case $cc_basename in
11805 NCC*)
11806 # NonStop-UX NCC 3.20
11807 # FIXME: insert proper C++ library support
11808 ld_shlibs_CXX=no
11809 ;;
11810 *)
11811 # FIXME: insert proper C++ library support
11812 ld_shlibs_CXX=no
11813 ;;
11814 esac
11815 ;;
11816 vxworks*)
11817 # FIXME: insert proper C++ library support
11818 ld_shlibs_CXX=no
11819 ;;
11820 *)
11821 # FIXME: insert proper C++ library support
11822 ld_shlibs_CXX=no
11823 ;;
11824esac
dd184caf 11825{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11826echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 11827test "$ld_shlibs_CXX" = no && can_build_shared=no
11828
11829GCC_CXX="$GXX"
11830LD_CXX="$LD"
11831
11832
11833cat > conftest.$ac_ext <<EOF
11834class Foo
11835{
11836public:
11837 Foo (void) { a = 0; }
11838private:
11839 int a;
11840};
11841EOF
11842
11843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844 (eval $ac_compile) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; then
11848 # Parse the compiler output and extract the necessary
11849 # objects, libraries and library flags.
11850
11851 # Sentinel used to keep track of whether or not we are before
11852 # the conftest object file.
11853 pre_test_object_deps_done=no
11854
11855 # The `*' in the case matches for architectures that use `case' in
11856 # $output_verbose_cmd can trigger glob expansion during the loop
11857 # eval without this substitution.
11858 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11859
11860 for p in `eval $output_verbose_link_cmd`; do
11861 case $p in
11862
11863 -L* | -R* | -l*)
11864 # Some compilers place space between "-{L,R}" and the path.
11865 # Remove the space.
11866 if test $p = "-L" \
11867 || test $p = "-R"; then
11868 prev=$p
11869 continue
11870 else
11871 prev=
11872 fi
11873
11874 if test "$pre_test_object_deps_done" = no; then
11875 case $p in
11876 -L* | -R*)
11877 # Internal compiler library paths should come after those
11878 # provided the user. The postdeps already come after the
11879 # user supplied libs so there is no need to process them.
11880 if test -z "$compiler_lib_search_path_CXX"; then
11881 compiler_lib_search_path_CXX="${prev}${p}"
11882 else
11883 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11884 fi
11885 ;;
11886 # The "-l" case would never come before the object being
11887 # linked, so don't bother handling this case.
11888 esac
11889 else
11890 if test -z "$postdeps_CXX"; then
11891 postdeps_CXX="${prev}${p}"
11892 else
11893 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11894 fi
11895 fi
11896 ;;
11897
11898 *.$objext)
11899 # This assumes that the test object file only shows up
11900 # once in the compiler output.
11901 if test "$p" = "conftest.$objext"; then
11902 pre_test_object_deps_done=yes
11903 continue
11904 fi
11905
11906 if test "$pre_test_object_deps_done" = no; then
11907 if test -z "$predep_objects_CXX"; then
11908 predep_objects_CXX="$p"
11909 else
11910 predep_objects_CXX="$predep_objects_CXX $p"
11911 fi
11912 else
11913 if test -z "$postdep_objects_CXX"; then
11914 postdep_objects_CXX="$p"
11915 else
11916 postdep_objects_CXX="$postdep_objects_CXX $p"
11917 fi
11918 fi
11919 ;;
11920
11921 *) ;; # Ignore the rest.
11922
11923 esac
11924 done
11925
11926 # Clean up.
11927 rm -f a.out a.exe
11928else
11929 echo "libtool.m4: error: problem compiling CXX test program"
11930fi
11931
11932$rm -f confest.$objext
11933
11934# PORTME: override above test on systems where it is broken
11935case $host_os in
11936interix3*)
11937 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11938 # hack all around it, let's just trust "g++" to DTRT.
11939 predep_objects_CXX=
11940 postdep_objects_CXX=
11941 postdeps_CXX=
11942 ;;
11943
11944solaris*)
11945 case $cc_basename in
11946 CC*)
11947 # Adding this requires a known-good setup of shared libraries for
11948 # Sun compiler versions before 5.6, else PIC objects from an old
11949 # archive will be linked into the output, leading to subtle bugs.
11950 postdeps_CXX='-lCstd -lCrun'
11951 ;;
11952 esac
11953 ;;
11954esac
11955
11956
11957case " $postdeps_CXX " in
11958*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11959esac
11960
11961lt_prog_compiler_wl_CXX=
11962lt_prog_compiler_pic_CXX=
11963lt_prog_compiler_static_CXX=
11964
dd184caf 11965{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11966echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 11967
11968 # C++ specific cases for pic, static, wl, etc.
11969 if test "$GXX" = yes; then
11970 lt_prog_compiler_wl_CXX='-Wl,'
11971 lt_prog_compiler_static_CXX='-static'
11972
11973 case $host_os in
11974 aix*)
11975 # All AIX code is PIC.
11976 if test "$host_cpu" = ia64; then
11977 # AIX 5 now supports IA64 processor
11978 lt_prog_compiler_static_CXX='-Bstatic'
11979 fi
11980 ;;
11981 amigaos*)
11982 # FIXME: we need at least 68020 code to build shared libraries, but
11983 # adding the `-m68020' flag to GCC prevents building anything better,
11984 # like `-m68040'.
11985 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11986 ;;
11987 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11988 # PIC is the default for these OSes.
11989 ;;
11990 mingw* | os2* | pw32*)
11991 # This hack is so that the source file can tell whether it is being
11992 # built for inclusion in a dll (and should export symbols for example).
11993 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11994 ;;
11995 darwin* | rhapsody*)
11996 # PIC is the default on this platform
11997 # Common symbols not allowed in MH_DYLIB files
11998 lt_prog_compiler_pic_CXX='-fno-common'
11999 ;;
12000 *djgpp*)
12001 # DJGPP does not support shared libraries at all
12002 lt_prog_compiler_pic_CXX=
12003 ;;
12004 interix3*)
12005 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12006 # Instead, we relocate shared libraries at runtime.
12007 ;;
12008 sysv4*MP*)
12009 if test -d /usr/nec; then
12010 lt_prog_compiler_pic_CXX=-Kconform_pic
12011 fi
12012 ;;
12013 hpux*)
12014 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12015 # not for PA HP-UX.
12016 case $host_cpu in
12017 hppa*64*|ia64*)
12018 ;;
12019 *)
12020 lt_prog_compiler_pic_CXX='-fPIC'
12021 ;;
12022 esac
12023 ;;
12024 *)
12025 lt_prog_compiler_pic_CXX='-fPIC'
12026 ;;
12027 esac
12028 else
12029 case $host_os in
12030 aix4* | aix5*)
12031 # All AIX code is PIC.
12032 if test "$host_cpu" = ia64; then
12033 # AIX 5 now supports IA64 processor
12034 lt_prog_compiler_static_CXX='-Bstatic'
12035 else
12036 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12037 fi
12038 ;;
12039 chorus*)
12040 case $cc_basename in
12041 cxch68*)
12042 # Green Hills C++ Compiler
12043 # _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"
12044 ;;
12045 esac
12046 ;;
12047 darwin*)
12048 # PIC is the default on this platform
12049 # Common symbols not allowed in MH_DYLIB files
12050 case $cc_basename in
12051 xlc*)
12052 lt_prog_compiler_pic_CXX='-qnocommon'
12053 lt_prog_compiler_wl_CXX='-Wl,'
12054 ;;
12055 esac
12056 ;;
12057 dgux*)
12058 case $cc_basename in
12059 ec++*)
12060 lt_prog_compiler_pic_CXX='-KPIC'
12061 ;;
12062 ghcx*)
12063 # Green Hills C++ Compiler
12064 lt_prog_compiler_pic_CXX='-pic'
12065 ;;
12066 *)
12067 ;;
12068 esac
12069 ;;
1dce02f2 12070 freebsd* | dragonfly*)
d9898ee8 12071 # FreeBSD uses GNU C++
12072 ;;
12073 hpux9* | hpux10* | hpux11*)
12074 case $cc_basename in
12075 CC*)
12076 lt_prog_compiler_wl_CXX='-Wl,'
12077 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12078 if test "$host_cpu" != ia64; then
12079 lt_prog_compiler_pic_CXX='+Z'
12080 fi
12081 ;;
12082 aCC*)
12083 lt_prog_compiler_wl_CXX='-Wl,'
12084 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12085 case $host_cpu in
12086 hppa*64*|ia64*)
12087 # +Z the default
12088 ;;
12089 *)
12090 lt_prog_compiler_pic_CXX='+Z'
12091 ;;
12092 esac
12093 ;;
12094 *)
12095 ;;
12096 esac
12097 ;;
12098 interix*)
12099 # This is c89, which is MS Visual C++ (no shared libs)
12100 # Anyone wants to do a port?
12101 ;;
12102 irix5* | irix6* | nonstopux*)
12103 case $cc_basename in
12104 CC*)
12105 lt_prog_compiler_wl_CXX='-Wl,'
12106 lt_prog_compiler_static_CXX='-non_shared'
12107 # CC pic flag -KPIC is the default.
12108 ;;
12109 *)
12110 ;;
12111 esac
12112 ;;
1dce02f2 12113 linux* | k*bsd*-gnu)
d9898ee8 12114 case $cc_basename in
12115 KCC*)
12116 # KAI C++ Compiler
12117 lt_prog_compiler_wl_CXX='--backend -Wl,'
12118 lt_prog_compiler_pic_CXX='-fPIC'
12119 ;;
12120 icpc* | ecpc*)
12121 # Intel C++
12122 lt_prog_compiler_wl_CXX='-Wl,'
12123 lt_prog_compiler_pic_CXX='-KPIC'
12124 lt_prog_compiler_static_CXX='-static'
12125 ;;
12126 pgCC*)
12127 # Portland Group C++ compiler.
12128 lt_prog_compiler_wl_CXX='-Wl,'
12129 lt_prog_compiler_pic_CXX='-fpic'
12130 lt_prog_compiler_static_CXX='-Bstatic'
12131 ;;
12132 cxx*)
12133 # Compaq C++
12134 # Make sure the PIC flag is empty. It appears that all Alpha
12135 # Linux and Compaq Tru64 Unix objects are PIC.
12136 lt_prog_compiler_pic_CXX=
12137 lt_prog_compiler_static_CXX='-non_shared'
12138 ;;
12139 *)
12140 ;;
12141 esac
12142 ;;
12143 lynxos*)
12144 ;;
12145 m88k*)
12146 ;;
12147 mvs*)
12148 case $cc_basename in
12149 cxx*)
12150 lt_prog_compiler_pic_CXX='-W c,exportall'
12151 ;;
12152 *)
12153 ;;
12154 esac
12155 ;;
1dce02f2 12156 netbsd* | netbsdelf*-gnu)
d9898ee8 12157 ;;
12158 osf3* | osf4* | osf5*)
12159 case $cc_basename in
12160 KCC*)
12161 lt_prog_compiler_wl_CXX='--backend -Wl,'
12162 ;;
12163 RCC*)
12164 # Rational C++ 2.4.1
12165 lt_prog_compiler_pic_CXX='-pic'
12166 ;;
12167 cxx*)
12168 # Digital/Compaq C++
12169 lt_prog_compiler_wl_CXX='-Wl,'
12170 # Make sure the PIC flag is empty. It appears that all Alpha
12171 # Linux and Compaq Tru64 Unix objects are PIC.
12172 lt_prog_compiler_pic_CXX=
12173 lt_prog_compiler_static_CXX='-non_shared'
12174 ;;
12175 *)
12176 ;;
12177 esac
12178 ;;
12179 psos*)
12180 ;;
12181 solaris*)
12182 case $cc_basename in
12183 CC*)
12184 # Sun C++ 4.2, 5.x and Centerline C++
12185 lt_prog_compiler_pic_CXX='-KPIC'
12186 lt_prog_compiler_static_CXX='-Bstatic'
12187 lt_prog_compiler_wl_CXX='-Qoption ld '
12188 ;;
12189 gcx*)
12190 # Green Hills C++ Compiler
12191 lt_prog_compiler_pic_CXX='-PIC'
12192 ;;
12193 *)
12194 ;;
12195 esac
12196 ;;
12197 sunos4*)
12198 case $cc_basename in
12199 CC*)
12200 # Sun C++ 4.x
12201 lt_prog_compiler_pic_CXX='-pic'
12202 lt_prog_compiler_static_CXX='-Bstatic'
12203 ;;
12204 lcc*)
12205 # Lucid
12206 lt_prog_compiler_pic_CXX='-pic'
12207 ;;
12208 *)
12209 ;;
12210 esac
12211 ;;
12212 tandem*)
12213 case $cc_basename in
12214 NCC*)
12215 # NonStop-UX NCC 3.20
12216 lt_prog_compiler_pic_CXX='-KPIC'
12217 ;;
12218 *)
12219 ;;
12220 esac
12221 ;;
12222 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12223 case $cc_basename in
12224 CC*)
12225 lt_prog_compiler_wl_CXX='-Wl,'
12226 lt_prog_compiler_pic_CXX='-KPIC'
12227 lt_prog_compiler_static_CXX='-Bstatic'
12228 ;;
12229 esac
12230 ;;
12231 vxworks*)
12232 ;;
12233 *)
12234 lt_prog_compiler_can_build_shared_CXX=no
12235 ;;
12236 esac
12237 fi
12238
dd184caf 12239{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12240echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d9898ee8 12241
12242#
12243# Check to make sure the PIC flag actually works.
12244#
12245if test -n "$lt_prog_compiler_pic_CXX"; then
12246
dd184caf 12247{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12248echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d9898ee8 12249if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12251else
12252 lt_prog_compiler_pic_works_CXX=no
12253 ac_outfile=conftest.$ac_objext
12254 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12255 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12256 # Insert the option either (1) after the last *FLAGS variable, or
12257 # (2) before a word containing "conftest.", or (3) at the end.
12258 # Note that $ac_compile itself does not contain backslashes and begins
12259 # with a dollar sign (not a hyphen), so the echo should work correctly.
12260 # The option is referenced via a variable to avoid confusing sed.
12261 lt_compile=`echo "$ac_compile" | $SED \
12262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12264 -e 's:$: $lt_compiler_flag:'`
1dce02f2 12265 (eval echo "\"\$as_me:12265: $lt_compile\"" >&5)
d9898ee8 12266 (eval "$lt_compile" 2>conftest.err)
12267 ac_status=$?
12268 cat conftest.err >&5
1dce02f2 12269 echo "$as_me:12269: \$? = $ac_status" >&5
d9898ee8 12270 if (exit $ac_status) && test -s "$ac_outfile"; then
12271 # The compiler can only warn and ignore the option if not recognized
12272 # So say no if there are warnings other than the usual output.
12273 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12275 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12276 lt_prog_compiler_pic_works_CXX=yes
12277 fi
12278 fi
12279 $rm conftest*
12280
12281fi
dd184caf 12282{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12283echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d9898ee8 12284
12285if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12286 case $lt_prog_compiler_pic_CXX in
12287 "" | " "*) ;;
12288 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12289 esac
12290else
12291 lt_prog_compiler_pic_CXX=
12292 lt_prog_compiler_can_build_shared_CXX=no
12293fi
12294
12295fi
12296case $host_os in
12297 # For platforms which do not support PIC, -DPIC is meaningless:
12298 *djgpp*)
12299 lt_prog_compiler_pic_CXX=
12300 ;;
12301 *)
12302 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12303 ;;
12304esac
12305
12306#
12307# Check to make sure the static flag actually works.
12308#
12309wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
dd184caf 12310{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12311echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 12312if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12314else
12315 lt_prog_compiler_static_works_CXX=no
12316 save_LDFLAGS="$LDFLAGS"
12317 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12318 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12319 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12320 # The linker can only warn and ignore the option if not recognized
12321 # So say no if there are warnings
12322 if test -s conftest.err; then
12323 # Append any errors to the config.log.
12324 cat conftest.err 1>&5
12325 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12327 if diff conftest.exp conftest.er2 >/dev/null; then
12328 lt_prog_compiler_static_works_CXX=yes
12329 fi
12330 else
12331 lt_prog_compiler_static_works_CXX=yes
12332 fi
12333 fi
12334 $rm conftest*
12335 LDFLAGS="$save_LDFLAGS"
12336
12337fi
dd184caf 12338{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12339echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
d9898ee8 12340
12341if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12342 :
12343else
12344 lt_prog_compiler_static_CXX=
12345fi
12346
12347
dd184caf 12348{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12349echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 12350if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12352else
12353 lt_cv_prog_compiler_c_o_CXX=no
12354 $rm -r conftest 2>/dev/null
12355 mkdir conftest
12356 cd conftest
12357 mkdir out
12358 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12359
12360 lt_compiler_flag="-o out/conftest2.$ac_objext"
12361 # Insert the option either (1) after the last *FLAGS variable, or
12362 # (2) before a word containing "conftest.", or (3) at the end.
12363 # Note that $ac_compile itself does not contain backslashes and begins
12364 # with a dollar sign (not a hyphen), so the echo should work correctly.
12365 lt_compile=`echo "$ac_compile" | $SED \
12366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12368 -e 's:$: $lt_compiler_flag:'`
1dce02f2 12369 (eval echo "\"\$as_me:12369: $lt_compile\"" >&5)
d9898ee8 12370 (eval "$lt_compile" 2>out/conftest.err)
12371 ac_status=$?
12372 cat out/conftest.err >&5
1dce02f2 12373 echo "$as_me:12373: \$? = $ac_status" >&5
d9898ee8 12374 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12375 then
12376 # The compiler can only warn and ignore the option if not recognized
12377 # So say no if there are warnings
12378 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12379 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12380 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12381 lt_cv_prog_compiler_c_o_CXX=yes
12382 fi
12383 fi
12384 chmod u+w . 2>&5
12385 $rm conftest*
12386 # SGI C++ compiler will create directory out/ii_files/ for
12387 # template instantiation
12388 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12389 $rm out/* && rmdir out
12390 cd ..
12391 rmdir conftest
12392 $rm conftest*
12393
12394fi
dd184caf 12395{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12396echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 12397
12398
12399hard_links="nottested"
12400if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12401 # do not overwrite the value of need_locks provided by the user
dd184caf 12402 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12403echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 12404 hard_links=yes
12405 $rm conftest*
12406 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12407 touch conftest.a
12408 ln conftest.a conftest.b 2>&5 || hard_links=no
12409 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 12410 { echo "$as_me:$LINENO: result: $hard_links" >&5
12411echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 12412 if test "$hard_links" = no; then
12413 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12414echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12415 need_locks=warn
12416 fi
12417else
12418 need_locks=no
12419fi
12420
dd184caf 12421{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12422echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 12423
12424 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12425 case $host_os in
12426 aix4* | aix5*)
12427 # If we're using GNU nm, then we don't want the "-C" option.
12428 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12429 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12430 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'
12431 else
12432 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'
12433 fi
12434 ;;
12435 pw32*)
12436 export_symbols_cmds_CXX="$ltdll_cmds"
12437 ;;
12438 cygwin* | mingw*)
12439 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'
12440 ;;
1dce02f2 12441 linux* | k*bsd*-gnu)
12442 link_all_deplibs_CXX=no
12443 ;;
d9898ee8 12444 *)
12445 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12446 ;;
12447 esac
12448
dd184caf 12449{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12450echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12451test "$ld_shlibs_CXX" = no && can_build_shared=no
12452
12453#
12454# Do we need to explicitly link libc?
12455#
12456case "x$archive_cmds_need_lc_CXX" in
12457x|xyes)
12458 # Assume -lc should be added
12459 archive_cmds_need_lc_CXX=yes
12460
12461 if test "$enable_shared" = yes && test "$GCC" = yes; then
12462 case $archive_cmds_CXX in
12463 *'~'*)
12464 # FIXME: we may have to deal with multi-command sequences.
12465 ;;
12466 '$CC '*)
12467 # Test whether the compiler implicitly links with -lc since on some
12468 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12469 # to ld, don't add -lc before -lgcc.
dd184caf 12470 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12471echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 12472 $rm conftest*
12473 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12474
12475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476 (eval $ac_compile) 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } 2>conftest.err; then
12480 soname=conftest
12481 lib=conftest
12482 libobjs=conftest.$ac_objext
12483 deplibs=
12484 wl=$lt_prog_compiler_wl_CXX
12485 pic_flag=$lt_prog_compiler_pic_CXX
12486 compiler_flags=-v
12487 linker_flags=-v
12488 verstring=
12489 output_objdir=.
12490 libname=conftest
12491 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12492 allow_undefined_flag_CXX=
12493 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12494 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }
12498 then
12499 archive_cmds_need_lc_CXX=no
12500 else
12501 archive_cmds_need_lc_CXX=yes
12502 fi
12503 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12504 else
12505 cat conftest.err 1>&5
12506 fi
12507 $rm conftest*
dd184caf 12508 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12509echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d9898ee8 12510 ;;
12511 esac
12512 fi
12513 ;;
12514esac
12515
dd184caf 12516{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12517echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 12518library_names_spec=
12519libname_spec='lib$name'
12520soname_spec=
12521shrext_cmds=".so"
12522postinstall_cmds=
12523postuninstall_cmds=
12524finish_cmds=
12525finish_eval=
12526shlibpath_var=
12527shlibpath_overrides_runpath=unknown
12528version_type=none
12529dynamic_linker="$host_os ld.so"
12530sys_lib_dlsearch_path_spec="/lib /usr/lib"
12531if test "$GCC" = yes; then
12532 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12533 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12534 # if the path contains ";" then we assume it to be the separator
12535 # otherwise default to the standard path separator (i.e. ":") - it is
12536 # assumed that no part of a normal pathname contains ";" but that should
12537 # okay in the real world where ";" in dirpaths is itself problematic.
12538 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12539 else
12540 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12541 fi
12542else
12543 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12544fi
12545need_lib_prefix=unknown
12546hardcode_into_libs=no
12547
12548# when you set need_version to no, make sure it does not cause -set_version
12549# flags to be left without arguments
12550need_version=unknown
12551
12552case $host_os in
12553aix3*)
12554 version_type=linux
12555 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12556 shlibpath_var=LIBPATH
12557
12558 # AIX 3 has no versioning support, so we append a major version to the name.
12559 soname_spec='${libname}${release}${shared_ext}$major'
12560 ;;
12561
12562aix4* | aix5*)
12563 version_type=linux
12564 need_lib_prefix=no
12565 need_version=no
12566 hardcode_into_libs=yes
12567 if test "$host_cpu" = ia64; then
12568 # AIX 5 supports IA64
12569 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12570 shlibpath_var=LD_LIBRARY_PATH
12571 else
12572 # With GCC up to 2.95.x, collect2 would create an import file
12573 # for dependence libraries. The import file would start with
12574 # the line `#! .'. This would cause the generated library to
12575 # depend on `.', always an invalid library. This was fixed in
12576 # development snapshots of GCC prior to 3.0.
12577 case $host_os in
12578 aix4 | aix4.[01] | aix4.[01].*)
12579 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12580 echo ' yes '
12581 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12582 :
12583 else
12584 can_build_shared=no
12585 fi
12586 ;;
12587 esac
12588 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12589 # soname into executable. Probably we can add versioning support to
12590 # collect2, so additional links can be useful in future.
12591 if test "$aix_use_runtimelinking" = yes; then
12592 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12593 # instead of lib<name>.a to let people know that these are not
12594 # typical AIX shared libraries.
12595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12596 else
12597 # We preserve .a as extension for shared libraries through AIX4.2
12598 # and later when we are not doing run time linking.
12599 library_names_spec='${libname}${release}.a $libname.a'
12600 soname_spec='${libname}${release}${shared_ext}$major'
12601 fi
12602 shlibpath_var=LIBPATH
12603 fi
12604 ;;
12605
12606amigaos*)
12607 library_names_spec='$libname.ixlibrary $libname.a'
12608 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12609 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'
12610 ;;
12611
12612beos*)
12613 library_names_spec='${libname}${shared_ext}'
12614 dynamic_linker="$host_os ld.so"
12615 shlibpath_var=LIBRARY_PATH
12616 ;;
12617
12618bsdi[45]*)
12619 version_type=linux
12620 need_version=no
12621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12622 soname_spec='${libname}${release}${shared_ext}$major'
12623 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12624 shlibpath_var=LD_LIBRARY_PATH
12625 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12626 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12627 # the default ld.so.conf also contains /usr/contrib/lib and
12628 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12629 # libtool to hard-code these into programs
12630 ;;
12631
12632cygwin* | mingw* | pw32*)
12633 version_type=windows
12634 shrext_cmds=".dll"
12635 need_version=no
12636 need_lib_prefix=no
12637
12638 case $GCC,$host_os in
12639 yes,cygwin* | yes,mingw* | yes,pw32*)
12640 library_names_spec='$libname.dll.a'
12641 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12642 postinstall_cmds='base_file=`basename \${file}`~
12643 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12644 dldir=$destdir/`dirname \$dlpath`~
12645 test -d \$dldir || mkdir -p \$dldir~
12646 $install_prog $dir/$dlname \$dldir/$dlname~
12647 chmod a+x \$dldir/$dlname'
12648 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12649 dlpath=$dir/\$dldll~
12650 $rm \$dlpath'
12651 shlibpath_overrides_runpath=yes
12652
12653 case $host_os in
12654 cygwin*)
12655 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12656 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12657 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12658 ;;
12659 mingw*)
12660 # MinGW DLLs use traditional 'lib' prefix
12661 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12662 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12663 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12664 # It is most probably a Windows format PATH printed by
12665 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12666 # path with ; separators, and with drive letters. We can handle the
12667 # drive letters (cygwin fileutils understands them), so leave them,
12668 # especially as we might pass files found there to a mingw objdump,
12669 # which wouldn't understand a cygwinified path. Ahh.
12670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12671 else
12672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12673 fi
12674 ;;
12675 pw32*)
12676 # pw32 DLLs use 'pw' prefix rather than 'lib'
12677 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12678 ;;
12679 esac
12680 ;;
12681
12682 *)
12683 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12684 ;;
12685 esac
12686 dynamic_linker='Win32 ld.exe'
12687 # FIXME: first we should search . and the directory the executable is in
12688 shlibpath_var=PATH
12689 ;;
12690
12691darwin* | rhapsody*)
12692 dynamic_linker="$host_os dyld"
12693 version_type=darwin
12694 need_lib_prefix=no
12695 need_version=no
12696 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12697 soname_spec='${libname}${release}${major}$shared_ext'
12698 shlibpath_overrides_runpath=yes
12699 shlibpath_var=DYLD_LIBRARY_PATH
12700 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12701 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12702 if test "$GCC" = yes; then
12703 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"`
12704 else
12705 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12706 fi
12707 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12708 ;;
12709
12710dgux*)
12711 version_type=linux
12712 need_lib_prefix=no
12713 need_version=no
12714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12715 soname_spec='${libname}${release}${shared_ext}$major'
12716 shlibpath_var=LD_LIBRARY_PATH
12717 ;;
12718
12719freebsd1*)
12720 dynamic_linker=no
12721 ;;
12722
d9898ee8 12723freebsd* | dragonfly*)
12724 # DragonFly does not have aout. When/if they implement a new
12725 # versioning mechanism, adjust this.
12726 if test -x /usr/bin/objformat; then
12727 objformat=`/usr/bin/objformat`
12728 else
12729 case $host_os in
12730 freebsd[123]*) objformat=aout ;;
12731 *) objformat=elf ;;
12732 esac
12733 fi
12734 version_type=freebsd-$objformat
12735 case $version_type in
12736 freebsd-elf*)
12737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12738 need_version=no
12739 need_lib_prefix=no
12740 ;;
12741 freebsd-*)
12742 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12743 need_version=yes
12744 ;;
12745 esac
12746 shlibpath_var=LD_LIBRARY_PATH
12747 case $host_os in
12748 freebsd2*)
12749 shlibpath_overrides_runpath=yes
12750 ;;
12751 freebsd3.[01]* | freebsdelf3.[01]*)
12752 shlibpath_overrides_runpath=yes
12753 hardcode_into_libs=yes
12754 ;;
12755 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12756 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12757 shlibpath_overrides_runpath=no
12758 hardcode_into_libs=yes
12759 ;;
12760 freebsd*) # from 4.6 on
12761 shlibpath_overrides_runpath=yes
12762 hardcode_into_libs=yes
12763 ;;
12764 esac
12765 ;;
12766
12767gnu*)
12768 version_type=linux
12769 need_lib_prefix=no
12770 need_version=no
12771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12772 soname_spec='${libname}${release}${shared_ext}$major'
12773 shlibpath_var=LD_LIBRARY_PATH
12774 hardcode_into_libs=yes
12775 ;;
12776
12777hpux9* | hpux10* | hpux11*)
12778 # Give a soname corresponding to the major version so that dld.sl refuses to
12779 # link against other versions.
12780 version_type=sunos
12781 need_lib_prefix=no
12782 need_version=no
12783 case $host_cpu in
12784 ia64*)
12785 shrext_cmds='.so'
12786 hardcode_into_libs=yes
12787 dynamic_linker="$host_os dld.so"
12788 shlibpath_var=LD_LIBRARY_PATH
12789 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12791 soname_spec='${libname}${release}${shared_ext}$major'
12792 if test "X$HPUX_IA64_MODE" = X32; then
12793 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12794 else
12795 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12796 fi
12797 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12798 ;;
12799 hppa*64*)
12800 shrext_cmds='.sl'
12801 hardcode_into_libs=yes
12802 dynamic_linker="$host_os dld.sl"
12803 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12804 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12806 soname_spec='${libname}${release}${shared_ext}$major'
12807 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12808 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12809 ;;
12810 *)
12811 shrext_cmds='.sl'
12812 dynamic_linker="$host_os dld.sl"
12813 shlibpath_var=SHLIB_PATH
12814 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
12818 esac
12819 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12820 postinstall_cmds='chmod 555 $lib'
12821 ;;
12822
12823interix3*)
12824 version_type=linux
12825 need_lib_prefix=no
12826 need_version=no
12827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12828 soname_spec='${libname}${release}${shared_ext}$major'
12829 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12830 shlibpath_var=LD_LIBRARY_PATH
12831 shlibpath_overrides_runpath=no
12832 hardcode_into_libs=yes
12833 ;;
12834
12835irix5* | irix6* | nonstopux*)
12836 case $host_os in
12837 nonstopux*) version_type=nonstopux ;;
12838 *)
12839 if test "$lt_cv_prog_gnu_ld" = yes; then
12840 version_type=linux
12841 else
12842 version_type=irix
12843 fi ;;
12844 esac
12845 need_lib_prefix=no
12846 need_version=no
12847 soname_spec='${libname}${release}${shared_ext}$major'
12848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12849 case $host_os in
12850 irix5* | nonstopux*)
12851 libsuff= shlibsuff=
12852 ;;
12853 *)
12854 case $LD in # libtool.m4 will add one of these switches to LD
12855 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12856 libsuff= shlibsuff= libmagic=32-bit;;
12857 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12858 libsuff=32 shlibsuff=N32 libmagic=N32;;
12859 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12860 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12861 *) libsuff= shlibsuff= libmagic=never-match;;
12862 esac
12863 ;;
12864 esac
12865 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12866 shlibpath_overrides_runpath=no
12867 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12868 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12869 hardcode_into_libs=yes
12870 ;;
12871
12872# No shared lib support for Linux oldld, aout, or coff.
12873linux*oldld* | linux*aout* | linux*coff*)
12874 dynamic_linker=no
12875 ;;
12876
12877# This must be Linux ELF.
1dce02f2 12878linux* | k*bsd*-gnu)
d9898ee8 12879 version_type=linux
12880 need_lib_prefix=no
12881 need_version=no
12882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12883 soname_spec='${libname}${release}${shared_ext}$major'
12884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12885 shlibpath_var=LD_LIBRARY_PATH
12886 shlibpath_overrides_runpath=no
12887 # This implies no fast_install, which is unacceptable.
12888 # Some rework will be needed to allow for fast_install
12889 # before this can be enabled.
12890 hardcode_into_libs=yes
12891
d9898ee8 12892 # Append ld.so.conf contents to the search path
12893 if test -f /etc/ld.so.conf; then
1dce02f2 12894 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12895 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
d9898ee8 12896 fi
12897
12898 # We used to test for /lib/ld.so.1 and disable shared libraries on
12899 # powerpc, because MkLinux only supported shared libraries with the
12900 # GNU dynamic linker. Since this was broken with cross compilers,
12901 # most powerpc-linux boxes support dynamic linking these days and
12902 # people can always --disable-shared, the test was removed, and we
12903 # assume the GNU/Linux dynamic linker is in use.
12904 dynamic_linker='GNU/Linux ld.so'
12905 ;;
12906
1dce02f2 12907netbsdelf*-gnu)
d9898ee8 12908 version_type=linux
12909 need_lib_prefix=no
12910 need_version=no
12911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12912 soname_spec='${libname}${release}${shared_ext}$major'
12913 shlibpath_var=LD_LIBRARY_PATH
12914 shlibpath_overrides_runpath=no
12915 hardcode_into_libs=yes
1dce02f2 12916 dynamic_linker='NetBSD ld.elf_so'
d9898ee8 12917 ;;
12918
12919netbsd*)
12920 version_type=sunos
12921 need_lib_prefix=no
12922 need_version=no
12923 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12926 dynamic_linker='NetBSD (a.out) ld.so'
12927 else
12928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12929 soname_spec='${libname}${release}${shared_ext}$major'
12930 dynamic_linker='NetBSD ld.elf_so'
12931 fi
12932 shlibpath_var=LD_LIBRARY_PATH
12933 shlibpath_overrides_runpath=yes
12934 hardcode_into_libs=yes
12935 ;;
12936
12937newsos6)
12938 version_type=linux
12939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12940 shlibpath_var=LD_LIBRARY_PATH
12941 shlibpath_overrides_runpath=yes
12942 ;;
12943
12944nto-qnx*)
12945 version_type=linux
12946 need_lib_prefix=no
12947 need_version=no
12948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12949 soname_spec='${libname}${release}${shared_ext}$major'
12950 shlibpath_var=LD_LIBRARY_PATH
12951 shlibpath_overrides_runpath=yes
12952 ;;
12953
12954openbsd*)
12955 version_type=sunos
12956 sys_lib_dlsearch_path_spec="/usr/lib"
12957 need_lib_prefix=no
12958 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12959 case $host_os in
12960 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12961 *) need_version=no ;;
12962 esac
12963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12965 shlibpath_var=LD_LIBRARY_PATH
12966 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12967 case $host_os in
12968 openbsd2.[89] | openbsd2.[89].*)
12969 shlibpath_overrides_runpath=no
12970 ;;
12971 *)
12972 shlibpath_overrides_runpath=yes
12973 ;;
12974 esac
12975 else
12976 shlibpath_overrides_runpath=yes
12977 fi
12978 ;;
12979
12980os2*)
12981 libname_spec='$name'
12982 shrext_cmds=".dll"
12983 need_lib_prefix=no
12984 library_names_spec='$libname${shared_ext} $libname.a'
12985 dynamic_linker='OS/2 ld.exe'
12986 shlibpath_var=LIBPATH
12987 ;;
12988
12989osf3* | osf4* | osf5*)
12990 version_type=osf
12991 need_lib_prefix=no
12992 need_version=no
12993 soname_spec='${libname}${release}${shared_ext}$major'
12994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12995 shlibpath_var=LD_LIBRARY_PATH
12996 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12997 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12998 ;;
12999
13000solaris*)
13001 version_type=linux
13002 need_lib_prefix=no
13003 need_version=no
13004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13005 soname_spec='${libname}${release}${shared_ext}$major'
13006 shlibpath_var=LD_LIBRARY_PATH
13007 shlibpath_overrides_runpath=yes
13008 hardcode_into_libs=yes
13009 # ldd complains unless libraries are executable
13010 postinstall_cmds='chmod +x $lib'
13011 ;;
13012
13013sunos4*)
13014 version_type=sunos
13015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13016 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13017 shlibpath_var=LD_LIBRARY_PATH
13018 shlibpath_overrides_runpath=yes
13019 if test "$with_gnu_ld" = yes; then
13020 need_lib_prefix=no
13021 fi
13022 need_version=yes
13023 ;;
13024
13025sysv4 | sysv4.3*)
13026 version_type=linux
13027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13028 soname_spec='${libname}${release}${shared_ext}$major'
13029 shlibpath_var=LD_LIBRARY_PATH
13030 case $host_vendor in
13031 sni)
13032 shlibpath_overrides_runpath=no
13033 need_lib_prefix=no
13034 export_dynamic_flag_spec='${wl}-Blargedynsym'
13035 runpath_var=LD_RUN_PATH
13036 ;;
13037 siemens)
13038 need_lib_prefix=no
13039 ;;
13040 motorola)
13041 need_lib_prefix=no
13042 need_version=no
13043 shlibpath_overrides_runpath=no
13044 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13045 ;;
13046 esac
13047 ;;
13048
13049sysv4*MP*)
13050 if test -d /usr/nec ;then
13051 version_type=linux
13052 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13053 soname_spec='$libname${shared_ext}.$major'
13054 shlibpath_var=LD_LIBRARY_PATH
13055 fi
13056 ;;
13057
13058sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13059 version_type=freebsd-elf
13060 need_lib_prefix=no
13061 need_version=no
13062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13063 soname_spec='${libname}${release}${shared_ext}$major'
13064 shlibpath_var=LD_LIBRARY_PATH
13065 hardcode_into_libs=yes
13066 if test "$with_gnu_ld" = yes; then
13067 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13068 shlibpath_overrides_runpath=no
13069 else
13070 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13071 shlibpath_overrides_runpath=yes
13072 case $host_os in
13073 sco3.2v5*)
13074 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13075 ;;
13076 esac
13077 fi
13078 sys_lib_dlsearch_path_spec='/usr/lib'
13079 ;;
13080
13081uts4*)
13082 version_type=linux
13083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13084 soname_spec='${libname}${release}${shared_ext}$major'
13085 shlibpath_var=LD_LIBRARY_PATH
13086 ;;
13087
13088*)
13089 dynamic_linker=no
13090 ;;
13091esac
dd184caf 13092{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13093echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 13094test "$dynamic_linker" = no && can_build_shared=no
13095
13096variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13097if test "$GCC" = yes; then
13098 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13099fi
13100
dd184caf 13101{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13102echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 13103hardcode_action_CXX=
13104if test -n "$hardcode_libdir_flag_spec_CXX" || \
13105 test -n "$runpath_var_CXX" || \
13106 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13107
13108 # We can hardcode non-existant directories.
13109 if test "$hardcode_direct_CXX" != no &&
13110 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13111 # have to relink, otherwise we might link with an installed library
13112 # when we should be linking with a yet-to-be-installed one
13113 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13114 test "$hardcode_minus_L_CXX" != no; then
13115 # Linking always hardcodes the temporary library directory.
13116 hardcode_action_CXX=relink
13117 else
13118 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13119 hardcode_action_CXX=immediate
13120 fi
13121else
13122 # We cannot hardcode anything, or else we can only hardcode existing
13123 # directories.
13124 hardcode_action_CXX=unsupported
13125fi
dd184caf 13126{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13127echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d9898ee8 13128
13129if test "$hardcode_action_CXX" = relink; then
13130 # Fast installation is not supported
13131 enable_fast_install=no
13132elif test "$shlibpath_overrides_runpath" = yes ||
13133 test "$enable_shared" = no; then
13134 # Fast installation is not necessary
13135 enable_fast_install=needless
13136fi
13137
13138
13139# The else clause should only fire when bootstrapping the
13140# libtool distribution, otherwise you forgot to ship ltmain.sh
13141# with your package, and you will get complaints that there are
13142# no rules to generate ltmain.sh.
13143if test -f "$ltmain"; then
13144 # See if we are running on zsh, and set the options which allow our commands through
13145 # without removal of \ escapes.
13146 if test -n "${ZSH_VERSION+set}" ; then
13147 setopt NO_GLOB_SUBST
13148 fi
13149 # Now quote all the things that may contain metacharacters while being
13150 # careful not to overquote the AC_SUBSTed values. We take copies of the
13151 # variables and quote the copies for generation of the libtool script.
13152 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13153 SED SHELL STRIP \
13154 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13155 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13156 deplibs_check_method reload_flag reload_cmds need_locks \
13157 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13158 lt_cv_sys_global_symbol_to_c_name_address \
13159 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13160 old_postinstall_cmds old_postuninstall_cmds \
13161 compiler_CXX \
13162 CC_CXX \
13163 LD_CXX \
13164 lt_prog_compiler_wl_CXX \
13165 lt_prog_compiler_pic_CXX \
13166 lt_prog_compiler_static_CXX \
13167 lt_prog_compiler_no_builtin_flag_CXX \
13168 export_dynamic_flag_spec_CXX \
13169 thread_safe_flag_spec_CXX \
13170 whole_archive_flag_spec_CXX \
13171 enable_shared_with_static_runtimes_CXX \
13172 old_archive_cmds_CXX \
13173 old_archive_from_new_cmds_CXX \
13174 predep_objects_CXX \
13175 postdep_objects_CXX \
13176 predeps_CXX \
13177 postdeps_CXX \
13178 compiler_lib_search_path_CXX \
13179 archive_cmds_CXX \
13180 archive_expsym_cmds_CXX \
13181 postinstall_cmds_CXX \
13182 postuninstall_cmds_CXX \
13183 old_archive_from_expsyms_cmds_CXX \
13184 allow_undefined_flag_CXX \
13185 no_undefined_flag_CXX \
13186 export_symbols_cmds_CXX \
13187 hardcode_libdir_flag_spec_CXX \
13188 hardcode_libdir_flag_spec_ld_CXX \
13189 hardcode_libdir_separator_CXX \
13190 hardcode_automatic_CXX \
13191 module_cmds_CXX \
13192 module_expsym_cmds_CXX \
13193 lt_cv_prog_compiler_c_o_CXX \
13194 exclude_expsyms_CXX \
13195 include_expsyms_CXX; do
13196
13197 case $var in
13198 old_archive_cmds_CXX | \
13199 old_archive_from_new_cmds_CXX | \
13200 archive_cmds_CXX | \
13201 archive_expsym_cmds_CXX | \
13202 module_cmds_CXX | \
13203 module_expsym_cmds_CXX | \
13204 old_archive_from_expsyms_cmds_CXX | \
13205 export_symbols_cmds_CXX | \
13206 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13207 postinstall_cmds | postuninstall_cmds | \
13208 old_postinstall_cmds | old_postuninstall_cmds | \
13209 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13210 # Double-quote double-evaled strings.
13211 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13212 ;;
13213 *)
13214 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13215 ;;
13216 esac
13217 done
13218
13219 case $lt_echo in
13220 *'\$0 --fallback-echo"')
13221 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13222 ;;
13223 esac
13224
13225cfgfile="$ofile"
13226
13227 cat <<__EOF__ >> "$cfgfile"
13228# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13229
13230# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13231
13232# Shell to use when invoking shell scripts.
13233SHELL=$lt_SHELL
13234
13235# Whether or not to build shared libraries.
13236build_libtool_libs=$enable_shared
13237
13238# Whether or not to build static libraries.
13239build_old_libs=$enable_static
13240
13241# Whether or not to add -lc for building shared libraries.
13242build_libtool_need_lc=$archive_cmds_need_lc_CXX
13243
13244# Whether or not to disallow shared libs when runtime libs are static
13245allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13246
13247# Whether or not to optimize for fast installation.
13248fast_install=$enable_fast_install
13249
13250# The host system.
13251host_alias=$host_alias
13252host=$host
13253host_os=$host_os
13254
13255# The build system.
13256build_alias=$build_alias
13257build=$build
13258build_os=$build_os
13259
13260# An echo program that does not interpret backslashes.
13261echo=$lt_echo
13262
13263# The archiver.
13264AR=$lt_AR
13265AR_FLAGS=$lt_AR_FLAGS
13266
13267# A C compiler.
13268LTCC=$lt_LTCC
13269
13270# LTCC compiler flags.
13271LTCFLAGS=$lt_LTCFLAGS
13272
13273# A language-specific compiler.
13274CC=$lt_compiler_CXX
13275
13276# Is the compiler the GNU C compiler?
13277with_gcc=$GCC_CXX
13278
d9898ee8 13279# An ERE matcher.
13280EGREP=$lt_EGREP
13281
13282# The linker used to build libraries.
13283LD=$lt_LD_CXX
13284
13285# Whether we need hard or soft links.
13286LN_S=$lt_LN_S
13287
13288# A BSD-compatible nm program.
13289NM=$lt_NM
13290
13291# A symbol stripping program
13292STRIP=$lt_STRIP
13293
13294# Used to examine libraries when file_magic_cmd begins "file"
13295MAGIC_CMD=$MAGIC_CMD
13296
13297# Used on cygwin: DLL creation program.
13298DLLTOOL="$DLLTOOL"
13299
13300# Used on cygwin: object dumper.
13301OBJDUMP="$OBJDUMP"
13302
13303# Used on cygwin: assembler.
13304AS="$AS"
13305
13306# The name of the directory that contains temporary libtool files.
13307objdir=$objdir
13308
13309# How to create reloadable object files.
13310reload_flag=$lt_reload_flag
13311reload_cmds=$lt_reload_cmds
13312
13313# How to pass a linker flag through the compiler.
13314wl=$lt_lt_prog_compiler_wl_CXX
13315
13316# Object file suffix (normally "o").
13317objext="$ac_objext"
13318
13319# Old archive suffix (normally "a").
13320libext="$libext"
13321
13322# Shared library suffix (normally ".so").
13323shrext_cmds='$shrext_cmds'
13324
13325# Executable file suffix (normally "").
13326exeext="$exeext"
13327
13328# Additional compiler flags for building library objects.
13329pic_flag=$lt_lt_prog_compiler_pic_CXX
13330pic_mode=$pic_mode
13331
13332# What is the maximum length of a command?
13333max_cmd_len=$lt_cv_sys_max_cmd_len
13334
13335# Does compiler simultaneously support -c and -o options?
13336compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13337
13338# Must we lock files when doing compilation?
13339need_locks=$lt_need_locks
13340
13341# Do we need the lib prefix for modules?
13342need_lib_prefix=$need_lib_prefix
13343
13344# Do we need a version for libraries?
13345need_version=$need_version
13346
13347# Whether dlopen is supported.
13348dlopen_support=$enable_dlopen
13349
13350# Whether dlopen of programs is supported.
13351dlopen_self=$enable_dlopen_self
13352
13353# Whether dlopen of statically linked programs is supported.
13354dlopen_self_static=$enable_dlopen_self_static
13355
13356# Compiler flag to prevent dynamic linking.
13357link_static_flag=$lt_lt_prog_compiler_static_CXX
13358
13359# Compiler flag to turn off builtin functions.
13360no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13361
13362# Compiler flag to allow reflexive dlopens.
13363export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13364
13365# Compiler flag to generate shared objects directly from archives.
13366whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13367
13368# Compiler flag to generate thread-safe objects.
13369thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13370
13371# Library versioning type.
13372version_type=$version_type
13373
13374# Format of library name prefix.
13375libname_spec=$lt_libname_spec
13376
13377# List of archive names. First name is the real one, the rest are links.
13378# The last name is the one that the linker finds with -lNAME.
13379library_names_spec=$lt_library_names_spec
13380
13381# The coded name of the library, if different from the real name.
13382soname_spec=$lt_soname_spec
13383
13384# Commands used to build and install an old-style archive.
13385RANLIB=$lt_RANLIB
13386old_archive_cmds=$lt_old_archive_cmds_CXX
13387old_postinstall_cmds=$lt_old_postinstall_cmds
13388old_postuninstall_cmds=$lt_old_postuninstall_cmds
13389
13390# Create an old-style archive from a shared archive.
13391old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13392
13393# Create a temporary old-style archive to link instead of a shared archive.
13394old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13395
13396# Commands used to build and install a shared archive.
13397archive_cmds=$lt_archive_cmds_CXX
13398archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13399postinstall_cmds=$lt_postinstall_cmds
13400postuninstall_cmds=$lt_postuninstall_cmds
13401
13402# Commands used to build a loadable module (assumed same as above if empty)
13403module_cmds=$lt_module_cmds_CXX
13404module_expsym_cmds=$lt_module_expsym_cmds_CXX
13405
13406# Commands to strip libraries.
13407old_striplib=$lt_old_striplib
13408striplib=$lt_striplib
13409
13410# Dependencies to place before the objects being linked to create a
13411# shared library.
dd184caf 13412predep_objects=$lt_predep_objects_CXX
d9898ee8 13413
13414# Dependencies to place after the objects being linked to create a
13415# shared library.
dd184caf 13416postdep_objects=$lt_postdep_objects_CXX
d9898ee8 13417
13418# Dependencies to place before the objects being linked to create a
13419# shared library.
13420predeps=$lt_predeps_CXX
13421
13422# Dependencies to place after the objects being linked to create a
13423# shared library.
13424postdeps=$lt_postdeps_CXX
13425
13426# The library search path used internally by the compiler when linking
13427# a shared library.
dd184caf 13428compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d9898ee8 13429
13430# Method to check whether dependent libraries are shared objects.
13431deplibs_check_method=$lt_deplibs_check_method
13432
13433# Command to use when deplibs_check_method == file_magic.
13434file_magic_cmd=$lt_file_magic_cmd
13435
13436# Flag that allows shared libraries with undefined symbols to be built.
13437allow_undefined_flag=$lt_allow_undefined_flag_CXX
13438
13439# Flag that forces no undefined symbols.
13440no_undefined_flag=$lt_no_undefined_flag_CXX
13441
13442# Commands used to finish a libtool library installation in a directory.
13443finish_cmds=$lt_finish_cmds
13444
13445# Same as above, but a single script fragment to be evaled but not shown.
13446finish_eval=$lt_finish_eval
13447
13448# Take the output of nm and produce a listing of raw symbols and C names.
13449global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13450
13451# Transform the output of nm in a proper C declaration
13452global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13453
13454# Transform the output of nm in a C name address pair
13455global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13456
13457# This is the shared library runtime path variable.
13458runpath_var=$runpath_var
13459
13460# This is the shared library path variable.
13461shlibpath_var=$shlibpath_var
13462
13463# Is shlibpath searched before the hard-coded library search path?
13464shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13465
13466# How to hardcode a shared library path into an executable.
13467hardcode_action=$hardcode_action_CXX
13468
13469# Whether we should hardcode library paths into libraries.
13470hardcode_into_libs=$hardcode_into_libs
13471
13472# Flag to hardcode \$libdir into a binary during linking.
13473# This must work even if \$libdir does not exist.
13474hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13475
13476# If ld is used when linking, flag to hardcode \$libdir into
13477# a binary during linking. This must work even if \$libdir does
13478# not exist.
13479hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13480
13481# Whether we need a single -rpath flag with a separated argument.
13482hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13483
13484# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13485# resulting binary.
13486hardcode_direct=$hardcode_direct_CXX
13487
13488# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13489# resulting binary.
13490hardcode_minus_L=$hardcode_minus_L_CXX
13491
13492# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13493# the resulting binary.
13494hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13495
13496# Set to yes if building a shared library automatically hardcodes DIR into the library
13497# and all subsequent libraries and executables linked against it.
13498hardcode_automatic=$hardcode_automatic_CXX
13499
13500# Variables whose values should be saved in libtool wrapper scripts and
13501# restored at relink time.
13502variables_saved_for_relink="$variables_saved_for_relink"
13503
13504# Whether libtool must link a program against all its dependency libraries.
13505link_all_deplibs=$link_all_deplibs_CXX
13506
13507# Compile-time system search path for libraries
dd184caf 13508sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 13509
13510# Run-time system search path for libraries
13511sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13512
13513# Fix the shell variable \$srcfile for the compiler.
13514fix_srcfile_path="$fix_srcfile_path_CXX"
13515
13516# Set to yes if exported symbols are required.
13517always_export_symbols=$always_export_symbols_CXX
13518
13519# The commands to list exported symbols.
13520export_symbols_cmds=$lt_export_symbols_cmds_CXX
13521
13522# The commands to extract the exported symbol list from a shared archive.
13523extract_expsyms_cmds=$lt_extract_expsyms_cmds
13524
13525# Symbols that should not be listed in the preloaded symbols.
13526exclude_expsyms=$lt_exclude_expsyms_CXX
13527
13528# Symbols that must always be exported.
13529include_expsyms=$lt_include_expsyms_CXX
13530
13531# ### END LIBTOOL TAG CONFIG: $tagname
13532
13533__EOF__
13534
13535
13536else
13537 # If there is no Makefile yet, we rely on a make rule to execute
13538 # `config.status --recheck' to rerun these tests and create the
13539 # libtool script then.
13540 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13541 if test -f "$ltmain_in"; then
13542 test -f Makefile && make "$ltmain"
13543 fi
13544fi
13545
13546
13547ac_ext=c
13548ac_cpp='$CPP $CPPFLAGS'
13549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13551ac_compiler_gnu=$ac_cv_c_compiler_gnu
13552
13553CC=$lt_save_CC
13554LDCXX=$LD
13555LD=$lt_save_LD
13556GCC=$lt_save_GCC
13557with_gnu_ldcxx=$with_gnu_ld
13558with_gnu_ld=$lt_save_with_gnu_ld
13559lt_cv_path_LDCXX=$lt_cv_path_LD
13560lt_cv_path_LD=$lt_save_path_LD
13561lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13562lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13563
13564 else
13565 tagname=""
13566 fi
13567 ;;
13568
13569 F77)
13570 if test -n "$F77" && test "X$F77" != "Xno"; then
13571
13572ac_ext=f
13573ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13574ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13575ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13576
13577
13578archive_cmds_need_lc_F77=no
13579allow_undefined_flag_F77=
13580always_export_symbols_F77=no
13581archive_expsym_cmds_F77=
13582export_dynamic_flag_spec_F77=
13583hardcode_direct_F77=no
13584hardcode_libdir_flag_spec_F77=
13585hardcode_libdir_flag_spec_ld_F77=
13586hardcode_libdir_separator_F77=
13587hardcode_minus_L_F77=no
13588hardcode_automatic_F77=no
13589module_cmds_F77=
13590module_expsym_cmds_F77=
13591link_all_deplibs_F77=unknown
13592old_archive_cmds_F77=$old_archive_cmds
13593no_undefined_flag_F77=
13594whole_archive_flag_spec_F77=
13595enable_shared_with_static_runtimes_F77=no
13596
13597# Source file extension for f77 test sources.
13598ac_ext=f
13599
13600# Object file extension for compiled f77 test sources.
13601objext=o
13602objext_F77=$objext
13603
13604# Code to be used in simple compile tests
13605lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13606
13607# Code to be used in simple link tests
13608lt_simple_link_test_code=" program t\n end\n"
13609
13610# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13611
13612# If no C compiler was specified, use CC.
13613LTCC=${LTCC-"$CC"}
13614
13615# If no C compiler flags were specified, use CFLAGS.
13616LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13617
13618# Allow CC to be a program name with arguments.
13619compiler=$CC
13620
13621
13622# save warnings/boilerplate of simple test code
13623ac_outfile=conftest.$ac_objext
13624printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13625eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13626_lt_compiler_boilerplate=`cat conftest.err`
13627$rm conftest*
13628
13629ac_outfile=conftest.$ac_objext
13630printf "$lt_simple_link_test_code" >conftest.$ac_ext
13631eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13632_lt_linker_boilerplate=`cat conftest.err`
13633$rm conftest*
13634
13635
13636# Allow CC to be a program name with arguments.
13637lt_save_CC="$CC"
13638CC=${F77-"f77"}
13639compiler=$CC
13640compiler_F77=$CC
13641for cc_temp in $compiler""; do
13642 case $cc_temp in
13643 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13644 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13645 \-*) ;;
13646 *) break;;
13647 esac
13648done
13649cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13650
13651
dd184caf 13652{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13653echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13654{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13655echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 13656
dd184caf 13657{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13658echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 13659test "$can_build_shared" = "no" && enable_shared=no
13660
13661# On AIX, shared libraries and static libraries use the same namespace, and
13662# are all built from PIC.
13663case $host_os in
13664aix3*)
13665 test "$enable_shared" = yes && enable_static=no
13666 if test -n "$RANLIB"; then
13667 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13668 postinstall_cmds='$RANLIB $lib'
13669 fi
13670 ;;
13671aix4* | aix5*)
13672 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13673 test "$enable_shared" = yes && enable_static=no
13674 fi
13675 ;;
13676esac
dd184caf 13677{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13678echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 13679
dd184caf 13680{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13681echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 13682# Make sure either enable_shared or enable_static is yes.
13683test "$enable_shared" = yes || enable_static=yes
dd184caf 13684{ echo "$as_me:$LINENO: result: $enable_static" >&5
13685echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 13686
13687GCC_F77="$G77"
13688LD_F77="$LD"
13689
13690lt_prog_compiler_wl_F77=
13691lt_prog_compiler_pic_F77=
13692lt_prog_compiler_static_F77=
13693
dd184caf 13694{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13695echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 13696
13697 if test "$GCC" = yes; then
13698 lt_prog_compiler_wl_F77='-Wl,'
13699 lt_prog_compiler_static_F77='-static'
13700
13701 case $host_os in
13702 aix*)
13703 # All AIX code is PIC.
13704 if test "$host_cpu" = ia64; then
13705 # AIX 5 now supports IA64 processor
13706 lt_prog_compiler_static_F77='-Bstatic'
13707 fi
13708 ;;
13709
13710 amigaos*)
13711 # FIXME: we need at least 68020 code to build shared libraries, but
13712 # adding the `-m68020' flag to GCC prevents building anything better,
13713 # like `-m68040'.
13714 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13715 ;;
13716
13717 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13718 # PIC is the default for these OSes.
13719 ;;
13720
13721 mingw* | pw32* | os2*)
13722 # This hack is so that the source file can tell whether it is being
13723 # built for inclusion in a dll (and should export symbols for example).
13724 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13725 ;;
13726
13727 darwin* | rhapsody*)
13728 # PIC is the default on this platform
13729 # Common symbols not allowed in MH_DYLIB files
13730 lt_prog_compiler_pic_F77='-fno-common'
13731 ;;
13732
13733 interix3*)
13734 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13735 # Instead, we relocate shared libraries at runtime.
13736 ;;
13737
13738 msdosdjgpp*)
13739 # Just because we use GCC doesn't mean we suddenly get shared libraries
13740 # on systems that don't support them.
13741 lt_prog_compiler_can_build_shared_F77=no
13742 enable_shared=no
13743 ;;
13744
13745 sysv4*MP*)
13746 if test -d /usr/nec; then
13747 lt_prog_compiler_pic_F77=-Kconform_pic
13748 fi
13749 ;;
13750
13751 hpux*)
13752 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13753 # not for PA HP-UX.
13754 case $host_cpu in
13755 hppa*64*|ia64*)
13756 # +Z the default
13757 ;;
13758 *)
13759 lt_prog_compiler_pic_F77='-fPIC'
13760 ;;
13761 esac
13762 ;;
13763
13764 *)
13765 lt_prog_compiler_pic_F77='-fPIC'
13766 ;;
13767 esac
13768 else
13769 # PORTME Check for flag to pass linker flags through the system compiler.
13770 case $host_os in
13771 aix*)
13772 lt_prog_compiler_wl_F77='-Wl,'
13773 if test "$host_cpu" = ia64; then
13774 # AIX 5 now supports IA64 processor
13775 lt_prog_compiler_static_F77='-Bstatic'
13776 else
13777 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13778 fi
13779 ;;
13780 darwin*)
13781 # PIC is the default on this platform
13782 # Common symbols not allowed in MH_DYLIB files
13783 case $cc_basename in
13784 xlc*)
13785 lt_prog_compiler_pic_F77='-qnocommon'
13786 lt_prog_compiler_wl_F77='-Wl,'
13787 ;;
13788 esac
13789 ;;
13790
13791 mingw* | pw32* | os2*)
13792 # This hack is so that the source file can tell whether it is being
13793 # built for inclusion in a dll (and should export symbols for example).
13794 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13795 ;;
13796
13797 hpux9* | hpux10* | hpux11*)
13798 lt_prog_compiler_wl_F77='-Wl,'
13799 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13800 # not for PA HP-UX.
13801 case $host_cpu in
13802 hppa*64*|ia64*)
13803 # +Z the default
13804 ;;
13805 *)
13806 lt_prog_compiler_pic_F77='+Z'
13807 ;;
13808 esac
13809 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13810 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13811 ;;
13812
13813 irix5* | irix6* | nonstopux*)
13814 lt_prog_compiler_wl_F77='-Wl,'
13815 # PIC (with -KPIC) is the default.
13816 lt_prog_compiler_static_F77='-non_shared'
13817 ;;
13818
13819 newsos6)
13820 lt_prog_compiler_pic_F77='-KPIC'
13821 lt_prog_compiler_static_F77='-Bstatic'
13822 ;;
13823
1dce02f2 13824 linux* | k*bsd*-gnu)
d9898ee8 13825 case $cc_basename in
13826 icc* | ecc*)
13827 lt_prog_compiler_wl_F77='-Wl,'
13828 lt_prog_compiler_pic_F77='-KPIC'
13829 lt_prog_compiler_static_F77='-static'
13830 ;;
13831 pgcc* | pgf77* | pgf90* | pgf95*)
13832 # Portland Group compilers (*not* the Pentium gcc compiler,
13833 # which looks to be a dead project)
13834 lt_prog_compiler_wl_F77='-Wl,'
13835 lt_prog_compiler_pic_F77='-fpic'
13836 lt_prog_compiler_static_F77='-Bstatic'
13837 ;;
13838 ccc*)
13839 lt_prog_compiler_wl_F77='-Wl,'
13840 # All Alpha code is PIC.
13841 lt_prog_compiler_static_F77='-non_shared'
13842 ;;
13843 esac
13844 ;;
13845
13846 osf3* | osf4* | osf5*)
13847 lt_prog_compiler_wl_F77='-Wl,'
13848 # All OSF/1 code is PIC.
13849 lt_prog_compiler_static_F77='-non_shared'
13850 ;;
13851
13852 solaris*)
13853 lt_prog_compiler_pic_F77='-KPIC'
13854 lt_prog_compiler_static_F77='-Bstatic'
13855 case $cc_basename in
13856 f77* | f90* | f95*)
13857 lt_prog_compiler_wl_F77='-Qoption ld ';;
13858 *)
13859 lt_prog_compiler_wl_F77='-Wl,';;
13860 esac
13861 ;;
13862
13863 sunos4*)
13864 lt_prog_compiler_wl_F77='-Qoption ld '
13865 lt_prog_compiler_pic_F77='-PIC'
13866 lt_prog_compiler_static_F77='-Bstatic'
13867 ;;
13868
13869 sysv4 | sysv4.2uw2* | sysv4.3*)
13870 lt_prog_compiler_wl_F77='-Wl,'
13871 lt_prog_compiler_pic_F77='-KPIC'
13872 lt_prog_compiler_static_F77='-Bstatic'
13873 ;;
13874
13875 sysv4*MP*)
13876 if test -d /usr/nec ;then
13877 lt_prog_compiler_pic_F77='-Kconform_pic'
13878 lt_prog_compiler_static_F77='-Bstatic'
13879 fi
13880 ;;
13881
13882 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13883 lt_prog_compiler_wl_F77='-Wl,'
13884 lt_prog_compiler_pic_F77='-KPIC'
13885 lt_prog_compiler_static_F77='-Bstatic'
13886 ;;
13887
13888 unicos*)
13889 lt_prog_compiler_wl_F77='-Wl,'
13890 lt_prog_compiler_can_build_shared_F77=no
13891 ;;
13892
13893 uts4*)
13894 lt_prog_compiler_pic_F77='-pic'
13895 lt_prog_compiler_static_F77='-Bstatic'
13896 ;;
13897
13898 *)
13899 lt_prog_compiler_can_build_shared_F77=no
13900 ;;
13901 esac
13902 fi
13903
dd184caf 13904{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13905echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d9898ee8 13906
13907#
13908# Check to make sure the PIC flag actually works.
13909#
13910if test -n "$lt_prog_compiler_pic_F77"; then
13911
dd184caf 13912{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13913echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
d9898ee8 13914if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13916else
13917 lt_prog_compiler_pic_works_F77=no
13918 ac_outfile=conftest.$ac_objext
13919 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13920 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13921 # Insert the option either (1) after the last *FLAGS variable, or
13922 # (2) before a word containing "conftest.", or (3) at the end.
13923 # Note that $ac_compile itself does not contain backslashes and begins
13924 # with a dollar sign (not a hyphen), so the echo should work correctly.
13925 # The option is referenced via a variable to avoid confusing sed.
13926 lt_compile=`echo "$ac_compile" | $SED \
13927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13929 -e 's:$: $lt_compiler_flag:'`
1dce02f2 13930 (eval echo "\"\$as_me:13930: $lt_compile\"" >&5)
d9898ee8 13931 (eval "$lt_compile" 2>conftest.err)
13932 ac_status=$?
13933 cat conftest.err >&5
1dce02f2 13934 echo "$as_me:13934: \$? = $ac_status" >&5
d9898ee8 13935 if (exit $ac_status) && test -s "$ac_outfile"; then
13936 # The compiler can only warn and ignore the option if not recognized
13937 # So say no if there are warnings other than the usual output.
13938 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13940 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13941 lt_prog_compiler_pic_works_F77=yes
13942 fi
13943 fi
13944 $rm conftest*
13945
13946fi
dd184caf 13947{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13948echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d9898ee8 13949
13950if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13951 case $lt_prog_compiler_pic_F77 in
13952 "" | " "*) ;;
13953 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13954 esac
13955else
13956 lt_prog_compiler_pic_F77=
13957 lt_prog_compiler_can_build_shared_F77=no
13958fi
13959
13960fi
13961case $host_os in
13962 # For platforms which do not support PIC, -DPIC is meaningless:
13963 *djgpp*)
13964 lt_prog_compiler_pic_F77=
13965 ;;
13966 *)
13967 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13968 ;;
13969esac
13970
13971#
13972# Check to make sure the static flag actually works.
13973#
13974wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
dd184caf 13975{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13976echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 13977if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13979else
13980 lt_prog_compiler_static_works_F77=no
13981 save_LDFLAGS="$LDFLAGS"
13982 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13983 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13984 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13985 # The linker can only warn and ignore the option if not recognized
13986 # So say no if there are warnings
13987 if test -s conftest.err; then
13988 # Append any errors to the config.log.
13989 cat conftest.err 1>&5
13990 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13992 if diff conftest.exp conftest.er2 >/dev/null; then
13993 lt_prog_compiler_static_works_F77=yes
13994 fi
13995 else
13996 lt_prog_compiler_static_works_F77=yes
13997 fi
13998 fi
13999 $rm conftest*
14000 LDFLAGS="$save_LDFLAGS"
14001
14002fi
dd184caf 14003{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14004echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
d9898ee8 14005
14006if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14007 :
14008else
14009 lt_prog_compiler_static_F77=
14010fi
14011
14012
dd184caf 14013{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14014echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 14015if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14017else
14018 lt_cv_prog_compiler_c_o_F77=no
14019 $rm -r conftest 2>/dev/null
14020 mkdir conftest
14021 cd conftest
14022 mkdir out
14023 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14024
14025 lt_compiler_flag="-o out/conftest2.$ac_objext"
14026 # Insert the option either (1) after the last *FLAGS variable, or
14027 # (2) before a word containing "conftest.", or (3) at the end.
14028 # Note that $ac_compile itself does not contain backslashes and begins
14029 # with a dollar sign (not a hyphen), so the echo should work correctly.
14030 lt_compile=`echo "$ac_compile" | $SED \
14031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14033 -e 's:$: $lt_compiler_flag:'`
1dce02f2 14034 (eval echo "\"\$as_me:14034: $lt_compile\"" >&5)
d9898ee8 14035 (eval "$lt_compile" 2>out/conftest.err)
14036 ac_status=$?
14037 cat out/conftest.err >&5
1dce02f2 14038 echo "$as_me:14038: \$? = $ac_status" >&5
d9898ee8 14039 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14040 then
14041 # The compiler can only warn and ignore the option if not recognized
14042 # So say no if there are warnings
14043 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14044 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14045 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14046 lt_cv_prog_compiler_c_o_F77=yes
14047 fi
14048 fi
14049 chmod u+w . 2>&5
14050 $rm conftest*
14051 # SGI C++ compiler will create directory out/ii_files/ for
14052 # template instantiation
14053 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14054 $rm out/* && rmdir out
14055 cd ..
14056 rmdir conftest
14057 $rm conftest*
14058
14059fi
dd184caf 14060{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14061echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d9898ee8 14062
14063
14064hard_links="nottested"
14065if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14066 # do not overwrite the value of need_locks provided by the user
dd184caf 14067 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14068echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 14069 hard_links=yes
14070 $rm conftest*
14071 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14072 touch conftest.a
14073 ln conftest.a conftest.b 2>&5 || hard_links=no
14074 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 14075 { echo "$as_me:$LINENO: result: $hard_links" >&5
14076echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 14077 if test "$hard_links" = no; then
14078 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14079echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14080 need_locks=warn
14081 fi
14082else
14083 need_locks=no
14084fi
14085
dd184caf 14086{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14087echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 14088
14089 runpath_var=
14090 allow_undefined_flag_F77=
14091 enable_shared_with_static_runtimes_F77=no
14092 archive_cmds_F77=
14093 archive_expsym_cmds_F77=
14094 old_archive_From_new_cmds_F77=
14095 old_archive_from_expsyms_cmds_F77=
14096 export_dynamic_flag_spec_F77=
14097 whole_archive_flag_spec_F77=
14098 thread_safe_flag_spec_F77=
14099 hardcode_libdir_flag_spec_F77=
14100 hardcode_libdir_flag_spec_ld_F77=
14101 hardcode_libdir_separator_F77=
14102 hardcode_direct_F77=no
14103 hardcode_minus_L_F77=no
14104 hardcode_shlibpath_var_F77=unsupported
14105 link_all_deplibs_F77=unknown
14106 hardcode_automatic_F77=no
14107 module_cmds_F77=
14108 module_expsym_cmds_F77=
14109 always_export_symbols_F77=no
14110 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14111 # include_expsyms should be a list of space-separated symbols to be *always*
14112 # included in the symbol list
14113 include_expsyms_F77=
14114 # exclude_expsyms can be an extended regexp of symbols to exclude
14115 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14116 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14117 # as well as any symbol that contains `d'.
14118 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14119 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14120 # platforms (ab)use it in PIC code, but their linkers get confused if
14121 # the symbol is explicitly referenced. Since portable code cannot
14122 # rely on this symbol name, it's probably fine to never include it in
14123 # preloaded symbol tables.
14124 extract_expsyms_cmds=
14125 # Just being paranoid about ensuring that cc_basename is set.
14126 for cc_temp in $compiler""; do
14127 case $cc_temp in
14128 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14129 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14130 \-*) ;;
14131 *) break;;
14132 esac
14133done
14134cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14135
14136 case $host_os in
14137 cygwin* | mingw* | pw32*)
14138 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14139 # When not using gcc, we currently assume that we are using
14140 # Microsoft Visual C++.
14141 if test "$GCC" != yes; then
14142 with_gnu_ld=no
14143 fi
14144 ;;
14145 interix*)
14146 # we just hope/assume this is gcc and not c89 (= MSVC++)
14147 with_gnu_ld=yes
14148 ;;
14149 openbsd*)
14150 with_gnu_ld=no
14151 ;;
14152 esac
14153
14154 ld_shlibs_F77=yes
14155 if test "$with_gnu_ld" = yes; then
14156 # If archive_cmds runs LD, not CC, wlarc should be empty
14157 wlarc='${wl}'
14158
14159 # Set some defaults for GNU ld with shared library support. These
14160 # are reset later if shared libraries are not supported. Putting them
14161 # here allows them to be overridden if necessary.
14162 runpath_var=LD_RUN_PATH
14163 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14164 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14165 # ancient GNU ld didn't support --whole-archive et. al.
14166 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14167 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14168 else
14169 whole_archive_flag_spec_F77=
14170 fi
14171 supports_anon_versioning=no
14172 case `$LD -v 2>/dev/null` in
14173 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14174 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14175 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14176 *\ 2.11.*) ;; # other 2.11 versions
14177 *) supports_anon_versioning=yes ;;
14178 esac
14179
14180 # See if GNU ld supports shared libraries.
14181 case $host_os in
14182 aix3* | aix4* | aix5*)
14183 # On AIX/PPC, the GNU linker is very broken
14184 if test "$host_cpu" != ia64; then
14185 ld_shlibs_F77=no
14186 cat <<EOF 1>&2
14187
14188*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14189*** to be unable to reliably create shared libraries on AIX.
14190*** Therefore, libtool is disabling shared libraries support. If you
14191*** really care for shared libraries, you may want to modify your PATH
14192*** so that a non-GNU linker is found, and then restart.
14193
14194EOF
14195 fi
14196 ;;
14197
14198 amigaos*)
14199 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)'
14200 hardcode_libdir_flag_spec_F77='-L$libdir'
14201 hardcode_minus_L_F77=yes
14202
14203 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14204 # that the semantics of dynamic libraries on AmigaOS, at least up
14205 # to version 4, is to share data among multiple programs linked
14206 # with the same dynamic library. Since this doesn't match the
14207 # behavior of shared libraries on other platforms, we can't use
14208 # them.
14209 ld_shlibs_F77=no
14210 ;;
14211
14212 beos*)
14213 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14214 allow_undefined_flag_F77=unsupported
14215 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14216 # support --undefined. This deserves some investigation. FIXME
14217 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14218 else
14219 ld_shlibs_F77=no
14220 fi
14221 ;;
14222
14223 cygwin* | mingw* | pw32*)
14224 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14225 # as there is no search path for DLLs.
14226 hardcode_libdir_flag_spec_F77='-L$libdir'
14227 allow_undefined_flag_F77=unsupported
14228 always_export_symbols_F77=no
14229 enable_shared_with_static_runtimes_F77=yes
14230 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14231
14232 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14233 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14234 # If the export-symbols file already is a .def file (1st line
14235 # is EXPORTS), use it as is; otherwise, prepend...
14236 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14237 cp $export_symbols $output_objdir/$soname.def;
14238 else
14239 echo EXPORTS > $output_objdir/$soname.def;
14240 cat $export_symbols >> $output_objdir/$soname.def;
14241 fi~
14242 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14243 else
14244 ld_shlibs_F77=no
14245 fi
14246 ;;
14247
14248 interix3*)
14249 hardcode_direct_F77=no
14250 hardcode_shlibpath_var_F77=no
14251 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14252 export_dynamic_flag_spec_F77='${wl}-E'
14253 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14254 # Instead, shared libraries are loaded at an image base (0x10000000 by
14255 # default) and relocated if they conflict, which is a slow very memory
14256 # consuming and fragmenting process. To avoid this, we pick a random,
14257 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14258 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14259 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'
14260 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'
14261 ;;
14262
1dce02f2 14263 linux* | k*bsd*-gnu)
d9898ee8 14264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14265 tmp_addflag=
14266 case $cc_basename,$host_cpu in
14267 pgcc*) # Portland Group C compiler
14268 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'
14269 tmp_addflag=' $pic_flag'
14270 ;;
14271 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14272 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'
14273 tmp_addflag=' $pic_flag -Mnomain' ;;
14274 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14275 tmp_addflag=' -i_dynamic' ;;
14276 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14277 tmp_addflag=' -i_dynamic -nofor_main' ;;
14278 ifc* | ifort*) # Intel Fortran compiler
14279 tmp_addflag=' -nofor_main' ;;
14280 esac
14281 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14282
14283 if test $supports_anon_versioning = yes; then
14284 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14285 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14286 $echo "local: *; };" >> $output_objdir/$libname.ver~
14287 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14288 fi
1dce02f2 14289 link_all_deplibs_F77=no
d9898ee8 14290 else
14291 ld_shlibs_F77=no
14292 fi
14293 ;;
14294
1dce02f2 14295 netbsd* | netbsdelf*-gnu)
d9898ee8 14296 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14297 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14298 wlarc=
14299 else
14300 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14301 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14302 fi
14303 ;;
14304
14305 solaris*)
14306 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14307 ld_shlibs_F77=no
14308 cat <<EOF 1>&2
14309
14310*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14311*** create shared libraries on Solaris systems. Therefore, libtool
14312*** is disabling shared libraries support. We urge you to upgrade GNU
14313*** binutils to release 2.9.1 or newer. Another option is to modify
14314*** your PATH or compiler configuration so that the native linker is
14315*** used, and then restart.
14316
14317EOF
14318 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14319 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14320 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14321 else
14322 ld_shlibs_F77=no
14323 fi
14324 ;;
14325
14326 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14327 case `$LD -v 2>&1` in
14328 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14329 ld_shlibs_F77=no
14330 cat <<_LT_EOF 1>&2
14331
14332*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14333*** reliably create shared libraries on SCO systems. Therefore, libtool
14334*** is disabling shared libraries support. We urge you to upgrade GNU
14335*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14336*** your PATH or compiler configuration so that the native linker is
14337*** used, and then restart.
14338
14339_LT_EOF
14340 ;;
14341 *)
14342 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14343 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14344 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14345 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14346 else
14347 ld_shlibs_F77=no
14348 fi
14349 ;;
14350 esac
14351 ;;
14352
14353 sunos4*)
14354 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14355 wlarc=
14356 hardcode_direct_F77=yes
14357 hardcode_shlibpath_var_F77=no
14358 ;;
14359
14360 *)
14361 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14362 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14363 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14364 else
14365 ld_shlibs_F77=no
14366 fi
14367 ;;
14368 esac
14369
14370 if test "$ld_shlibs_F77" = no; then
14371 runpath_var=
14372 hardcode_libdir_flag_spec_F77=
14373 export_dynamic_flag_spec_F77=
14374 whole_archive_flag_spec_F77=
14375 fi
14376 else
14377 # PORTME fill in a description of your system's linker (not GNU ld)
14378 case $host_os in
14379 aix3*)
14380 allow_undefined_flag_F77=unsupported
14381 always_export_symbols_F77=yes
14382 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'
14383 # Note: this linker hardcodes the directories in LIBPATH if there
14384 # are no directories specified by -L.
14385 hardcode_minus_L_F77=yes
14386 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14387 # Neither direct hardcoding nor static linking is supported with a
14388 # broken collect2.
14389 hardcode_direct_F77=unsupported
14390 fi
14391 ;;
14392
14393 aix4* | aix5*)
14394 if test "$host_cpu" = ia64; then
14395 # On IA64, the linker does run time linking by default, so we don't
14396 # have to do anything special.
14397 aix_use_runtimelinking=no
14398 exp_sym_flag='-Bexport'
14399 no_entry_flag=""
14400 else
14401 # If we're using GNU nm, then we don't want the "-C" option.
14402 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14403 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14404 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'
14405 else
14406 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'
14407 fi
14408 aix_use_runtimelinking=no
14409
14410 # Test if we are trying to use run time linking or normal
14411 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14412 # need to do runtime linking.
14413 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14414 for ld_flag in $LDFLAGS; do
14415 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14416 aix_use_runtimelinking=yes
14417 break
14418 fi
14419 done
14420 ;;
14421 esac
14422
14423 exp_sym_flag='-bexport'
14424 no_entry_flag='-bnoentry'
14425 fi
14426
14427 # When large executables or shared objects are built, AIX ld can
14428 # have problems creating the table of contents. If linking a library
14429 # or program results in "error TOC overflow" add -mminimal-toc to
14430 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14431 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14432
14433 archive_cmds_F77=''
14434 hardcode_direct_F77=yes
14435 hardcode_libdir_separator_F77=':'
14436 link_all_deplibs_F77=yes
14437
14438 if test "$GCC" = yes; then
14439 case $host_os in aix4.[012]|aix4.[012].*)
14440 # We only want to do this on AIX 4.2 and lower, the check
14441 # below for broken collect2 doesn't work under 4.3+
14442 collect2name=`${CC} -print-prog-name=collect2`
14443 if test -f "$collect2name" && \
14444 strings "$collect2name" | grep resolve_lib_name >/dev/null
14445 then
14446 # We have reworked collect2
14447 hardcode_direct_F77=yes
14448 else
14449 # We have old collect2
14450 hardcode_direct_F77=unsupported
14451 # It fails to find uninstalled libraries when the uninstalled
14452 # path is not listed in the libpath. Setting hardcode_minus_L
14453 # to unsupported forces relinking
14454 hardcode_minus_L_F77=yes
14455 hardcode_libdir_flag_spec_F77='-L$libdir'
14456 hardcode_libdir_separator_F77=
14457 fi
14458 ;;
14459 esac
14460 shared_flag='-shared'
14461 if test "$aix_use_runtimelinking" = yes; then
14462 shared_flag="$shared_flag "'${wl}-G'
14463 fi
14464 else
14465 # not using gcc
14466 if test "$host_cpu" = ia64; then
14467 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14468 # chokes on -Wl,-G. The following line is correct:
14469 shared_flag='-G'
14470 else
14471 if test "$aix_use_runtimelinking" = yes; then
14472 shared_flag='${wl}-G'
14473 else
14474 shared_flag='${wl}-bM:SRE'
14475 fi
14476 fi
14477 fi
14478
14479 # It seems that -bexpall does not export symbols beginning with
14480 # underscore (_), so it is better to generate a list of symbols to export.
14481 always_export_symbols_F77=yes
14482 if test "$aix_use_runtimelinking" = yes; then
14483 # Warning - without using the other runtime loading flags (-brtl),
14484 # -berok will link without error, but may produce a broken library.
14485 allow_undefined_flag_F77='-berok'
14486 # Determine the default libpath from the value encoded in an empty executable.
14487 cat >conftest.$ac_ext <<_ACEOF
14488 program main
14489
14490 end
14491_ACEOF
14492rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14493if { (ac_try="$ac_link"
14494case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14497esac
14498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_link") 2>conftest.er1
d9898ee8 14500 ac_status=$?
14501 grep -v '^ *+' conftest.er1 >conftest.err
14502 rm -f conftest.er1
14503 cat conftest.err >&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14505 (exit $ac_status); } && {
14506 test -z "$ac_f77_werror_flag" ||
14507 test ! -s conftest.err
14508 } && test -s conftest$ac_exeext &&
14509 $as_test_x conftest$ac_exeext; then
d9898ee8 14510
14511aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14512}'`
14513# Check for a 64-bit object if we didn't find anything.
14514if 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; }
14515}'`; fi
14516else
14517 echo "$as_me: failed program was:" >&5
14518sed 's/^/| /' conftest.$ac_ext >&5
14519
dd184caf 14520
d9898ee8 14521fi
dd184caf 14522
14523rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14524 conftest$ac_exeext conftest.$ac_ext
14525if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14526
14527 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14528 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"
14529 else
14530 if test "$host_cpu" = ia64; then
14531 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14532 allow_undefined_flag_F77="-z nodefs"
14533 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"
14534 else
14535 # Determine the default libpath from the value encoded in an empty executable.
14536 cat >conftest.$ac_ext <<_ACEOF
14537 program main
14538
14539 end
14540_ACEOF
14541rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14542if { (ac_try="$ac_link"
14543case "(($ac_try" in
14544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545 *) ac_try_echo=$ac_try;;
14546esac
14547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548 (eval "$ac_link") 2>conftest.er1
d9898ee8 14549 ac_status=$?
14550 grep -v '^ *+' conftest.er1 >conftest.err
14551 rm -f conftest.er1
14552 cat conftest.err >&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14554 (exit $ac_status); } && {
14555 test -z "$ac_f77_werror_flag" ||
14556 test ! -s conftest.err
14557 } && test -s conftest$ac_exeext &&
14558 $as_test_x conftest$ac_exeext; then
d9898ee8 14559
14560aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14561}'`
14562# Check for a 64-bit object if we didn't find anything.
14563if 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; }
14564}'`; fi
14565else
14566 echo "$as_me: failed program was:" >&5
14567sed 's/^/| /' conftest.$ac_ext >&5
14568
dd184caf 14569
d9898ee8 14570fi
dd184caf 14571
14572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14573 conftest$ac_exeext conftest.$ac_ext
14574if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14575
14576 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14577 # Warning - without using the other run time loading flags,
14578 # -berok will link without error, but may produce a broken library.
14579 no_undefined_flag_F77=' ${wl}-bernotok'
14580 allow_undefined_flag_F77=' ${wl}-berok'
14581 # Exported symbols can be pulled into shared objects from archives
14582 whole_archive_flag_spec_F77='$convenience'
14583 archive_cmds_need_lc_F77=yes
14584 # This is similar to how AIX traditionally builds its shared libraries.
14585 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'
14586 fi
14587 fi
14588 ;;
14589
14590 amigaos*)
14591 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)'
14592 hardcode_libdir_flag_spec_F77='-L$libdir'
14593 hardcode_minus_L_F77=yes
14594 # see comment about different semantics on the GNU ld section
14595 ld_shlibs_F77=no
14596 ;;
14597
14598 bsdi[45]*)
14599 export_dynamic_flag_spec_F77=-rdynamic
14600 ;;
14601
14602 cygwin* | mingw* | pw32*)
14603 # When not using gcc, we currently assume that we are using
14604 # Microsoft Visual C++.
14605 # hardcode_libdir_flag_spec is actually meaningless, as there is
14606 # no search path for DLLs.
14607 hardcode_libdir_flag_spec_F77=' '
14608 allow_undefined_flag_F77=unsupported
14609 # Tell ltmain to make .lib files, not .a files.
14610 libext=lib
14611 # Tell ltmain to make .dll files, not .so files.
14612 shrext_cmds=".dll"
14613 # FIXME: Setting linknames here is a bad hack.
14614 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14615 # The linker will automatically build a .lib file if we build a DLL.
14616 old_archive_From_new_cmds_F77='true'
14617 # FIXME: Should let the user specify the lib program.
14618 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14619 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14620 enable_shared_with_static_runtimes_F77=yes
14621 ;;
14622
14623 darwin* | rhapsody*)
14624 case $host_os in
14625 rhapsody* | darwin1.[012])
14626 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14627 ;;
14628 *) # Darwin 1.3 on
14629 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14630 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14631 else
14632 case ${MACOSX_DEPLOYMENT_TARGET} in
14633 10.[012])
14634 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14635 ;;
14636 10.*)
14637 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14638 ;;
14639 esac
14640 fi
14641 ;;
14642 esac
14643 archive_cmds_need_lc_F77=no
14644 hardcode_direct_F77=no
14645 hardcode_automatic_F77=yes
14646 hardcode_shlibpath_var_F77=unsupported
14647 whole_archive_flag_spec_F77=''
14648 link_all_deplibs_F77=yes
14649 if test "$GCC" = yes ; then
14650 output_verbose_link_cmd='echo'
14651 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14652 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14653 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14654 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}'
14655 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}'
14656 else
14657 case $cc_basename in
14658 xlc*)
14659 output_verbose_link_cmd='echo'
14660 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14661 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14662 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14663 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}'
14664 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}'
14665 ;;
14666 *)
14667 ld_shlibs_F77=no
14668 ;;
14669 esac
14670 fi
14671 ;;
14672
14673 dgux*)
14674 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14675 hardcode_libdir_flag_spec_F77='-L$libdir'
14676 hardcode_shlibpath_var_F77=no
14677 ;;
14678
14679 freebsd1*)
14680 ld_shlibs_F77=no
14681 ;;
14682
14683 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14684 # support. Future versions do this automatically, but an explicit c++rt0.o
14685 # does not break anything, and helps significantly (at the cost of a little
14686 # extra space).
14687 freebsd2.2*)
14688 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14689 hardcode_libdir_flag_spec_F77='-R$libdir'
14690 hardcode_direct_F77=yes
14691 hardcode_shlibpath_var_F77=no
14692 ;;
14693
14694 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14695 freebsd2*)
14696 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14697 hardcode_direct_F77=yes
14698 hardcode_minus_L_F77=yes
14699 hardcode_shlibpath_var_F77=no
14700 ;;
14701
14702 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1dce02f2 14703 freebsd* | dragonfly*)
d9898ee8 14704 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14705 hardcode_libdir_flag_spec_F77='-R$libdir'
14706 hardcode_direct_F77=yes
14707 hardcode_shlibpath_var_F77=no
14708 ;;
14709
14710 hpux9*)
14711 if test "$GCC" = yes; then
14712 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'
14713 else
14714 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'
14715 fi
14716 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14717 hardcode_libdir_separator_F77=:
14718 hardcode_direct_F77=yes
14719
14720 # hardcode_minus_L: Not really in the search PATH,
14721 # but as the default location of the library.
14722 hardcode_minus_L_F77=yes
14723 export_dynamic_flag_spec_F77='${wl}-E'
14724 ;;
14725
14726 hpux10*)
14727 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14728 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14729 else
14730 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14731 fi
14732 if test "$with_gnu_ld" = no; then
14733 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14734 hardcode_libdir_separator_F77=:
14735
14736 hardcode_direct_F77=yes
14737 export_dynamic_flag_spec_F77='${wl}-E'
14738
14739 # hardcode_minus_L: Not really in the search PATH,
14740 # but as the default location of the library.
14741 hardcode_minus_L_F77=yes
14742 fi
14743 ;;
14744
14745 hpux11*)
14746 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14747 case $host_cpu in
14748 hppa*64*)
14749 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14750 ;;
14751 ia64*)
14752 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14753 ;;
14754 *)
14755 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14756 ;;
14757 esac
14758 else
14759 case $host_cpu in
14760 hppa*64*)
14761 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14762 ;;
14763 ia64*)
14764 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14765 ;;
14766 *)
14767 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14768 ;;
14769 esac
14770 fi
14771 if test "$with_gnu_ld" = no; then
14772 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14773 hardcode_libdir_separator_F77=:
14774
14775 case $host_cpu in
14776 hppa*64*|ia64*)
14777 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14778 hardcode_direct_F77=no
14779 hardcode_shlibpath_var_F77=no
14780 ;;
14781 *)
14782 hardcode_direct_F77=yes
14783 export_dynamic_flag_spec_F77='${wl}-E'
14784
14785 # hardcode_minus_L: Not really in the search PATH,
14786 # but as the default location of the library.
14787 hardcode_minus_L_F77=yes
14788 ;;
14789 esac
14790 fi
14791 ;;
14792
14793 irix5* | irix6* | nonstopux*)
14794 if test "$GCC" = yes; then
14795 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'
14796 else
14797 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'
14798 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14799 fi
14800 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14801 hardcode_libdir_separator_F77=:
14802 link_all_deplibs_F77=yes
14803 ;;
14804
1dce02f2 14805 netbsd* | netbsdelf*-gnu)
d9898ee8 14806 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14807 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14808 else
14809 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14810 fi
14811 hardcode_libdir_flag_spec_F77='-R$libdir'
14812 hardcode_direct_F77=yes
14813 hardcode_shlibpath_var_F77=no
14814 ;;
14815
14816 newsos6)
14817 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14818 hardcode_direct_F77=yes
14819 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14820 hardcode_libdir_separator_F77=:
14821 hardcode_shlibpath_var_F77=no
14822 ;;
14823
14824 openbsd*)
14825 hardcode_direct_F77=yes
14826 hardcode_shlibpath_var_F77=no
14827 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14828 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14829 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14830 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14831 export_dynamic_flag_spec_F77='${wl}-E'
14832 else
14833 case $host_os in
14834 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14835 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14836 hardcode_libdir_flag_spec_F77='-R$libdir'
14837 ;;
14838 *)
14839 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14840 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14841 ;;
14842 esac
14843 fi
14844 ;;
14845
14846 os2*)
14847 hardcode_libdir_flag_spec_F77='-L$libdir'
14848 hardcode_minus_L_F77=yes
14849 allow_undefined_flag_F77=unsupported
14850 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'
14851 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14852 ;;
14853
14854 osf3*)
14855 if test "$GCC" = yes; then
14856 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14857 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'
14858 else
14859 allow_undefined_flag_F77=' -expect_unresolved \*'
14860 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'
14861 fi
14862 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14863 hardcode_libdir_separator_F77=:
14864 ;;
14865
14866 osf4* | osf5*) # as osf3* with the addition of -msym flag
14867 if test "$GCC" = yes; then
14868 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14869 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'
14870 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14871 else
14872 allow_undefined_flag_F77=' -expect_unresolved \*'
14873 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'
14874 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~
14875 $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'
14876
14877 # Both c and cxx compiler support -rpath directly
14878 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14879 fi
14880 hardcode_libdir_separator_F77=:
14881 ;;
14882
14883 solaris*)
14884 no_undefined_flag_F77=' -z text'
14885 if test "$GCC" = yes; then
14886 wlarc='${wl}'
14887 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14888 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14889 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14890 else
14891 wlarc=''
14892 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14893 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14894 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14895 fi
14896 hardcode_libdir_flag_spec_F77='-R$libdir'
14897 hardcode_shlibpath_var_F77=no
14898 case $host_os in
14899 solaris2.[0-5] | solaris2.[0-5].*) ;;
14900 *)
14901 # The compiler driver will combine linker options so we
14902 # cannot just pass the convience library names through
14903 # without $wl, iff we do not link with $LD.
14904 # Luckily, gcc supports the same syntax we need for Sun Studio.
14905 # Supported since Solaris 2.6 (maybe 2.5.1?)
14906 case $wlarc in
14907 '')
14908 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14909 *)
14910 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' ;;
14911 esac ;;
14912 esac
14913 link_all_deplibs_F77=yes
14914 ;;
14915
14916 sunos4*)
14917 if test "x$host_vendor" = xsequent; then
14918 # Use $CC to link under sequent, because it throws in some extra .o
14919 # files that make .init and .fini sections work.
14920 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14921 else
14922 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14923 fi
14924 hardcode_libdir_flag_spec_F77='-L$libdir'
14925 hardcode_direct_F77=yes
14926 hardcode_minus_L_F77=yes
14927 hardcode_shlibpath_var_F77=no
14928 ;;
14929
14930 sysv4)
14931 case $host_vendor in
14932 sni)
14933 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14934 hardcode_direct_F77=yes # is this really true???
14935 ;;
14936 siemens)
14937 ## LD is ld it makes a PLAMLIB
14938 ## CC just makes a GrossModule.
14939 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14940 reload_cmds_F77='$CC -r -o $output$reload_objs'
14941 hardcode_direct_F77=no
14942 ;;
14943 motorola)
14944 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14945 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14946 ;;
14947 esac
14948 runpath_var='LD_RUN_PATH'
14949 hardcode_shlibpath_var_F77=no
14950 ;;
14951
14952 sysv4.3*)
14953 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14954 hardcode_shlibpath_var_F77=no
14955 export_dynamic_flag_spec_F77='-Bexport'
14956 ;;
14957
14958 sysv4*MP*)
14959 if test -d /usr/nec; then
14960 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14961 hardcode_shlibpath_var_F77=no
14962 runpath_var=LD_RUN_PATH
14963 hardcode_runpath_var=yes
14964 ld_shlibs_F77=yes
14965 fi
14966 ;;
14967
14968 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14969 no_undefined_flag_F77='${wl}-z,text'
14970 archive_cmds_need_lc_F77=no
14971 hardcode_shlibpath_var_F77=no
14972 runpath_var='LD_RUN_PATH'
14973
14974 if test "$GCC" = yes; then
14975 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14976 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14977 else
14978 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14979 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14980 fi
14981 ;;
14982
14983 sysv5* | sco3.2v5* | sco5v6*)
14984 # Note: We can NOT use -z defs as we might desire, because we do not
14985 # link with -lc, and that would cause any symbols used from libc to
14986 # always be unresolved, which means just about no library would
14987 # ever link correctly. If we're not using GNU ld we use -z text
14988 # though, which does catch some bad symbols but isn't as heavy-handed
14989 # as -z defs.
14990 no_undefined_flag_F77='${wl}-z,text'
14991 allow_undefined_flag_F77='${wl}-z,nodefs'
14992 archive_cmds_need_lc_F77=no
14993 hardcode_shlibpath_var_F77=no
14994 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14995 hardcode_libdir_separator_F77=':'
14996 link_all_deplibs_F77=yes
14997 export_dynamic_flag_spec_F77='${wl}-Bexport'
14998 runpath_var='LD_RUN_PATH'
14999
15000 if test "$GCC" = yes; then
15001 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15002 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15003 else
15004 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15005 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15006 fi
15007 ;;
15008
15009 uts4*)
15010 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15011 hardcode_libdir_flag_spec_F77='-L$libdir'
15012 hardcode_shlibpath_var_F77=no
15013 ;;
15014
15015 *)
15016 ld_shlibs_F77=no
15017 ;;
15018 esac
15019 fi
15020
dd184caf 15021{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15022echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d9898ee8 15023test "$ld_shlibs_F77" = no && can_build_shared=no
15024
15025#
15026# Do we need to explicitly link libc?
15027#
15028case "x$archive_cmds_need_lc_F77" in
15029x|xyes)
15030 # Assume -lc should be added
15031 archive_cmds_need_lc_F77=yes
15032
15033 if test "$enable_shared" = yes && test "$GCC" = yes; then
15034 case $archive_cmds_F77 in
15035 *'~'*)
15036 # FIXME: we may have to deal with multi-command sequences.
15037 ;;
15038 '$CC '*)
15039 # Test whether the compiler implicitly links with -lc since on some
15040 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15041 # to ld, don't add -lc before -lgcc.
dd184caf 15042 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15043echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 15044 $rm conftest*
15045 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15046
15047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15048 (eval $ac_compile) 2>&5
15049 ac_status=$?
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); } 2>conftest.err; then
15052 soname=conftest
15053 lib=conftest
15054 libobjs=conftest.$ac_objext
15055 deplibs=
15056 wl=$lt_prog_compiler_wl_F77
15057 pic_flag=$lt_prog_compiler_pic_F77
15058 compiler_flags=-v
15059 linker_flags=-v
15060 verstring=
15061 output_objdir=.
15062 libname=conftest
15063 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15064 allow_undefined_flag_F77=
15065 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15066 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }
15070 then
15071 archive_cmds_need_lc_F77=no
15072 else
15073 archive_cmds_need_lc_F77=yes
15074 fi
15075 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15076 else
15077 cat conftest.err 1>&5
15078 fi
15079 $rm conftest*
dd184caf 15080 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15081echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d9898ee8 15082 ;;
15083 esac
15084 fi
15085 ;;
15086esac
15087
dd184caf 15088{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15089echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 15090library_names_spec=
15091libname_spec='lib$name'
15092soname_spec=
15093shrext_cmds=".so"
15094postinstall_cmds=
15095postuninstall_cmds=
15096finish_cmds=
15097finish_eval=
15098shlibpath_var=
15099shlibpath_overrides_runpath=unknown
15100version_type=none
15101dynamic_linker="$host_os ld.so"
15102sys_lib_dlsearch_path_spec="/lib /usr/lib"
15103if test "$GCC" = yes; then
15104 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15105 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15106 # if the path contains ";" then we assume it to be the separator
15107 # otherwise default to the standard path separator (i.e. ":") - it is
15108 # assumed that no part of a normal pathname contains ";" but that should
15109 # okay in the real world where ";" in dirpaths is itself problematic.
15110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15111 else
15112 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15113 fi
15114else
15115 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15116fi
15117need_lib_prefix=unknown
15118hardcode_into_libs=no
15119
15120# when you set need_version to no, make sure it does not cause -set_version
15121# flags to be left without arguments
15122need_version=unknown
15123
15124case $host_os in
15125aix3*)
15126 version_type=linux
15127 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15128 shlibpath_var=LIBPATH
15129
15130 # AIX 3 has no versioning support, so we append a major version to the name.
15131 soname_spec='${libname}${release}${shared_ext}$major'
15132 ;;
15133
15134aix4* | aix5*)
15135 version_type=linux
15136 need_lib_prefix=no
15137 need_version=no
15138 hardcode_into_libs=yes
15139 if test "$host_cpu" = ia64; then
15140 # AIX 5 supports IA64
15141 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15142 shlibpath_var=LD_LIBRARY_PATH
15143 else
15144 # With GCC up to 2.95.x, collect2 would create an import file
15145 # for dependence libraries. The import file would start with
15146 # the line `#! .'. This would cause the generated library to
15147 # depend on `.', always an invalid library. This was fixed in
15148 # development snapshots of GCC prior to 3.0.
15149 case $host_os in
15150 aix4 | aix4.[01] | aix4.[01].*)
15151 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15152 echo ' yes '
15153 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15154 :
15155 else
15156 can_build_shared=no
15157 fi
15158 ;;
15159 esac
15160 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15161 # soname into executable. Probably we can add versioning support to
15162 # collect2, so additional links can be useful in future.
15163 if test "$aix_use_runtimelinking" = yes; then
15164 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15165 # instead of lib<name>.a to let people know that these are not
15166 # typical AIX shared libraries.
15167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15168 else
15169 # We preserve .a as extension for shared libraries through AIX4.2
15170 # and later when we are not doing run time linking.
15171 library_names_spec='${libname}${release}.a $libname.a'
15172 soname_spec='${libname}${release}${shared_ext}$major'
15173 fi
15174 shlibpath_var=LIBPATH
15175 fi
15176 ;;
15177
15178amigaos*)
15179 library_names_spec='$libname.ixlibrary $libname.a'
15180 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15181 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'
15182 ;;
15183
15184beos*)
15185 library_names_spec='${libname}${shared_ext}'
15186 dynamic_linker="$host_os ld.so"
15187 shlibpath_var=LIBRARY_PATH
15188 ;;
15189
15190bsdi[45]*)
15191 version_type=linux
15192 need_version=no
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 soname_spec='${libname}${release}${shared_ext}$major'
15195 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15196 shlibpath_var=LD_LIBRARY_PATH
15197 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15198 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15199 # the default ld.so.conf also contains /usr/contrib/lib and
15200 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15201 # libtool to hard-code these into programs
15202 ;;
15203
15204cygwin* | mingw* | pw32*)
15205 version_type=windows
15206 shrext_cmds=".dll"
15207 need_version=no
15208 need_lib_prefix=no
15209
15210 case $GCC,$host_os in
15211 yes,cygwin* | yes,mingw* | yes,pw32*)
15212 library_names_spec='$libname.dll.a'
15213 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15214 postinstall_cmds='base_file=`basename \${file}`~
15215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15216 dldir=$destdir/`dirname \$dlpath`~
15217 test -d \$dldir || mkdir -p \$dldir~
15218 $install_prog $dir/$dlname \$dldir/$dlname~
15219 chmod a+x \$dldir/$dlname'
15220 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15221 dlpath=$dir/\$dldll~
15222 $rm \$dlpath'
15223 shlibpath_overrides_runpath=yes
15224
15225 case $host_os in
15226 cygwin*)
15227 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15228 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15229 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15230 ;;
15231 mingw*)
15232 # MinGW DLLs use traditional 'lib' prefix
15233 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15234 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15235 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15236 # It is most probably a Windows format PATH printed by
15237 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15238 # path with ; separators, and with drive letters. We can handle the
15239 # drive letters (cygwin fileutils understands them), so leave them,
15240 # especially as we might pass files found there to a mingw objdump,
15241 # which wouldn't understand a cygwinified path. Ahh.
15242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15243 else
15244 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15245 fi
15246 ;;
15247 pw32*)
15248 # pw32 DLLs use 'pw' prefix rather than 'lib'
15249 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15250 ;;
15251 esac
15252 ;;
15253
15254 *)
15255 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15256 ;;
15257 esac
15258 dynamic_linker='Win32 ld.exe'
15259 # FIXME: first we should search . and the directory the executable is in
15260 shlibpath_var=PATH
15261 ;;
15262
15263darwin* | rhapsody*)
15264 dynamic_linker="$host_os dyld"
15265 version_type=darwin
15266 need_lib_prefix=no
15267 need_version=no
15268 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15269 soname_spec='${libname}${release}${major}$shared_ext'
15270 shlibpath_overrides_runpath=yes
15271 shlibpath_var=DYLD_LIBRARY_PATH
15272 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15273 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15274 if test "$GCC" = yes; then
15275 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"`
15276 else
15277 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15278 fi
15279 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15280 ;;
15281
15282dgux*)
15283 version_type=linux
15284 need_lib_prefix=no
15285 need_version=no
15286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15287 soname_spec='${libname}${release}${shared_ext}$major'
15288 shlibpath_var=LD_LIBRARY_PATH
15289 ;;
15290
15291freebsd1*)
15292 dynamic_linker=no
15293 ;;
15294
d9898ee8 15295freebsd* | dragonfly*)
15296 # DragonFly does not have aout. When/if they implement a new
15297 # versioning mechanism, adjust this.
15298 if test -x /usr/bin/objformat; then
15299 objformat=`/usr/bin/objformat`
15300 else
15301 case $host_os in
15302 freebsd[123]*) objformat=aout ;;
15303 *) objformat=elf ;;
15304 esac
15305 fi
15306 version_type=freebsd-$objformat
15307 case $version_type in
15308 freebsd-elf*)
15309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15310 need_version=no
15311 need_lib_prefix=no
15312 ;;
15313 freebsd-*)
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15315 need_version=yes
15316 ;;
15317 esac
15318 shlibpath_var=LD_LIBRARY_PATH
15319 case $host_os in
15320 freebsd2*)
15321 shlibpath_overrides_runpath=yes
15322 ;;
15323 freebsd3.[01]* | freebsdelf3.[01]*)
15324 shlibpath_overrides_runpath=yes
15325 hardcode_into_libs=yes
15326 ;;
15327 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15328 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15329 shlibpath_overrides_runpath=no
15330 hardcode_into_libs=yes
15331 ;;
15332 freebsd*) # from 4.6 on
15333 shlibpath_overrides_runpath=yes
15334 hardcode_into_libs=yes
15335 ;;
15336 esac
15337 ;;
15338
15339gnu*)
15340 version_type=linux
15341 need_lib_prefix=no
15342 need_version=no
15343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15344 soname_spec='${libname}${release}${shared_ext}$major'
15345 shlibpath_var=LD_LIBRARY_PATH
15346 hardcode_into_libs=yes
15347 ;;
15348
15349hpux9* | hpux10* | hpux11*)
15350 # Give a soname corresponding to the major version so that dld.sl refuses to
15351 # link against other versions.
15352 version_type=sunos
15353 need_lib_prefix=no
15354 need_version=no
15355 case $host_cpu in
15356 ia64*)
15357 shrext_cmds='.so'
15358 hardcode_into_libs=yes
15359 dynamic_linker="$host_os dld.so"
15360 shlibpath_var=LD_LIBRARY_PATH
15361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15363 soname_spec='${libname}${release}${shared_ext}$major'
15364 if test "X$HPUX_IA64_MODE" = X32; then
15365 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15366 else
15367 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15368 fi
15369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15370 ;;
15371 hppa*64*)
15372 shrext_cmds='.sl'
15373 hardcode_into_libs=yes
15374 dynamic_linker="$host_os dld.sl"
15375 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378 soname_spec='${libname}${release}${shared_ext}$major'
15379 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15381 ;;
15382 *)
15383 shrext_cmds='.sl'
15384 dynamic_linker="$host_os dld.sl"
15385 shlibpath_var=SHLIB_PATH
15386 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15388 soname_spec='${libname}${release}${shared_ext}$major'
15389 ;;
15390 esac
15391 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15392 postinstall_cmds='chmod 555 $lib'
15393 ;;
15394
15395interix3*)
15396 version_type=linux
15397 need_lib_prefix=no
15398 need_version=no
15399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15400 soname_spec='${libname}${release}${shared_ext}$major'
15401 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15402 shlibpath_var=LD_LIBRARY_PATH
15403 shlibpath_overrides_runpath=no
15404 hardcode_into_libs=yes
15405 ;;
15406
15407irix5* | irix6* | nonstopux*)
15408 case $host_os in
15409 nonstopux*) version_type=nonstopux ;;
15410 *)
15411 if test "$lt_cv_prog_gnu_ld" = yes; then
15412 version_type=linux
15413 else
15414 version_type=irix
15415 fi ;;
15416 esac
15417 need_lib_prefix=no
15418 need_version=no
15419 soname_spec='${libname}${release}${shared_ext}$major'
15420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15421 case $host_os in
15422 irix5* | nonstopux*)
15423 libsuff= shlibsuff=
15424 ;;
15425 *)
15426 case $LD in # libtool.m4 will add one of these switches to LD
15427 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15428 libsuff= shlibsuff= libmagic=32-bit;;
15429 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15430 libsuff=32 shlibsuff=N32 libmagic=N32;;
15431 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15432 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15433 *) libsuff= shlibsuff= libmagic=never-match;;
15434 esac
15435 ;;
15436 esac
15437 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15438 shlibpath_overrides_runpath=no
15439 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15440 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15441 hardcode_into_libs=yes
15442 ;;
15443
15444# No shared lib support for Linux oldld, aout, or coff.
15445linux*oldld* | linux*aout* | linux*coff*)
15446 dynamic_linker=no
15447 ;;
15448
15449# This must be Linux ELF.
1dce02f2 15450linux* | k*bsd*-gnu)
d9898ee8 15451 version_type=linux
15452 need_lib_prefix=no
15453 need_version=no
15454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15455 soname_spec='${libname}${release}${shared_ext}$major'
15456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15457 shlibpath_var=LD_LIBRARY_PATH
15458 shlibpath_overrides_runpath=no
15459 # This implies no fast_install, which is unacceptable.
15460 # Some rework will be needed to allow for fast_install
15461 # before this can be enabled.
15462 hardcode_into_libs=yes
15463
d9898ee8 15464 # Append ld.so.conf contents to the search path
15465 if test -f /etc/ld.so.conf; then
1dce02f2 15466 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15467 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
d9898ee8 15468 fi
15469
15470 # We used to test for /lib/ld.so.1 and disable shared libraries on
15471 # powerpc, because MkLinux only supported shared libraries with the
15472 # GNU dynamic linker. Since this was broken with cross compilers,
15473 # most powerpc-linux boxes support dynamic linking these days and
15474 # people can always --disable-shared, the test was removed, and we
15475 # assume the GNU/Linux dynamic linker is in use.
15476 dynamic_linker='GNU/Linux ld.so'
15477 ;;
15478
1dce02f2 15479netbsdelf*-gnu)
d9898ee8 15480 version_type=linux
15481 need_lib_prefix=no
15482 need_version=no
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15484 soname_spec='${libname}${release}${shared_ext}$major'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 shlibpath_overrides_runpath=no
15487 hardcode_into_libs=yes
1dce02f2 15488 dynamic_linker='NetBSD ld.elf_so'
d9898ee8 15489 ;;
15490
15491netbsd*)
15492 version_type=sunos
15493 need_lib_prefix=no
15494 need_version=no
15495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15498 dynamic_linker='NetBSD (a.out) ld.so'
15499 else
15500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15501 soname_spec='${libname}${release}${shared_ext}$major'
15502 dynamic_linker='NetBSD ld.elf_so'
15503 fi
15504 shlibpath_var=LD_LIBRARY_PATH
15505 shlibpath_overrides_runpath=yes
15506 hardcode_into_libs=yes
15507 ;;
15508
15509newsos6)
15510 version_type=linux
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15512 shlibpath_var=LD_LIBRARY_PATH
15513 shlibpath_overrides_runpath=yes
15514 ;;
15515
15516nto-qnx*)
15517 version_type=linux
15518 need_lib_prefix=no
15519 need_version=no
15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15521 soname_spec='${libname}${release}${shared_ext}$major'
15522 shlibpath_var=LD_LIBRARY_PATH
15523 shlibpath_overrides_runpath=yes
15524 ;;
15525
15526openbsd*)
15527 version_type=sunos
15528 sys_lib_dlsearch_path_spec="/usr/lib"
15529 need_lib_prefix=no
15530 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15531 case $host_os in
15532 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15533 *) need_version=no ;;
15534 esac
15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15537 shlibpath_var=LD_LIBRARY_PATH
15538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15539 case $host_os in
15540 openbsd2.[89] | openbsd2.[89].*)
15541 shlibpath_overrides_runpath=no
15542 ;;
15543 *)
15544 shlibpath_overrides_runpath=yes
15545 ;;
15546 esac
15547 else
15548 shlibpath_overrides_runpath=yes
15549 fi
15550 ;;
15551
15552os2*)
15553 libname_spec='$name'
15554 shrext_cmds=".dll"
15555 need_lib_prefix=no
15556 library_names_spec='$libname${shared_ext} $libname.a'
15557 dynamic_linker='OS/2 ld.exe'
15558 shlibpath_var=LIBPATH
15559 ;;
15560
15561osf3* | osf4* | osf5*)
15562 version_type=osf
15563 need_lib_prefix=no
15564 need_version=no
15565 soname_spec='${libname}${release}${shared_ext}$major'
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15567 shlibpath_var=LD_LIBRARY_PATH
15568 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15569 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15570 ;;
15571
15572solaris*)
15573 version_type=linux
15574 need_lib_prefix=no
15575 need_version=no
15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15577 soname_spec='${libname}${release}${shared_ext}$major'
15578 shlibpath_var=LD_LIBRARY_PATH
15579 shlibpath_overrides_runpath=yes
15580 hardcode_into_libs=yes
15581 # ldd complains unless libraries are executable
15582 postinstall_cmds='chmod +x $lib'
15583 ;;
15584
15585sunos4*)
15586 version_type=sunos
15587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15588 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15589 shlibpath_var=LD_LIBRARY_PATH
15590 shlibpath_overrides_runpath=yes
15591 if test "$with_gnu_ld" = yes; then
15592 need_lib_prefix=no
15593 fi
15594 need_version=yes
15595 ;;
15596
15597sysv4 | sysv4.3*)
15598 version_type=linux
15599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15600 soname_spec='${libname}${release}${shared_ext}$major'
15601 shlibpath_var=LD_LIBRARY_PATH
15602 case $host_vendor in
15603 sni)
15604 shlibpath_overrides_runpath=no
15605 need_lib_prefix=no
15606 export_dynamic_flag_spec='${wl}-Blargedynsym'
15607 runpath_var=LD_RUN_PATH
15608 ;;
15609 siemens)
15610 need_lib_prefix=no
15611 ;;
15612 motorola)
15613 need_lib_prefix=no
15614 need_version=no
15615 shlibpath_overrides_runpath=no
15616 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15617 ;;
15618 esac
15619 ;;
15620
15621sysv4*MP*)
15622 if test -d /usr/nec ;then
15623 version_type=linux
15624 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15625 soname_spec='$libname${shared_ext}.$major'
15626 shlibpath_var=LD_LIBRARY_PATH
15627 fi
15628 ;;
15629
15630sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15631 version_type=freebsd-elf
15632 need_lib_prefix=no
15633 need_version=no
15634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15635 soname_spec='${libname}${release}${shared_ext}$major'
15636 shlibpath_var=LD_LIBRARY_PATH
15637 hardcode_into_libs=yes
15638 if test "$with_gnu_ld" = yes; then
15639 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15640 shlibpath_overrides_runpath=no
15641 else
15642 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15643 shlibpath_overrides_runpath=yes
15644 case $host_os in
15645 sco3.2v5*)
15646 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15647 ;;
15648 esac
15649 fi
15650 sys_lib_dlsearch_path_spec='/usr/lib'
15651 ;;
15652
15653uts4*)
15654 version_type=linux
15655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15656 soname_spec='${libname}${release}${shared_ext}$major'
15657 shlibpath_var=LD_LIBRARY_PATH
15658 ;;
15659
15660*)
15661 dynamic_linker=no
15662 ;;
15663esac
dd184caf 15664{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15665echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 15666test "$dynamic_linker" = no && can_build_shared=no
15667
15668variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15669if test "$GCC" = yes; then
15670 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15671fi
15672
dd184caf 15673{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15674echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 15675hardcode_action_F77=
15676if test -n "$hardcode_libdir_flag_spec_F77" || \
15677 test -n "$runpath_var_F77" || \
15678 test "X$hardcode_automatic_F77" = "Xyes" ; then
15679
15680 # We can hardcode non-existant directories.
15681 if test "$hardcode_direct_F77" != no &&
15682 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15683 # have to relink, otherwise we might link with an installed library
15684 # when we should be linking with a yet-to-be-installed one
15685 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15686 test "$hardcode_minus_L_F77" != no; then
15687 # Linking always hardcodes the temporary library directory.
15688 hardcode_action_F77=relink
15689 else
15690 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15691 hardcode_action_F77=immediate
15692 fi
15693else
15694 # We cannot hardcode anything, or else we can only hardcode existing
15695 # directories.
15696 hardcode_action_F77=unsupported
15697fi
dd184caf 15698{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15699echo "${ECHO_T}$hardcode_action_F77" >&6; }
d9898ee8 15700
15701if test "$hardcode_action_F77" = relink; then
15702 # Fast installation is not supported
15703 enable_fast_install=no
15704elif test "$shlibpath_overrides_runpath" = yes ||
15705 test "$enable_shared" = no; then
15706 # Fast installation is not necessary
15707 enable_fast_install=needless
15708fi
15709
15710
15711# The else clause should only fire when bootstrapping the
15712# libtool distribution, otherwise you forgot to ship ltmain.sh
15713# with your package, and you will get complaints that there are
15714# no rules to generate ltmain.sh.
15715if test -f "$ltmain"; then
15716 # See if we are running on zsh, and set the options which allow our commands through
15717 # without removal of \ escapes.
15718 if test -n "${ZSH_VERSION+set}" ; then
15719 setopt NO_GLOB_SUBST
15720 fi
15721 # Now quote all the things that may contain metacharacters while being
15722 # careful not to overquote the AC_SUBSTed values. We take copies of the
15723 # variables and quote the copies for generation of the libtool script.
15724 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15725 SED SHELL STRIP \
15726 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15727 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15728 deplibs_check_method reload_flag reload_cmds need_locks \
15729 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15730 lt_cv_sys_global_symbol_to_c_name_address \
15731 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15732 old_postinstall_cmds old_postuninstall_cmds \
15733 compiler_F77 \
15734 CC_F77 \
15735 LD_F77 \
15736 lt_prog_compiler_wl_F77 \
15737 lt_prog_compiler_pic_F77 \
15738 lt_prog_compiler_static_F77 \
15739 lt_prog_compiler_no_builtin_flag_F77 \
15740 export_dynamic_flag_spec_F77 \
15741 thread_safe_flag_spec_F77 \
15742 whole_archive_flag_spec_F77 \
15743 enable_shared_with_static_runtimes_F77 \
15744 old_archive_cmds_F77 \
15745 old_archive_from_new_cmds_F77 \
15746 predep_objects_F77 \
15747 postdep_objects_F77 \
15748 predeps_F77 \
15749 postdeps_F77 \
15750 compiler_lib_search_path_F77 \
15751 archive_cmds_F77 \
15752 archive_expsym_cmds_F77 \
15753 postinstall_cmds_F77 \
15754 postuninstall_cmds_F77 \
15755 old_archive_from_expsyms_cmds_F77 \
15756 allow_undefined_flag_F77 \
15757 no_undefined_flag_F77 \
15758 export_symbols_cmds_F77 \
15759 hardcode_libdir_flag_spec_F77 \
15760 hardcode_libdir_flag_spec_ld_F77 \
15761 hardcode_libdir_separator_F77 \
15762 hardcode_automatic_F77 \
15763 module_cmds_F77 \
15764 module_expsym_cmds_F77 \
15765 lt_cv_prog_compiler_c_o_F77 \
15766 exclude_expsyms_F77 \
15767 include_expsyms_F77; do
15768
15769 case $var in
15770 old_archive_cmds_F77 | \
15771 old_archive_from_new_cmds_F77 | \
15772 archive_cmds_F77 | \
15773 archive_expsym_cmds_F77 | \
15774 module_cmds_F77 | \
15775 module_expsym_cmds_F77 | \
15776 old_archive_from_expsyms_cmds_F77 | \
15777 export_symbols_cmds_F77 | \
15778 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15779 postinstall_cmds | postuninstall_cmds | \
15780 old_postinstall_cmds | old_postuninstall_cmds | \
15781 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15782 # Double-quote double-evaled strings.
15783 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15784 ;;
15785 *)
15786 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15787 ;;
15788 esac
15789 done
15790
15791 case $lt_echo in
15792 *'\$0 --fallback-echo"')
15793 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15794 ;;
15795 esac
15796
15797cfgfile="$ofile"
15798
15799 cat <<__EOF__ >> "$cfgfile"
15800# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15801
15802# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15803
15804# Shell to use when invoking shell scripts.
15805SHELL=$lt_SHELL
15806
15807# Whether or not to build shared libraries.
15808build_libtool_libs=$enable_shared
15809
15810# Whether or not to build static libraries.
15811build_old_libs=$enable_static
15812
15813# Whether or not to add -lc for building shared libraries.
15814build_libtool_need_lc=$archive_cmds_need_lc_F77
15815
15816# Whether or not to disallow shared libs when runtime libs are static
15817allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15818
15819# Whether or not to optimize for fast installation.
15820fast_install=$enable_fast_install
15821
15822# The host system.
15823host_alias=$host_alias
15824host=$host
15825host_os=$host_os
15826
15827# The build system.
15828build_alias=$build_alias
15829build=$build
15830build_os=$build_os
15831
15832# An echo program that does not interpret backslashes.
15833echo=$lt_echo
15834
15835# The archiver.
15836AR=$lt_AR
15837AR_FLAGS=$lt_AR_FLAGS
15838
15839# A C compiler.
15840LTCC=$lt_LTCC
15841
15842# LTCC compiler flags.
15843LTCFLAGS=$lt_LTCFLAGS
15844
15845# A language-specific compiler.
15846CC=$lt_compiler_F77
15847
15848# Is the compiler the GNU C compiler?
15849with_gcc=$GCC_F77
15850
d9898ee8 15851# An ERE matcher.
15852EGREP=$lt_EGREP
15853
15854# The linker used to build libraries.
15855LD=$lt_LD_F77
15856
15857# Whether we need hard or soft links.
15858LN_S=$lt_LN_S
15859
15860# A BSD-compatible nm program.
15861NM=$lt_NM
15862
15863# A symbol stripping program
15864STRIP=$lt_STRIP
15865
15866# Used to examine libraries when file_magic_cmd begins "file"
15867MAGIC_CMD=$MAGIC_CMD
15868
15869# Used on cygwin: DLL creation program.
15870DLLTOOL="$DLLTOOL"
15871
15872# Used on cygwin: object dumper.
15873OBJDUMP="$OBJDUMP"
15874
15875# Used on cygwin: assembler.
15876AS="$AS"
15877
15878# The name of the directory that contains temporary libtool files.
15879objdir=$objdir
15880
15881# How to create reloadable object files.
15882reload_flag=$lt_reload_flag
15883reload_cmds=$lt_reload_cmds
15884
15885# How to pass a linker flag through the compiler.
15886wl=$lt_lt_prog_compiler_wl_F77
15887
15888# Object file suffix (normally "o").
15889objext="$ac_objext"
15890
15891# Old archive suffix (normally "a").
15892libext="$libext"
15893
15894# Shared library suffix (normally ".so").
15895shrext_cmds='$shrext_cmds'
15896
15897# Executable file suffix (normally "").
15898exeext="$exeext"
15899
15900# Additional compiler flags for building library objects.
15901pic_flag=$lt_lt_prog_compiler_pic_F77
15902pic_mode=$pic_mode
15903
15904# What is the maximum length of a command?
15905max_cmd_len=$lt_cv_sys_max_cmd_len
15906
15907# Does compiler simultaneously support -c and -o options?
15908compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15909
15910# Must we lock files when doing compilation?
15911need_locks=$lt_need_locks
15912
15913# Do we need the lib prefix for modules?
15914need_lib_prefix=$need_lib_prefix
15915
15916# Do we need a version for libraries?
15917need_version=$need_version
15918
15919# Whether dlopen is supported.
15920dlopen_support=$enable_dlopen
15921
15922# Whether dlopen of programs is supported.
15923dlopen_self=$enable_dlopen_self
15924
15925# Whether dlopen of statically linked programs is supported.
15926dlopen_self_static=$enable_dlopen_self_static
15927
15928# Compiler flag to prevent dynamic linking.
15929link_static_flag=$lt_lt_prog_compiler_static_F77
15930
15931# Compiler flag to turn off builtin functions.
15932no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15933
15934# Compiler flag to allow reflexive dlopens.
15935export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15936
15937# Compiler flag to generate shared objects directly from archives.
15938whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15939
15940# Compiler flag to generate thread-safe objects.
15941thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15942
15943# Library versioning type.
15944version_type=$version_type
15945
15946# Format of library name prefix.
15947libname_spec=$lt_libname_spec
15948
15949# List of archive names. First name is the real one, the rest are links.
15950# The last name is the one that the linker finds with -lNAME.
15951library_names_spec=$lt_library_names_spec
15952
15953# The coded name of the library, if different from the real name.
15954soname_spec=$lt_soname_spec
15955
15956# Commands used to build and install an old-style archive.
15957RANLIB=$lt_RANLIB
15958old_archive_cmds=$lt_old_archive_cmds_F77
15959old_postinstall_cmds=$lt_old_postinstall_cmds
15960old_postuninstall_cmds=$lt_old_postuninstall_cmds
15961
15962# Create an old-style archive from a shared archive.
15963old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15964
15965# Create a temporary old-style archive to link instead of a shared archive.
15966old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15967
15968# Commands used to build and install a shared archive.
15969archive_cmds=$lt_archive_cmds_F77
15970archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15971postinstall_cmds=$lt_postinstall_cmds
15972postuninstall_cmds=$lt_postuninstall_cmds
15973
15974# Commands used to build a loadable module (assumed same as above if empty)
15975module_cmds=$lt_module_cmds_F77
15976module_expsym_cmds=$lt_module_expsym_cmds_F77
15977
15978# Commands to strip libraries.
15979old_striplib=$lt_old_striplib
15980striplib=$lt_striplib
15981
15982# Dependencies to place before the objects being linked to create a
15983# shared library.
dd184caf 15984predep_objects=$lt_predep_objects_F77
d9898ee8 15985
15986# Dependencies to place after the objects being linked to create a
15987# shared library.
dd184caf 15988postdep_objects=$lt_postdep_objects_F77
d9898ee8 15989
15990# Dependencies to place before the objects being linked to create a
15991# shared library.
15992predeps=$lt_predeps_F77
15993
15994# Dependencies to place after the objects being linked to create a
15995# shared library.
15996postdeps=$lt_postdeps_F77
15997
15998# The library search path used internally by the compiler when linking
15999# a shared library.
dd184caf 16000compiler_lib_search_path=$lt_compiler_lib_search_path_F77
d9898ee8 16001
16002# Method to check whether dependent libraries are shared objects.
16003deplibs_check_method=$lt_deplibs_check_method
16004
16005# Command to use when deplibs_check_method == file_magic.
16006file_magic_cmd=$lt_file_magic_cmd
16007
16008# Flag that allows shared libraries with undefined symbols to be built.
16009allow_undefined_flag=$lt_allow_undefined_flag_F77
16010
16011# Flag that forces no undefined symbols.
16012no_undefined_flag=$lt_no_undefined_flag_F77
16013
16014# Commands used to finish a libtool library installation in a directory.
16015finish_cmds=$lt_finish_cmds
16016
16017# Same as above, but a single script fragment to be evaled but not shown.
16018finish_eval=$lt_finish_eval
16019
16020# Take the output of nm and produce a listing of raw symbols and C names.
16021global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16022
16023# Transform the output of nm in a proper C declaration
16024global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16025
16026# Transform the output of nm in a C name address pair
16027global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16028
16029# This is the shared library runtime path variable.
16030runpath_var=$runpath_var
16031
16032# This is the shared library path variable.
16033shlibpath_var=$shlibpath_var
16034
16035# Is shlibpath searched before the hard-coded library search path?
16036shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16037
16038# How to hardcode a shared library path into an executable.
16039hardcode_action=$hardcode_action_F77
16040
16041# Whether we should hardcode library paths into libraries.
16042hardcode_into_libs=$hardcode_into_libs
16043
16044# Flag to hardcode \$libdir into a binary during linking.
16045# This must work even if \$libdir does not exist.
16046hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16047
16048# If ld is used when linking, flag to hardcode \$libdir into
16049# a binary during linking. This must work even if \$libdir does
16050# not exist.
16051hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16052
16053# Whether we need a single -rpath flag with a separated argument.
16054hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16055
16056# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16057# resulting binary.
16058hardcode_direct=$hardcode_direct_F77
16059
16060# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16061# resulting binary.
16062hardcode_minus_L=$hardcode_minus_L_F77
16063
16064# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16065# the resulting binary.
16066hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16067
16068# Set to yes if building a shared library automatically hardcodes DIR into the library
16069# and all subsequent libraries and executables linked against it.
16070hardcode_automatic=$hardcode_automatic_F77
16071
16072# Variables whose values should be saved in libtool wrapper scripts and
16073# restored at relink time.
16074variables_saved_for_relink="$variables_saved_for_relink"
16075
16076# Whether libtool must link a program against all its dependency libraries.
16077link_all_deplibs=$link_all_deplibs_F77
16078
16079# Compile-time system search path for libraries
dd184caf 16080sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 16081
16082# Run-time system search path for libraries
16083sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16084
16085# Fix the shell variable \$srcfile for the compiler.
16086fix_srcfile_path="$fix_srcfile_path_F77"
16087
16088# Set to yes if exported symbols are required.
16089always_export_symbols=$always_export_symbols_F77
16090
16091# The commands to list exported symbols.
16092export_symbols_cmds=$lt_export_symbols_cmds_F77
16093
16094# The commands to extract the exported symbol list from a shared archive.
16095extract_expsyms_cmds=$lt_extract_expsyms_cmds
16096
16097# Symbols that should not be listed in the preloaded symbols.
16098exclude_expsyms=$lt_exclude_expsyms_F77
16099
16100# Symbols that must always be exported.
16101include_expsyms=$lt_include_expsyms_F77
16102
16103# ### END LIBTOOL TAG CONFIG: $tagname
16104
16105__EOF__
16106
16107
16108else
16109 # If there is no Makefile yet, we rely on a make rule to execute
16110 # `config.status --recheck' to rerun these tests and create the
16111 # libtool script then.
16112 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16113 if test -f "$ltmain_in"; then
16114 test -f Makefile && make "$ltmain"
16115 fi
16116fi
16117
16118
16119ac_ext=c
16120ac_cpp='$CPP $CPPFLAGS'
16121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16123ac_compiler_gnu=$ac_cv_c_compiler_gnu
16124
16125CC="$lt_save_CC"
16126
16127 else
16128 tagname=""
16129 fi
16130 ;;
16131
16132 GCJ)
16133 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16134
16135
d9898ee8 16136# Source file extension for Java test sources.
16137ac_ext=java
16138
16139# Object file extension for compiled Java test sources.
16140objext=o
16141objext_GCJ=$objext
16142
16143# Code to be used in simple compile tests
16144lt_simple_compile_test_code="class foo {}\n"
16145
16146# Code to be used in simple link tests
16147lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16148
16149# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16150
16151# If no C compiler was specified, use CC.
16152LTCC=${LTCC-"$CC"}
16153
16154# If no C compiler flags were specified, use CFLAGS.
16155LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16156
16157# Allow CC to be a program name with arguments.
16158compiler=$CC
16159
16160
16161# save warnings/boilerplate of simple test code
16162ac_outfile=conftest.$ac_objext
16163printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16164eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16165_lt_compiler_boilerplate=`cat conftest.err`
16166$rm conftest*
16167
16168ac_outfile=conftest.$ac_objext
16169printf "$lt_simple_link_test_code" >conftest.$ac_ext
16170eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16171_lt_linker_boilerplate=`cat conftest.err`
16172$rm conftest*
16173
16174
16175# Allow CC to be a program name with arguments.
16176lt_save_CC="$CC"
16177CC=${GCJ-"gcj"}
16178compiler=$CC
16179compiler_GCJ=$CC
16180for cc_temp in $compiler""; do
16181 case $cc_temp in
16182 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16183 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16184 \-*) ;;
16185 *) break;;
16186 esac
16187done
16188cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16189
16190
16191# GCJ did not exist at the time GCC didn't implicitly link libc in.
16192archive_cmds_need_lc_GCJ=no
16193
16194old_archive_cmds_GCJ=$old_archive_cmds
16195
16196
16197lt_prog_compiler_no_builtin_flag_GCJ=
16198
16199if test "$GCC" = yes; then
16200 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16201
16202
dd184caf 16203{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16204echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 16205if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16206 echo $ECHO_N "(cached) $ECHO_C" >&6
16207else
16208 lt_cv_prog_compiler_rtti_exceptions=no
16209 ac_outfile=conftest.$ac_objext
16210 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16211 lt_compiler_flag="-fno-rtti -fno-exceptions"
16212 # Insert the option either (1) after the last *FLAGS variable, or
16213 # (2) before a word containing "conftest.", or (3) at the end.
16214 # Note that $ac_compile itself does not contain backslashes and begins
16215 # with a dollar sign (not a hyphen), so the echo should work correctly.
16216 # The option is referenced via a variable to avoid confusing sed.
16217 lt_compile=`echo "$ac_compile" | $SED \
16218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16220 -e 's:$: $lt_compiler_flag:'`
1dce02f2 16221 (eval echo "\"\$as_me:16221: $lt_compile\"" >&5)
d9898ee8 16222 (eval "$lt_compile" 2>conftest.err)
16223 ac_status=$?
16224 cat conftest.err >&5
1dce02f2 16225 echo "$as_me:16225: \$? = $ac_status" >&5
d9898ee8 16226 if (exit $ac_status) && test -s "$ac_outfile"; then
16227 # The compiler can only warn and ignore the option if not recognized
16228 # So say no if there are warnings other than the usual output.
16229 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16231 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16232 lt_cv_prog_compiler_rtti_exceptions=yes
16233 fi
16234 fi
16235 $rm conftest*
16236
16237fi
dd184caf 16238{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16239echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 16240
16241if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16242 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16243else
16244 :
16245fi
16246
16247fi
16248
16249lt_prog_compiler_wl_GCJ=
16250lt_prog_compiler_pic_GCJ=
16251lt_prog_compiler_static_GCJ=
16252
dd184caf 16253{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16254echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 16255
16256 if test "$GCC" = yes; then
16257 lt_prog_compiler_wl_GCJ='-Wl,'
16258 lt_prog_compiler_static_GCJ='-static'
16259
16260 case $host_os in
16261 aix*)
16262 # All AIX code is PIC.
16263 if test "$host_cpu" = ia64; then
16264 # AIX 5 now supports IA64 processor
16265 lt_prog_compiler_static_GCJ='-Bstatic'
16266 fi
16267 ;;
16268
16269 amigaos*)
16270 # FIXME: we need at least 68020 code to build shared libraries, but
16271 # adding the `-m68020' flag to GCC prevents building anything better,
16272 # like `-m68040'.
16273 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16274 ;;
16275
16276 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16277 # PIC is the default for these OSes.
16278 ;;
16279
16280 mingw* | pw32* | os2*)
16281 # This hack is so that the source file can tell whether it is being
16282 # built for inclusion in a dll (and should export symbols for example).
16283 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16284 ;;
16285
16286 darwin* | rhapsody*)
16287 # PIC is the default on this platform
16288 # Common symbols not allowed in MH_DYLIB files
16289 lt_prog_compiler_pic_GCJ='-fno-common'
16290 ;;
16291
16292 interix3*)
16293 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16294 # Instead, we relocate shared libraries at runtime.
16295 ;;
16296
16297 msdosdjgpp*)
16298 # Just because we use GCC doesn't mean we suddenly get shared libraries
16299 # on systems that don't support them.
16300 lt_prog_compiler_can_build_shared_GCJ=no
16301 enable_shared=no
16302 ;;
16303
16304 sysv4*MP*)
16305 if test -d /usr/nec; then
16306 lt_prog_compiler_pic_GCJ=-Kconform_pic
16307 fi
16308 ;;
16309
16310 hpux*)
16311 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16312 # not for PA HP-UX.
16313 case $host_cpu in
16314 hppa*64*|ia64*)
16315 # +Z the default
16316 ;;
16317 *)
16318 lt_prog_compiler_pic_GCJ='-fPIC'
16319 ;;
16320 esac
16321 ;;
16322
16323 *)
16324 lt_prog_compiler_pic_GCJ='-fPIC'
16325 ;;
16326 esac
16327 else
16328 # PORTME Check for flag to pass linker flags through the system compiler.
16329 case $host_os in
16330 aix*)
16331 lt_prog_compiler_wl_GCJ='-Wl,'
16332 if test "$host_cpu" = ia64; then
16333 # AIX 5 now supports IA64 processor
16334 lt_prog_compiler_static_GCJ='-Bstatic'
16335 else
16336 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16337 fi
16338 ;;
16339 darwin*)
16340 # PIC is the default on this platform
16341 # Common symbols not allowed in MH_DYLIB files
16342 case $cc_basename in
16343 xlc*)
16344 lt_prog_compiler_pic_GCJ='-qnocommon'
16345 lt_prog_compiler_wl_GCJ='-Wl,'
16346 ;;
16347 esac
16348 ;;
16349
16350 mingw* | pw32* | os2*)
16351 # This hack is so that the source file can tell whether it is being
16352 # built for inclusion in a dll (and should export symbols for example).
16353 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16354 ;;
16355
16356 hpux9* | hpux10* | hpux11*)
16357 lt_prog_compiler_wl_GCJ='-Wl,'
16358 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16359 # not for PA HP-UX.
16360 case $host_cpu in
16361 hppa*64*|ia64*)
16362 # +Z the default
16363 ;;
16364 *)
16365 lt_prog_compiler_pic_GCJ='+Z'
16366 ;;
16367 esac
16368 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16369 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16370 ;;
16371
16372 irix5* | irix6* | nonstopux*)
16373 lt_prog_compiler_wl_GCJ='-Wl,'
16374 # PIC (with -KPIC) is the default.
16375 lt_prog_compiler_static_GCJ='-non_shared'
16376 ;;
16377
16378 newsos6)
16379 lt_prog_compiler_pic_GCJ='-KPIC'
16380 lt_prog_compiler_static_GCJ='-Bstatic'
16381 ;;
16382
1dce02f2 16383 linux* | k*bsd*-gnu)
d9898ee8 16384 case $cc_basename in
16385 icc* | ecc*)
16386 lt_prog_compiler_wl_GCJ='-Wl,'
16387 lt_prog_compiler_pic_GCJ='-KPIC'
16388 lt_prog_compiler_static_GCJ='-static'
16389 ;;
16390 pgcc* | pgf77* | pgf90* | pgf95*)
16391 # Portland Group compilers (*not* the Pentium gcc compiler,
16392 # which looks to be a dead project)
16393 lt_prog_compiler_wl_GCJ='-Wl,'
16394 lt_prog_compiler_pic_GCJ='-fpic'
16395 lt_prog_compiler_static_GCJ='-Bstatic'
16396 ;;
16397 ccc*)
16398 lt_prog_compiler_wl_GCJ='-Wl,'
16399 # All Alpha code is PIC.
16400 lt_prog_compiler_static_GCJ='-non_shared'
16401 ;;
16402 esac
16403 ;;
16404
16405 osf3* | osf4* | osf5*)
16406 lt_prog_compiler_wl_GCJ='-Wl,'
16407 # All OSF/1 code is PIC.
16408 lt_prog_compiler_static_GCJ='-non_shared'
16409 ;;
16410
16411 solaris*)
16412 lt_prog_compiler_pic_GCJ='-KPIC'
16413 lt_prog_compiler_static_GCJ='-Bstatic'
16414 case $cc_basename in
16415 f77* | f90* | f95*)
16416 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16417 *)
16418 lt_prog_compiler_wl_GCJ='-Wl,';;
16419 esac
16420 ;;
16421
16422 sunos4*)
16423 lt_prog_compiler_wl_GCJ='-Qoption ld '
16424 lt_prog_compiler_pic_GCJ='-PIC'
16425 lt_prog_compiler_static_GCJ='-Bstatic'
16426 ;;
16427
16428 sysv4 | sysv4.2uw2* | sysv4.3*)
16429 lt_prog_compiler_wl_GCJ='-Wl,'
16430 lt_prog_compiler_pic_GCJ='-KPIC'
16431 lt_prog_compiler_static_GCJ='-Bstatic'
16432 ;;
16433
16434 sysv4*MP*)
16435 if test -d /usr/nec ;then
16436 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16437 lt_prog_compiler_static_GCJ='-Bstatic'
16438 fi
16439 ;;
16440
16441 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16442 lt_prog_compiler_wl_GCJ='-Wl,'
16443 lt_prog_compiler_pic_GCJ='-KPIC'
16444 lt_prog_compiler_static_GCJ='-Bstatic'
16445 ;;
16446
16447 unicos*)
16448 lt_prog_compiler_wl_GCJ='-Wl,'
16449 lt_prog_compiler_can_build_shared_GCJ=no
16450 ;;
16451
16452 uts4*)
16453 lt_prog_compiler_pic_GCJ='-pic'
16454 lt_prog_compiler_static_GCJ='-Bstatic'
16455 ;;
16456
16457 *)
16458 lt_prog_compiler_can_build_shared_GCJ=no
16459 ;;
16460 esac
16461 fi
16462
dd184caf 16463{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16464echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d9898ee8 16465
16466#
16467# Check to make sure the PIC flag actually works.
16468#
16469if test -n "$lt_prog_compiler_pic_GCJ"; then
16470
dd184caf 16471{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16472echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d9898ee8 16473if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16475else
16476 lt_prog_compiler_pic_works_GCJ=no
16477 ac_outfile=conftest.$ac_objext
16478 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16479 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16480 # Insert the option either (1) after the last *FLAGS variable, or
16481 # (2) before a word containing "conftest.", or (3) at the end.
16482 # Note that $ac_compile itself does not contain backslashes and begins
16483 # with a dollar sign (not a hyphen), so the echo should work correctly.
16484 # The option is referenced via a variable to avoid confusing sed.
16485 lt_compile=`echo "$ac_compile" | $SED \
16486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16488 -e 's:$: $lt_compiler_flag:'`
1dce02f2 16489 (eval echo "\"\$as_me:16489: $lt_compile\"" >&5)
d9898ee8 16490 (eval "$lt_compile" 2>conftest.err)
16491 ac_status=$?
16492 cat conftest.err >&5
1dce02f2 16493 echo "$as_me:16493: \$? = $ac_status" >&5
d9898ee8 16494 if (exit $ac_status) && test -s "$ac_outfile"; then
16495 # The compiler can only warn and ignore the option if not recognized
16496 # So say no if there are warnings other than the usual output.
16497 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16499 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16500 lt_prog_compiler_pic_works_GCJ=yes
16501 fi
16502 fi
16503 $rm conftest*
16504
16505fi
dd184caf 16506{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16507echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d9898ee8 16508
16509if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16510 case $lt_prog_compiler_pic_GCJ in
16511 "" | " "*) ;;
16512 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16513 esac
16514else
16515 lt_prog_compiler_pic_GCJ=
16516 lt_prog_compiler_can_build_shared_GCJ=no
16517fi
16518
16519fi
16520case $host_os in
16521 # For platforms which do not support PIC, -DPIC is meaningless:
16522 *djgpp*)
16523 lt_prog_compiler_pic_GCJ=
16524 ;;
16525 *)
16526 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16527 ;;
16528esac
16529
16530#
16531# Check to make sure the static flag actually works.
16532#
16533wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
dd184caf 16534{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16535echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 16536if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16537 echo $ECHO_N "(cached) $ECHO_C" >&6
16538else
16539 lt_prog_compiler_static_works_GCJ=no
16540 save_LDFLAGS="$LDFLAGS"
16541 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16542 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16543 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16544 # The linker can only warn and ignore the option if not recognized
16545 # So say no if there are warnings
16546 if test -s conftest.err; then
16547 # Append any errors to the config.log.
16548 cat conftest.err 1>&5
16549 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16551 if diff conftest.exp conftest.er2 >/dev/null; then
16552 lt_prog_compiler_static_works_GCJ=yes
16553 fi
16554 else
16555 lt_prog_compiler_static_works_GCJ=yes
16556 fi
16557 fi
16558 $rm conftest*
16559 LDFLAGS="$save_LDFLAGS"
16560
16561fi
dd184caf 16562{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16563echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
d9898ee8 16564
16565if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16566 :
16567else
16568 lt_prog_compiler_static_GCJ=
16569fi
16570
16571
dd184caf 16572{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16573echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 16574if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16575 echo $ECHO_N "(cached) $ECHO_C" >&6
16576else
16577 lt_cv_prog_compiler_c_o_GCJ=no
16578 $rm -r conftest 2>/dev/null
16579 mkdir conftest
16580 cd conftest
16581 mkdir out
16582 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16583
16584 lt_compiler_flag="-o out/conftest2.$ac_objext"
16585 # Insert the option either (1) after the last *FLAGS variable, or
16586 # (2) before a word containing "conftest.", or (3) at the end.
16587 # Note that $ac_compile itself does not contain backslashes and begins
16588 # with a dollar sign (not a hyphen), so the echo should work correctly.
16589 lt_compile=`echo "$ac_compile" | $SED \
16590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16592 -e 's:$: $lt_compiler_flag:'`
1dce02f2 16593 (eval echo "\"\$as_me:16593: $lt_compile\"" >&5)
d9898ee8 16594 (eval "$lt_compile" 2>out/conftest.err)
16595 ac_status=$?
16596 cat out/conftest.err >&5
1dce02f2 16597 echo "$as_me:16597: \$? = $ac_status" >&5
d9898ee8 16598 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16599 then
16600 # The compiler can only warn and ignore the option if not recognized
16601 # So say no if there are warnings
16602 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16603 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16604 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16605 lt_cv_prog_compiler_c_o_GCJ=yes
16606 fi
16607 fi
16608 chmod u+w . 2>&5
16609 $rm conftest*
16610 # SGI C++ compiler will create directory out/ii_files/ for
16611 # template instantiation
16612 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16613 $rm out/* && rmdir out
16614 cd ..
16615 rmdir conftest
16616 $rm conftest*
16617
16618fi
dd184caf 16619{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16620echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d9898ee8 16621
16622
16623hard_links="nottested"
16624if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16625 # do not overwrite the value of need_locks provided by the user
dd184caf 16626 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16627echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 16628 hard_links=yes
16629 $rm conftest*
16630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16631 touch conftest.a
16632 ln conftest.a conftest.b 2>&5 || hard_links=no
16633 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 16634 { echo "$as_me:$LINENO: result: $hard_links" >&5
16635echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 16636 if test "$hard_links" = no; then
16637 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16638echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16639 need_locks=warn
16640 fi
16641else
16642 need_locks=no
16643fi
16644
dd184caf 16645{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16646echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 16647
16648 runpath_var=
16649 allow_undefined_flag_GCJ=
16650 enable_shared_with_static_runtimes_GCJ=no
16651 archive_cmds_GCJ=
16652 archive_expsym_cmds_GCJ=
16653 old_archive_From_new_cmds_GCJ=
16654 old_archive_from_expsyms_cmds_GCJ=
16655 export_dynamic_flag_spec_GCJ=
16656 whole_archive_flag_spec_GCJ=
16657 thread_safe_flag_spec_GCJ=
16658 hardcode_libdir_flag_spec_GCJ=
16659 hardcode_libdir_flag_spec_ld_GCJ=
16660 hardcode_libdir_separator_GCJ=
16661 hardcode_direct_GCJ=no
16662 hardcode_minus_L_GCJ=no
16663 hardcode_shlibpath_var_GCJ=unsupported
16664 link_all_deplibs_GCJ=unknown
16665 hardcode_automatic_GCJ=no
16666 module_cmds_GCJ=
16667 module_expsym_cmds_GCJ=
16668 always_export_symbols_GCJ=no
16669 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16670 # include_expsyms should be a list of space-separated symbols to be *always*
16671 # included in the symbol list
16672 include_expsyms_GCJ=
16673 # exclude_expsyms can be an extended regexp of symbols to exclude
16674 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16675 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16676 # as well as any symbol that contains `d'.
16677 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16678 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16679 # platforms (ab)use it in PIC code, but their linkers get confused if
16680 # the symbol is explicitly referenced. Since portable code cannot
16681 # rely on this symbol name, it's probably fine to never include it in
16682 # preloaded symbol tables.
16683 extract_expsyms_cmds=
16684 # Just being paranoid about ensuring that cc_basename is set.
16685 for cc_temp in $compiler""; do
16686 case $cc_temp in
16687 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16688 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16689 \-*) ;;
16690 *) break;;
16691 esac
16692done
16693cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16694
16695 case $host_os in
16696 cygwin* | mingw* | pw32*)
16697 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16698 # When not using gcc, we currently assume that we are using
16699 # Microsoft Visual C++.
16700 if test "$GCC" != yes; then
16701 with_gnu_ld=no
16702 fi
16703 ;;
16704 interix*)
16705 # we just hope/assume this is gcc and not c89 (= MSVC++)
16706 with_gnu_ld=yes
16707 ;;
16708 openbsd*)
16709 with_gnu_ld=no
16710 ;;
16711 esac
16712
16713 ld_shlibs_GCJ=yes
16714 if test "$with_gnu_ld" = yes; then
16715 # If archive_cmds runs LD, not CC, wlarc should be empty
16716 wlarc='${wl}'
16717
16718 # Set some defaults for GNU ld with shared library support. These
16719 # are reset later if shared libraries are not supported. Putting them
16720 # here allows them to be overridden if necessary.
16721 runpath_var=LD_RUN_PATH
16722 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16723 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16724 # ancient GNU ld didn't support --whole-archive et. al.
16725 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16726 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16727 else
16728 whole_archive_flag_spec_GCJ=
16729 fi
16730 supports_anon_versioning=no
16731 case `$LD -v 2>/dev/null` in
16732 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16733 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16734 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16735 *\ 2.11.*) ;; # other 2.11 versions
16736 *) supports_anon_versioning=yes ;;
16737 esac
16738
16739 # See if GNU ld supports shared libraries.
16740 case $host_os in
16741 aix3* | aix4* | aix5*)
16742 # On AIX/PPC, the GNU linker is very broken
16743 if test "$host_cpu" != ia64; then
16744 ld_shlibs_GCJ=no
16745 cat <<EOF 1>&2
16746
16747*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16748*** to be unable to reliably create shared libraries on AIX.
16749*** Therefore, libtool is disabling shared libraries support. If you
16750*** really care for shared libraries, you may want to modify your PATH
16751*** so that a non-GNU linker is found, and then restart.
16752
16753EOF
16754 fi
16755 ;;
16756
16757 amigaos*)
16758 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)'
16759 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16760 hardcode_minus_L_GCJ=yes
16761
16762 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16763 # that the semantics of dynamic libraries on AmigaOS, at least up
16764 # to version 4, is to share data among multiple programs linked
16765 # with the same dynamic library. Since this doesn't match the
16766 # behavior of shared libraries on other platforms, we can't use
16767 # them.
16768 ld_shlibs_GCJ=no
16769 ;;
16770
16771 beos*)
16772 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16773 allow_undefined_flag_GCJ=unsupported
16774 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16775 # support --undefined. This deserves some investigation. FIXME
16776 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16777 else
16778 ld_shlibs_GCJ=no
16779 fi
16780 ;;
16781
16782 cygwin* | mingw* | pw32*)
16783 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16784 # as there is no search path for DLLs.
16785 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16786 allow_undefined_flag_GCJ=unsupported
16787 always_export_symbols_GCJ=no
16788 enable_shared_with_static_runtimes_GCJ=yes
16789 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16790
16791 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16792 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16793 # If the export-symbols file already is a .def file (1st line
16794 # is EXPORTS), use it as is; otherwise, prepend...
16795 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16796 cp $export_symbols $output_objdir/$soname.def;
16797 else
16798 echo EXPORTS > $output_objdir/$soname.def;
16799 cat $export_symbols >> $output_objdir/$soname.def;
16800 fi~
16801 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16802 else
16803 ld_shlibs_GCJ=no
16804 fi
16805 ;;
16806
16807 interix3*)
16808 hardcode_direct_GCJ=no
16809 hardcode_shlibpath_var_GCJ=no
16810 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16811 export_dynamic_flag_spec_GCJ='${wl}-E'
16812 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16813 # Instead, shared libraries are loaded at an image base (0x10000000 by
16814 # default) and relocated if they conflict, which is a slow very memory
16815 # consuming and fragmenting process. To avoid this, we pick a random,
16816 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16817 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16818 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'
16819 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'
16820 ;;
16821
1dce02f2 16822 linux* | k*bsd*-gnu)
d9898ee8 16823 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16824 tmp_addflag=
16825 case $cc_basename,$host_cpu in
16826 pgcc*) # Portland Group C compiler
16827 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'
16828 tmp_addflag=' $pic_flag'
16829 ;;
16830 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16831 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'
16832 tmp_addflag=' $pic_flag -Mnomain' ;;
16833 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16834 tmp_addflag=' -i_dynamic' ;;
16835 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16836 tmp_addflag=' -i_dynamic -nofor_main' ;;
16837 ifc* | ifort*) # Intel Fortran compiler
16838 tmp_addflag=' -nofor_main' ;;
16839 esac
16840 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16841
16842 if test $supports_anon_versioning = yes; then
16843 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16844 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16845 $echo "local: *; };" >> $output_objdir/$libname.ver~
16846 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16847 fi
1dce02f2 16848 link_all_deplibs_GCJ=no
d9898ee8 16849 else
16850 ld_shlibs_GCJ=no
16851 fi
16852 ;;
16853
1dce02f2 16854 netbsd* | netbsdelf*-gnu)
d9898ee8 16855 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16856 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16857 wlarc=
16858 else
16859 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16860 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16861 fi
16862 ;;
16863
16864 solaris*)
16865 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16866 ld_shlibs_GCJ=no
16867 cat <<EOF 1>&2
16868
16869*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16870*** create shared libraries on Solaris systems. Therefore, libtool
16871*** is disabling shared libraries support. We urge you to upgrade GNU
16872*** binutils to release 2.9.1 or newer. Another option is to modify
16873*** your PATH or compiler configuration so that the native linker is
16874*** used, and then restart.
16875
16876EOF
16877 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16878 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16879 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16880 else
16881 ld_shlibs_GCJ=no
16882 fi
16883 ;;
16884
16885 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16886 case `$LD -v 2>&1` in
16887 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16888 ld_shlibs_GCJ=no
16889 cat <<_LT_EOF 1>&2
16890
16891*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16892*** reliably create shared libraries on SCO systems. Therefore, libtool
16893*** is disabling shared libraries support. We urge you to upgrade GNU
16894*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16895*** your PATH or compiler configuration so that the native linker is
16896*** used, and then restart.
16897
16898_LT_EOF
16899 ;;
16900 *)
16901 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16902 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16903 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16904 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16905 else
16906 ld_shlibs_GCJ=no
16907 fi
16908 ;;
16909 esac
16910 ;;
16911
16912 sunos4*)
16913 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16914 wlarc=
16915 hardcode_direct_GCJ=yes
16916 hardcode_shlibpath_var_GCJ=no
16917 ;;
16918
16919 *)
16920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16921 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16922 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16923 else
16924 ld_shlibs_GCJ=no
16925 fi
16926 ;;
16927 esac
16928
16929 if test "$ld_shlibs_GCJ" = no; then
16930 runpath_var=
16931 hardcode_libdir_flag_spec_GCJ=
16932 export_dynamic_flag_spec_GCJ=
16933 whole_archive_flag_spec_GCJ=
16934 fi
16935 else
16936 # PORTME fill in a description of your system's linker (not GNU ld)
16937 case $host_os in
16938 aix3*)
16939 allow_undefined_flag_GCJ=unsupported
16940 always_export_symbols_GCJ=yes
16941 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'
16942 # Note: this linker hardcodes the directories in LIBPATH if there
16943 # are no directories specified by -L.
16944 hardcode_minus_L_GCJ=yes
16945 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16946 # Neither direct hardcoding nor static linking is supported with a
16947 # broken collect2.
16948 hardcode_direct_GCJ=unsupported
16949 fi
16950 ;;
16951
16952 aix4* | aix5*)
16953 if test "$host_cpu" = ia64; then
16954 # On IA64, the linker does run time linking by default, so we don't
16955 # have to do anything special.
16956 aix_use_runtimelinking=no
16957 exp_sym_flag='-Bexport'
16958 no_entry_flag=""
16959 else
16960 # If we're using GNU nm, then we don't want the "-C" option.
16961 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16962 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16963 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'
16964 else
16965 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'
16966 fi
16967 aix_use_runtimelinking=no
16968
16969 # Test if we are trying to use run time linking or normal
16970 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16971 # need to do runtime linking.
16972 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16973 for ld_flag in $LDFLAGS; do
16974 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16975 aix_use_runtimelinking=yes
16976 break
16977 fi
16978 done
16979 ;;
16980 esac
16981
16982 exp_sym_flag='-bexport'
16983 no_entry_flag='-bnoentry'
16984 fi
16985
16986 # When large executables or shared objects are built, AIX ld can
16987 # have problems creating the table of contents. If linking a library
16988 # or program results in "error TOC overflow" add -mminimal-toc to
16989 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16990 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16991
16992 archive_cmds_GCJ=''
16993 hardcode_direct_GCJ=yes
16994 hardcode_libdir_separator_GCJ=':'
16995 link_all_deplibs_GCJ=yes
16996
16997 if test "$GCC" = yes; then
16998 case $host_os in aix4.[012]|aix4.[012].*)
16999 # We only want to do this on AIX 4.2 and lower, the check
17000 # below for broken collect2 doesn't work under 4.3+
17001 collect2name=`${CC} -print-prog-name=collect2`
17002 if test -f "$collect2name" && \
17003 strings "$collect2name" | grep resolve_lib_name >/dev/null
17004 then
17005 # We have reworked collect2
17006 hardcode_direct_GCJ=yes
17007 else
17008 # We have old collect2
17009 hardcode_direct_GCJ=unsupported
17010 # It fails to find uninstalled libraries when the uninstalled
17011 # path is not listed in the libpath. Setting hardcode_minus_L
17012 # to unsupported forces relinking
17013 hardcode_minus_L_GCJ=yes
17014 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17015 hardcode_libdir_separator_GCJ=
17016 fi
17017 ;;
17018 esac
17019 shared_flag='-shared'
17020 if test "$aix_use_runtimelinking" = yes; then
17021 shared_flag="$shared_flag "'${wl}-G'
17022 fi
17023 else
17024 # not using gcc
17025 if test "$host_cpu" = ia64; then
17026 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17027 # chokes on -Wl,-G. The following line is correct:
17028 shared_flag='-G'
17029 else
17030 if test "$aix_use_runtimelinking" = yes; then
17031 shared_flag='${wl}-G'
17032 else
17033 shared_flag='${wl}-bM:SRE'
17034 fi
17035 fi
17036 fi
17037
17038 # It seems that -bexpall does not export symbols beginning with
17039 # underscore (_), so it is better to generate a list of symbols to export.
17040 always_export_symbols_GCJ=yes
17041 if test "$aix_use_runtimelinking" = yes; then
17042 # Warning - without using the other runtime loading flags (-brtl),
17043 # -berok will link without error, but may produce a broken library.
17044 allow_undefined_flag_GCJ='-berok'
17045 # Determine the default libpath from the value encoded in an empty executable.
17046 cat >conftest.$ac_ext <<_ACEOF
17047/* confdefs.h. */
17048_ACEOF
17049cat confdefs.h >>conftest.$ac_ext
17050cat >>conftest.$ac_ext <<_ACEOF
17051/* end confdefs.h. */
17052
17053int
17054main ()
17055{
17056
17057 ;
17058 return 0;
17059}
17060_ACEOF
17061rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17062if { (ac_try="$ac_link"
17063case "(($ac_try" in
17064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065 *) ac_try_echo=$ac_try;;
17066esac
17067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068 (eval "$ac_link") 2>conftest.er1
d9898ee8 17069 ac_status=$?
17070 grep -v '^ *+' conftest.er1 >conftest.err
17071 rm -f conftest.er1
17072 cat conftest.err >&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17074 (exit $ac_status); } && {
17075 test -z "$ac_c_werror_flag" ||
17076 test ! -s conftest.err
17077 } && test -s conftest$ac_exeext &&
17078 $as_test_x conftest$ac_exeext; then
d9898ee8 17079
17080aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17081}'`
17082# Check for a 64-bit object if we didn't find anything.
17083if 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; }
17084}'`; fi
17085else
17086 echo "$as_me: failed program was:" >&5
17087sed 's/^/| /' conftest.$ac_ext >&5
17088
dd184caf 17089
d9898ee8 17090fi
dd184caf 17091
17092rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17093 conftest$ac_exeext conftest.$ac_ext
17094if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17095
17096 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17097 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"
17098 else
17099 if test "$host_cpu" = ia64; then
17100 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17101 allow_undefined_flag_GCJ="-z nodefs"
17102 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"
17103 else
17104 # Determine the default libpath from the value encoded in an empty executable.
17105 cat >conftest.$ac_ext <<_ACEOF
17106/* confdefs.h. */
17107_ACEOF
17108cat confdefs.h >>conftest.$ac_ext
17109cat >>conftest.$ac_ext <<_ACEOF
17110/* end confdefs.h. */
17111
17112int
17113main ()
17114{
17115
17116 ;
17117 return 0;
17118}
17119_ACEOF
17120rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17121if { (ac_try="$ac_link"
17122case "(($ac_try" in
17123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124 *) ac_try_echo=$ac_try;;
17125esac
17126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127 (eval "$ac_link") 2>conftest.er1
d9898ee8 17128 ac_status=$?
17129 grep -v '^ *+' conftest.er1 >conftest.err
17130 rm -f conftest.er1
17131 cat conftest.err >&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17133 (exit $ac_status); } && {
17134 test -z "$ac_c_werror_flag" ||
17135 test ! -s conftest.err
17136 } && test -s conftest$ac_exeext &&
17137 $as_test_x conftest$ac_exeext; then
d9898ee8 17138
17139aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17140}'`
17141# Check for a 64-bit object if we didn't find anything.
17142if 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; }
17143}'`; fi
17144else
17145 echo "$as_me: failed program was:" >&5
17146sed 's/^/| /' conftest.$ac_ext >&5
17147
dd184caf 17148
d9898ee8 17149fi
dd184caf 17150
17151rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17152 conftest$ac_exeext conftest.$ac_ext
17153if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17154
17155 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17156 # Warning - without using the other run time loading flags,
17157 # -berok will link without error, but may produce a broken library.
17158 no_undefined_flag_GCJ=' ${wl}-bernotok'
17159 allow_undefined_flag_GCJ=' ${wl}-berok'
17160 # Exported symbols can be pulled into shared objects from archives
17161 whole_archive_flag_spec_GCJ='$convenience'
17162 archive_cmds_need_lc_GCJ=yes
17163 # This is similar to how AIX traditionally builds its shared libraries.
17164 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'
17165 fi
17166 fi
17167 ;;
17168
17169 amigaos*)
17170 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)'
17171 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17172 hardcode_minus_L_GCJ=yes
17173 # see comment about different semantics on the GNU ld section
17174 ld_shlibs_GCJ=no
17175 ;;
17176
17177 bsdi[45]*)
17178 export_dynamic_flag_spec_GCJ=-rdynamic
17179 ;;
17180
17181 cygwin* | mingw* | pw32*)
17182 # When not using gcc, we currently assume that we are using
17183 # Microsoft Visual C++.
17184 # hardcode_libdir_flag_spec is actually meaningless, as there is
17185 # no search path for DLLs.
17186 hardcode_libdir_flag_spec_GCJ=' '
17187 allow_undefined_flag_GCJ=unsupported
17188 # Tell ltmain to make .lib files, not .a files.
17189 libext=lib
17190 # Tell ltmain to make .dll files, not .so files.
17191 shrext_cmds=".dll"
17192 # FIXME: Setting linknames here is a bad hack.
17193 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17194 # The linker will automatically build a .lib file if we build a DLL.
17195 old_archive_From_new_cmds_GCJ='true'
17196 # FIXME: Should let the user specify the lib program.
17197 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17198 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17199 enable_shared_with_static_runtimes_GCJ=yes
17200 ;;
17201
17202 darwin* | rhapsody*)
17203 case $host_os in
17204 rhapsody* | darwin1.[012])
17205 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17206 ;;
17207 *) # Darwin 1.3 on
17208 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17209 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17210 else
17211 case ${MACOSX_DEPLOYMENT_TARGET} in
17212 10.[012])
17213 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17214 ;;
17215 10.*)
17216 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17217 ;;
17218 esac
17219 fi
17220 ;;
17221 esac
17222 archive_cmds_need_lc_GCJ=no
17223 hardcode_direct_GCJ=no
17224 hardcode_automatic_GCJ=yes
17225 hardcode_shlibpath_var_GCJ=unsupported
17226 whole_archive_flag_spec_GCJ=''
17227 link_all_deplibs_GCJ=yes
17228 if test "$GCC" = yes ; then
17229 output_verbose_link_cmd='echo'
17230 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17231 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17232 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17233 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}'
17234 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}'
17235 else
17236 case $cc_basename in
17237 xlc*)
17238 output_verbose_link_cmd='echo'
17239 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17240 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17241 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17242 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}'
17243 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}'
17244 ;;
17245 *)
17246 ld_shlibs_GCJ=no
17247 ;;
17248 esac
17249 fi
17250 ;;
17251
17252 dgux*)
17253 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17254 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17255 hardcode_shlibpath_var_GCJ=no
17256 ;;
17257
17258 freebsd1*)
17259 ld_shlibs_GCJ=no
17260 ;;
17261
17262 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17263 # support. Future versions do this automatically, but an explicit c++rt0.o
17264 # does not break anything, and helps significantly (at the cost of a little
17265 # extra space).
17266 freebsd2.2*)
17267 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17268 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17269 hardcode_direct_GCJ=yes
17270 hardcode_shlibpath_var_GCJ=no
17271 ;;
17272
17273 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17274 freebsd2*)
17275 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17276 hardcode_direct_GCJ=yes
17277 hardcode_minus_L_GCJ=yes
17278 hardcode_shlibpath_var_GCJ=no
17279 ;;
17280
17281 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1dce02f2 17282 freebsd* | dragonfly*)
d9898ee8 17283 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17284 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17285 hardcode_direct_GCJ=yes
17286 hardcode_shlibpath_var_GCJ=no
17287 ;;
17288
17289 hpux9*)
17290 if test "$GCC" = yes; then
17291 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'
17292 else
17293 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'
17294 fi
17295 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17296 hardcode_libdir_separator_GCJ=:
17297 hardcode_direct_GCJ=yes
17298
17299 # hardcode_minus_L: Not really in the search PATH,
17300 # but as the default location of the library.
17301 hardcode_minus_L_GCJ=yes
17302 export_dynamic_flag_spec_GCJ='${wl}-E'
17303 ;;
17304
17305 hpux10*)
17306 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17307 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17308 else
17309 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17310 fi
17311 if test "$with_gnu_ld" = no; then
17312 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17313 hardcode_libdir_separator_GCJ=:
17314
17315 hardcode_direct_GCJ=yes
17316 export_dynamic_flag_spec_GCJ='${wl}-E'
17317
17318 # hardcode_minus_L: Not really in the search PATH,
17319 # but as the default location of the library.
17320 hardcode_minus_L_GCJ=yes
17321 fi
17322 ;;
17323
17324 hpux11*)
17325 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17326 case $host_cpu in
17327 hppa*64*)
17328 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17329 ;;
17330 ia64*)
17331 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17332 ;;
17333 *)
17334 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17335 ;;
17336 esac
17337 else
17338 case $host_cpu in
17339 hppa*64*)
17340 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17341 ;;
17342 ia64*)
17343 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17344 ;;
17345 *)
17346 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17347 ;;
17348 esac
17349 fi
17350 if test "$with_gnu_ld" = no; then
17351 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17352 hardcode_libdir_separator_GCJ=:
17353
17354 case $host_cpu in
17355 hppa*64*|ia64*)
17356 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17357 hardcode_direct_GCJ=no
17358 hardcode_shlibpath_var_GCJ=no
17359 ;;
17360 *)
17361 hardcode_direct_GCJ=yes
17362 export_dynamic_flag_spec_GCJ='${wl}-E'
17363
17364 # hardcode_minus_L: Not really in the search PATH,
17365 # but as the default location of the library.
17366 hardcode_minus_L_GCJ=yes
17367 ;;
17368 esac
17369 fi
17370 ;;
17371
17372 irix5* | irix6* | nonstopux*)
17373 if test "$GCC" = yes; then
17374 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'
17375 else
17376 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'
17377 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17378 fi
17379 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17380 hardcode_libdir_separator_GCJ=:
17381 link_all_deplibs_GCJ=yes
17382 ;;
17383
1dce02f2 17384 netbsd* | netbsdelf*-gnu)
d9898ee8 17385 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17386 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17387 else
17388 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17389 fi
17390 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17391 hardcode_direct_GCJ=yes
17392 hardcode_shlibpath_var_GCJ=no
17393 ;;
17394
17395 newsos6)
17396 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17397 hardcode_direct_GCJ=yes
17398 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17399 hardcode_libdir_separator_GCJ=:
17400 hardcode_shlibpath_var_GCJ=no
17401 ;;
17402
17403 openbsd*)
17404 hardcode_direct_GCJ=yes
17405 hardcode_shlibpath_var_GCJ=no
17406 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17407 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17408 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17409 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17410 export_dynamic_flag_spec_GCJ='${wl}-E'
17411 else
17412 case $host_os in
17413 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17414 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17415 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17416 ;;
17417 *)
17418 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17419 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17420 ;;
17421 esac
17422 fi
17423 ;;
17424
17425 os2*)
17426 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17427 hardcode_minus_L_GCJ=yes
17428 allow_undefined_flag_GCJ=unsupported
17429 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'
17430 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17431 ;;
17432
17433 osf3*)
17434 if test "$GCC" = yes; then
17435 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17436 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'
17437 else
17438 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17439 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'
17440 fi
17441 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17442 hardcode_libdir_separator_GCJ=:
17443 ;;
17444
17445 osf4* | osf5*) # as osf3* with the addition of -msym flag
17446 if test "$GCC" = yes; then
17447 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17448 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'
17449 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17450 else
17451 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17452 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'
17453 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~
17454 $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'
17455
17456 # Both c and cxx compiler support -rpath directly
17457 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17458 fi
17459 hardcode_libdir_separator_GCJ=:
17460 ;;
17461
17462 solaris*)
17463 no_undefined_flag_GCJ=' -z text'
17464 if test "$GCC" = yes; then
17465 wlarc='${wl}'
17466 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17467 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17468 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17469 else
17470 wlarc=''
17471 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17472 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17473 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17474 fi
17475 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17476 hardcode_shlibpath_var_GCJ=no
17477 case $host_os in
17478 solaris2.[0-5] | solaris2.[0-5].*) ;;
17479 *)
17480 # The compiler driver will combine linker options so we
17481 # cannot just pass the convience library names through
17482 # without $wl, iff we do not link with $LD.
17483 # Luckily, gcc supports the same syntax we need for Sun Studio.
17484 # Supported since Solaris 2.6 (maybe 2.5.1?)
17485 case $wlarc in
17486 '')
17487 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17488 *)
17489 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' ;;
17490 esac ;;
17491 esac
17492 link_all_deplibs_GCJ=yes
17493 ;;
17494
17495 sunos4*)
17496 if test "x$host_vendor" = xsequent; then
17497 # Use $CC to link under sequent, because it throws in some extra .o
17498 # files that make .init and .fini sections work.
17499 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17500 else
17501 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17502 fi
17503 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17504 hardcode_direct_GCJ=yes
17505 hardcode_minus_L_GCJ=yes
17506 hardcode_shlibpath_var_GCJ=no
17507 ;;
17508
17509 sysv4)
17510 case $host_vendor in
17511 sni)
17512 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17513 hardcode_direct_GCJ=yes # is this really true???
17514 ;;
17515 siemens)
17516 ## LD is ld it makes a PLAMLIB
17517 ## CC just makes a GrossModule.
17518 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17519 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17520 hardcode_direct_GCJ=no
17521 ;;
17522 motorola)
17523 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17524 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17525 ;;
17526 esac
17527 runpath_var='LD_RUN_PATH'
17528 hardcode_shlibpath_var_GCJ=no
17529 ;;
17530
17531 sysv4.3*)
17532 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17533 hardcode_shlibpath_var_GCJ=no
17534 export_dynamic_flag_spec_GCJ='-Bexport'
17535 ;;
17536
17537 sysv4*MP*)
17538 if test -d /usr/nec; then
17539 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17540 hardcode_shlibpath_var_GCJ=no
17541 runpath_var=LD_RUN_PATH
17542 hardcode_runpath_var=yes
17543 ld_shlibs_GCJ=yes
17544 fi
17545 ;;
17546
17547 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17548 no_undefined_flag_GCJ='${wl}-z,text'
17549 archive_cmds_need_lc_GCJ=no
17550 hardcode_shlibpath_var_GCJ=no
17551 runpath_var='LD_RUN_PATH'
17552
17553 if test "$GCC" = yes; then
17554 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17555 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17556 else
17557 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17558 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17559 fi
17560 ;;
17561
17562 sysv5* | sco3.2v5* | sco5v6*)
17563 # Note: We can NOT use -z defs as we might desire, because we do not
17564 # link with -lc, and that would cause any symbols used from libc to
17565 # always be unresolved, which means just about no library would
17566 # ever link correctly. If we're not using GNU ld we use -z text
17567 # though, which does catch some bad symbols but isn't as heavy-handed
17568 # as -z defs.
17569 no_undefined_flag_GCJ='${wl}-z,text'
17570 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17571 archive_cmds_need_lc_GCJ=no
17572 hardcode_shlibpath_var_GCJ=no
17573 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17574 hardcode_libdir_separator_GCJ=':'
17575 link_all_deplibs_GCJ=yes
17576 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17577 runpath_var='LD_RUN_PATH'
17578
17579 if test "$GCC" = yes; then
17580 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17581 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17582 else
17583 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17584 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17585 fi
17586 ;;
17587
17588 uts4*)
17589 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17590 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17591 hardcode_shlibpath_var_GCJ=no
17592 ;;
17593
17594 *)
17595 ld_shlibs_GCJ=no
17596 ;;
17597 esac
17598 fi
17599
dd184caf 17600{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17601echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d9898ee8 17602test "$ld_shlibs_GCJ" = no && can_build_shared=no
17603
17604#
17605# Do we need to explicitly link libc?
17606#
17607case "x$archive_cmds_need_lc_GCJ" in
17608x|xyes)
17609 # Assume -lc should be added
17610 archive_cmds_need_lc_GCJ=yes
17611
17612 if test "$enable_shared" = yes && test "$GCC" = yes; then
17613 case $archive_cmds_GCJ in
17614 *'~'*)
17615 # FIXME: we may have to deal with multi-command sequences.
17616 ;;
17617 '$CC '*)
17618 # Test whether the compiler implicitly links with -lc since on some
17619 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17620 # to ld, don't add -lc before -lgcc.
dd184caf 17621 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17622echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 17623 $rm conftest*
17624 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17625
17626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17627 (eval $ac_compile) 2>&5
17628 ac_status=$?
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); } 2>conftest.err; then
17631 soname=conftest
17632 lib=conftest
17633 libobjs=conftest.$ac_objext
17634 deplibs=
17635 wl=$lt_prog_compiler_wl_GCJ
17636 pic_flag=$lt_prog_compiler_pic_GCJ
17637 compiler_flags=-v
17638 linker_flags=-v
17639 verstring=
17640 output_objdir=.
17641 libname=conftest
17642 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17643 allow_undefined_flag_GCJ=
17644 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17645 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17646 ac_status=$?
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }
17649 then
17650 archive_cmds_need_lc_GCJ=no
17651 else
17652 archive_cmds_need_lc_GCJ=yes
17653 fi
17654 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17655 else
17656 cat conftest.err 1>&5
17657 fi
17658 $rm conftest*
dd184caf 17659 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17660echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d9898ee8 17661 ;;
17662 esac
17663 fi
17664 ;;
17665esac
17666
dd184caf 17667{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17668echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 17669library_names_spec=
17670libname_spec='lib$name'
17671soname_spec=
17672shrext_cmds=".so"
17673postinstall_cmds=
17674postuninstall_cmds=
17675finish_cmds=
17676finish_eval=
17677shlibpath_var=
17678shlibpath_overrides_runpath=unknown
17679version_type=none
17680dynamic_linker="$host_os ld.so"
17681sys_lib_dlsearch_path_spec="/lib /usr/lib"
17682if test "$GCC" = yes; then
17683 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17684 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17685 # if the path contains ";" then we assume it to be the separator
17686 # otherwise default to the standard path separator (i.e. ":") - it is
17687 # assumed that no part of a normal pathname contains ";" but that should
17688 # okay in the real world where ";" in dirpaths is itself problematic.
17689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17690 else
17691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17692 fi
17693else
17694 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17695fi
17696need_lib_prefix=unknown
17697hardcode_into_libs=no
17698
17699# when you set need_version to no, make sure it does not cause -set_version
17700# flags to be left without arguments
17701need_version=unknown
17702
17703case $host_os in
17704aix3*)
17705 version_type=linux
17706 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17707 shlibpath_var=LIBPATH
17708
17709 # AIX 3 has no versioning support, so we append a major version to the name.
17710 soname_spec='${libname}${release}${shared_ext}$major'
17711 ;;
17712
17713aix4* | aix5*)
17714 version_type=linux
17715 need_lib_prefix=no
17716 need_version=no
17717 hardcode_into_libs=yes
17718 if test "$host_cpu" = ia64; then
17719 # AIX 5 supports IA64
17720 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17721 shlibpath_var=LD_LIBRARY_PATH
17722 else
17723 # With GCC up to 2.95.x, collect2 would create an import file
17724 # for dependence libraries. The import file would start with
17725 # the line `#! .'. This would cause the generated library to
17726 # depend on `.', always an invalid library. This was fixed in
17727 # development snapshots of GCC prior to 3.0.
17728 case $host_os in
17729 aix4 | aix4.[01] | aix4.[01].*)
17730 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17731 echo ' yes '
17732 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17733 :
17734 else
17735 can_build_shared=no
17736 fi
17737 ;;
17738 esac
17739 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17740 # soname into executable. Probably we can add versioning support to
17741 # collect2, so additional links can be useful in future.
17742 if test "$aix_use_runtimelinking" = yes; then
17743 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17744 # instead of lib<name>.a to let people know that these are not
17745 # typical AIX shared libraries.
17746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17747 else
17748 # We preserve .a as extension for shared libraries through AIX4.2
17749 # and later when we are not doing run time linking.
17750 library_names_spec='${libname}${release}.a $libname.a'
17751 soname_spec='${libname}${release}${shared_ext}$major'
17752 fi
17753 shlibpath_var=LIBPATH
17754 fi
17755 ;;
17756
17757amigaos*)
17758 library_names_spec='$libname.ixlibrary $libname.a'
17759 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17760 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'
17761 ;;
17762
17763beos*)
17764 library_names_spec='${libname}${shared_ext}'
17765 dynamic_linker="$host_os ld.so"
17766 shlibpath_var=LIBRARY_PATH
17767 ;;
17768
17769bsdi[45]*)
17770 version_type=linux
17771 need_version=no
17772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17773 soname_spec='${libname}${release}${shared_ext}$major'
17774 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17775 shlibpath_var=LD_LIBRARY_PATH
17776 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17777 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17778 # the default ld.so.conf also contains /usr/contrib/lib and
17779 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17780 # libtool to hard-code these into programs
17781 ;;
17782
17783cygwin* | mingw* | pw32*)
17784 version_type=windows
17785 shrext_cmds=".dll"
17786 need_version=no
17787 need_lib_prefix=no
17788
17789 case $GCC,$host_os in
17790 yes,cygwin* | yes,mingw* | yes,pw32*)
17791 library_names_spec='$libname.dll.a'
17792 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17793 postinstall_cmds='base_file=`basename \${file}`~
17794 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17795 dldir=$destdir/`dirname \$dlpath`~
17796 test -d \$dldir || mkdir -p \$dldir~
17797 $install_prog $dir/$dlname \$dldir/$dlname~
17798 chmod a+x \$dldir/$dlname'
17799 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17800 dlpath=$dir/\$dldll~
17801 $rm \$dlpath'
17802 shlibpath_overrides_runpath=yes
17803
17804 case $host_os in
17805 cygwin*)
17806 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17807 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17808 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17809 ;;
17810 mingw*)
17811 # MinGW DLLs use traditional 'lib' prefix
17812 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17813 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17814 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17815 # It is most probably a Windows format PATH printed by
17816 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17817 # path with ; separators, and with drive letters. We can handle the
17818 # drive letters (cygwin fileutils understands them), so leave them,
17819 # especially as we might pass files found there to a mingw objdump,
17820 # which wouldn't understand a cygwinified path. Ahh.
17821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17822 else
17823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17824 fi
17825 ;;
17826 pw32*)
17827 # pw32 DLLs use 'pw' prefix rather than 'lib'
17828 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17829 ;;
17830 esac
17831 ;;
17832
17833 *)
17834 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17835 ;;
17836 esac
17837 dynamic_linker='Win32 ld.exe'
17838 # FIXME: first we should search . and the directory the executable is in
17839 shlibpath_var=PATH
17840 ;;
17841
17842darwin* | rhapsody*)
17843 dynamic_linker="$host_os dyld"
17844 version_type=darwin
17845 need_lib_prefix=no
17846 need_version=no
17847 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17848 soname_spec='${libname}${release}${major}$shared_ext'
17849 shlibpath_overrides_runpath=yes
17850 shlibpath_var=DYLD_LIBRARY_PATH
17851 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17852 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17853 if test "$GCC" = yes; then
17854 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"`
17855 else
17856 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17857 fi
17858 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17859 ;;
17860
17861dgux*)
17862 version_type=linux
17863 need_lib_prefix=no
17864 need_version=no
17865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17866 soname_spec='${libname}${release}${shared_ext}$major'
17867 shlibpath_var=LD_LIBRARY_PATH
17868 ;;
17869
17870freebsd1*)
17871 dynamic_linker=no
17872 ;;
17873
d9898ee8 17874freebsd* | dragonfly*)
17875 # DragonFly does not have aout. When/if they implement a new
17876 # versioning mechanism, adjust this.
17877 if test -x /usr/bin/objformat; then
17878 objformat=`/usr/bin/objformat`
17879 else
17880 case $host_os in
17881 freebsd[123]*) objformat=aout ;;
17882 *) objformat=elf ;;
17883 esac
17884 fi
17885 version_type=freebsd-$objformat
17886 case $version_type in
17887 freebsd-elf*)
17888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17889 need_version=no
17890 need_lib_prefix=no
17891 ;;
17892 freebsd-*)
17893 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17894 need_version=yes
17895 ;;
17896 esac
17897 shlibpath_var=LD_LIBRARY_PATH
17898 case $host_os in
17899 freebsd2*)
17900 shlibpath_overrides_runpath=yes
17901 ;;
17902 freebsd3.[01]* | freebsdelf3.[01]*)
17903 shlibpath_overrides_runpath=yes
17904 hardcode_into_libs=yes
17905 ;;
17906 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17907 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17908 shlibpath_overrides_runpath=no
17909 hardcode_into_libs=yes
17910 ;;
17911 freebsd*) # from 4.6 on
17912 shlibpath_overrides_runpath=yes
17913 hardcode_into_libs=yes
17914 ;;
17915 esac
17916 ;;
17917
17918gnu*)
17919 version_type=linux
17920 need_lib_prefix=no
17921 need_version=no
17922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17923 soname_spec='${libname}${release}${shared_ext}$major'
17924 shlibpath_var=LD_LIBRARY_PATH
17925 hardcode_into_libs=yes
17926 ;;
17927
17928hpux9* | hpux10* | hpux11*)
17929 # Give a soname corresponding to the major version so that dld.sl refuses to
17930 # link against other versions.
17931 version_type=sunos
17932 need_lib_prefix=no
17933 need_version=no
17934 case $host_cpu in
17935 ia64*)
17936 shrext_cmds='.so'
17937 hardcode_into_libs=yes
17938 dynamic_linker="$host_os dld.so"
17939 shlibpath_var=LD_LIBRARY_PATH
17940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17942 soname_spec='${libname}${release}${shared_ext}$major'
17943 if test "X$HPUX_IA64_MODE" = X32; then
17944 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17945 else
17946 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17947 fi
17948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17949 ;;
17950 hppa*64*)
17951 shrext_cmds='.sl'
17952 hardcode_into_libs=yes
17953 dynamic_linker="$host_os dld.sl"
17954 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17955 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17957 soname_spec='${libname}${release}${shared_ext}$major'
17958 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17960 ;;
17961 *)
17962 shrext_cmds='.sl'
17963 dynamic_linker="$host_os dld.sl"
17964 shlibpath_var=SHLIB_PATH
17965 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17967 soname_spec='${libname}${release}${shared_ext}$major'
17968 ;;
17969 esac
17970 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17971 postinstall_cmds='chmod 555 $lib'
17972 ;;
17973
17974interix3*)
17975 version_type=linux
17976 need_lib_prefix=no
17977 need_version=no
17978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17979 soname_spec='${libname}${release}${shared_ext}$major'
17980 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17981 shlibpath_var=LD_LIBRARY_PATH
17982 shlibpath_overrides_runpath=no
17983 hardcode_into_libs=yes
17984 ;;
17985
17986irix5* | irix6* | nonstopux*)
17987 case $host_os in
17988 nonstopux*) version_type=nonstopux ;;
17989 *)
17990 if test "$lt_cv_prog_gnu_ld" = yes; then
17991 version_type=linux
17992 else
17993 version_type=irix
17994 fi ;;
17995 esac
17996 need_lib_prefix=no
17997 need_version=no
17998 soname_spec='${libname}${release}${shared_ext}$major'
17999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18000 case $host_os in
18001 irix5* | nonstopux*)
18002 libsuff= shlibsuff=
18003 ;;
18004 *)
18005 case $LD in # libtool.m4 will add one of these switches to LD
18006 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18007 libsuff= shlibsuff= libmagic=32-bit;;
18008 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18009 libsuff=32 shlibsuff=N32 libmagic=N32;;
18010 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18011 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18012 *) libsuff= shlibsuff= libmagic=never-match;;
18013 esac
18014 ;;
18015 esac
18016 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18017 shlibpath_overrides_runpath=no
18018 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18019 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18020 hardcode_into_libs=yes
18021 ;;
18022
18023# No shared lib support for Linux oldld, aout, or coff.
18024linux*oldld* | linux*aout* | linux*coff*)
18025 dynamic_linker=no
18026 ;;
18027
18028# This must be Linux ELF.
1dce02f2 18029linux* | k*bsd*-gnu)
d9898ee8 18030 version_type=linux
18031 need_lib_prefix=no
18032 need_version=no
18033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18034 soname_spec='${libname}${release}${shared_ext}$major'
18035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18036 shlibpath_var=LD_LIBRARY_PATH
18037 shlibpath_overrides_runpath=no
18038 # This implies no fast_install, which is unacceptable.
18039 # Some rework will be needed to allow for fast_install
18040 # before this can be enabled.
18041 hardcode_into_libs=yes
18042
d9898ee8 18043 # Append ld.so.conf contents to the search path
18044 if test -f /etc/ld.so.conf; then
1dce02f2 18045 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18046 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
d9898ee8 18047 fi
18048
18049 # We used to test for /lib/ld.so.1 and disable shared libraries on
18050 # powerpc, because MkLinux only supported shared libraries with the
18051 # GNU dynamic linker. Since this was broken with cross compilers,
18052 # most powerpc-linux boxes support dynamic linking these days and
18053 # people can always --disable-shared, the test was removed, and we
18054 # assume the GNU/Linux dynamic linker is in use.
18055 dynamic_linker='GNU/Linux ld.so'
18056 ;;
18057
1dce02f2 18058netbsdelf*-gnu)
d9898ee8 18059 version_type=linux
18060 need_lib_prefix=no
18061 need_version=no
18062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18063 soname_spec='${libname}${release}${shared_ext}$major'
18064 shlibpath_var=LD_LIBRARY_PATH
18065 shlibpath_overrides_runpath=no
18066 hardcode_into_libs=yes
1dce02f2 18067 dynamic_linker='NetBSD ld.elf_so'
d9898ee8 18068 ;;
18069
18070netbsd*)
18071 version_type=sunos
18072 need_lib_prefix=no
18073 need_version=no
18074 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18077 dynamic_linker='NetBSD (a.out) ld.so'
18078 else
18079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18080 soname_spec='${libname}${release}${shared_ext}$major'
18081 dynamic_linker='NetBSD ld.elf_so'
18082 fi
18083 shlibpath_var=LD_LIBRARY_PATH
18084 shlibpath_overrides_runpath=yes
18085 hardcode_into_libs=yes
18086 ;;
18087
18088newsos6)
18089 version_type=linux
18090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18091 shlibpath_var=LD_LIBRARY_PATH
18092 shlibpath_overrides_runpath=yes
18093 ;;
18094
18095nto-qnx*)
18096 version_type=linux
18097 need_lib_prefix=no
18098 need_version=no
18099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18100 soname_spec='${libname}${release}${shared_ext}$major'
18101 shlibpath_var=LD_LIBRARY_PATH
18102 shlibpath_overrides_runpath=yes
18103 ;;
18104
18105openbsd*)
18106 version_type=sunos
18107 sys_lib_dlsearch_path_spec="/usr/lib"
18108 need_lib_prefix=no
18109 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18110 case $host_os in
18111 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18112 *) need_version=no ;;
18113 esac
18114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18116 shlibpath_var=LD_LIBRARY_PATH
18117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18118 case $host_os in
18119 openbsd2.[89] | openbsd2.[89].*)
18120 shlibpath_overrides_runpath=no
18121 ;;
18122 *)
18123 shlibpath_overrides_runpath=yes
18124 ;;
18125 esac
18126 else
18127 shlibpath_overrides_runpath=yes
18128 fi
18129 ;;
18130
18131os2*)
18132 libname_spec='$name'
18133 shrext_cmds=".dll"
18134 need_lib_prefix=no
18135 library_names_spec='$libname${shared_ext} $libname.a'
18136 dynamic_linker='OS/2 ld.exe'
18137 shlibpath_var=LIBPATH
18138 ;;
18139
18140osf3* | osf4* | osf5*)
18141 version_type=osf
18142 need_lib_prefix=no
18143 need_version=no
18144 soname_spec='${libname}${release}${shared_ext}$major'
18145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18146 shlibpath_var=LD_LIBRARY_PATH
18147 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18148 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18149 ;;
18150
18151solaris*)
18152 version_type=linux
18153 need_lib_prefix=no
18154 need_version=no
18155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18156 soname_spec='${libname}${release}${shared_ext}$major'
18157 shlibpath_var=LD_LIBRARY_PATH
18158 shlibpath_overrides_runpath=yes
18159 hardcode_into_libs=yes
18160 # ldd complains unless libraries are executable
18161 postinstall_cmds='chmod +x $lib'
18162 ;;
18163
18164sunos4*)
18165 version_type=sunos
18166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18167 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18168 shlibpath_var=LD_LIBRARY_PATH
18169 shlibpath_overrides_runpath=yes
18170 if test "$with_gnu_ld" = yes; then
18171 need_lib_prefix=no
18172 fi
18173 need_version=yes
18174 ;;
18175
18176sysv4 | sysv4.3*)
18177 version_type=linux
18178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18179 soname_spec='${libname}${release}${shared_ext}$major'
18180 shlibpath_var=LD_LIBRARY_PATH
18181 case $host_vendor in
18182 sni)
18183 shlibpath_overrides_runpath=no
18184 need_lib_prefix=no
18185 export_dynamic_flag_spec='${wl}-Blargedynsym'
18186 runpath_var=LD_RUN_PATH
18187 ;;
18188 siemens)
18189 need_lib_prefix=no
18190 ;;
18191 motorola)
18192 need_lib_prefix=no
18193 need_version=no
18194 shlibpath_overrides_runpath=no
18195 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18196 ;;
18197 esac
18198 ;;
18199
18200sysv4*MP*)
18201 if test -d /usr/nec ;then
18202 version_type=linux
18203 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18204 soname_spec='$libname${shared_ext}.$major'
18205 shlibpath_var=LD_LIBRARY_PATH
18206 fi
18207 ;;
18208
18209sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18210 version_type=freebsd-elf
18211 need_lib_prefix=no
18212 need_version=no
18213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18214 soname_spec='${libname}${release}${shared_ext}$major'
18215 shlibpath_var=LD_LIBRARY_PATH
18216 hardcode_into_libs=yes
18217 if test "$with_gnu_ld" = yes; then
18218 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18219 shlibpath_overrides_runpath=no
18220 else
18221 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18222 shlibpath_overrides_runpath=yes
18223 case $host_os in
18224 sco3.2v5*)
18225 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18226 ;;
18227 esac
18228 fi
18229 sys_lib_dlsearch_path_spec='/usr/lib'
18230 ;;
18231
18232uts4*)
18233 version_type=linux
18234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18235 soname_spec='${libname}${release}${shared_ext}$major'
18236 shlibpath_var=LD_LIBRARY_PATH
18237 ;;
18238
18239*)
18240 dynamic_linker=no
18241 ;;
18242esac
dd184caf 18243{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18244echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 18245test "$dynamic_linker" = no && can_build_shared=no
18246
18247variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18248if test "$GCC" = yes; then
18249 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18250fi
18251
dd184caf 18252{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18253echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 18254hardcode_action_GCJ=
18255if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18256 test -n "$runpath_var_GCJ" || \
18257 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18258
18259 # We can hardcode non-existant directories.
18260 if test "$hardcode_direct_GCJ" != no &&
18261 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18262 # have to relink, otherwise we might link with an installed library
18263 # when we should be linking with a yet-to-be-installed one
18264 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18265 test "$hardcode_minus_L_GCJ" != no; then
18266 # Linking always hardcodes the temporary library directory.
18267 hardcode_action_GCJ=relink
18268 else
18269 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18270 hardcode_action_GCJ=immediate
18271 fi
18272else
18273 # We cannot hardcode anything, or else we can only hardcode existing
18274 # directories.
18275 hardcode_action_GCJ=unsupported
18276fi
dd184caf 18277{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18278echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d9898ee8 18279
18280if test "$hardcode_action_GCJ" = relink; then
18281 # Fast installation is not supported
18282 enable_fast_install=no
18283elif test "$shlibpath_overrides_runpath" = yes ||
18284 test "$enable_shared" = no; then
18285 # Fast installation is not necessary
18286 enable_fast_install=needless
18287fi
18288
18289
18290# The else clause should only fire when bootstrapping the
18291# libtool distribution, otherwise you forgot to ship ltmain.sh
18292# with your package, and you will get complaints that there are
18293# no rules to generate ltmain.sh.
18294if test -f "$ltmain"; then
18295 # See if we are running on zsh, and set the options which allow our commands through
18296 # without removal of \ escapes.
18297 if test -n "${ZSH_VERSION+set}" ; then
18298 setopt NO_GLOB_SUBST
18299 fi
18300 # Now quote all the things that may contain metacharacters while being
18301 # careful not to overquote the AC_SUBSTed values. We take copies of the
18302 # variables and quote the copies for generation of the libtool script.
18303 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18304 SED SHELL STRIP \
18305 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18306 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18307 deplibs_check_method reload_flag reload_cmds need_locks \
18308 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18309 lt_cv_sys_global_symbol_to_c_name_address \
18310 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18311 old_postinstall_cmds old_postuninstall_cmds \
18312 compiler_GCJ \
18313 CC_GCJ \
18314 LD_GCJ \
18315 lt_prog_compiler_wl_GCJ \
18316 lt_prog_compiler_pic_GCJ \
18317 lt_prog_compiler_static_GCJ \
18318 lt_prog_compiler_no_builtin_flag_GCJ \
18319 export_dynamic_flag_spec_GCJ \
18320 thread_safe_flag_spec_GCJ \
18321 whole_archive_flag_spec_GCJ \
18322 enable_shared_with_static_runtimes_GCJ \
18323 old_archive_cmds_GCJ \
18324 old_archive_from_new_cmds_GCJ \
18325 predep_objects_GCJ \
18326 postdep_objects_GCJ \
18327 predeps_GCJ \
18328 postdeps_GCJ \
18329 compiler_lib_search_path_GCJ \
18330 archive_cmds_GCJ \
18331 archive_expsym_cmds_GCJ \
18332 postinstall_cmds_GCJ \
18333 postuninstall_cmds_GCJ \
18334 old_archive_from_expsyms_cmds_GCJ \
18335 allow_undefined_flag_GCJ \
18336 no_undefined_flag_GCJ \
18337 export_symbols_cmds_GCJ \
18338 hardcode_libdir_flag_spec_GCJ \
18339 hardcode_libdir_flag_spec_ld_GCJ \
18340 hardcode_libdir_separator_GCJ \
18341 hardcode_automatic_GCJ \
18342 module_cmds_GCJ \
18343 module_expsym_cmds_GCJ \
18344 lt_cv_prog_compiler_c_o_GCJ \
18345 exclude_expsyms_GCJ \
18346 include_expsyms_GCJ; do
18347
18348 case $var in
18349 old_archive_cmds_GCJ | \
18350 old_archive_from_new_cmds_GCJ | \
18351 archive_cmds_GCJ | \
18352 archive_expsym_cmds_GCJ | \
18353 module_cmds_GCJ | \
18354 module_expsym_cmds_GCJ | \
18355 old_archive_from_expsyms_cmds_GCJ | \
18356 export_symbols_cmds_GCJ | \
18357 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18358 postinstall_cmds | postuninstall_cmds | \
18359 old_postinstall_cmds | old_postuninstall_cmds | \
18360 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18361 # Double-quote double-evaled strings.
18362 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18363 ;;
18364 *)
18365 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18366 ;;
18367 esac
18368 done
18369
18370 case $lt_echo in
18371 *'\$0 --fallback-echo"')
18372 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18373 ;;
18374 esac
18375
18376cfgfile="$ofile"
18377
18378 cat <<__EOF__ >> "$cfgfile"
18379# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18380
18381# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18382
18383# Shell to use when invoking shell scripts.
18384SHELL=$lt_SHELL
18385
18386# Whether or not to build shared libraries.
18387build_libtool_libs=$enable_shared
18388
18389# Whether or not to build static libraries.
18390build_old_libs=$enable_static
18391
18392# Whether or not to add -lc for building shared libraries.
18393build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18394
18395# Whether or not to disallow shared libs when runtime libs are static
18396allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18397
18398# Whether or not to optimize for fast installation.
18399fast_install=$enable_fast_install
18400
18401# The host system.
18402host_alias=$host_alias
18403host=$host
18404host_os=$host_os
18405
18406# The build system.
18407build_alias=$build_alias
18408build=$build
18409build_os=$build_os
18410
18411# An echo program that does not interpret backslashes.
18412echo=$lt_echo
18413
18414# The archiver.
18415AR=$lt_AR
18416AR_FLAGS=$lt_AR_FLAGS
18417
18418# A C compiler.
18419LTCC=$lt_LTCC
18420
18421# LTCC compiler flags.
18422LTCFLAGS=$lt_LTCFLAGS
18423
18424# A language-specific compiler.
18425CC=$lt_compiler_GCJ
18426
18427# Is the compiler the GNU C compiler?
18428with_gcc=$GCC_GCJ
18429
d9898ee8 18430# An ERE matcher.
18431EGREP=$lt_EGREP
18432
18433# The linker used to build libraries.
18434LD=$lt_LD_GCJ
18435
18436# Whether we need hard or soft links.
18437LN_S=$lt_LN_S
18438
18439# A BSD-compatible nm program.
18440NM=$lt_NM
18441
18442# A symbol stripping program
18443STRIP=$lt_STRIP
18444
18445# Used to examine libraries when file_magic_cmd begins "file"
18446MAGIC_CMD=$MAGIC_CMD
18447
18448# Used on cygwin: DLL creation program.
18449DLLTOOL="$DLLTOOL"
18450
18451# Used on cygwin: object dumper.
18452OBJDUMP="$OBJDUMP"
18453
18454# Used on cygwin: assembler.
18455AS="$AS"
18456
18457# The name of the directory that contains temporary libtool files.
18458objdir=$objdir
18459
18460# How to create reloadable object files.
18461reload_flag=$lt_reload_flag
18462reload_cmds=$lt_reload_cmds
18463
18464# How to pass a linker flag through the compiler.
18465wl=$lt_lt_prog_compiler_wl_GCJ
18466
18467# Object file suffix (normally "o").
18468objext="$ac_objext"
18469
18470# Old archive suffix (normally "a").
18471libext="$libext"
18472
18473# Shared library suffix (normally ".so").
18474shrext_cmds='$shrext_cmds'
18475
18476# Executable file suffix (normally "").
18477exeext="$exeext"
18478
18479# Additional compiler flags for building library objects.
18480pic_flag=$lt_lt_prog_compiler_pic_GCJ
18481pic_mode=$pic_mode
18482
18483# What is the maximum length of a command?
18484max_cmd_len=$lt_cv_sys_max_cmd_len
18485
18486# Does compiler simultaneously support -c and -o options?
18487compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18488
18489# Must we lock files when doing compilation?
18490need_locks=$lt_need_locks
18491
18492# Do we need the lib prefix for modules?
18493need_lib_prefix=$need_lib_prefix
18494
18495# Do we need a version for libraries?
18496need_version=$need_version
18497
18498# Whether dlopen is supported.
18499dlopen_support=$enable_dlopen
18500
18501# Whether dlopen of programs is supported.
18502dlopen_self=$enable_dlopen_self
18503
18504# Whether dlopen of statically linked programs is supported.
18505dlopen_self_static=$enable_dlopen_self_static
18506
18507# Compiler flag to prevent dynamic linking.
18508link_static_flag=$lt_lt_prog_compiler_static_GCJ
18509
18510# Compiler flag to turn off builtin functions.
18511no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18512
18513# Compiler flag to allow reflexive dlopens.
18514export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18515
18516# Compiler flag to generate shared objects directly from archives.
18517whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18518
18519# Compiler flag to generate thread-safe objects.
18520thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18521
18522# Library versioning type.
18523version_type=$version_type
18524
18525# Format of library name prefix.
18526libname_spec=$lt_libname_spec
18527
18528# List of archive names. First name is the real one, the rest are links.
18529# The last name is the one that the linker finds with -lNAME.
18530library_names_spec=$lt_library_names_spec
18531
18532# The coded name of the library, if different from the real name.
18533soname_spec=$lt_soname_spec
18534
18535# Commands used to build and install an old-style archive.
18536RANLIB=$lt_RANLIB
18537old_archive_cmds=$lt_old_archive_cmds_GCJ
18538old_postinstall_cmds=$lt_old_postinstall_cmds
18539old_postuninstall_cmds=$lt_old_postuninstall_cmds
18540
18541# Create an old-style archive from a shared archive.
18542old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18543
18544# Create a temporary old-style archive to link instead of a shared archive.
18545old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18546
18547# Commands used to build and install a shared archive.
18548archive_cmds=$lt_archive_cmds_GCJ
18549archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18550postinstall_cmds=$lt_postinstall_cmds
18551postuninstall_cmds=$lt_postuninstall_cmds
18552
18553# Commands used to build a loadable module (assumed same as above if empty)
18554module_cmds=$lt_module_cmds_GCJ
18555module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18556
18557# Commands to strip libraries.
18558old_striplib=$lt_old_striplib
18559striplib=$lt_striplib
18560
18561# Dependencies to place before the objects being linked to create a
18562# shared library.
dd184caf 18563predep_objects=$lt_predep_objects_GCJ
d9898ee8 18564
18565# Dependencies to place after the objects being linked to create a
18566# shared library.
dd184caf 18567postdep_objects=$lt_postdep_objects_GCJ
d9898ee8 18568
18569# Dependencies to place before the objects being linked to create a
18570# shared library.
18571predeps=$lt_predeps_GCJ
18572
18573# Dependencies to place after the objects being linked to create a
18574# shared library.
18575postdeps=$lt_postdeps_GCJ
18576
18577# The library search path used internally by the compiler when linking
18578# a shared library.
dd184caf 18579compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
d9898ee8 18580
18581# Method to check whether dependent libraries are shared objects.
18582deplibs_check_method=$lt_deplibs_check_method
18583
18584# Command to use when deplibs_check_method == file_magic.
18585file_magic_cmd=$lt_file_magic_cmd
18586
18587# Flag that allows shared libraries with undefined symbols to be built.
18588allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18589
18590# Flag that forces no undefined symbols.
18591no_undefined_flag=$lt_no_undefined_flag_GCJ
18592
18593# Commands used to finish a libtool library installation in a directory.
18594finish_cmds=$lt_finish_cmds
18595
18596# Same as above, but a single script fragment to be evaled but not shown.
18597finish_eval=$lt_finish_eval
18598
18599# Take the output of nm and produce a listing of raw symbols and C names.
18600global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18601
18602# Transform the output of nm in a proper C declaration
18603global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18604
18605# Transform the output of nm in a C name address pair
18606global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18607
18608# This is the shared library runtime path variable.
18609runpath_var=$runpath_var
18610
18611# This is the shared library path variable.
18612shlibpath_var=$shlibpath_var
18613
18614# Is shlibpath searched before the hard-coded library search path?
18615shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18616
18617# How to hardcode a shared library path into an executable.
18618hardcode_action=$hardcode_action_GCJ
18619
18620# Whether we should hardcode library paths into libraries.
18621hardcode_into_libs=$hardcode_into_libs
18622
18623# Flag to hardcode \$libdir into a binary during linking.
18624# This must work even if \$libdir does not exist.
18625hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18626
18627# If ld is used when linking, flag to hardcode \$libdir into
18628# a binary during linking. This must work even if \$libdir does
18629# not exist.
18630hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18631
18632# Whether we need a single -rpath flag with a separated argument.
18633hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18634
18635# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18636# resulting binary.
18637hardcode_direct=$hardcode_direct_GCJ
18638
18639# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18640# resulting binary.
18641hardcode_minus_L=$hardcode_minus_L_GCJ
18642
18643# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18644# the resulting binary.
18645hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18646
18647# Set to yes if building a shared library automatically hardcodes DIR into the library
18648# and all subsequent libraries and executables linked against it.
18649hardcode_automatic=$hardcode_automatic_GCJ
18650
18651# Variables whose values should be saved in libtool wrapper scripts and
18652# restored at relink time.
18653variables_saved_for_relink="$variables_saved_for_relink"
18654
18655# Whether libtool must link a program against all its dependency libraries.
18656link_all_deplibs=$link_all_deplibs_GCJ
18657
18658# Compile-time system search path for libraries
dd184caf 18659sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 18660
18661# Run-time system search path for libraries
18662sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18663
18664# Fix the shell variable \$srcfile for the compiler.
18665fix_srcfile_path="$fix_srcfile_path_GCJ"
18666
18667# Set to yes if exported symbols are required.
18668always_export_symbols=$always_export_symbols_GCJ
18669
18670# The commands to list exported symbols.
18671export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18672
18673# The commands to extract the exported symbol list from a shared archive.
18674extract_expsyms_cmds=$lt_extract_expsyms_cmds
18675
18676# Symbols that should not be listed in the preloaded symbols.
18677exclude_expsyms=$lt_exclude_expsyms_GCJ
18678
18679# Symbols that must always be exported.
18680include_expsyms=$lt_include_expsyms_GCJ
18681
18682# ### END LIBTOOL TAG CONFIG: $tagname
18683
18684__EOF__
18685
18686
18687else
18688 # If there is no Makefile yet, we rely on a make rule to execute
18689 # `config.status --recheck' to rerun these tests and create the
18690 # libtool script then.
18691 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18692 if test -f "$ltmain_in"; then
18693 test -f Makefile && make "$ltmain"
18694 fi
18695fi
18696
18697
18698ac_ext=c
18699ac_cpp='$CPP $CPPFLAGS'
18700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18702ac_compiler_gnu=$ac_cv_c_compiler_gnu
18703
18704CC="$lt_save_CC"
18705
18706 else
18707 tagname=""
18708 fi
18709 ;;
18710
18711 RC)
18712
18713
d9898ee8 18714# Source file extension for RC test sources.
18715ac_ext=rc
18716
18717# Object file extension for compiled RC test sources.
18718objext=o
18719objext_RC=$objext
18720
18721# Code to be used in simple compile tests
18722lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18723
18724# Code to be used in simple link tests
18725lt_simple_link_test_code="$lt_simple_compile_test_code"
18726
18727# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18728
18729# If no C compiler was specified, use CC.
18730LTCC=${LTCC-"$CC"}
18731
18732# If no C compiler flags were specified, use CFLAGS.
18733LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18734
18735# Allow CC to be a program name with arguments.
18736compiler=$CC
18737
18738
18739# save warnings/boilerplate of simple test code
18740ac_outfile=conftest.$ac_objext
18741printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18742eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18743_lt_compiler_boilerplate=`cat conftest.err`
18744$rm conftest*
18745
18746ac_outfile=conftest.$ac_objext
18747printf "$lt_simple_link_test_code" >conftest.$ac_ext
18748eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18749_lt_linker_boilerplate=`cat conftest.err`
18750$rm conftest*
18751
18752
18753# Allow CC to be a program name with arguments.
18754lt_save_CC="$CC"
18755CC=${RC-"windres"}
18756compiler=$CC
18757compiler_RC=$CC
18758for cc_temp in $compiler""; do
18759 case $cc_temp in
18760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18762 \-*) ;;
18763 *) break;;
18764 esac
18765done
18766cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18767
18768lt_cv_prog_compiler_c_o_RC=yes
18769
18770# The else clause should only fire when bootstrapping the
18771# libtool distribution, otherwise you forgot to ship ltmain.sh
18772# with your package, and you will get complaints that there are
18773# no rules to generate ltmain.sh.
18774if test -f "$ltmain"; then
18775 # See if we are running on zsh, and set the options which allow our commands through
18776 # without removal of \ escapes.
18777 if test -n "${ZSH_VERSION+set}" ; then
18778 setopt NO_GLOB_SUBST
18779 fi
18780 # Now quote all the things that may contain metacharacters while being
18781 # careful not to overquote the AC_SUBSTed values. We take copies of the
18782 # variables and quote the copies for generation of the libtool script.
18783 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18784 SED SHELL STRIP \
18785 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18786 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18787 deplibs_check_method reload_flag reload_cmds need_locks \
18788 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18789 lt_cv_sys_global_symbol_to_c_name_address \
18790 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18791 old_postinstall_cmds old_postuninstall_cmds \
18792 compiler_RC \
18793 CC_RC \
18794 LD_RC \
18795 lt_prog_compiler_wl_RC \
18796 lt_prog_compiler_pic_RC \
18797 lt_prog_compiler_static_RC \
18798 lt_prog_compiler_no_builtin_flag_RC \
18799 export_dynamic_flag_spec_RC \
18800 thread_safe_flag_spec_RC \
18801 whole_archive_flag_spec_RC \
18802 enable_shared_with_static_runtimes_RC \
18803 old_archive_cmds_RC \
18804 old_archive_from_new_cmds_RC \
18805 predep_objects_RC \
18806 postdep_objects_RC \
18807 predeps_RC \
18808 postdeps_RC \
18809 compiler_lib_search_path_RC \
18810 archive_cmds_RC \
18811 archive_expsym_cmds_RC \
18812 postinstall_cmds_RC \
18813 postuninstall_cmds_RC \
18814 old_archive_from_expsyms_cmds_RC \
18815 allow_undefined_flag_RC \
18816 no_undefined_flag_RC \
18817 export_symbols_cmds_RC \
18818 hardcode_libdir_flag_spec_RC \
18819 hardcode_libdir_flag_spec_ld_RC \
18820 hardcode_libdir_separator_RC \
18821 hardcode_automatic_RC \
18822 module_cmds_RC \
18823 module_expsym_cmds_RC \
18824 lt_cv_prog_compiler_c_o_RC \
18825 exclude_expsyms_RC \
18826 include_expsyms_RC; do
18827
18828 case $var in
18829 old_archive_cmds_RC | \
18830 old_archive_from_new_cmds_RC | \
18831 archive_cmds_RC | \
18832 archive_expsym_cmds_RC | \
18833 module_cmds_RC | \
18834 module_expsym_cmds_RC | \
18835 old_archive_from_expsyms_cmds_RC | \
18836 export_symbols_cmds_RC | \
18837 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18838 postinstall_cmds | postuninstall_cmds | \
18839 old_postinstall_cmds | old_postuninstall_cmds | \
18840 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18841 # Double-quote double-evaled strings.
18842 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18843 ;;
18844 *)
18845 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18846 ;;
18847 esac
18848 done
18849
18850 case $lt_echo in
18851 *'\$0 --fallback-echo"')
18852 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18853 ;;
18854 esac
18855
18856cfgfile="$ofile"
18857
18858 cat <<__EOF__ >> "$cfgfile"
18859# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18860
18861# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18862
18863# Shell to use when invoking shell scripts.
18864SHELL=$lt_SHELL
18865
18866# Whether or not to build shared libraries.
18867build_libtool_libs=$enable_shared
18868
18869# Whether or not to build static libraries.
18870build_old_libs=$enable_static
18871
18872# Whether or not to add -lc for building shared libraries.
18873build_libtool_need_lc=$archive_cmds_need_lc_RC
18874
18875# Whether or not to disallow shared libs when runtime libs are static
18876allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18877
18878# Whether or not to optimize for fast installation.
18879fast_install=$enable_fast_install
18880
18881# The host system.
18882host_alias=$host_alias
18883host=$host
18884host_os=$host_os
18885
18886# The build system.
18887build_alias=$build_alias
18888build=$build
18889build_os=$build_os
18890
18891# An echo program that does not interpret backslashes.
18892echo=$lt_echo
18893
18894# The archiver.
18895AR=$lt_AR
18896AR_FLAGS=$lt_AR_FLAGS
18897
18898# A C compiler.
18899LTCC=$lt_LTCC
18900
18901# LTCC compiler flags.
18902LTCFLAGS=$lt_LTCFLAGS
18903
18904# A language-specific compiler.
18905CC=$lt_compiler_RC
18906
18907# Is the compiler the GNU C compiler?
18908with_gcc=$GCC_RC
18909
d9898ee8 18910# An ERE matcher.
18911EGREP=$lt_EGREP
18912
18913# The linker used to build libraries.
18914LD=$lt_LD_RC
18915
18916# Whether we need hard or soft links.
18917LN_S=$lt_LN_S
18918
18919# A BSD-compatible nm program.
18920NM=$lt_NM
18921
18922# A symbol stripping program
18923STRIP=$lt_STRIP
18924
18925# Used to examine libraries when file_magic_cmd begins "file"
18926MAGIC_CMD=$MAGIC_CMD
18927
18928# Used on cygwin: DLL creation program.
18929DLLTOOL="$DLLTOOL"
18930
18931# Used on cygwin: object dumper.
18932OBJDUMP="$OBJDUMP"
18933
18934# Used on cygwin: assembler.
18935AS="$AS"
18936
18937# The name of the directory that contains temporary libtool files.
18938objdir=$objdir
18939
18940# How to create reloadable object files.
18941reload_flag=$lt_reload_flag
18942reload_cmds=$lt_reload_cmds
18943
18944# How to pass a linker flag through the compiler.
18945wl=$lt_lt_prog_compiler_wl_RC
18946
18947# Object file suffix (normally "o").
18948objext="$ac_objext"
18949
18950# Old archive suffix (normally "a").
18951libext="$libext"
18952
18953# Shared library suffix (normally ".so").
18954shrext_cmds='$shrext_cmds'
18955
18956# Executable file suffix (normally "").
18957exeext="$exeext"
18958
18959# Additional compiler flags for building library objects.
18960pic_flag=$lt_lt_prog_compiler_pic_RC
18961pic_mode=$pic_mode
18962
18963# What is the maximum length of a command?
18964max_cmd_len=$lt_cv_sys_max_cmd_len
18965
18966# Does compiler simultaneously support -c and -o options?
18967compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18968
18969# Must we lock files when doing compilation?
18970need_locks=$lt_need_locks
18971
18972# Do we need the lib prefix for modules?
18973need_lib_prefix=$need_lib_prefix
18974
18975# Do we need a version for libraries?
18976need_version=$need_version
18977
18978# Whether dlopen is supported.
18979dlopen_support=$enable_dlopen
18980
18981# Whether dlopen of programs is supported.
18982dlopen_self=$enable_dlopen_self
18983
18984# Whether dlopen of statically linked programs is supported.
18985dlopen_self_static=$enable_dlopen_self_static
18986
18987# Compiler flag to prevent dynamic linking.
18988link_static_flag=$lt_lt_prog_compiler_static_RC
18989
18990# Compiler flag to turn off builtin functions.
18991no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18992
18993# Compiler flag to allow reflexive dlopens.
18994export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18995
18996# Compiler flag to generate shared objects directly from archives.
18997whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18998
18999# Compiler flag to generate thread-safe objects.
19000thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19001
19002# Library versioning type.
19003version_type=$version_type
19004
19005# Format of library name prefix.
19006libname_spec=$lt_libname_spec
19007
19008# List of archive names. First name is the real one, the rest are links.
19009# The last name is the one that the linker finds with -lNAME.
19010library_names_spec=$lt_library_names_spec
19011
19012# The coded name of the library, if different from the real name.
19013soname_spec=$lt_soname_spec
19014
19015# Commands used to build and install an old-style archive.
19016RANLIB=$lt_RANLIB
19017old_archive_cmds=$lt_old_archive_cmds_RC
19018old_postinstall_cmds=$lt_old_postinstall_cmds
19019old_postuninstall_cmds=$lt_old_postuninstall_cmds
19020
19021# Create an old-style archive from a shared archive.
19022old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19023
19024# Create a temporary old-style archive to link instead of a shared archive.
19025old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19026
19027# Commands used to build and install a shared archive.
19028archive_cmds=$lt_archive_cmds_RC
19029archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19030postinstall_cmds=$lt_postinstall_cmds
19031postuninstall_cmds=$lt_postuninstall_cmds
19032
19033# Commands used to build a loadable module (assumed same as above if empty)
19034module_cmds=$lt_module_cmds_RC
19035module_expsym_cmds=$lt_module_expsym_cmds_RC
19036
19037# Commands to strip libraries.
19038old_striplib=$lt_old_striplib
19039striplib=$lt_striplib
19040
19041# Dependencies to place before the objects being linked to create a
19042# shared library.
dd184caf 19043predep_objects=$lt_predep_objects_RC
d9898ee8 19044
19045# Dependencies to place after the objects being linked to create a
19046# shared library.
dd184caf 19047postdep_objects=$lt_postdep_objects_RC
d9898ee8 19048
19049# Dependencies to place before the objects being linked to create a
19050# shared library.
19051predeps=$lt_predeps_RC
19052
19053# Dependencies to place after the objects being linked to create a
19054# shared library.
19055postdeps=$lt_postdeps_RC
19056
19057# The library search path used internally by the compiler when linking
19058# a shared library.
dd184caf 19059compiler_lib_search_path=$lt_compiler_lib_search_path_RC
d9898ee8 19060
19061# Method to check whether dependent libraries are shared objects.
19062deplibs_check_method=$lt_deplibs_check_method
19063
19064# Command to use when deplibs_check_method == file_magic.
19065file_magic_cmd=$lt_file_magic_cmd
19066
19067# Flag that allows shared libraries with undefined symbols to be built.
19068allow_undefined_flag=$lt_allow_undefined_flag_RC
19069
19070# Flag that forces no undefined symbols.
19071no_undefined_flag=$lt_no_undefined_flag_RC
19072
19073# Commands used to finish a libtool library installation in a directory.
19074finish_cmds=$lt_finish_cmds
19075
19076# Same as above, but a single script fragment to be evaled but not shown.
19077finish_eval=$lt_finish_eval
19078
19079# Take the output of nm and produce a listing of raw symbols and C names.
19080global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19081
19082# Transform the output of nm in a proper C declaration
19083global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19084
19085# Transform the output of nm in a C name address pair
19086global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19087
19088# This is the shared library runtime path variable.
19089runpath_var=$runpath_var
19090
19091# This is the shared library path variable.
19092shlibpath_var=$shlibpath_var
19093
19094# Is shlibpath searched before the hard-coded library search path?
19095shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19096
19097# How to hardcode a shared library path into an executable.
19098hardcode_action=$hardcode_action_RC
19099
19100# Whether we should hardcode library paths into libraries.
19101hardcode_into_libs=$hardcode_into_libs
19102
19103# Flag to hardcode \$libdir into a binary during linking.
19104# This must work even if \$libdir does not exist.
19105hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19106
19107# If ld is used when linking, flag to hardcode \$libdir into
19108# a binary during linking. This must work even if \$libdir does
19109# not exist.
19110hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19111
19112# Whether we need a single -rpath flag with a separated argument.
19113hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19114
19115# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19116# resulting binary.
19117hardcode_direct=$hardcode_direct_RC
19118
19119# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19120# resulting binary.
19121hardcode_minus_L=$hardcode_minus_L_RC
19122
19123# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19124# the resulting binary.
19125hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19126
19127# Set to yes if building a shared library automatically hardcodes DIR into the library
19128# and all subsequent libraries and executables linked against it.
19129hardcode_automatic=$hardcode_automatic_RC
19130
19131# Variables whose values should be saved in libtool wrapper scripts and
19132# restored at relink time.
19133variables_saved_for_relink="$variables_saved_for_relink"
19134
19135# Whether libtool must link a program against all its dependency libraries.
19136link_all_deplibs=$link_all_deplibs_RC
19137
19138# Compile-time system search path for libraries
dd184caf 19139sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19140
19141# Run-time system search path for libraries
19142sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19143
19144# Fix the shell variable \$srcfile for the compiler.
19145fix_srcfile_path="$fix_srcfile_path_RC"
19146
19147# Set to yes if exported symbols are required.
19148always_export_symbols=$always_export_symbols_RC
19149
19150# The commands to list exported symbols.
19151export_symbols_cmds=$lt_export_symbols_cmds_RC
19152
19153# The commands to extract the exported symbol list from a shared archive.
19154extract_expsyms_cmds=$lt_extract_expsyms_cmds
19155
19156# Symbols that should not be listed in the preloaded symbols.
19157exclude_expsyms=$lt_exclude_expsyms_RC
19158
19159# Symbols that must always be exported.
19160include_expsyms=$lt_include_expsyms_RC
19161
19162# ### END LIBTOOL TAG CONFIG: $tagname
19163
19164__EOF__
19165
19166
19167else
19168 # If there is no Makefile yet, we rely on a make rule to execute
19169 # `config.status --recheck' to rerun these tests and create the
19170 # libtool script then.
19171 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19172 if test -f "$ltmain_in"; then
19173 test -f Makefile && make "$ltmain"
19174 fi
19175fi
19176
19177
19178ac_ext=c
19179ac_cpp='$CPP $CPPFLAGS'
19180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19182ac_compiler_gnu=$ac_cv_c_compiler_gnu
19183
19184CC="$lt_save_CC"
19185
19186 ;;
19187
19188 *)
19189 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19190echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19191 { (exit 1); exit 1; }; }
19192 ;;
19193 esac
19194
19195 # Append the new tag name to the list of available tags.
19196 if test -n "$tagname" ; then
19197 available_tags="$available_tags $tagname"
19198 fi
19199 fi
19200 done
19201 IFS="$lt_save_ifs"
19202
19203 # Now substitute the updated list of available tags.
19204 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19205 mv "${ofile}T" "$ofile"
19206 chmod +x "$ofile"
19207 else
19208 rm -f "${ofile}T"
19209 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19210echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19211 { (exit 1); exit 1; }; }
19212 fi
19213fi
19214
19215
19216
19217# This can be used to rebuild libtool when needed
19218LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19219
19220# Always use our own libtool.
19221LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19222
19223# Prevent multiple expansion
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253for ac_header in errno.h fcntl.h sys/fcntl.h sys/ioctl.h sys/file.h unistd.h sysexits.h
19254do
19255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 19256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19260 echo $ECHO_N "(cached) $ECHO_C" >&6
19261fi
dd184caf 19262ac_res=`eval echo '${'$as_ac_Header'}'`
19263 { echo "$as_me:$LINENO: result: $ac_res" >&5
19264echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19265else
19266 # Is the header compilable?
dd184caf 19267{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19268echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 19269cat >conftest.$ac_ext <<_ACEOF
19270/* confdefs.h. */
19271_ACEOF
19272cat confdefs.h >>conftest.$ac_ext
19273cat >>conftest.$ac_ext <<_ACEOF
19274/* end confdefs.h. */
19275$ac_includes_default
19276#include <$ac_header>
19277_ACEOF
19278rm -f conftest.$ac_objext
dd184caf 19279if { (ac_try="$ac_compile"
19280case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19283esac
19284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19286 ac_status=$?
19287 grep -v '^ *+' conftest.er1 >conftest.err
19288 rm -f conftest.er1
19289 cat conftest.err >&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19291 (exit $ac_status); } && {
19292 test -z "$ac_c_werror_flag" ||
19293 test ! -s conftest.err
19294 } && test -s conftest.$ac_objext; then
d9898ee8 19295 ac_header_compiler=yes
19296else
19297 echo "$as_me: failed program was:" >&5
19298sed 's/^/| /' conftest.$ac_ext >&5
19299
dd184caf 19300 ac_header_compiler=no
d9898ee8 19301fi
dd184caf 19302
19303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19304{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19305echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 19306
19307# Is the header present?
dd184caf 19308{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19309echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 19310cat >conftest.$ac_ext <<_ACEOF
19311/* confdefs.h. */
19312_ACEOF
19313cat confdefs.h >>conftest.$ac_ext
19314cat >>conftest.$ac_ext <<_ACEOF
19315/* end confdefs.h. */
19316#include <$ac_header>
19317_ACEOF
dd184caf 19318if { (ac_try="$ac_cpp conftest.$ac_ext"
19319case "(($ac_try" in
19320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321 *) ac_try_echo=$ac_try;;
19322esac
19323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 19325 ac_status=$?
19326 grep -v '^ *+' conftest.er1 >conftest.err
19327 rm -f conftest.er1
19328 cat conftest.err >&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19330 (exit $ac_status); } >/dev/null && {
19331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19332 test ! -s conftest.err
19333 }; then
d9898ee8 19334 ac_header_preproc=yes
19335else
19336 echo "$as_me: failed program was:" >&5
19337sed 's/^/| /' conftest.$ac_ext >&5
19338
19339 ac_header_preproc=no
19340fi
dd184caf 19341
d9898ee8 19342rm -f conftest.err conftest.$ac_ext
dd184caf 19343{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19344echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 19345
19346# So? What about this header?
19347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19348 yes:no: )
19349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19350echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19352echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19353 ac_header_preproc=yes
19354 ;;
19355 no:yes:* )
19356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19357echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19359echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19361echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19363echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19365echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19367echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dd184caf 19368 ( cat <<\_ASBOX
d9898ee8 19369## -------------------------------------------------- ##
19370## Report this to courier-users@lists.sourceforge.net ##
19371## -------------------------------------------------- ##
19372_ASBOX
dd184caf 19373 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 19374 ;;
19375esac
dd184caf 19376{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19379 echo $ECHO_N "(cached) $ECHO_C" >&6
19380else
19381 eval "$as_ac_Header=\$ac_header_preproc"
19382fi
dd184caf 19383ac_res=`eval echo '${'$as_ac_Header'}'`
19384 { echo "$as_me:$LINENO: result: $ac_res" >&5
19385echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19386
19387fi
19388if test `eval echo '${'$as_ac_Header'}'` = yes; then
19389 cat >>confdefs.h <<_ACEOF
19390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19391_ACEOF
19392
19393fi
19394
19395done
19396
dd184caf 19397{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19398echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 19399if test "${ac_cv_header_stdc+set}" = set; then
19400 echo $ECHO_N "(cached) $ECHO_C" >&6
19401else
19402 cat >conftest.$ac_ext <<_ACEOF
19403/* confdefs.h. */
19404_ACEOF
19405cat confdefs.h >>conftest.$ac_ext
19406cat >>conftest.$ac_ext <<_ACEOF
19407/* end confdefs.h. */
19408#include <stdlib.h>
19409#include <stdarg.h>
19410#include <string.h>
19411#include <float.h>
19412
19413int
19414main ()
19415{
19416
19417 ;
19418 return 0;
19419}
19420_ACEOF
19421rm -f conftest.$ac_objext
dd184caf 19422if { (ac_try="$ac_compile"
19423case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19426esac
19427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19429 ac_status=$?
19430 grep -v '^ *+' conftest.er1 >conftest.err
19431 rm -f conftest.er1
19432 cat conftest.err >&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19434 (exit $ac_status); } && {
19435 test -z "$ac_c_werror_flag" ||
19436 test ! -s conftest.err
19437 } && test -s conftest.$ac_objext; then
d9898ee8 19438 ac_cv_header_stdc=yes
19439else
19440 echo "$as_me: failed program was:" >&5
19441sed 's/^/| /' conftest.$ac_ext >&5
19442
dd184caf 19443 ac_cv_header_stdc=no
d9898ee8 19444fi
dd184caf 19445
19446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19447
19448if test $ac_cv_header_stdc = yes; then
19449 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19450 cat >conftest.$ac_ext <<_ACEOF
19451/* confdefs.h. */
19452_ACEOF
19453cat confdefs.h >>conftest.$ac_ext
19454cat >>conftest.$ac_ext <<_ACEOF
19455/* end confdefs.h. */
19456#include <string.h>
19457
19458_ACEOF
19459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19460 $EGREP "memchr" >/dev/null 2>&1; then
19461 :
19462else
19463 ac_cv_header_stdc=no
19464fi
19465rm -f conftest*
19466
19467fi
19468
19469if test $ac_cv_header_stdc = yes; then
19470 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19471 cat >conftest.$ac_ext <<_ACEOF
19472/* confdefs.h. */
19473_ACEOF
19474cat confdefs.h >>conftest.$ac_ext
19475cat >>conftest.$ac_ext <<_ACEOF
19476/* end confdefs.h. */
19477#include <stdlib.h>
19478
19479_ACEOF
19480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19481 $EGREP "free" >/dev/null 2>&1; then
19482 :
19483else
19484 ac_cv_header_stdc=no
19485fi
19486rm -f conftest*
19487
19488fi
19489
19490if test $ac_cv_header_stdc = yes; then
19491 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19492 if test "$cross_compiling" = yes; then
19493 :
19494else
19495 cat >conftest.$ac_ext <<_ACEOF
19496/* confdefs.h. */
19497_ACEOF
19498cat confdefs.h >>conftest.$ac_ext
19499cat >>conftest.$ac_ext <<_ACEOF
19500/* end confdefs.h. */
19501#include <ctype.h>
dd184caf 19502#include <stdlib.h>
d9898ee8 19503#if ((' ' & 0x0FF) == 0x020)
19504# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19505# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19506#else
19507# define ISLOWER(c) \
19508 (('a' <= (c) && (c) <= 'i') \
19509 || ('j' <= (c) && (c) <= 'r') \
19510 || ('s' <= (c) && (c) <= 'z'))
19511# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19512#endif
19513
19514#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19515int
19516main ()
19517{
19518 int i;
19519 for (i = 0; i < 256; i++)
19520 if (XOR (islower (i), ISLOWER (i))
19521 || toupper (i) != TOUPPER (i))
dd184caf 19522 return 2;
19523 return 0;
d9898ee8 19524}
19525_ACEOF
19526rm -f conftest$ac_exeext
dd184caf 19527if { (ac_try="$ac_link"
19528case "(($ac_try" in
19529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19530 *) ac_try_echo=$ac_try;;
19531esac
19532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19533 (eval "$ac_link") 2>&5
d9898ee8 19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 19537 { (case "(($ac_try" in
19538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539 *) ac_try_echo=$ac_try;;
19540esac
19541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19542 (eval "$ac_try") 2>&5
d9898ee8 19543 ac_status=$?
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; }; then
19546 :
19547else
19548 echo "$as_me: program exited with status $ac_status" >&5
19549echo "$as_me: failed program was:" >&5
19550sed 's/^/| /' conftest.$ac_ext >&5
19551
19552( exit $ac_status )
19553ac_cv_header_stdc=no
19554fi
dd184caf 19555rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 19556fi
dd184caf 19557
19558
d9898ee8 19559fi
19560fi
dd184caf 19561{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19562echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 19563if test $ac_cv_header_stdc = yes; then
19564
19565cat >>confdefs.h <<\_ACEOF
19566#define STDC_HEADERS 1
19567_ACEOF
19568
19569fi
19570
dd184caf 19571{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19572echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
d9898ee8 19573if test "${ac_cv_header_sys_wait_h+set}" = set; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19575else
19576 cat >conftest.$ac_ext <<_ACEOF
19577/* confdefs.h. */
19578_ACEOF
19579cat confdefs.h >>conftest.$ac_ext
19580cat >>conftest.$ac_ext <<_ACEOF
19581/* end confdefs.h. */
19582#include <sys/types.h>
19583#include <sys/wait.h>
19584#ifndef WEXITSTATUS
dd184caf 19585# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
d9898ee8 19586#endif
19587#ifndef WIFEXITED
19588# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19589#endif
19590
19591int
19592main ()
19593{
19594 int s;
19595 wait (&s);
19596 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19597 ;
19598 return 0;
19599}
19600_ACEOF
19601rm -f conftest.$ac_objext
dd184caf 19602if { (ac_try="$ac_compile"
19603case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19606esac
19607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19609 ac_status=$?
19610 grep -v '^ *+' conftest.er1 >conftest.err
19611 rm -f conftest.er1
19612 cat conftest.err >&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19614 (exit $ac_status); } && {
19615 test -z "$ac_c_werror_flag" ||
19616 test ! -s conftest.err
19617 } && test -s conftest.$ac_objext; then
d9898ee8 19618 ac_cv_header_sys_wait_h=yes
19619else
19620 echo "$as_me: failed program was:" >&5
19621sed 's/^/| /' conftest.$ac_ext >&5
19622
dd184caf 19623 ac_cv_header_sys_wait_h=no
d9898ee8 19624fi
dd184caf 19625
19626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19627fi
dd184caf 19628{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19629echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
d9898ee8 19630if test $ac_cv_header_sys_wait_h = yes; then
19631
19632cat >>confdefs.h <<\_ACEOF
19633#define HAVE_SYS_WAIT_H 1
19634_ACEOF
19635
19636fi
19637
19638
19639
dd184caf 19640{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19641echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
d9898ee8 19642if test "${ac_cv_c_const+set}" = set; then
19643 echo $ECHO_N "(cached) $ECHO_C" >&6
19644else
19645 cat >conftest.$ac_ext <<_ACEOF
19646/* confdefs.h. */
19647_ACEOF
19648cat confdefs.h >>conftest.$ac_ext
19649cat >>conftest.$ac_ext <<_ACEOF
19650/* end confdefs.h. */
19651
19652int
19653main ()
19654{
19655/* FIXME: Include the comments suggested by Paul. */
19656#ifndef __cplusplus
19657 /* Ultrix mips cc rejects this. */
19658 typedef int charset[2];
dd184caf 19659 const charset cs;
d9898ee8 19660 /* SunOS 4.1.1 cc rejects this. */
dd184caf 19661 char const *const *pcpcc;
19662 char **ppc;
d9898ee8 19663 /* NEC SVR4.0.2 mips cc rejects this. */
19664 struct point {int x, y;};
19665 static struct point const zero = {0,0};
19666 /* AIX XL C 1.02.0.0 rejects this.
19667 It does not let you subtract one const X* pointer from another in
19668 an arm of an if-expression whose if-part is not a constant
19669 expression */
19670 const char *g = "string";
dd184caf 19671 pcpcc = &g + (g ? g-g : 0);
d9898ee8 19672 /* HPUX 7.0 cc rejects these. */
dd184caf 19673 ++pcpcc;
19674 ppc = (char**) pcpcc;
19675 pcpcc = (char const *const *) ppc;
d9898ee8 19676 { /* SCO 3.2v4 cc rejects this. */
19677 char *t;
19678 char const *s = 0 ? (char *) 0 : (char const *) 0;
19679
19680 *t++ = 0;
dd184caf 19681 if (s) return 0;
d9898ee8 19682 }
19683 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19684 int x[] = {25, 17};
19685 const int *foo = &x[0];
19686 ++foo;
19687 }
19688 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19689 typedef const int *iptr;
19690 iptr p = 0;
19691 ++p;
19692 }
19693 { /* AIX XL C 1.02.0.0 rejects this saying
19694 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19695 struct s { int j; const int *ap[3]; };
19696 struct s *b; b->j = 5;
19697 }
19698 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19699 const int foo = 10;
dd184caf 19700 if (!foo) return 0;
d9898ee8 19701 }
dd184caf 19702 return !cs[0] && !zero.x;
d9898ee8 19703#endif
19704
19705 ;
19706 return 0;
19707}
19708_ACEOF
19709rm -f conftest.$ac_objext
dd184caf 19710if { (ac_try="$ac_compile"
19711case "(($ac_try" in
19712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19714esac
19715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19717 ac_status=$?
19718 grep -v '^ *+' conftest.er1 >conftest.err
19719 rm -f conftest.er1
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19722 (exit $ac_status); } && {
19723 test -z "$ac_c_werror_flag" ||
19724 test ! -s conftest.err
19725 } && test -s conftest.$ac_objext; then
d9898ee8 19726 ac_cv_c_const=yes
19727else
19728 echo "$as_me: failed program was:" >&5
19729sed 's/^/| /' conftest.$ac_ext >&5
19730
dd184caf 19731 ac_cv_c_const=no
d9898ee8 19732fi
dd184caf 19733
19734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19735fi
dd184caf 19736{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19737echo "${ECHO_T}$ac_cv_c_const" >&6; }
d9898ee8 19738if test $ac_cv_c_const = no; then
19739
19740cat >>confdefs.h <<\_ACEOF
19741#define const
19742_ACEOF
19743
19744fi
19745
dd184caf 19746{ echo "$as_me:$LINENO: checking for off_t" >&5
19747echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
d9898ee8 19748if test "${ac_cv_type_off_t+set}" = set; then
19749 echo $ECHO_N "(cached) $ECHO_C" >&6
19750else
19751 cat >conftest.$ac_ext <<_ACEOF
19752/* confdefs.h. */
19753_ACEOF
19754cat confdefs.h >>conftest.$ac_ext
19755cat >>conftest.$ac_ext <<_ACEOF
19756/* end confdefs.h. */
19757$ac_includes_default
dd184caf 19758typedef off_t ac__type_new_;
d9898ee8 19759int
19760main ()
19761{
dd184caf 19762if ((ac__type_new_ *) 0)
d9898ee8 19763 return 0;
dd184caf 19764if (sizeof (ac__type_new_))
d9898ee8 19765 return 0;
19766 ;
19767 return 0;
19768}
19769_ACEOF
19770rm -f conftest.$ac_objext
dd184caf 19771if { (ac_try="$ac_compile"
19772case "(($ac_try" in
19773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19774 *) ac_try_echo=$ac_try;;
19775esac
19776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19777 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19778 ac_status=$?
19779 grep -v '^ *+' conftest.er1 >conftest.err
19780 rm -f conftest.er1
19781 cat conftest.err >&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19783 (exit $ac_status); } && {
19784 test -z "$ac_c_werror_flag" ||
19785 test ! -s conftest.err
19786 } && test -s conftest.$ac_objext; then
d9898ee8 19787 ac_cv_type_off_t=yes
19788else
19789 echo "$as_me: failed program was:" >&5
19790sed 's/^/| /' conftest.$ac_ext >&5
19791
dd184caf 19792 ac_cv_type_off_t=no
d9898ee8 19793fi
dd184caf 19794
19795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19796fi
dd184caf 19797{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19798echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
d9898ee8 19799if test $ac_cv_type_off_t = yes; then
19800 :
19801else
19802
19803cat >>confdefs.h <<_ACEOF
dd184caf 19804#define off_t long int
d9898ee8 19805_ACEOF
19806
19807fi
19808
dd184caf 19809{ echo "$as_me:$LINENO: checking for pid_t" >&5
19810echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
d9898ee8 19811if test "${ac_cv_type_pid_t+set}" = set; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19813else
19814 cat >conftest.$ac_ext <<_ACEOF
19815/* confdefs.h. */
19816_ACEOF
19817cat confdefs.h >>conftest.$ac_ext
19818cat >>conftest.$ac_ext <<_ACEOF
19819/* end confdefs.h. */
19820$ac_includes_default
dd184caf 19821typedef pid_t ac__type_new_;
d9898ee8 19822int
19823main ()
19824{
dd184caf 19825if ((ac__type_new_ *) 0)
d9898ee8 19826 return 0;
dd184caf 19827if (sizeof (ac__type_new_))
d9898ee8 19828 return 0;
19829 ;
19830 return 0;
19831}
19832_ACEOF
19833rm -f conftest.$ac_objext
dd184caf 19834if { (ac_try="$ac_compile"
19835case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19838esac
19839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19841 ac_status=$?
19842 grep -v '^ *+' conftest.er1 >conftest.err
19843 rm -f conftest.er1
19844 cat conftest.err >&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19846 (exit $ac_status); } && {
19847 test -z "$ac_c_werror_flag" ||
19848 test ! -s conftest.err
19849 } && test -s conftest.$ac_objext; then
d9898ee8 19850 ac_cv_type_pid_t=yes
19851else
19852 echo "$as_me: failed program was:" >&5
19853sed 's/^/| /' conftest.$ac_ext >&5
19854
dd184caf 19855 ac_cv_type_pid_t=no
d9898ee8 19856fi
dd184caf 19857
19858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19859fi
dd184caf 19860{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19861echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
d9898ee8 19862if test $ac_cv_type_pid_t = yes; then
19863 :
19864else
19865
19866cat >>confdefs.h <<_ACEOF
19867#define pid_t int
19868_ACEOF
19869
19870fi
19871
dd184caf 19872{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19873echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
d9898ee8 19874if test "${ac_cv_type_signal+set}" = set; then
19875 echo $ECHO_N "(cached) $ECHO_C" >&6
19876else
19877 cat >conftest.$ac_ext <<_ACEOF
19878/* confdefs.h. */
19879_ACEOF
19880cat confdefs.h >>conftest.$ac_ext
19881cat >>conftest.$ac_ext <<_ACEOF
19882/* end confdefs.h. */
19883#include <sys/types.h>
19884#include <signal.h>
d9898ee8 19885
19886int
19887main ()
19888{
dd184caf 19889return *(signal (0, 0)) (0) == 1;
d9898ee8 19890 ;
19891 return 0;
19892}
19893_ACEOF
19894rm -f conftest.$ac_objext
dd184caf 19895if { (ac_try="$ac_compile"
19896case "(($ac_try" in
19897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898 *) ac_try_echo=$ac_try;;
19899esac
19900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19901 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19902 ac_status=$?
19903 grep -v '^ *+' conftest.er1 >conftest.err
19904 rm -f conftest.er1
19905 cat conftest.err >&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19907 (exit $ac_status); } && {
19908 test -z "$ac_c_werror_flag" ||
19909 test ! -s conftest.err
19910 } && test -s conftest.$ac_objext; then
19911 ac_cv_type_signal=int
d9898ee8 19912else
19913 echo "$as_me: failed program was:" >&5
19914sed 's/^/| /' conftest.$ac_ext >&5
19915
dd184caf 19916 ac_cv_type_signal=void
d9898ee8 19917fi
dd184caf 19918
19919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19920fi
dd184caf 19921{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19922echo "${ECHO_T}$ac_cv_type_signal" >&6; }
d9898ee8 19923
19924cat >>confdefs.h <<_ACEOF
19925#define RETSIGTYPE $ac_cv_type_signal
19926_ACEOF
19927
19928
19929
dd184caf 19930{ echo "$as_me:$LINENO: checking for off64_t" >&5
19931echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; }
d9898ee8 19932if test "${liblock_cv_hasoff64t+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19934else
19935 liblock_cv_hasoff64t="no"
19936cat >conftest.$ac_ext <<_ACEOF
19937/* confdefs.h. */
19938_ACEOF
19939cat confdefs.h >>conftest.$ac_ext
19940cat >>conftest.$ac_ext <<_ACEOF
19941/* end confdefs.h. */
19942
19943#include <sys/types.h>
19944
19945int
19946main ()
19947{
19948
19949off64_t n;
19950
19951 n=0;
19952
19953 ;
19954 return 0;
19955}
19956_ACEOF
19957rm -f conftest.$ac_objext
dd184caf 19958if { (ac_try="$ac_compile"
19959case "(($ac_try" in
19960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961 *) ac_try_echo=$ac_try;;
19962esac
19963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19965 ac_status=$?
19966 grep -v '^ *+' conftest.er1 >conftest.err
19967 rm -f conftest.er1
19968 cat conftest.err >&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19970 (exit $ac_status); } && {
19971 test -z "$ac_c_werror_flag" ||
19972 test ! -s conftest.err
19973 } && test -s conftest.$ac_objext; then
d9898ee8 19974 liblock_cv_hasoff64t="yes"
19975else
19976 echo "$as_me: failed program was:" >&5
19977sed 's/^/| /' conftest.$ac_ext >&5
19978
dd184caf 19979
d9898ee8 19980fi
dd184caf 19981
19982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19983
19984
19985fi
dd184caf 19986{ echo "$as_me:$LINENO: result: $liblock_cv_hasoff64t" >&5
19987echo "${ECHO_T}$liblock_cv_hasoff64t" >&6; }
d9898ee8 19988
19989if test "$liblock_cv_hasoff64t" = "yes"
19990then
19991 LL_OFFSET_TYPE=off64_t
19992else
19993 LL_OFFSET_TYPE=off_t
19994fi
19995
19996cat >>confdefs.h <<_ACEOF
19997#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
19998_ACEOF
19999
20000
dd184caf 20001{ echo "$as_me:$LINENO: checking for flock_t" >&5
20002echo $ECHO_N "checking for flock_t... $ECHO_C" >&6; }
d9898ee8 20003if test "${liblock_cv_hasflock_t+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20005else
20006 liblock_cv_hasflock_t="no"
20007cat >conftest.$ac_ext <<_ACEOF
20008/* confdefs.h. */
20009_ACEOF
20010cat confdefs.h >>conftest.$ac_ext
20011cat >>conftest.$ac_ext <<_ACEOF
20012/* end confdefs.h. */
20013
20014#if HAVE_CONFIG_H
20015#include "config.h"
20016#endif
20017#include <sys/types.h>
20018#if HAVE_FCNTL_H
20019#include <fcntl.h>
20020#endif
20021#if HAVE_SYS_FCNTL_H
20022#include <sys/fcntl.h>
20023#endif
20024
20025int
20026main ()
20027{
20028
20029flock_t t;
20030
20031 ;
20032 return 0;
20033}
20034_ACEOF
20035rm -f conftest.$ac_objext
dd184caf 20036if { (ac_try="$ac_compile"
20037case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20040esac
20041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20043 ac_status=$?
20044 grep -v '^ *+' conftest.er1 >conftest.err
20045 rm -f conftest.er1
20046 cat conftest.err >&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20048 (exit $ac_status); } && {
20049 test -z "$ac_c_werror_flag" ||
20050 test ! -s conftest.err
20051 } && test -s conftest.$ac_objext; then
d9898ee8 20052 liblock_cv_hasflock_t="yes"
20053else
20054 echo "$as_me: failed program was:" >&5
20055sed 's/^/| /' conftest.$ac_ext >&5
20056
dd184caf 20057
d9898ee8 20058fi
dd184caf 20059
20060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20061fi
dd184caf 20062{ echo "$as_me:$LINENO: result: $liblock_cv_hasflock_t" >&5
20063echo "${ECHO_T}$liblock_cv_hasflock_t" >&6; }
d9898ee8 20064
20065if test "$liblock_cv_hasflock_t" = "yes"
20066then
20067
20068cat >>confdefs.h <<_ACEOF
20069#define HAS_FLOCK_T 1
20070_ACEOF
20071
20072fi
20073
20074
20075
dd184caf 20076
84870c69 20077
20078for ac_func in getdtablesize setpgrp sysconf
d9898ee8 20079do
20080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
dd184caf 20081{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20083if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 20084 echo $ECHO_N "(cached) $ECHO_C" >&6
20085else
20086 cat >conftest.$ac_ext <<_ACEOF
20087/* confdefs.h. */
20088_ACEOF
20089cat confdefs.h >>conftest.$ac_ext
20090cat >>conftest.$ac_ext <<_ACEOF
20091/* end confdefs.h. */
20092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20094#define $ac_func innocuous_$ac_func
20095
20096/* System header to define __stub macros and hopefully few prototypes,
20097 which can conflict with char $ac_func (); below.
20098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20099 <limits.h> exists even on freestanding compilers. */
20100
20101#ifdef __STDC__
20102# include <limits.h>
20103#else
20104# include <assert.h>
20105#endif
20106
20107#undef $ac_func
20108
dd184caf 20109/* Override any GCC internal prototype to avoid an error.
20110 Use char because int might match the return type of a GCC
20111 builtin and then its argument prototype would still apply. */
d9898ee8 20112#ifdef __cplusplus
20113extern "C"
d9898ee8 20114#endif
d9898ee8 20115char $ac_func ();
20116/* The GNU C library defines this for functions which it implements
20117 to always fail with ENOSYS. Some functions are actually named
20118 something starting with __ and the normal name is an alias. */
dd184caf 20119#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 20120choke me
d9898ee8 20121#endif
20122
20123int
20124main ()
20125{
dd184caf 20126return $ac_func ();
d9898ee8 20127 ;
20128 return 0;
20129}
20130_ACEOF
20131rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 20132if { (ac_try="$ac_link"
20133case "(($ac_try" in
20134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135 *) ac_try_echo=$ac_try;;
20136esac
20137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138 (eval "$ac_link") 2>conftest.er1
d9898ee8 20139 ac_status=$?
20140 grep -v '^ *+' conftest.er1 >conftest.err
20141 rm -f conftest.er1
20142 cat conftest.err >&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20144 (exit $ac_status); } && {
20145 test -z "$ac_c_werror_flag" ||
20146 test ! -s conftest.err
20147 } && test -s conftest$ac_exeext &&
20148 $as_test_x conftest$ac_exeext; then
d9898ee8 20149 eval "$as_ac_var=yes"
20150else
20151 echo "$as_me: failed program was:" >&5
20152sed 's/^/| /' conftest.$ac_ext >&5
20153
dd184caf 20154 eval "$as_ac_var=no"
d9898ee8 20155fi
dd184caf 20156
20157rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20158 conftest$ac_exeext conftest.$ac_ext
20159fi
dd184caf 20160ac_res=`eval echo '${'$as_ac_var'}'`
20161 { echo "$as_me:$LINENO: result: $ac_res" >&5
20162echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 20163if test `eval echo '${'$as_ac_var'}'` = yes; then
20164 cat >>confdefs.h <<_ACEOF
20165#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20166_ACEOF
20167
20168fi
20169done
20170
dd184caf 20171{ echo "$as_me:$LINENO: checking for setpgrp" >&5
20172echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6; }
d9898ee8 20173if test "${ac_cv_func_setpgrp+set}" = set; then
20174 echo $ECHO_N "(cached) $ECHO_C" >&6
20175else
20176 cat >conftest.$ac_ext <<_ACEOF
20177/* confdefs.h. */
20178_ACEOF
20179cat confdefs.h >>conftest.$ac_ext
20180cat >>conftest.$ac_ext <<_ACEOF
20181/* end confdefs.h. */
20182/* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
20183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20184#define setpgrp innocuous_setpgrp
20185
20186/* System header to define __stub macros and hopefully few prototypes,
20187 which can conflict with char setpgrp (); below.
20188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20189 <limits.h> exists even on freestanding compilers. */
20190
20191#ifdef __STDC__
20192# include <limits.h>
20193#else
20194# include <assert.h>
20195#endif
20196
20197#undef setpgrp
20198
dd184caf 20199/* Override any GCC internal prototype to avoid an error.
20200 Use char because int might match the return type of a GCC
20201 builtin and then its argument prototype would still apply. */
d9898ee8 20202#ifdef __cplusplus
20203extern "C"
d9898ee8 20204#endif
d9898ee8 20205char setpgrp ();
20206/* The GNU C library defines this for functions which it implements
20207 to always fail with ENOSYS. Some functions are actually named
20208 something starting with __ and the normal name is an alias. */
dd184caf 20209#if defined __stub_setpgrp || defined __stub___setpgrp
d9898ee8 20210choke me
d9898ee8 20211#endif
20212
20213int
20214main ()
20215{
dd184caf 20216return setpgrp ();
d9898ee8 20217 ;
20218 return 0;
20219}
20220_ACEOF
20221rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 20222if { (ac_try="$ac_link"
20223case "(($ac_try" in
20224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20225 *) ac_try_echo=$ac_try;;
20226esac
20227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20228 (eval "$ac_link") 2>conftest.er1
d9898ee8 20229 ac_status=$?
20230 grep -v '^ *+' conftest.er1 >conftest.err
20231 rm -f conftest.er1
20232 cat conftest.err >&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20234 (exit $ac_status); } && {
20235 test -z "$ac_c_werror_flag" ||
20236 test ! -s conftest.err
20237 } && test -s conftest$ac_exeext &&
20238 $as_test_x conftest$ac_exeext; then
d9898ee8 20239 ac_cv_func_setpgrp=yes
20240else
20241 echo "$as_me: failed program was:" >&5
20242sed 's/^/| /' conftest.$ac_ext >&5
20243
dd184caf 20244 ac_cv_func_setpgrp=no
d9898ee8 20245fi
dd184caf 20246
20247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20248 conftest$ac_exeext conftest.$ac_ext
20249fi
dd184caf 20250{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
20251echo "${ECHO_T}$ac_cv_func_setpgrp" >&6; }
d9898ee8 20252if test $ac_cv_func_setpgrp = yes; then
20253
dd184caf 20254 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20255echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
d9898ee8 20256if test "${ac_cv_func_setpgrp_void+set}" = set; then
20257 echo $ECHO_N "(cached) $ECHO_C" >&6
20258else
20259 if test "$cross_compiling" = yes; then
20260 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20261echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20262 { (exit 1); exit 1; }; }
20263else
20264 cat >conftest.$ac_ext <<_ACEOF
20265/* confdefs.h. */
20266_ACEOF
20267cat confdefs.h >>conftest.$ac_ext
20268cat >>conftest.$ac_ext <<_ACEOF
20269/* end confdefs.h. */
dd184caf 20270$ac_includes_default
d9898ee8 20271int
20272main ()
20273{
20274/* If this system has a BSD-style setpgrp which takes arguments,
20275 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20276 exit successfully. */
dd184caf 20277 return setpgrp (1,1) != -1;
d9898ee8 20278 ;
20279 return 0;
20280}
20281_ACEOF
20282rm -f conftest$ac_exeext
dd184caf 20283if { (ac_try="$ac_link"
20284case "(($ac_try" in
20285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286 *) ac_try_echo=$ac_try;;
20287esac
20288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289 (eval "$ac_link") 2>&5
d9898ee8 20290 ac_status=$?
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 20293 { (case "(($ac_try" in
20294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20295 *) ac_try_echo=$ac_try;;
20296esac
20297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20298 (eval "$ac_try") 2>&5
d9898ee8 20299 ac_status=$?
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; }; then
20302 ac_cv_func_setpgrp_void=no
20303else
20304 echo "$as_me: program exited with status $ac_status" >&5
20305echo "$as_me: failed program was:" >&5
20306sed 's/^/| /' conftest.$ac_ext >&5
20307
20308( exit $ac_status )
20309ac_cv_func_setpgrp_void=yes
20310fi
dd184caf 20311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20312fi
dd184caf 20313
20314
d9898ee8 20315fi
dd184caf 20316{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20317echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
d9898ee8 20318if test $ac_cv_func_setpgrp_void = yes; then
20319
20320cat >>confdefs.h <<\_ACEOF
20321#define SETPGRP_VOID 1
20322_ACEOF
20323
20324fi
20325
20326
20327
20328fi
20329
20330
dd184caf 20331{ echo "$as_me:$LINENO: checking for fcntl" >&5
20332echo $ECHO_N "checking for fcntl... $ECHO_C" >&6; }
d9898ee8 20333if test "${liblock_cv_hasfcntl+set}" = set; then
20334 echo $ECHO_N "(cached) $ECHO_C" >&6
20335else
20336 liblock_cv_hasfcntl="no"
20337cat >conftest.$ac_ext <<_ACEOF
20338/* confdefs.h. */
20339_ACEOF
20340cat confdefs.h >>conftest.$ac_ext
20341cat >>conftest.$ac_ext <<_ACEOF
20342/* end confdefs.h. */
20343
20344#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20345#include "${srcdir}/lockfcntl.c"
20346
20347int
20348main ()
20349{
20350
20351int n;
20352
20353 ;
20354 return 0;
20355}
20356_ACEOF
20357rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 20358if { (ac_try="$ac_link"
20359case "(($ac_try" in
20360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361 *) ac_try_echo=$ac_try;;
20362esac
20363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20364 (eval "$ac_link") 2>conftest.er1
d9898ee8 20365 ac_status=$?
20366 grep -v '^ *+' conftest.er1 >conftest.err
20367 rm -f conftest.er1
20368 cat conftest.err >&5
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20370 (exit $ac_status); } && {
20371 test -z "$ac_c_werror_flag" ||
20372 test ! -s conftest.err
20373 } && test -s conftest$ac_exeext &&
20374 $as_test_x conftest$ac_exeext; then
d9898ee8 20375 liblock_cv_hasfcntl="yes"
20376else
20377 echo "$as_me: failed program was:" >&5
20378sed 's/^/| /' conftest.$ac_ext >&5
20379
dd184caf 20380
d9898ee8 20381fi
dd184caf 20382
20383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20384 conftest$ac_exeext conftest.$ac_ext
20385fi
dd184caf 20386{ echo "$as_me:$LINENO: result: $liblock_cv_hasfcntl" >&5
20387echo "${ECHO_T}$liblock_cv_hasfcntl" >&6; }
d9898ee8 20388if test "$liblock_cv_hasfcntl" = "yes"
20389then
20390
20391cat >>confdefs.h <<_ACEOF
20392#define HAS_FCNTL 1
20393_ACEOF
20394
20395fi
20396
dd184caf 20397{ echo "$as_me:$LINENO: checking for flock" >&5
20398echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
d9898ee8 20399if test "${liblock_cv_hasflock+set}" = set; then
20400 echo $ECHO_N "(cached) $ECHO_C" >&6
20401else
20402 liblock_cv_hasflock="no"
20403cat >conftest.$ac_ext <<_ACEOF
20404/* confdefs.h. */
20405_ACEOF
20406cat confdefs.h >>conftest.$ac_ext
20407cat >>conftest.$ac_ext <<_ACEOF
20408/* end confdefs.h. */
20409
20410#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20411#include "${srcdir}/lockflock.c"
20412
20413int
20414main ()
20415{
20416
20417int n;
20418
20419 ;
20420 return 0;
20421}
20422_ACEOF
20423rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 20424if { (ac_try="$ac_link"
20425case "(($ac_try" in
20426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427 *) ac_try_echo=$ac_try;;
20428esac
20429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430 (eval "$ac_link") 2>conftest.er1
d9898ee8 20431 ac_status=$?
20432 grep -v '^ *+' conftest.er1 >conftest.err
20433 rm -f conftest.er1
20434 cat conftest.err >&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20436 (exit $ac_status); } && {
20437 test -z "$ac_c_werror_flag" ||
20438 test ! -s conftest.err
20439 } && test -s conftest$ac_exeext &&
20440 $as_test_x conftest$ac_exeext; then
d9898ee8 20441 liblock_cv_hasflock="yes"
20442else
20443 echo "$as_me: failed program was:" >&5
20444sed 's/^/| /' conftest.$ac_ext >&5
20445
dd184caf 20446
d9898ee8 20447fi
dd184caf 20448
20449rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20450 conftest$ac_exeext conftest.$ac_ext
20451fi
dd184caf 20452{ echo "$as_me:$LINENO: result: $liblock_cv_hasflock" >&5
20453echo "${ECHO_T}$liblock_cv_hasflock" >&6; }
d9898ee8 20454if test "$liblock_cv_hasflock" = "yes"
20455then
20456
20457cat >>confdefs.h <<_ACEOF
20458#define HAS_FLOCK 1
20459_ACEOF
20460
20461fi
20462
dd184caf 20463{ echo "$as_me:$LINENO: checking for lockf" >&5
20464echo $ECHO_N "checking for lockf... $ECHO_C" >&6; }
d9898ee8 20465if test "${liblock_cv_haslockf+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20467else
20468 liblock_cv_haslockf="no"
20469cat >conftest.$ac_ext <<_ACEOF
20470/* confdefs.h. */
20471_ACEOF
20472cat confdefs.h >>conftest.$ac_ext
20473cat >>conftest.$ac_ext <<_ACEOF
20474/* end confdefs.h. */
20475
20476#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20477#include "${srcdir}/locklockf.c"
20478
20479int
20480main ()
20481{
20482
20483int n;
20484
20485 ;
20486 return 0;
20487}
20488_ACEOF
20489rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 20490if { (ac_try="$ac_link"
20491case "(($ac_try" in
20492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493 *) ac_try_echo=$ac_try;;
20494esac
20495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496 (eval "$ac_link") 2>conftest.er1
d9898ee8 20497 ac_status=$?
20498 grep -v '^ *+' conftest.er1 >conftest.err
20499 rm -f conftest.er1
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20502 (exit $ac_status); } && {
20503 test -z "$ac_c_werror_flag" ||
20504 test ! -s conftest.err
20505 } && test -s conftest$ac_exeext &&
20506 $as_test_x conftest$ac_exeext; then
d9898ee8 20507 liblock_cv_haslockf="yes"
20508else
20509 echo "$as_me: failed program was:" >&5
20510sed 's/^/| /' conftest.$ac_ext >&5
20511
dd184caf 20512
d9898ee8 20513fi
dd184caf 20514
20515rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20516 conftest$ac_exeext conftest.$ac_ext
20517fi
dd184caf 20518{ echo "$as_me:$LINENO: result: $liblock_cv_haslockf" >&5
20519echo "${ECHO_T}$liblock_cv_haslockf" >&6; }
d9898ee8 20520if test "$liblock_cv_haslockf" = "yes"
20521then
20522
20523cat >>confdefs.h <<_ACEOF
20524#define HAS_LOCKF 1
20525_ACEOF
20526
20527fi
20528
dd184caf 20529{ echo "$as_me:$LINENO: checking for locking method" >&5
20530echo $ECHO_N "checking for locking method... $ECHO_C" >&6; }
d9898ee8 20531
dd184caf 20532# Check whether --with-locking-method was given.
d9898ee8 20533if test "${with_locking_method+set}" = set; then
dd184caf 20534 withval=$with_locking_method; lockmethod="$withval"
d9898ee8 20535else
20536 lockmethod=""
dd184caf 20537fi
20538
d9898ee8 20539
20540case x$lockmethod in
20541xfcntl)
20542 if test "$cross_compiling" = yes; then
20543 :
20544
20545else
20546 cat >conftest.$ac_ext <<_ACEOF
20547/* confdefs.h. */
20548_ACEOF
20549cat confdefs.h >>conftest.$ac_ext
20550cat >>conftest.$ac_ext <<_ACEOF
20551/* end confdefs.h. */
20552
20553#define USE_FCNTL 1
20554#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20555#include "${srcdir}/locktest.c"
20556
20557_ACEOF
20558rm -f conftest$ac_exeext
dd184caf 20559if { (ac_try="$ac_link"
20560case "(($ac_try" in
20561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20562 *) ac_try_echo=$ac_try;;
20563esac
20564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20565 (eval "$ac_link") 2>&5
d9898ee8 20566 ac_status=$?
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 20569 { (case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20572esac
20573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_try") 2>&5
d9898ee8 20575 ac_status=$?
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; }; then
20578 :
20579else
20580 echo "$as_me: program exited with status $ac_status" >&5
20581echo "$as_me: failed program was:" >&5
20582sed 's/^/| /' conftest.$ac_ext >&5
20583
20584( exit $ac_status )
20585{ { echo "$as_me:$LINENO: error: fcntl test failed." >&5
20586echo "$as_me: error: fcntl test failed." >&2;}
20587 { (exit 1); exit 1; }; }
20588fi
dd184caf 20589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20590fi
dd184caf 20591
20592
d9898ee8 20593 ;;
20594x)
20595 if test "$cross_compiling" = yes; then
20596 { { echo "$as_me:$LINENO: error: --with-locking-method option required" >&5
20597echo "$as_me: error: --with-locking-method option required" >&2;}
20598 { (exit 1); exit 1; }; }
20599else
20600 cat >conftest.$ac_ext <<_ACEOF
20601/* confdefs.h. */
20602_ACEOF
20603cat confdefs.h >>conftest.$ac_ext
20604cat >>conftest.$ac_ext <<_ACEOF
20605/* end confdefs.h. */
20606
20607#define USE_FCNTL 1
20608#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20609#include "${srcdir}/locktest.c"
20610
20611_ACEOF
20612rm -f conftest$ac_exeext
dd184caf 20613if { (ac_try="$ac_link"
20614case "(($ac_try" in
20615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20616 *) ac_try_echo=$ac_try;;
20617esac
20618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20619 (eval "$ac_link") 2>&5
d9898ee8 20620 ac_status=$?
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 20623 { (case "(($ac_try" in
20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20626esac
20627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_try") 2>&5
d9898ee8 20629 ac_status=$?
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); }; }; then
20632 lockmethod=fcntl
20633else
20634 echo "$as_me: program exited with status $ac_status" >&5
20635echo "$as_me: failed program was:" >&5
20636sed 's/^/| /' conftest.$ac_ext >&5
20637
20638fi
dd184caf 20639rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20640fi
dd184caf 20641
20642
d9898ee8 20643 ;;
20644esac
20645
20646case x$lockmethod in
20647xlockf)
20648 if test "$cross_compiling" = yes; then
20649 :
20650
20651else
20652 cat >conftest.$ac_ext <<_ACEOF
20653/* confdefs.h. */
20654_ACEOF
20655cat confdefs.h >>conftest.$ac_ext
20656cat >>conftest.$ac_ext <<_ACEOF
20657/* end confdefs.h. */
20658
20659#define USE_LOCKF 1
20660#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20661#include "${srcdir}/locktest.c"
20662
20663_ACEOF
20664rm -f conftest$ac_exeext
dd184caf 20665if { (ac_try="$ac_link"
20666case "(($ac_try" in
20667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20668 *) ac_try_echo=$ac_try;;
20669esac
20670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20671 (eval "$ac_link") 2>&5
d9898ee8 20672 ac_status=$?
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 20675 { (case "(($ac_try" in
20676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20677 *) ac_try_echo=$ac_try;;
20678esac
20679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20680 (eval "$ac_try") 2>&5
d9898ee8 20681 ac_status=$?
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); }; }; then
20684 :
20685else
20686 echo "$as_me: program exited with status $ac_status" >&5
20687echo "$as_me: failed program was:" >&5
20688sed 's/^/| /' conftest.$ac_ext >&5
20689
20690( exit $ac_status )
20691{ { echo "$as_me:$LINENO: error: lockf test failed." >&5
20692echo "$as_me: error: lockf test failed." >&2;}
20693 { (exit 1); exit 1; }; }
20694fi
dd184caf 20695rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20696fi
dd184caf 20697
20698
d9898ee8 20699 ;;
20700x)
20701 if test "$cross_compiling" = yes; then
20702 { { echo "$as_me:$LINENO: error: --with-locking-method option required" >&5
20703echo "$as_me: error: --with-locking-method option required" >&2;}
20704 { (exit 1); exit 1; }; }
20705else
20706 cat >conftest.$ac_ext <<_ACEOF
20707/* confdefs.h. */
20708_ACEOF
20709cat confdefs.h >>conftest.$ac_ext
20710cat >>conftest.$ac_ext <<_ACEOF
20711/* end confdefs.h. */
20712
20713#define USE_LOCKF 1
20714#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20715#include "${srcdir}/locktest.c"
20716
20717_ACEOF
20718rm -f conftest$ac_exeext
dd184caf 20719if { (ac_try="$ac_link"
20720case "(($ac_try" in
20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20723esac
20724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725 (eval "$ac_link") 2>&5
d9898ee8 20726 ac_status=$?
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 20729 { (case "(($ac_try" in
20730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20731 *) ac_try_echo=$ac_try;;
20732esac
20733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20734 (eval "$ac_try") 2>&5
d9898ee8 20735 ac_status=$?
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); }; }; then
20738 lockmethod=lockf
20739else
20740 echo "$as_me: program exited with status $ac_status" >&5
20741echo "$as_me: failed program was:" >&5
20742sed 's/^/| /' conftest.$ac_ext >&5
20743
20744fi
dd184caf 20745rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20746fi
dd184caf 20747
20748
d9898ee8 20749 ;;
20750esac
20751
20752
20753case x$lockmethod in
20754xflock)
20755 if test "$cross_compiling" = yes; then
20756 :
20757
20758else
20759 cat >conftest.$ac_ext <<_ACEOF
20760/* confdefs.h. */
20761_ACEOF
20762cat confdefs.h >>conftest.$ac_ext
20763cat >>conftest.$ac_ext <<_ACEOF
20764/* end confdefs.h. */
20765
20766#define USE_FLOCK 1
20767#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20768#include "${srcdir}/locktest.c"
20769
20770_ACEOF
20771rm -f conftest$ac_exeext
dd184caf 20772if { (ac_try="$ac_link"
20773case "(($ac_try" in
20774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775 *) ac_try_echo=$ac_try;;
20776esac
20777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20778 (eval "$ac_link") 2>&5
d9898ee8 20779 ac_status=$?
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 20782 { (case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20785esac
20786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_try") 2>&5
d9898ee8 20788 ac_status=$?
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); }; }; then
20791 :
20792else
20793 echo "$as_me: program exited with status $ac_status" >&5
20794echo "$as_me: failed program was:" >&5
20795sed 's/^/| /' conftest.$ac_ext >&5
20796
20797( exit $ac_status )
20798{ { echo "$as_me:$LINENO: error: flock test failed." >&5
20799echo "$as_me: error: flock test failed." >&2;}
20800 { (exit 1); exit 1; }; }
20801fi
dd184caf 20802rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20803fi
dd184caf 20804
20805
d9898ee8 20806 ;;
20807x)
20808 if test "$cross_compiling" = yes; then
20809 { { echo "$as_me:$LINENO: error: --with-locking-method option required" >&5
20810echo "$as_me: error: --with-locking-method option required" >&2;}
20811 { (exit 1); exit 1; }; }
20812else
20813 cat >conftest.$ac_ext <<_ACEOF
20814/* confdefs.h. */
20815_ACEOF
20816cat confdefs.h >>conftest.$ac_ext
20817cat >>conftest.$ac_ext <<_ACEOF
20818/* end confdefs.h. */
20819
20820#define USE_FLOCK 1
20821#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20822#include "${srcdir}/locktest.c"
20823
20824_ACEOF
20825rm -f conftest$ac_exeext
dd184caf 20826if { (ac_try="$ac_link"
20827case "(($ac_try" in
20828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20829 *) ac_try_echo=$ac_try;;
20830esac
20831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20832 (eval "$ac_link") 2>&5
d9898ee8 20833 ac_status=$?
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 20836 { (case "(($ac_try" in
20837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20838 *) ac_try_echo=$ac_try;;
20839esac
20840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20841 (eval "$ac_try") 2>&5
d9898ee8 20842 ac_status=$?
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); }; }; then
20845 lockmethod=flock
20846else
20847 echo "$as_me: program exited with status $ac_status" >&5
20848echo "$as_me: failed program was:" >&5
20849sed 's/^/| /' conftest.$ac_ext >&5
20850
20851fi
dd184caf 20852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20853fi
dd184caf 20854
20855
d9898ee8 20856 ;;
20857esac
20858
20859case x$lockmethod in
20860xlockf)
20861 ;;
20862xflock)
20863 ;;
20864xfcntl)
20865 ;;
20866*)
20867 { { echo "$as_me:$LINENO: error: must specify --with-locking-method option" >&5
20868echo "$as_me: error: must specify --with-locking-method option" >&2;}
20869 { (exit 1); exit 1; }; }
20870 ;;
20871esac
20872
dd184caf 20873{ echo "$as_me:$LINENO: result: $lockmethod" >&5
20874echo "${ECHO_T}$lockmethod" >&6; }
d9898ee8 20875
dd184caf 20876 if test "$lockmethod" = "fcntl"; then
d9898ee8 20877 USE_FCNTL_TRUE=
20878 USE_FCNTL_FALSE='#'
20879else
20880 USE_FCNTL_TRUE='#'
20881 USE_FCNTL_FALSE=
20882fi
20883
dd184caf 20884 if test "$lockmethod" = "flock"; then
d9898ee8 20885 USE_FLOCK_TRUE=
20886 USE_FLOCK_FALSE='#'
20887else
20888 USE_FLOCK_TRUE='#'
20889 USE_FLOCK_FALSE=
20890fi
20891
dd184caf 20892 if test "$lockmethod" = "lockf"; then
d9898ee8 20893 USE_LOCKF_TRUE=
20894 USE_LOCKF_FALSE='#'
20895else
20896 USE_LOCKF_TRUE='#'
20897 USE_LOCKF_FALSE=
20898fi
20899
20900
dd184caf 20901 if test -d ${srcdir}/../docbook; then
d9898ee8 20902 HAVE_SGML_TRUE=
20903 HAVE_SGML_FALSE='#'
20904else
20905 HAVE_SGML_TRUE='#'
20906 HAVE_SGML_FALSE=
20907fi
20908
20909
20910
20911cat >>confdefs.h <<_ACEOF
20912#define liblock_config_h 1
20913_ACEOF
20914
20915
dd184caf 20916ac_config_files="$ac_config_files Makefile"
20917
d9898ee8 20918cat >confcache <<\_ACEOF
20919# This file is a shell script that caches the results of configure
20920# tests run on this system so they can be shared between configure
20921# scripts and configure runs, see configure's option --config-cache.
20922# It is not useful on other systems. If it contains results you don't
20923# want to keep, you may remove or edit it.
20924#
20925# config.status only pays attention to the cache file if you give it
20926# the --recheck option to rerun configure.
20927#
20928# `ac_cv_env_foo' variables (set or unset) will be overridden when
20929# loading this file, other *unset* `ac_cv_foo' will be assigned the
20930# following values.
20931
20932_ACEOF
20933
20934# The following way of writing the cache mishandles newlines in values,
20935# but we know of no workaround that is simple, portable, and efficient.
dd184caf 20936# So, we kill variables containing newlines.
d9898ee8 20937# Ultrix sh set writes to stderr and can't be redirected directly,
20938# and sets the high bit in the cache file unless we assign to the vars.
dd184caf 20939(
20940 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20941 eval ac_val=\$$ac_var
20942 case $ac_val in #(
20943 *${as_nl}*)
20944 case $ac_var in #(
20945 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20946echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20947 esac
20948 case $ac_var in #(
20949 _ | IFS | as_nl) ;; #(
20950 *) $as_unset $ac_var ;;
20951 esac ;;
20952 esac
20953 done
20954
d9898ee8 20955 (set) 2>&1 |
dd184caf 20956 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20957 *${as_nl}ac_space=\ *)
d9898ee8 20958 # `set' does not quote correctly, so add quotes (double-quote
20959 # substitution turns \\\\ into \\, and sed turns \\ into \).
20960 sed -n \
20961 "s/'/'\\\\''/g;
20962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
dd184caf 20963 ;; #(
d9898ee8 20964 *)
20965 # `set' quotes correctly as required by POSIX, so do not add quotes.
dd184caf 20966 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 20967 ;;
dd184caf 20968 esac |
20969 sort
20970) |
d9898ee8 20971 sed '
dd184caf 20972 /^ac_cv_env_/b end
d9898ee8 20973 t clear
dd184caf 20974 :clear
d9898ee8 20975 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20976 t end
dd184caf 20977 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20978 :end' >>confcache
20979if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20980 if test -w "$cache_file"; then
20981 test "x$cache_file" != "x/dev/null" &&
20982 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20983echo "$as_me: updating cache $cache_file" >&6;}
d9898ee8 20984 cat confcache >$cache_file
20985 else
dd184caf 20986 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20987echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d9898ee8 20988 fi
20989fi
20990rm -f confcache
20991
20992test "x$prefix" = xNONE && prefix=$ac_default_prefix
20993# Let make expand exec_prefix.
20994test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20995
d9898ee8 20996DEFS=-DHAVE_CONFIG_H
20997
20998ac_libobjs=
20999ac_ltlibobjs=
21000for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21001 # 1. Remove the extension, and $U if already installed.
dd184caf 21002 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21003 ac_i=`echo "$ac_i" | sed "$ac_script"`
21004 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21005 # will be set to the directory where LIBOBJS objects are built.
21006 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21007 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 21008done
21009LIBOBJS=$ac_libobjs
21010
21011LTLIBOBJS=$ac_ltlibobjs
21012
21013
21014if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21015 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21016Usually this means the macro was only invoked conditionally." >&5
21017echo "$as_me: error: conditional \"AMDEP\" was never defined.
21018Usually this means the macro was only invoked conditionally." >&2;}
21019 { (exit 1); exit 1; }; }
21020fi
21021if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21022 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21023Usually this means the macro was only invoked conditionally." >&5
21024echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21025Usually this means the macro was only invoked conditionally." >&2;}
21026 { (exit 1); exit 1; }; }
21027fi
21028if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21029 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21030Usually this means the macro was only invoked conditionally." >&5
21031echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21032Usually this means the macro was only invoked conditionally." >&2;}
21033 { (exit 1); exit 1; }; }
21034fi
21035if test -z "${USE_FCNTL_TRUE}" && test -z "${USE_FCNTL_FALSE}"; then
21036 { { echo "$as_me:$LINENO: error: conditional \"USE_FCNTL\" was never defined.
21037Usually this means the macro was only invoked conditionally." >&5
21038echo "$as_me: error: conditional \"USE_FCNTL\" was never defined.
21039Usually this means the macro was only invoked conditionally." >&2;}
21040 { (exit 1); exit 1; }; }
21041fi
21042if test -z "${USE_FLOCK_TRUE}" && test -z "${USE_FLOCK_FALSE}"; then
21043 { { echo "$as_me:$LINENO: error: conditional \"USE_FLOCK\" was never defined.
21044Usually this means the macro was only invoked conditionally." >&5
21045echo "$as_me: error: conditional \"USE_FLOCK\" was never defined.
21046Usually this means the macro was only invoked conditionally." >&2;}
21047 { (exit 1); exit 1; }; }
21048fi
21049if test -z "${USE_LOCKF_TRUE}" && test -z "${USE_LOCKF_FALSE}"; then
21050 { { echo "$as_me:$LINENO: error: conditional \"USE_LOCKF\" was never defined.
21051Usually this means the macro was only invoked conditionally." >&5
21052echo "$as_me: error: conditional \"USE_LOCKF\" was never defined.
21053Usually this means the macro was only invoked conditionally." >&2;}
21054 { (exit 1); exit 1; }; }
21055fi
21056if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
21057 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
21058Usually this means the macro was only invoked conditionally." >&5
21059echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
21060Usually this means the macro was only invoked conditionally." >&2;}
21061 { (exit 1); exit 1; }; }
21062fi
21063
21064: ${CONFIG_STATUS=./config.status}
21065ac_clean_files_save=$ac_clean_files
21066ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21067{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21068echo "$as_me: creating $CONFIG_STATUS" >&6;}
21069cat >$CONFIG_STATUS <<_ACEOF
21070#! $SHELL
21071# Generated by $as_me.
21072# Run this file to recreate the current configuration.
21073# Compiler output produced by configure, useful for debugging
21074# configure, is in config.log if it exists.
21075
21076debug=false
21077ac_cs_recheck=false
21078ac_cs_silent=false
21079SHELL=\${CONFIG_SHELL-$SHELL}
21080_ACEOF
21081
21082cat >>$CONFIG_STATUS <<\_ACEOF
21083## --------------------- ##
21084## M4sh Initialization. ##
21085## --------------------- ##
21086
dd184caf 21087# Be more Bourne compatible
21088DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 21089if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21090 emulate sh
21091 NULLCMD=:
21092 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21093 # is contrary to our usage. Disable this feature.
21094 alias -g '${1+"$@"}'='"$@"'
dd184caf 21095 setopt NO_GLOB_SUBST
21096else
21097 case `(set -o) 2>/dev/null` in
21098 *posix*) set -o posix ;;
21099esac
21100
21101fi
21102
21103
21104
21105
21106# PATH needs CR
21107# Avoid depending upon Character Ranges.
21108as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21109as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21110as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21111as_cr_digits='0123456789'
21112as_cr_alnum=$as_cr_Letters$as_cr_digits
21113
21114# The user is always right.
21115if test "${PATH_SEPARATOR+set}" != set; then
21116 echo "#! /bin/sh" >conf$$.sh
21117 echo "exit 0" >>conf$$.sh
21118 chmod +x conf$$.sh
21119 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21120 PATH_SEPARATOR=';'
21121 else
21122 PATH_SEPARATOR=:
21123 fi
21124 rm -f conf$$.sh
d9898ee8 21125fi
d9898ee8 21126
21127# Support unset when possible.
21128if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21129 as_unset=unset
21130else
21131 as_unset=false
21132fi
21133
21134
dd184caf 21135# IFS
21136# We need space, tab and new line, in precisely that order. Quoting is
21137# there to prevent editors from complaining about space-tab.
21138# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21139# splitting by setting IFS to empty value.)
21140as_nl='
21141'
21142IFS=" "" $as_nl"
21143
21144# Find who we are. Look in the path if we contain no directory separator.
21145case $0 in
21146 *[\\/]* ) as_myself=$0 ;;
21147 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21148for as_dir in $PATH
21149do
21150 IFS=$as_save_IFS
21151 test -z "$as_dir" && as_dir=.
21152 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21153done
21154IFS=$as_save_IFS
21155
21156 ;;
21157esac
21158# We did not find ourselves, most probably we were run as `sh COMMAND'
21159# in which case we are not to be found in the path.
21160if test "x$as_myself" = x; then
21161 as_myself=$0
21162fi
21163if test ! -f "$as_myself"; then
21164 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21165 { (exit 1); exit 1; }
21166fi
21167
d9898ee8 21168# Work around bugs in pre-3.0 UWIN ksh.
dd184caf 21169for as_var in ENV MAIL MAILPATH
21170do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21171done
d9898ee8 21172PS1='$ '
21173PS2='> '
21174PS4='+ '
21175
21176# NLS nuisances.
21177for as_var in \
21178 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21179 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21180 LC_TELEPHONE LC_TIME
21181do
21182 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21183 eval $as_var=C; export $as_var
21184 else
dd184caf 21185 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 21186 fi
21187done
21188
21189# Required to use basename.
dd184caf 21190if expr a : '\(a\)' >/dev/null 2>&1 &&
21191 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 21192 as_expr=expr
21193else
21194 as_expr=false
21195fi
21196
dd184caf 21197if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 21198 as_basename=basename
21199else
21200 as_basename=false
21201fi
21202
21203
21204# Name of the executable.
dd184caf 21205as_me=`$as_basename -- "$0" ||
d9898ee8 21206$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21207 X"$0" : 'X\(//\)$' \| \
dd184caf 21208 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21209echo X/"$0" |
dd184caf 21210 sed '/^.*\/\([^/][^/]*\)\/*$/{
21211 s//\1/
21212 q
21213 }
21214 /^X\/\(\/\/\)$/{
21215 s//\1/
21216 q
21217 }
21218 /^X\/\(\/\).*/{
21219 s//\1/
21220 q
21221 }
21222 s/.*/./; q'`
d9898ee8 21223
dd184caf 21224# CDPATH.
21225$as_unset CDPATH
d9898ee8 21226
21227
d9898ee8 21228
d9898ee8 21229 as_lineno_1=$LINENO
21230 as_lineno_2=$LINENO
d9898ee8 21231 test "x$as_lineno_1" != "x$as_lineno_2" &&
dd184caf 21232 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 21233
21234 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21235 # uniformly replaced by the line number. The first 'sed' inserts a
dd184caf 21236 # line-number line after each line using $LINENO; the second 'sed'
21237 # does the real work. The second script uses 'N' to pair each
21238 # line-number line with the line containing $LINENO, and appends
21239 # trailing '-' during substitution so that $LINENO is not a special
21240 # case at line end.
d9898ee8 21241 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dd184caf 21242 # scripts with optimization help from Paolo Bonzini. Blame Lee
21243 # E. McMahon (1931-1989) for sed's syntax. :-)
21244 sed -n '
21245 p
21246 /[$]LINENO/=
21247 ' <$as_myself |
d9898ee8 21248 sed '
dd184caf 21249 s/[$]LINENO.*/&-/
21250 t lineno
21251 b
21252 :lineno
d9898ee8 21253 N
dd184caf 21254 :loop
21255 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 21256 t loop
dd184caf 21257 s/-\n.*//
d9898ee8 21258 ' >$as_me.lineno &&
dd184caf 21259 chmod +x "$as_me.lineno" ||
21260 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 21261 { (exit 1); exit 1; }; }
21262
21263 # Don't try to exec as it changes $[0], causing all sort of problems
21264 # (the dirname of $[0] is not the place where we might find the
dd184caf 21265 # original and so on. Autoconf is especially sensitive to this).
21266 . "./$as_me.lineno"
d9898ee8 21267 # Exit status is that of the last command.
21268 exit
21269}
21270
21271
dd184caf 21272if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21273 as_dirname=dirname
21274else
21275 as_dirname=false
21276fi
21277
21278ECHO_C= ECHO_N= ECHO_T=
21279case `echo -n x` in
21280-n*)
21281 case `echo 'x\c'` in
21282 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21283 *) ECHO_C='\c';;
21284 esac;;
21285*)
21286 ECHO_N='-n';;
d9898ee8 21287esac
21288
dd184caf 21289if expr a : '\(a\)' >/dev/null 2>&1 &&
21290 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 21291 as_expr=expr
21292else
21293 as_expr=false
21294fi
21295
21296rm -f conf$$ conf$$.exe conf$$.file
dd184caf 21297if test -d conf$$.dir; then
21298 rm -f conf$$.dir/conf$$.file
21299else
21300 rm -f conf$$.dir
21301 mkdir conf$$.dir
21302fi
d9898ee8 21303echo >conf$$.file
21304if ln -s conf$$.file conf$$ 2>/dev/null; then
dd184caf 21305 as_ln_s='ln -s'
21306 # ... but there are two gotchas:
21307 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21308 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21309 # In both cases, we have to default to `cp -p'.
21310 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 21311 as_ln_s='cp -p'
d9898ee8 21312elif ln conf$$.file conf$$ 2>/dev/null; then
21313 as_ln_s=ln
21314else
21315 as_ln_s='cp -p'
21316fi
dd184caf 21317rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21318rmdir conf$$.dir 2>/dev/null
d9898ee8 21319
21320if mkdir -p . 2>/dev/null; then
21321 as_mkdir_p=:
21322else
21323 test -d ./-p && rmdir ./-p
21324 as_mkdir_p=false
21325fi
21326
dd184caf 21327if test -x / >/dev/null 2>&1; then
21328 as_test_x='test -x'
21329else
21330 if ls -dL / >/dev/null 2>&1; then
21331 as_ls_L_option=L
21332 else
21333 as_ls_L_option=
21334 fi
21335 as_test_x='
21336 eval sh -c '\''
21337 if test -d "$1"; then
21338 test -d "$1/.";
21339 else
21340 case $1 in
21341 -*)set "./$1";;
21342 esac;
21343 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21344 ???[sx]*):;;*)false;;esac;fi
21345 '\'' sh
21346 '
21347fi
21348as_executable_p=$as_test_x
d9898ee8 21349
21350# Sed expression to map a string onto a valid CPP name.
21351as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21352
21353# Sed expression to map a string onto a valid variable name.
21354as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21355
21356
d9898ee8 21357exec 6>&1
21358
dd184caf 21359# Save the log message, to keep $[0] and so on meaningful, and to
d9898ee8 21360# report actual input values of CONFIG_FILES etc. instead of their
dd184caf 21361# values after options handling.
21362ac_log="
d9898ee8 21363This file was extended by liblock $as_me 0.60, which was
dd184caf 21364generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 21365
21366 CONFIG_FILES = $CONFIG_FILES
21367 CONFIG_HEADERS = $CONFIG_HEADERS
21368 CONFIG_LINKS = $CONFIG_LINKS
21369 CONFIG_COMMANDS = $CONFIG_COMMANDS
21370 $ $0 $@
21371
dd184caf 21372on `(hostname || uname -n) 2>/dev/null | sed 1q`
21373"
21374
d9898ee8 21375_ACEOF
21376
dd184caf 21377cat >>$CONFIG_STATUS <<_ACEOF
d9898ee8 21378# Files that config.status was made for.
dd184caf 21379config_files="$ac_config_files"
21380config_headers="$ac_config_headers"
21381config_commands="$ac_config_commands"
d9898ee8 21382
dd184caf 21383_ACEOF
d9898ee8 21384
21385cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 21386ac_cs_usage="\
21387\`$as_me' instantiates files from templates according to the
21388current configuration.
21389
21390Usage: $0 [OPTIONS] [FILE]...
21391
21392 -h, --help print this help, then exit
dd184caf 21393 -V, --version print version number and configuration settings, then exit
d9898ee8 21394 -q, --quiet do not print progress messages
21395 -d, --debug don't remove temporary files
21396 --recheck update $as_me by reconfiguring in the same conditions
21397 --file=FILE[:TEMPLATE]
21398 instantiate the configuration file FILE
21399 --header=FILE[:TEMPLATE]
21400 instantiate the configuration header FILE
21401
21402Configuration files:
21403$config_files
21404
21405Configuration headers:
21406$config_headers
21407
21408Configuration commands:
21409$config_commands
21410
21411Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 21412
dd184caf 21413_ACEOF
d9898ee8 21414cat >>$CONFIG_STATUS <<_ACEOF
21415ac_cs_version="\\
21416liblock config.status 0.60
dd184caf 21417configured by $0, generated by GNU Autoconf 2.61,
21418 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 21419
dd184caf 21420Copyright (C) 2006 Free Software Foundation, Inc.
d9898ee8 21421This config.status script is free software; the Free Software Foundation
21422gives unlimited permission to copy, distribute and modify it."
dd184caf 21423
21424ac_pwd='$ac_pwd'
21425srcdir='$srcdir'
21426INSTALL='$INSTALL'
21427MKDIR_P='$MKDIR_P'
d9898ee8 21428_ACEOF
21429
21430cat >>$CONFIG_STATUS <<\_ACEOF
21431# If no file are specified by the user, then we need to provide default
21432# value. By we need to know if files were specified by the user.
21433ac_need_defaults=:
21434while test $# != 0
21435do
21436 case $1 in
21437 --*=*)
dd184caf 21438 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21439 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d9898ee8 21440 ac_shift=:
21441 ;;
dd184caf 21442 *)
d9898ee8 21443 ac_option=$1
21444 ac_optarg=$2
21445 ac_shift=shift
21446 ;;
d9898ee8 21447 esac
21448
21449 case $ac_option in
21450 # Handling of the options.
d9898ee8 21451 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21452 ac_cs_recheck=: ;;
dd184caf 21453 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21454 echo "$ac_cs_version"; exit ;;
21455 --debug | --debu | --deb | --de | --d | -d )
d9898ee8 21456 debug=: ;;
21457 --file | --fil | --fi | --f )
21458 $ac_shift
21459 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21460 ac_need_defaults=false;;
21461 --header | --heade | --head | --hea )
21462 $ac_shift
21463 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21464 ac_need_defaults=false;;
dd184caf 21465 --he | --h)
21466 # Conflict between --help and --header
21467 { echo "$as_me: error: ambiguous option: $1
21468Try \`$0 --help' for more information." >&2
21469 { (exit 1); exit 1; }; };;
21470 --help | --hel | -h )
21471 echo "$ac_cs_usage"; exit ;;
d9898ee8 21472 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21473 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21474 ac_cs_silent=: ;;
21475
21476 # This is an error.
dd184caf 21477 -*) { echo "$as_me: error: unrecognized option: $1
21478Try \`$0 --help' for more information." >&2
d9898ee8 21479 { (exit 1); exit 1; }; } ;;
21480
dd184caf 21481 *) ac_config_targets="$ac_config_targets $1"
21482 ac_need_defaults=false ;;
d9898ee8 21483
21484 esac
21485 shift
21486done
21487
21488ac_configure_extra_args=
21489
21490if $ac_cs_silent; then
21491 exec 6>/dev/null
21492 ac_configure_extra_args="$ac_configure_extra_args --silent"
21493fi
21494
21495_ACEOF
21496cat >>$CONFIG_STATUS <<_ACEOF
21497if \$ac_cs_recheck; then
dd184caf 21498 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21499 CONFIG_SHELL=$SHELL
21500 export CONFIG_SHELL
21501 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9898ee8 21502fi
21503
21504_ACEOF
dd184caf 21505cat >>$CONFIG_STATUS <<\_ACEOF
21506exec 5>>config.log
21507{
21508 echo
21509 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21510## Running $as_me. ##
21511_ASBOX
21512 echo "$ac_log"
21513} >&5
d9898ee8 21514
dd184caf 21515_ACEOF
d9898ee8 21516cat >>$CONFIG_STATUS <<_ACEOF
21517#
dd184caf 21518# INIT-COMMANDS
d9898ee8 21519#
d9898ee8 21520AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21521
21522_ACEOF
21523
d9898ee8 21524cat >>$CONFIG_STATUS <<\_ACEOF
dd184caf 21525
21526# Handling of arguments.
d9898ee8 21527for ac_config_target in $ac_config_targets
21528do
dd184caf 21529 case $ac_config_target in
21530 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21531 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21532 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21533
d9898ee8 21534 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21535echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21536 { (exit 1); exit 1; }; };;
21537 esac
21538done
21539
dd184caf 21540
d9898ee8 21541# If the user did not use the arguments to specify the items to instantiate,
21542# then the envvar interface is used. Set only those that are not.
21543# We use the long form for the default assignment because of an extremely
21544# bizarre bug on SunOS 4.1.3.
21545if $ac_need_defaults; then
21546 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21547 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21548 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21549fi
21550
21551# Have a temporary directory for convenience. Make it in the build tree
dd184caf 21552# simply because there is no reason against having it here, and in addition,
d9898ee8 21553# creating and moving files from /tmp can sometimes cause problems.
dd184caf 21554# Hook for its removal unless debugging.
21555# Note that there is a small window in which the directory will not be cleaned:
21556# after its creation but before its name has been assigned to `$tmp'.
d9898ee8 21557$debug ||
21558{
dd184caf 21559 tmp=
21560 trap 'exit_status=$?
21561 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21562' 0
d9898ee8 21563 trap '{ (exit 1); exit 1; }' 1 2 13 15
21564}
d9898ee8 21565# Create a (secure) tmp directory for tmp files.
21566
21567{
dd184caf 21568 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d9898ee8 21569 test -n "$tmp" && test -d "$tmp"
21570} ||
21571{
dd184caf 21572 tmp=./conf$$-$RANDOM
21573 (umask 077 && mkdir "$tmp")
d9898ee8 21574} ||
21575{
21576 echo "$me: cannot create a temporary directory in ." >&2
21577 { (exit 1); exit 1; }
21578}
21579
d9898ee8 21580#
dd184caf 21581# Set up the sed scripts for CONFIG_FILES section.
d9898ee8 21582#
21583
21584# No need to generate the scripts if there are no CONFIG_FILES.
21585# This happens for instance when ./config.status config.h
dd184caf 21586if test -n "$CONFIG_FILES"; then
d9898ee8 21587
21588_ACEOF
21589
dd184caf 21590
21591
21592ac_delim='%!_!# '
21593for ac_last_try in false false false false false :; do
21594 cat >conf$$subs.sed <<_ACEOF
21595SHELL!$SHELL$ac_delim
21596PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21597PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21598PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21599PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21600PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21601PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21602exec_prefix!$exec_prefix$ac_delim
21603prefix!$prefix$ac_delim
21604program_transform_name!$program_transform_name$ac_delim
21605bindir!$bindir$ac_delim
21606sbindir!$sbindir$ac_delim
21607libexecdir!$libexecdir$ac_delim
21608datarootdir!$datarootdir$ac_delim
21609datadir!$datadir$ac_delim
21610sysconfdir!$sysconfdir$ac_delim
21611sharedstatedir!$sharedstatedir$ac_delim
21612localstatedir!$localstatedir$ac_delim
21613includedir!$includedir$ac_delim
21614oldincludedir!$oldincludedir$ac_delim
21615docdir!$docdir$ac_delim
21616infodir!$infodir$ac_delim
21617htmldir!$htmldir$ac_delim
21618dvidir!$dvidir$ac_delim
21619pdfdir!$pdfdir$ac_delim
21620psdir!$psdir$ac_delim
21621libdir!$libdir$ac_delim
21622localedir!$localedir$ac_delim
21623mandir!$mandir$ac_delim
21624DEFS!$DEFS$ac_delim
21625ECHO_C!$ECHO_C$ac_delim
21626ECHO_N!$ECHO_N$ac_delim
21627ECHO_T!$ECHO_T$ac_delim
21628LIBS!$LIBS$ac_delim
21629build_alias!$build_alias$ac_delim
21630host_alias!$host_alias$ac_delim
21631target_alias!$target_alias$ac_delim
21632INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21633INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21634INSTALL_DATA!$INSTALL_DATA$ac_delim
21635am__isrc!$am__isrc$ac_delim
21636CYGPATH_W!$CYGPATH_W$ac_delim
21637PACKAGE!$PACKAGE$ac_delim
21638VERSION!$VERSION$ac_delim
21639ACLOCAL!$ACLOCAL$ac_delim
21640AUTOCONF!$AUTOCONF$ac_delim
21641AUTOMAKE!$AUTOMAKE$ac_delim
21642AUTOHEADER!$AUTOHEADER$ac_delim
21643MAKEINFO!$MAKEINFO$ac_delim
21644install_sh!$install_sh$ac_delim
21645STRIP!$STRIP$ac_delim
21646INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21647mkdir_p!$mkdir_p$ac_delim
21648AWK!$AWK$ac_delim
21649SET_MAKE!$SET_MAKE$ac_delim
21650am__leading_dot!$am__leading_dot$ac_delim
21651AMTAR!$AMTAR$ac_delim
21652am__tar!$am__tar$ac_delim
21653am__untar!$am__untar$ac_delim
21654CC!$CC$ac_delim
21655CFLAGS!$CFLAGS$ac_delim
21656LDFLAGS!$LDFLAGS$ac_delim
21657CPPFLAGS!$CPPFLAGS$ac_delim
21658ac_ct_CC!$ac_ct_CC$ac_delim
21659EXEEXT!$EXEEXT$ac_delim
21660OBJEXT!$OBJEXT$ac_delim
21661DEPDIR!$DEPDIR$ac_delim
21662am__include!$am__include$ac_delim
21663am__quote!$am__quote$ac_delim
21664AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21665AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21666AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21667CCDEPMODE!$CCDEPMODE$ac_delim
21668am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21669am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21670LN_S!$LN_S$ac_delim
21671build!$build$ac_delim
21672build_cpu!$build_cpu$ac_delim
21673build_vendor!$build_vendor$ac_delim
21674build_os!$build_os$ac_delim
21675host!$host$ac_delim
21676host_cpu!$host_cpu$ac_delim
21677host_vendor!$host_vendor$ac_delim
21678host_os!$host_os$ac_delim
dd184caf 21679GREP!$GREP$ac_delim
21680EGREP!$EGREP$ac_delim
21681ECHO!$ECHO$ac_delim
21682AR!$AR$ac_delim
21683RANLIB!$RANLIB$ac_delim
21684CPP!$CPP$ac_delim
21685CXX!$CXX$ac_delim
21686CXXFLAGS!$CXXFLAGS$ac_delim
21687ac_ct_CXX!$ac_ct_CXX$ac_delim
21688CXXDEPMODE!$CXXDEPMODE$ac_delim
21689am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21690am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
1dce02f2 21691CXXCPP!$CXXCPP$ac_delim
dd184caf 21692_ACEOF
21693
21694 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21695 break
21696 elif $ac_last_try; then
21697 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21698echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21699 { (exit 1); exit 1; }; }
21700 else
21701 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d9898ee8 21702 fi
dd184caf 21703done
21704
21705ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21706if test -n "$ac_eof"; then
21707 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21708 ac_eof=`expr $ac_eof + 1`
21709fi
21710
21711cat >>$CONFIG_STATUS <<_ACEOF
21712cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21713/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21714_ACEOF
21715sed '
21716s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21717s/^/s,@/; s/!/@,|#_!!_#|/
21718:n
21719t n
21720s/'"$ac_delim"'$/,g/; t
21721s/$/\\/; p
21722N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21723' >>$CONFIG_STATUS <conf$$subs.sed
21724rm -f conf$$subs.sed
21725cat >>$CONFIG_STATUS <<_ACEOF
21726CEOF$ac_eof
21727_ACEOF
21728
21729
21730ac_delim='%!_!# '
21731for ac_last_try in false false false false false :; do
21732 cat >conf$$subs.sed <<_ACEOF
dd184caf 21733F77!$F77$ac_delim
21734FFLAGS!$FFLAGS$ac_delim
21735ac_ct_F77!$ac_ct_F77$ac_delim
21736LIBTOOL!$LIBTOOL$ac_delim
21737USE_FCNTL_TRUE!$USE_FCNTL_TRUE$ac_delim
21738USE_FCNTL_FALSE!$USE_FCNTL_FALSE$ac_delim
21739USE_FLOCK_TRUE!$USE_FLOCK_TRUE$ac_delim
21740USE_FLOCK_FALSE!$USE_FLOCK_FALSE$ac_delim
21741USE_LOCKF_TRUE!$USE_LOCKF_TRUE$ac_delim
21742USE_LOCKF_FALSE!$USE_LOCKF_FALSE$ac_delim
21743HAVE_SGML_TRUE!$HAVE_SGML_TRUE$ac_delim
21744HAVE_SGML_FALSE!$HAVE_SGML_FALSE$ac_delim
21745LIBOBJS!$LIBOBJS$ac_delim
21746LTLIBOBJS!$LTLIBOBJS$ac_delim
21747_ACEOF
21748
1dce02f2 21749 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
dd184caf 21750 break
21751 elif $ac_last_try; then
21752 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21753echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21754 { (exit 1); exit 1; }; }
21755 else
21756 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21757 fi
21758done
21759
21760ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21761if test -n "$ac_eof"; then
21762 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21763 ac_eof=`expr $ac_eof + 1`
21764fi
d9898ee8 21765
dd184caf 21766cat >>$CONFIG_STATUS <<_ACEOF
21767cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21768/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21769_ACEOF
21770sed '
21771s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21772s/^/s,@/; s/!/@,|#_!!_#|/
21773:n
21774t n
21775s/'"$ac_delim"'$/,g/; t
21776s/$/\\/; p
21777N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21778' >>$CONFIG_STATUS <conf$$subs.sed
21779rm -f conf$$subs.sed
21780cat >>$CONFIG_STATUS <<_ACEOF
21781:end
21782s/|#_!!_#|//g
21783CEOF$ac_eof
d9898ee8 21784_ACEOF
dd184caf 21785
21786
21787# VPATH may cause trouble with some makes, so we remove $(srcdir),
21788# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21789# trailing colons and then remove the whole line if VPATH becomes empty
21790# (actually we leave an empty line to preserve line numbers).
21791if test "x$srcdir" = x.; then
21792 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21793s/:*\$(srcdir):*/:/
21794s/:*\${srcdir}:*/:/
21795s/:*@srcdir@:*/:/
21796s/^\([^=]*=[ ]*\):*/\1/
21797s/:*$//
21798s/^[^=]*=[ ]*$//
21799}'
21800fi
21801
d9898ee8 21802cat >>$CONFIG_STATUS <<\_ACEOF
dd184caf 21803fi # test -n "$CONFIG_FILES"
21804
21805
21806for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21807do
21808 case $ac_tag in
21809 :[FHLC]) ac_mode=$ac_tag; continue;;
21810 esac
21811 case $ac_mode$ac_tag in
21812 :[FHL]*:*);;
21813 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21814echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21815 { (exit 1); exit 1; }; };;
21816 :[FH]-) ac_tag=-:-;;
21817 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21818 esac
21819 ac_save_IFS=$IFS
21820 IFS=:
21821 set x $ac_tag
21822 IFS=$ac_save_IFS
21823 shift
21824 ac_file=$1
21825 shift
21826
21827 case $ac_mode in
21828 :L) ac_source=$1;;
21829 :[FH])
21830 ac_file_inputs=
21831 for ac_f
21832 do
21833 case $ac_f in
21834 -) ac_f="$tmp/stdin";;
21835 *) # Look for the file first in the build tree, then in the source tree
21836 # (if the path is not absolute). The absolute path cannot be DOS-style,
21837 # because $ac_f cannot contain `:'.
21838 test -f "$ac_f" ||
21839 case $ac_f in
21840 [\\/$]*) false;;
21841 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21842 esac ||
21843 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21844echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21845 { (exit 1); exit 1; }; };;
21846 esac
21847 ac_file_inputs="$ac_file_inputs $ac_f"
21848 done
21849
21850 # Let's still pretend it is `configure' which instantiates (i.e., don't
21851 # use $as_me), people would be surprised to read:
21852 # /* config.h. Generated by config.status. */
21853 configure_input="Generated from "`IFS=:
21854 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21855 if test x"$ac_file" != x-; then
21856 configure_input="$ac_file. $configure_input"
21857 { echo "$as_me:$LINENO: creating $ac_file" >&5
21858echo "$as_me: creating $ac_file" >&6;}
21859 fi
21860
21861 case $ac_tag in
21862 *:-:* | *:-) cat >"$tmp/stdin";;
21863 esac
21864 ;;
d9898ee8 21865 esac
21866
dd184caf 21867 ac_dir=`$as_dirname -- "$ac_file" ||
d9898ee8 21868$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21869 X"$ac_file" : 'X\(//\)[^/]' \| \
21870 X"$ac_file" : 'X\(//\)$' \| \
dd184caf 21871 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21872echo X"$ac_file" |
dd184caf 21873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21874 s//\1/
21875 q
21876 }
21877 /^X\(\/\/\)[^/].*/{
21878 s//\1/
21879 q
21880 }
21881 /^X\(\/\/\)$/{
21882 s//\1/
21883 q
21884 }
21885 /^X\(\/\).*/{
21886 s//\1/
21887 q
21888 }
21889 s/.*/./; q'`
21890 { as_dir="$ac_dir"
21891 case $as_dir in #(
21892 -*) as_dir=./$as_dir;;
21893 esac
21894 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 21895 as_dirs=
dd184caf 21896 while :; do
21897 case $as_dir in #(
21898 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21899 *) as_qdir=$as_dir;;
21900 esac
21901 as_dirs="'$as_qdir' $as_dirs"
21902 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 21903$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21904 X"$as_dir" : 'X\(//\)[^/]' \| \
21905 X"$as_dir" : 'X\(//\)$' \| \
dd184caf 21906 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21907echo X"$as_dir" |
dd184caf 21908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21909 s//\1/
21910 q
21911 }
21912 /^X\(\/\/\)[^/].*/{
21913 s//\1/
21914 q
21915 }
21916 /^X\(\/\/\)$/{
21917 s//\1/
21918 q
21919 }
21920 /^X\(\/\).*/{
21921 s//\1/
21922 q
21923 }
21924 s/.*/./; q'`
21925 test -d "$as_dir" && break
d9898ee8 21926 done
dd184caf 21927 test -z "$as_dirs" || eval "mkdir $as_dirs"
21928 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21929echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 21930 { (exit 1); exit 1; }; }; }
d9898ee8 21931 ac_builddir=.
21932
dd184caf 21933case "$ac_dir" in
21934.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21935*)
d9898ee8 21936 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
dd184caf 21937 # A ".." for each directory in $ac_dir_suffix.
21938 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21939 case $ac_top_builddir_sub in
21940 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21941 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21942 esac ;;
21943esac
21944ac_abs_top_builddir=$ac_pwd
21945ac_abs_builddir=$ac_pwd$ac_dir_suffix
21946# for backward compatibility:
21947ac_top_builddir=$ac_top_build_prefix
d9898ee8 21948
21949case $srcdir in
dd184caf 21950 .) # We are building in place.
d9898ee8 21951 ac_srcdir=.
dd184caf 21952 ac_top_srcdir=$ac_top_builddir_sub
21953 ac_abs_top_srcdir=$ac_pwd ;;
21954 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 21955 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 21956 ac_top_srcdir=$srcdir
21957 ac_abs_top_srcdir=$srcdir ;;
21958 *) # Relative name.
21959 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21960 ac_top_srcdir=$ac_top_build_prefix$srcdir
21961 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 21962esac
dd184caf 21963ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 21964
d9898ee8 21965
dd184caf 21966 case $ac_mode in
21967 :F)
21968 #
21969 # CONFIG_FILE
21970 #
d9898ee8 21971
21972 case $INSTALL in
21973 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
dd184caf 21974 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21975 esac
21976 ac_MKDIR_P=$MKDIR_P
21977 case $MKDIR_P in
21978 [\\/$]* | ?:[\\/]* ) ;;
21979 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d9898ee8 21980 esac
dd184caf 21981_ACEOF
d9898ee8 21982
dd184caf 21983cat >>$CONFIG_STATUS <<\_ACEOF
21984# If the template does not know about datarootdir, expand it.
21985# FIXME: This hack should be removed a few years after 2.60.
21986ac_datarootdir_hack=; ac_datarootdir_seen=
21987
21988case `sed -n '/datarootdir/ {
21989 p
21990 q
21991}
21992/@datadir@/p
21993/@docdir@/p
21994/@infodir@/p
21995/@localedir@/p
21996/@mandir@/p
21997' $ac_file_inputs` in
21998*datarootdir*) ac_datarootdir_seen=yes;;
21999*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22000 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22001echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 22002_ACEOF
dd184caf 22003cat >>$CONFIG_STATUS <<_ACEOF
22004 ac_datarootdir_hack='
22005 s&@datadir@&$datadir&g
22006 s&@docdir@&$docdir&g
22007 s&@infodir@&$infodir&g
22008 s&@localedir@&$localedir&g
22009 s&@mandir@&$mandir&g
22010 s&\\\${datarootdir}&$datarootdir&g' ;;
22011esac
22012_ACEOF
22013
22014# Neutralize VPATH when `$srcdir' = `.'.
22015# Shell code in configure.ac might set extrasub.
22016# FIXME: do we really want to maintain this feature?
d9898ee8 22017cat >>$CONFIG_STATUS <<_ACEOF
22018 sed "$ac_vpsub
22019$extrasub
22020_ACEOF
22021cat >>$CONFIG_STATUS <<\_ACEOF
22022:t
22023/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
dd184caf 22024s&@configure_input@&$configure_input&;t t
22025s&@top_builddir@&$ac_top_builddir_sub&;t t
22026s&@srcdir@&$ac_srcdir&;t t
22027s&@abs_srcdir@&$ac_abs_srcdir&;t t
22028s&@top_srcdir@&$ac_top_srcdir&;t t
22029s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22030s&@builddir@&$ac_builddir&;t t
22031s&@abs_builddir@&$ac_abs_builddir&;t t
22032s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22033s&@INSTALL@&$ac_INSTALL&;t t
22034s&@MKDIR_P@&$ac_MKDIR_P&;t t
22035$ac_datarootdir_hack
22036" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22037
22038test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22039 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22040 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22041 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22042which seems to be undefined. Please make sure it is defined." >&5
22043echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22044which seems to be undefined. Please make sure it is defined." >&2;}
22045
22046 rm -f "$tmp/stdin"
d9898ee8 22047 case $ac_file in
dd184caf 22048 -) cat "$tmp/out"; rm -f "$tmp/out";;
22049 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
d9898ee8 22050 esac
dd184caf 22051 ;;
22052 :H)
22053 #
22054 # CONFIG_HEADER
22055 #
d9898ee8 22056_ACEOF
22057
dd184caf 22058# Transform confdefs.h into a sed script `conftest.defines', that
22059# substitutes the proper values into config.h.in to produce config.h.
22060rm -f conftest.defines conftest.tail
22061# First, append a space to every undef/define line, to ease matching.
22062echo 's/$/ /' >conftest.defines
22063# Then, protect against being on the right side of a sed subst, or in
22064# an unquoted here document, in config.status. If some macros were
22065# called several times there might be several #defines for the same
22066# symbol, which is useless. But do not sort them, since the last
22067# AC_DEFINE must be honored.
22068ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22069# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22070# NAME is the cpp macro being defined, VALUE is the value it is being given.
22071# PARAMS is the parameter list in the macro definition--in most cases, it's
22072# just an empty string.
22073ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22074ac_dB='\\)[ (].*,\\1define\\2'
22075ac_dC=' '
22076ac_dD=' ,'
22077
22078uniq confdefs.h |
22079 sed -n '
22080 t rset
22081 :rset
22082 s/^[ ]*#[ ]*define[ ][ ]*//
22083 t ok
22084 d
22085 :ok
22086 s/[\\&,]/\\&/g
22087 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22088 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22089 ' >>conftest.defines
22090
22091# Remove the space that was appended to ease matching.
22092# Then replace #undef with comments. This is necessary, for
d9898ee8 22093# example, in the case of _POSIX_SOURCE, which is predefined and required
22094# on some systems where configure will not decide to define it.
dd184caf 22095# (The regexp can be short, since the line contains either #define or #undef.)
22096echo 's/ $//
22097s,^[ #]*u.*,/* & */,' >>conftest.defines
22098
22099# Break up conftest.defines:
22100ac_max_sed_lines=50
22101
22102# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22103# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22104# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22105# et cetera.
22106ac_in='$ac_file_inputs'
22107ac_out='"$tmp/out1"'
22108ac_nxt='"$tmp/out2"'
22109
22110while :
d9898ee8 22111do
dd184caf 22112 # Write a here document:
22113 cat >>$CONFIG_STATUS <<_ACEOF
22114 # First, check the format of the line:
22115 cat >"\$tmp/defines.sed" <<\\CEOF
22116/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22117/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22118b
22119:def
22120_ACEOF
22121 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
d9898ee8 22122 echo 'CEOF
dd184caf 22123 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22124 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22125 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22126 grep . conftest.tail >/dev/null || break
d9898ee8 22127 rm -f conftest.defines
22128 mv conftest.tail conftest.defines
22129done
dd184caf 22130rm -f conftest.defines conftest.tail
d9898ee8 22131
dd184caf 22132echo "ac_result=$ac_in" >>$CONFIG_STATUS
d9898ee8 22133cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 22134 if test x"$ac_file" != x-; then
dd184caf 22135 echo "/* $configure_input */" >"$tmp/config.h"
22136 cat "$ac_result" >>"$tmp/config.h"
22137 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
d9898ee8 22138 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22139echo "$as_me: $ac_file is unchanged" >&6;}
22140 else
d9898ee8 22141 rm -f $ac_file
dd184caf 22142 mv "$tmp/config.h" $ac_file
d9898ee8 22143 fi
22144 else
dd184caf 22145 echo "/* $configure_input */"
22146 cat "$ac_result"
d9898ee8 22147 fi
dd184caf 22148 rm -f "$tmp/out12"
d9898ee8 22149# Compute $ac_file's index in $config_headers.
22150_am_stamp_count=1
22151for _am_header in $config_headers :; do
22152 case $_am_header in
22153 $ac_file | $ac_file:* )
22154 break ;;
22155 * )
22156 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22157 esac
22158done
dd184caf 22159echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
d9898ee8 22160$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22161 X$ac_file : 'X\(//\)[^/]' \| \
22162 X$ac_file : 'X\(//\)$' \| \
dd184caf 22163 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22164echo X$ac_file |
dd184caf 22165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22166 s//\1/
22167 q
22168 }
22169 /^X\(\/\/\)[^/].*/{
22170 s//\1/
22171 q
22172 }
22173 /^X\(\/\/\)$/{
22174 s//\1/
22175 q
22176 }
22177 /^X\(\/\).*/{
22178 s//\1/
22179 q
22180 }
22181 s/.*/./; q'`/stamp-h$_am_stamp_count
22182 ;;
d9898ee8 22183
dd184caf 22184 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22185echo "$as_me: executing $ac_file commands" >&6;}
22186 ;;
22187 esac
d9898ee8 22188
22189
dd184caf 22190 case $ac_file$ac_mode in
22191 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
d9898ee8 22192 # Strip MF so we end up with the name of the file.
22193 mf=`echo "$mf" | sed -e 's/:.*$//'`
22194 # Check whether this is an Automake generated Makefile or not.
22195 # We used to match only the files named `Makefile.in', but
22196 # some people rename them; so instead we look at the file content.
22197 # Grep'ing the first line is not enough: some people post-process
22198 # each Makefile.in and add a new line on top of each file to say so.
dd184caf 22199 # Grep'ing the whole file is not good either: AIX grep has a line
22200 # limit of 2048, but all sed's we know have understand at least 4000.
22201 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22202 dirpart=`$as_dirname -- "$mf" ||
d9898ee8 22203$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22204 X"$mf" : 'X\(//\)[^/]' \| \
22205 X"$mf" : 'X\(//\)$' \| \
dd184caf 22206 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22207echo X"$mf" |
dd184caf 22208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22209 s//\1/
22210 q
22211 }
22212 /^X\(\/\/\)[^/].*/{
22213 s//\1/
22214 q
22215 }
22216 /^X\(\/\/\)$/{
22217 s//\1/
22218 q
22219 }
22220 /^X\(\/\).*/{
22221 s//\1/
22222 q
22223 }
22224 s/.*/./; q'`
d9898ee8 22225 else
22226 continue
22227 fi
22228 # Extract the definition of DEPDIR, am__include, and am__quote
22229 # from the Makefile without running `make'.
22230 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22231 test -z "$DEPDIR" && continue
22232 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22233 test -z "am__include" && continue
22234 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22235 # When using ansi2knr, U may be empty or an underscore; expand it
22236 U=`sed -n 's/^U = //p' < "$mf"`
22237 # Find all dependency output files, they are included files with
22238 # $(DEPDIR) in their names. We invoke sed twice because it is the
22239 # simplest approach to changing $(DEPDIR) to its actual value in the
22240 # expansion.
22241 for file in `sed -n "
22242 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22243 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22244 # Make sure the directory exists.
22245 test -f "$dirpart/$file" && continue
dd184caf 22246 fdir=`$as_dirname -- "$file" ||
d9898ee8 22247$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22248 X"$file" : 'X\(//\)[^/]' \| \
22249 X"$file" : 'X\(//\)$' \| \
dd184caf 22250 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22251echo X"$file" |
dd184caf 22252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22253 s//\1/
22254 q
22255 }
22256 /^X\(\/\/\)[^/].*/{
22257 s//\1/
22258 q
22259 }
22260 /^X\(\/\/\)$/{
22261 s//\1/
22262 q
22263 }
22264 /^X\(\/\).*/{
22265 s//\1/
22266 q
22267 }
22268 s/.*/./; q'`
22269 { as_dir=$dirpart/$fdir
22270 case $as_dir in #(
22271 -*) as_dir=./$as_dir;;
22272 esac
22273 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 22274 as_dirs=
dd184caf 22275 while :; do
22276 case $as_dir in #(
22277 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22278 *) as_qdir=$as_dir;;
22279 esac
22280 as_dirs="'$as_qdir' $as_dirs"
22281 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 22282$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22283 X"$as_dir" : 'X\(//\)[^/]' \| \
22284 X"$as_dir" : 'X\(//\)$' \| \
dd184caf 22285 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22286echo X"$as_dir" |
dd184caf 22287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22288 s//\1/
22289 q
22290 }
22291 /^X\(\/\/\)[^/].*/{
22292 s//\1/
22293 q
22294 }
22295 /^X\(\/\/\)$/{
22296 s//\1/
22297 q
22298 }
22299 /^X\(\/\).*/{
22300 s//\1/
22301 q
22302 }
22303 s/.*/./; q'`
22304 test -d "$as_dir" && break
d9898ee8 22305 done
dd184caf 22306 test -z "$as_dirs" || eval "mkdir $as_dirs"
22307 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22308echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 22309 { (exit 1); exit 1; }; }; }
d9898ee8 22310 # echo "creating $dirpart/$file"
22311 echo '# dummy' > "$dirpart/$file"
22312 done
22313done
22314 ;;
dd184caf 22315
d9898ee8 22316 esac
dd184caf 22317done # for ac_tag
d9898ee8 22318
d9898ee8 22319
22320{ (exit 0); exit 0; }
22321_ACEOF
22322chmod +x $CONFIG_STATUS
22323ac_clean_files=$ac_clean_files_save
22324
22325
22326# configure is writing to config.log, and then calls config.status.
22327# config.status does its own redirection, appending to config.log.
22328# Unfortunately, on DOS this fails, as config.log is still kept open
22329# by configure, so config.status won't be able to write to it; its
22330# output is simply discarded. So we exec the FD to /dev/null,
22331# effectively closing config.log, so it can be properly (re)opened and
22332# appended to by config.status. When coming back to configure, we
22333# need to make the FD available again.
22334if test "$no_create" != yes; then
22335 ac_cs_success=:
22336 ac_config_status_args=
22337 test "$silent" = yes &&
22338 ac_config_status_args="$ac_config_status_args --quiet"
22339 exec 5>/dev/null
22340 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22341 exec 5>>config.log
22342 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22343 # would make configure fail if this is the last instruction.
22344 $ac_cs_success || { (exit 1); exit 1; }
22345fi
22346